Quantcast
Channel: phpBB.com
Viewing all articles
Browse latest Browse all 2279

phpBB Custom Coding • Adding text block above custom profile fields display during registration

$
0
0
I had a need to explain why i had to set these custom fields as required. So i edited the core file.

Using prosilver theme here.

styles/[theme folder]/template/ucp_register.html on approx line 65

after this code

Code:

<!-- INCLUDE timezone_option.html --><!-- EVENT ucp_register_profile_fields_before --><!-- IF .profile_fields --><dl><dd><strong>{L_ITEMS_REQUIRED}</strong></dd></dl>
add this code
change the colors however you like

Code:

<!-- custom  mod -->        <!-- this mod adds some text to explain the custom fields on the page -->        <dl style="background-color: #6b1706; text-align: justify;"><dd style="color: #ffffff; margin: 10px;">        <strong>Your custom text here.</strong></dd></dl><!-- end custom mod -->
Be sure you add the code BEFORE this code. If you dont then it will be in a loop and every field will show the text. Not what we want.

Code:

<!-- BEGIN profile_fields -->
Example how it looks:
custom_profile_field_special_message.jpg
Hope this helps.. :)

Statistics: Posted by durangod — Sun Mar 03, 2024 3:12 am



Viewing all articles
Browse latest Browse all 2279

Trending Articles