Support Forum

Unable to hide Register and Login buttons

SN Stephen Nill
Stephen Nill
Member

I am working with a new install of SP. I want to hide the Register and Log In buttons. I found the information on how to do so here: http://wiki.simple-press.com/administration/components-panel/login-and-registration. 

Logged in as SP admin, on the page at Components > Login And Registration, I can only configure one thing: Use spam tool on registration form. But the controls I need to hide the Register and Login buttons are not available–certainly nothing like the screenshot at http://wiki.simple-press.com/administration/components-panel/login-and-registration. The same sort of thing happened when I changed the page name for SP, and, following the instructions, attempted to update the permalink at Integration > Page and Permalink.

FYI, I checkted the SP admin permissions, and all permissions are selected for the user account I’m using.

I could use some help. eek

 

9 Answers

New Answer

MP Mr Papa
Mr Papa
Member

the wiki is for version 3.x of SP… you would want the 4.x version or http://codex.simple-press.com

you want to ‘hide’ the login and registration buttons?  as 4.x has full fledged themes, you would just remove teh template tags that display the buttons…

so in the proper template file, in this case, spHead.php of the sp theme you are using, just remove or comment out the template function calls:

            sp_LogInOutButton(‘tagClass=spButton spRight’, __sp(‘Log In’), __sp(‘Log Out’), __sp(‘Log in and log out’));
            sp_RegisterButton(‘tagClass=spButton spRight’, __sp(‘Register’), __sp(‘Register’));

if removing the log in button, you might as well remove the forum too:

        sp_LoginForm($loginForm);

also, we strongly recommend you edit your own theme and not one of our supplied ones to keep from losing any changes on upgrades…

see:  http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/

 

SN Stephen Nill
Stephen Nill
Member

Thanks–I’m on the right path now.

(By the way, did you mean that the correct codex is for 4.x of SP? I am guessing that you meant version 5.x, right?)

 

 

YS Yellow Swordfish
Yellow Swordfish
Member

embarassed Yes… When I reads Steve’s post this morning I noticed three typo’s! Yes – he meant the wiki was for pre Version 5 and the codex for version 5+. It does say this at the top of the old wiki front page. It may actually be time to think about removing it now…

And when he said remove the forum’ he meant, of course, remove the ‘form’!

It is usually me that makes all the typo’s!

SN Stephen Nill
Stephen Nill
Member

Thanks for clarifying. I must say, the documentation is outstanding (when I’m looking at the right document, anyway) and I’m becoming extremely impressed with the design of SP as I get to work with it for the first time. That doesn’t mean I won’t screw something up all by myself though. Good to know you guys are so responsive.

Okay, enough compliments for now. I need to get back to configuring….

YS Yellow Swordfish
Yellow Swordfish
Member

Thanks for the supportive comments. I hope it all goes well and to plan for you.

SN Stephen Nill
Stephen Nill
Member

I’m following up on the advice to edit my own theme, rather than rely on one of the supplied ones. Makes perfect sense–I certainly don’t want any modifications I do overwritten by an update.

Can you confirm that to do that I can (for example) copy a theme zip file from https://simple-press.com/download-themes, rename it, upload it using the SP theme upload function, select it as the live theme, then modify it?

YS Yellow Swordfish
Yellow Swordfish
Member

basically yes but you need to really just follow the codex article:
http://codex.simple-press.com/codex/themes/theme-basics/creating-a-theme/

SN Stephen Nill
Stephen Nill
Member

LOL. Didn’t quite get to that one yet. Really, I’m just not used to such good documentation.

YS Yellow Swordfish
Yellow Swordfish
Member

Sadly we are still a ways behind with it…