News:

Wondering if this will always be free?  See why free is better.

Main Menu

Remove Welcome Guest,please login or register

Started by handoyo, January 01, 2010, 11:55:11 PM

Previous topic - Next topic

handoyo

Hi all,i wonder how to remove Welcome guest,please login or register and the login block on the smf footer?Thanks...

Nick Whetstone

Please post your version number.

I'm assuming it's 1.1.something since you mention a footer login bar, but I can't confirm that until you do. ;)
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

handoyo


JBlaze

I'm assuming this is now resolved seeing that you got your answer in IRC?
Jason Clemons
Former Team Member 2009 - 2012


lmchurch

I am wanting to do the same Thing Remove Welcome Guest, please login or register

Current SMF version: SMF 1.1.11

handoyo

Find this code in index.template.php of your current theme


// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];


You can delete or comment out the


echo $txt['welcome_guest'];

Nick Whetstone

Quote from: handoyo on January 03, 2010, 10:04:43 PM
Find this code in index.template.php of your current theme


// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];


You can delete or comment out the


echo $txt['welcome_guest'];


I'd personally recommend the following:/*
// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];
*/


Looks weird, I know, but it should interfere with the package manager's mod installation less.
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

handoyo


Nick Whetstone

Quote from: Ha² on January 03, 2010, 10:45:47 PM
I'd personally recommend the following:/*
// Otherwise they're a guest - send them a lovely greeting...
else
echo $txt['welcome_guest'];
*/

Looks weird, I know, but it should interfere with the package manager's mod installation less.

This is what I would recommend, personally, but if your code gets the job done, it isn't bad. I just recommended mine so that Mods' XML Search/Replace functions will be interfered with a bit less.
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!


lmchurch

I did just what was described, and it did not give me the results that I would like.
I'm attaching a picture of what i would like to do.

Thanks for any help.
Mitch

Arantor

lmchurch: the information given doesn't touch the menu at all.

So you want to disable registration generally? How do users sign up?

lmchurch

Our webteam signs them the new members up. Were dealing with a bunch of non-tech people.

Arantor


lmchurch

Yes, our webteam register them through the Admin Panel, Members, Registration.

Arantor

In which case, Admin > Members > Registration > Settings - disable registration. This will stop the link appearing (and stop any random signups in case they go to action=register) but your team can still register through the admin panel.


techbot

I don't want to remove this, I want to change the greeting to something like "Register to take full advantage of our site" or something like that. How would I change the text it displays?
Any help is appreciated. Scornful comments will be met with a blank stare

Nick Whetstone

#19
Quote from: techbot on February 26, 2010, 12:05:28 PM
I don't want to remove this, I want to change the greeting to something like "Register to take full advantage of our site" or something like that. How would I change the text it displays?
If you use 1.1:
Code (Find this in /Themes/default/languages/index.english.php) Select
$txt['welcome_guest'] = 'Welcome, <b>' . $txt[28] . '</b>. Please <a href="' . $scripturl . '?action=login">login</a> or <a href="' . $scripturl . '?action=register">register</a>.';
Code (Replace it with) Select
$txt['welcome_guest'] = 'Welcome, <b>' . $txt[28] . '</b>. Please <a href="' . $scripturl . '?action=register">register</a> to take full advantage of our site.';

If you use 2.0:
Code (Find this in /Themes/default/languages/index.english.php) Select
$txt['welcome_guest'] = 'Welcome, <strong>%1$s</strong>. Please <a href="' . $scripturl . '?action=login">login</a> or <a href="' . $scripturl . '?action=register">register</a>.';
Code (Replace it with) Select
$txt['welcome_guest'] = 'Welcome, <strong>%1$s</strong>. Please <a href="' . $scripturl . '?action=register">register</a> to take full advantage of our site.';
If you use 2.0, you may have to clear your forum's file cache.

Also, when you have a new issue, please use the Search function or open a new topic instead of bumping an older, solved one.
The artist formerly known as (Ha)²

Former Support Specialist

Please do not solicit support via PM. Here's why!

Advertisement: