Support Forum
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
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/)
YELLOW
SWORDFISH
|
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?
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?
YELLOW
SWORDFISH
|
what do you have set up on forum - components - login and registration... or on forum - options - global settings for block admin?
Visit Cruise Talk Central and Mr Papa's World
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
|
|
|
|
|
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
Visit Cruise Talk Central and Mr Papa's World
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
- Logging in to Simple:Press and logging in to WordPress are the same thing. It is the site that the user logs in to.
- 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.
- 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.
YELLOW
SWORDFISH
|
1 Guest(s)