Registration form: custom fields are showing code

Get help with installation and running phpBB 3.0.x here. Please do not post bug reports, feature requests, or MOD-related questions here.
Anti-Spam Guide
Forum rules
END OF SUPPORT: 1 January 2017 (announcement)
Locked
penelopeelse
Registered User
Posts: 4
Joined: Tue Apr 17, 2012 9:07 pm

Registration form: custom fields are showing code

Post by penelopeelse »

Support Request Template
What version of phpBB are you using? phpBB 3.0.10
What is your board's URL? http://www.sydenhamtowncentre.com/traderforum
Who do you host your board with? heartinternet.com
How did you install your board? I used the download package from phpBB.com
What is the most recent action performed on your board? Fresh Install
Is registration required to reproduce this issue? Not all the way through, just to the profile set-up page.
Do you have any MODs installed? No
What styles do you currently have installed? AZ_Retro
What language(s) is your board currently using? English
Which database type/version are you using? I Don't Know
What is your level of experience? New to phpBB but not PHP
What username can be used to view this issue? Not needed
What password can be used to view this issue? Not needed
When did your problem begin? When I created some Custom User Profile fields using the standard functions.
Please describe your problem. I have created some Custom User Profile fields using the function under the User management screen. They were all set up successfully, but on the Registration page there is some code mixed in with the new fields, eg
for="pf_businessname">Business/Organisation: *Business/Organisation: *

The only modifications I've done myself are some CSS and to remove the logo and forum name. Have I broken something already?

Thanks! Pen
Generated by SRT Generator
_ollie_
Registered User
Posts: 654
Joined: Wed May 25, 2005 7:27 pm
Location: Berkshire
Contact:

Re: Registration form: custom fields are showing code

Post by _ollie_ »

Edit ucp_register.html and replace this:

Code: Select all

<!-- BEGIN profile_fields -->
		<dl>
			<dt><!-- IF profile_fields.FIELD_ID --> for="{profile_fields.FIELD_ID}"<!-- ENDIF -->>{profile_fields.LANG_NAME}:<!-- IF profile_fields.S_REQUIRED --> *<!-- ENDIF --><label<!-- IF profile_fields.FIELD_ID --> for="{profile_fields.FIELD_ID}"<!-- ENDIF -->>{profile_fields.LANG_NAME}:<!-- IF profile_fields.S_REQUIRED --> *<!-- ENDIF --></label>
			<!-- IF profile_fields.LANG_EXPLAIN --><br /><span>{profile_fields.LANG_EXPLAIN}</span><!-- ENDIF -->
			<!-- IF profile_fields.ERROR --><br /><span class="error">{profile_fields.ERROR}</span><!-- ENDIF --></dt>
			<dd>{profile_fields.FIELD}</dd>
		</dl>
	<!-- END profile_fields -->
Do a backup just incase my theory is wrong, but I tested on my own board and it worked.

With this:

Code: Select all

<!-- BEGIN profile_fields -->
		<dl>
			<dt><label<!-- IF profile_fields.FIELD_ID --> for="{profile_fields.FIELD_ID}"<!-- ENDIF -->>{profile_fields.LANG_NAME}:<!-- IF profile_fields.S_REQUIRED --> *<!-- ENDIF --></label>
			<!-- IF profile_fields.LANG_EXPLAIN --><br /><span>{profile_fields.LANG_EXPLAIN}</span><!-- ENDIF -->
			<!-- IF profile_fields.ERROR --><br /><span class="error">{profile_fields.ERROR}</span><!-- ENDIF --></dt>
			<dd>{profile_fields.FIELD}</dd>
		</dl>
	<!-- END profile_fields -->
penelopeelse
Registered User
Posts: 4
Joined: Tue Apr 17, 2012 9:07 pm

Re: Registration form: custom fields are showing code

Post by penelopeelse »

Hi Ollie

Yes, that seems to have worked, thank you so much!

Pen
_ollie_
Registered User
Posts: 654
Joined: Wed May 25, 2005 7:27 pm
Location: Berkshire
Contact:

Re: Registration form: custom fields are showing code

Post by _ollie_ »

Glad it worked :)
Thanks for updating.

Ollie :)
Locked

Return to “[3.0.x] Support Forum”