remove "register" link from com_smf login

Discuss the integration of SMF here.
Locked
Piie
Joomla! Intern
Joomla! Intern
Posts: 63
Joined: Mon Apr 16, 2007 1:20 pm

remove "register" link from com_smf login

Post by Piie » Fri Aug 03, 2007 6:45 am

Hi can anyone maybe help me to remove or edit the "register" link that shows in the login box for com_smf?

User avatar
Livebox
Joomla! Guru
Joomla! Guru
Posts: 511
Joined: Wed Jul 26, 2006 10:21 pm
Location: Joomlabridge.org
Contact:

Re: remove "register" link from com_smf login

Post by Livebox » Sat Aug 11, 2007 4:42 pm

please more info about the version you are using ;)
Joomlabridge.org Joomla! and Mambo Bridge Support and Downloads. and Video Tutorials

Piie
Joomla! Intern
Joomla! Intern
Posts: 63
Joined: Mon Apr 16, 2007 1:20 pm

Re: remove "register" link from com_smf login

Post by Piie » Sun Aug 12, 2007 8:21 am

jmla 1.1.12, smf 1.1.12 and Ostrio 1.1.7

arty_tigger
Joomla! Fledgling
Joomla! Fledgling
Posts: 1
Joined: Fri Aug 17, 2007 4:12 am

Re: remove "register" link from com_smf login

Post by arty_tigger » Fri Aug 17, 2007 4:19 am

Hi,
I also wanted to remove the register link, and I finally found the solution!

In your SMF installation folder (NOT the bridge folder) you will find a Themes folder.  Inside one of the subdirectories will be an index.english.php file (or equivalent for another language I presume).  For me this was in the Themes/default/languages

Edit this file and search for the text:
$txt['welcome_guest']

and here you will find the following script:
$txt['welcome_guest'] = 'Welcome, ' . $txt[28] . '. Please login or register.';

Simply edit this to remove the register link giving you:
$txt['welcome_guest'] = 'Welcome, ' . $txt[28] . '. Please login.';

And you can even remove the login link too if you like :-)

Cheers
Phil


Locked

Return to “SMF - Simplemachines.org Forum”