Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
coding-topic
How to remove Login and Logout from forum?
Avatar
daveaton
Guest
Guests
Feb 26, 2012 - 12:48 pm

My wordpress blog is managed by a third-party membership script, I don't want users getting confused on where to login our out of the system.  Is there a way to remove the login and logout buttons from the simple press ?  Or maybe redirect them to my existing third-party system ?

 

Thanks,

David

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 26, 2012 - 1:33 pm

edit the spHead.php template file for the sp theme you are using and remove them... will look like:

            sp_LoggedInOutLabel('tagClass=spLabelSmall spLeft', __sp('Logged in as<br /><b>%USERNAME%</b>'), __sp('Please consider registering<br /><b>guest</b>'), __sp('Welcome back <b>%USERNAME%</b><br />Please log in to post'));
            sp_LogInOutButton('tagClass=spButton spRight', __sp('Log In', '2011'), __sp('Log Out'), __sp('Log in and log out'));
            sp_RegisterButton('tagClass=spButton spRight', __sp('Register'), __sp('Register'));

as always, we strongly recommend you make your own sp theme instead of editing ours: http://codex.simple-press.com/.....g-a-theme/

or you could replace those with links to your own ones...

Avatar
daveaton
Guest
Guests
Feb 26, 2012 - 5:26 pm

@Mr Papa

Hey that worked great!  I made my own template and made the changes as you outlined. Thanks.

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Feb 26, 2012 - 5:58 pm

good work! thanks for the update.

Avatar
Ralf
Guest
Guests
Feb 27, 2012 - 8:15 am

Mr Papa said

good work! thanks for the update.

Hi,
I have the same issue.

I did as you mention, and while I am logged in, everything is fine and login and Register button is not showing, but when I log out, it shows again...

Why is it so and how I can fix this?

Please help,
Thanks for this great plugin! 🙂

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Feb 27, 2012 - 9:01 am

??? If it is not in the template it can't really be displayed.

So - are you running some sort of wp cache plugin? If so you will need to exclude the forum page as it can not be cached.

andy-signature.png
YELLOW
SWORDFISH
Forum Timezone: Europe/Stockholm
Most Users Ever Online: 1170
Currently Online:
Guest(s) 1
Currently Browsing this Page:
1 Guest(s)
Top Posters:
Mr Papa: 19448
Ike: 2086
Brandon: 864
kvr28: 804
jim: 650
FidoSysop: 577
Conrad_Farlow: 531
fiddlerman: 358
Stefano Prete: 325
Member Stats:
Guest Posters: 620
Members: 17365
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10128
Posts: 79626