Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: xposure - heinäkuu 14, 2014, 06:10:05 AP

Otsikko: Change URL for Register links
Kirjoitti: xposure - heinäkuu 14, 2014, 06:10:05 AP
Hi, I have my own 'Register' page on my website as I need to gather more information than the Forum registration page. How can I change the URL of the text and button links that say 'Register'?

Many thanks for any help.
Otsikko: Re: Change URL for Register links
Kirjoitti: margarett - heinäkuu 14, 2014, 06:24:24 AP
The menu buttons are in Subs.php for SMF 2.0. Take a look at:
How do I add buttons to SMF 2.0? (http://wiki.simplemachines.org/smf/How_do_I_add_buttons_to_SMF_2.0)

The header text "Welcome, Guest. Please login or register." is in languages/index.english.php (called from index.template.php)
$txt['welcome_guest'] = 'Welcome, <strong>%1$s</strong>. Please <a href="' . $scripturl . '?action=login">login</a> or <a href="' . $scripturl . '?action=register">register</a>.';
Otsikko: Re: Change URL for Register links
Kirjoitti: Illori - heinäkuu 14, 2014, 06:25:32 AP
you would also need to disable the registration in smf otherwise the url will still work.
Otsikko: Re: Change URL for Register links
Kirjoitti: xposure - heinäkuu 14, 2014, 12:59:17 IP
Thanks for info, all done  ;D