PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

Capabilities override Welcome page setting

s2Member Plugin. A Membership plugin for WordPress®.

Capabilities override Welcome page setting

Postby vbsql7 » March 29th, 2011, 8:00 am

Greetings and thanks for the great plugin. I am using it to build a site for a homeowners association.
We have two levels above public access: Resident and Board.

I am trying to customize the capabilities of these levels so that Board members can add posts, edit pages, add users, etc. -- a subset of the Admin dashboard.

To do this, I have tried these two plugins: "User Role Editor" and "Capabilities Manager." Each one essentially alters the WP user capabilities table.

My redirect for all logged in users is to the "/residents-home" page. This works fine for the "Resident" level which only has the following capabilities: Access s2member level0, Access s2member level1, Read

Problem: My "Board" members, however, go straight to their dashboard when they login (instead of the desired residents-home page). I do not have any special redirection code assigned to this level other than the Login Welcome Page.

Board member capabilities include the following: Access s2member level0, Access s2member level1, Access s2member level2, Edit published posts, Manage polls, Read, Add users, Edit Posts, Moderate comments, Upload files, Edit users, Edit pages, Publish posts.

Q: Can you tell me which of the capabilities assigned to Board members triggering an override of the s2Member Welcome page setting?

Thanks,
Michael
User avatar
vbsql7
Registered User
Registered User
 
Posts: 8
Joined: March 29, 2011

Re: Capabilities override Welcome page setting

Postby vbsql7 » March 29th, 2011, 8:21 am

Additional info...

I was able to get the Board members to redirect to the Welcome page by reducing Board capabilities to: Access s2member level0, Access s2member level1, Access s2member level2, Manage polls, Read, Upload files, Publish posts.

Seems like when I removed "Edit published posts" the override problem went away. What I'd like to know, of course, is how to build a privileged user without losing the Welcome page ability.
Michael
User avatar
vbsql7
Registered User
Registered User
 
Posts: 8
Joined: March 29, 2011

Re: Capabilities override Welcome page setting

Postby Cristián Lávaque » March 29th, 2011, 7:20 pm

You can specify where you want the person to be redirected to after login adding it to the wp-login.php URL, like this:

http://yourwebsite.com/wp-login.php?redirect_to=/login-welcome-page


I don't know if that doesn't work when you played with the member's capabilities, but I just tried it with my admin account and the redirection worked, so I'm pretty sure it will for your users too.

I hope that solves your problem. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010

Re: Capabilities override Welcome page setting

Postby vbsql7 » March 29th, 2011, 8:35 pm

That seems to do the trick. Thanks for the work-around!

Michael
Michael
User avatar
vbsql7
Registered User
Registered User
 
Posts: 8
Joined: March 29, 2011

Re: Capabilities override Welcome page setting

Postby Cristián Lávaque » March 29th, 2011, 9:36 pm

Great! You're welcome. I'm glad you solved it. :)
Cristián Lávaque http://s2member.net
Is s2Member working for you? Please rate it Image at WordPress.org. Thanks! :)
User avatar
Cristián Lávaque
Developer
Developer
 
Posts: 6836
Joined: December 22, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 2 guests

cron