News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

On the registration page change "Username:"

Started by JDR, September 19, 2020, 01:55:19 AM

Previous topic - Next topic

JDR

Hi,

On the registration page, example: https://www.xxx.xxx/forum/index.php?action=register [nofollow]

the following text appears:
Username:
Email:
Allow users to email me:
Choose password:
Verify password:

I would like to change "Username:" to "First name - Last Name:"

can anyone tell me where I can do this?

Thanks in advance,

Jonathan

drewactual

in your theme if you have a language file, or in the default theme if you don't, look in languages... it will be index.english.php if your forum is in english...

look for:

$txt['username'] = 'Username';


replace with:

$txt['username'] = 'First and Last Name';


understand this will change your login too... if you want to JUST change it on the registration page, you'll need to adjust your register.template.php also in your theme (if it has one) and if not in the default theme (if the file isn't present in a custom theme, it falls back to the default if you haven't figured that out yet)... adjusting it there is a little trickier than just rattle tapping it in- you'll want to be careful, AND, you'll want to copy over the file to your custom theme IF you're using one..... you'll want to leave default files virgin best you can. 

JDR


Advertisement: