Support Forum

Advanced Search
Forum Scope


Match



Forum Options



Minimum search word length is 3 characters - maximum search word length is 84 characters
general-topic
How do I remove the log in button?
Avatar
Paul Smith
Member
sp_UserOfflineSmall Offline
Nov 25, 2012 - 2:50 am

I have been using Simplepress for five months now. It works very well. I have recently added the Digital Access Pass (DAP) membership plugin, which also works very well. I have a problem with the login for each plugin though. DAP asks for email and password at login, Simplepress asks for username and password at login. Member who login to every other area of the site using the DAP login are failing to login to the forum because they are trying to enter their email address as the username.

How do I remove the Simplepress login button, or at least change it so that users are directed to the DAP login form rather than WP?

Paul

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 25, 2012 - 5:11 am

You can do either - redirect or remove. Both require an edit to the spHead.php forum theme template (in the /templates folder of whatever SP theme you are using). you can use the Theme Editor for this if you like.

The function is called sp_LogInOutButton(

So you could just remove it.

Or - you could redirect it by adding the url you need to run when the button is clicked. That would take the form based on the default:

sp_LogInOutButton('tagClass=spButton spRight&logInLink=http://etc', 'Log In', 'Log Out', 'Log in and log out');

where you just need to replace the 'etc' in there. Either way it would also then be worth removing the inline login form - sp_LoginForm().

As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)

 

andy-signature.png
YELLOW
SWORDFISH
Avatar
Paul Smith
Member
sp_UserOfflineSmall Offline
Nov 25, 2012 - 11:13 am

OK. Great stuff. I've changed the login button to redirect here...

sp_LogInOutButton('tagClass=spButton spRight&logInLink=http://livingonanarrowboat.co.uk/login', 'Log In', 'Log Out', 'Log in and log out');

The users login successfully but are then directed on to the home page as per the normal login redirect. Is it possible for me to redirect users who login from the forum back to the forum rather than on to the home page?

 

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Nov 25, 2012 - 12:43 pm

Not sure what your options are. You can set up a redirect from the WP Login form (see forum admin > components > login and registration) bit whether that redriect would transfer to your login system and actually be used by your login system I couldn't say. Try it and see...Does that not have a redirect option you can set?

andy-signature.png
YELLOW
SWORDFISH
Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2012 - 12:45 pm

what do you have set up on forum - components - login and registration...  or on forum - options - global settings for block admin?

Avatar
Paul Smith
Member
sp_UserOfflineSmall Offline
Nov 25, 2012 - 1:58 pm

Mr Papa said
what do you have set up on forum - components - login and registration...  or on forum - options - global settings for block admin?

Login and registration -  login and logour redirects http://livingonanarrowboat.co.uk/forum/

Global settings for block admin are below. I don't see a block admin option

Lock Down Forum
WP Admin Pages Access
Auto Update
How many seconds before refresh:
RSS Feeds
Number of recent posts to feed:
Limit to number of words if showing content (0 = all):
Post Editing
Select Default Editor:

 

 

Avatar
Mr Papa
Simi Valley, CA
SP Master
Free Members
sp_UserOfflineSmall Offline
Nov 25, 2012 - 4:50 pm

block admin = wp admin pages access...   enable and you can keep folks out of the wp admin and redirect somewhere...

but if that is not enabled and the login redirect is set to the forum, then sounds like your other DAP login plugin is controlling the redirect...

you could try adding a redirect on the login button...  like

&logInLink=http://livingonanarrowboat.co.uk/login?redirect_to=https://simple-press.com/forum

Avatar
Christopher Eller
Member
Free Members
sp_UserOfflineSmall Offline
Dec 4, 2012 - 10:38 am

Yellow Swordfish said
You can do either - redirect or remove. Both require an edit to the spHead.php forum theme template (in the /templates folder of whatever SP theme you are using). you can use the Theme Editor for this if you like.

The function is called sp_LogInOutButton(

So you could just remove it.

Or - you could redirect it by adding the url you need to run when the button is clicked. That would take the form based on the default:

sp_LogInOutButton('tagClass=spButton spRight&logInLink=http://etc', 'Log In', 'Log Out', 'Log in and log out');

where you just need to replace the 'etc' in there. Either way it would also then be worth removing the inline login form - sp_LoginForm().

As always we recommend that you create your own SP theme so that any customisation is not lost during a future update. (http://codex.simple-press.com/.....g-a-theme/)

 

Thank you for this vital info! 

I also need to do this because the membership site I'm responsible for already uses s2Member Pro.

I prefer to use the REMOVE option. 

Can I ask for your help on this topic? Please forgive me for some naive questions! :)  

1. Perhaps I missed something, but when I remove the login button via the code--does that also remove the requirement for the visitor to log into the forum?

2. How is it possible to wire up the Simple-Press forum so that it knows a page visitor is logged into WordPress?

3. Is there a simple, one click method to cause all WordPress members to automatically be given the appropriate correlating membership level and role in the forum? Non members of the WordPress site should be able to read the forum. Whereas members of the WordPress site should be able to create threads and interact in them. The site has several thousand members and as I'm setting up Simple-Press it seems I need to assign WordPress users to a forum user role. 

Thank you, 

Chris

Avatar
Yellow Swordfish
Glinton, England
SP Master
sp_UserOfflineSmall Offline
Dec 4, 2012 - 1:08 pm
  1. Logging in to Simple:Press and logging in to WordPress are the same thing. It is the site that the user logs in to.
  2. It already knows because of the answer above. SP is a WP plugin - it just sits on tip of WP and is fully integhrated into the user system.
  3. Yes - through the user of forum User Groups and the mapping of WP roles to SP User Groups. Go tio the forum admin manage User Groups section and select 'Map Users to user Group'.

I would suggest perhaps that you take a brief look at the Getting Started section of our Codex where there is a introductory tutorial on setting up the access control using User Groups and Permission sets. Then if you take a look at the permissions available you should see how you can set up what you need.

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: 619
Members: 17362
Moderators: 0
Admins: 4
Forum Stats:
Groups: 7
Forums: 17
Topics: 10127
Posts: 79625