Add Email explain in registration

Need some custom code changes to the phpBB core simple enough that you feel doesn't require an extension? Then post your request here so that community members can provide some assistance.

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

NOTE: NO OFFICIAL SUPPORT IS PROVIDED IN THIS SUB-FORUM
exemplary1
Registered User
Posts: 211
Joined: Mon Feb 05, 2024 11:41 am

Add Email explain in registration

Post by exemplary1 »

Hello,
I want to add Email explanation text in registration form, same way Username and Password have.
I want to give particular instruction on adding email address.
Last edited by Mick on Fri Sep 20, 2024 7:00 am, edited 1 time in total.
Reason: Solved.
User avatar
Sniper_E
Registered User
Posts: 1194
Joined: Wed May 09, 2007 12:18 am
Location: Shreveport, Louisiana
Name: Ed Humphrey

Re: Add Email explain in registration

Post by Sniper_E »

That would require a template edit and additional line in the language file.

In styles/prosilver/template/ucp_register.html (line 52)

Code: Select all

			<dt><label for="email">{L_EMAIL_ADDRESS}{L_COLON}</label></dt>
Replace with:

Code: Select all

			<dt><label for="email">{L_EMAIL_ADDRESS}{L_COLON}</label><br /><span>{L_EMAIL_EXPLAIN}</span></dt>
Then in language/en/ucp.php (line 188)

Code: Select all

	'EMAIL_BANNED_EMAIL'		=> 'The email address you entered is not allowed to be used.',
After add:

Code: Select all

	'EMAIL_EXPLAIN'		=> 'Your Email explination.',
Then clear cache and refresh browser to view.
Image . -.. / .... ..- -- .--. .... .-. . -.--
No is NEVER an Option and NEVER is the only Option when it comes to Giving Up!

:!: Sniper_E Styles | phpbbmodders :!:
exemplary1
Registered User
Posts: 211
Joined: Mon Feb 05, 2024 11:41 am

Re: Add Email explain in registration

Post by exemplary1 »

Many thanx, its working!

Return to “phpBB Custom Coding”