Support Forum

How to remove Login and Logout from forum?

UN
Unknown
Member

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

5 Answers

New Answer

MP Mr Papa
Mr Papa
Member

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/codex/themes/theme-basics/creating-a-theme/

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

UN
Unknown
Member

@Mr Papa

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

UN
Unknown
Member

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! 🙂

YS Yellow Swordfish
Yellow Swordfish
Member

??? 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.