News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

Help needed with tweak to registration page

Started by North East Man, January 17, 2021, 06:59:03 AM

Previous topic - Next topic

North East Man

I would like to make a minor change to the registration page but am struggling to see how to achieve it.  Where you have the labels which currently state Username and Email, I would like to add some addiitional text.  I want to advise prospective members not to use their email address as a user name since that would then show in any posts they made and would appear on their profile.  This is for reasons of privacy.  I know they could change their screen name which would mask it, but I just want to add a short few words to try to prevent it in the first place.

I have found the $txt string for 'username' but changing that to add in the no email request would make that modified text appear throughout the forum wherever username appears. it would not be needed elsewhere and would look unsightly.   I thought I could create a new $txt string to include the text I want displaying but I can't find where I would need to insert this in (presumably) register.php.

Using the developer tools in my browser I can see the exact line which is highlighted by a <strong> label and I can edit it on that developer to show the exact page layout I need, but of course that doesn't save it.

Could someone give me any assistance in pointing what I need to do to make this little tweak?

Using 2.0.17 with a Temiz theme.

Aleksi "Lex" Kilpinen

You would use register.template.php of the theme you are using, or if it doesn't have one then the default theme's.
Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

North East Man

Excellent - Thank you for that quick response.  The change has been made already!


Aleksi "Lex" Kilpinen

Slava
Ukraini!
"Before you allow people access to your forum, especially in an administrative position, you must be aware that that person can seriously damage your forum. Therefore, you should only allow people that you trust, implicitly, to have such access." -Douglas

How you can help SMF

Advertisement: