latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Admin shows all capabilities

Home Forums Community Forum Admin shows all capabilities

This topic contains 4 replies, has 2 voices. Last updated by  Richard Garner 3 years, 11 months ago.

Topic Author Topic
Posted: Tuesday Jan 15th, 2013 at 7:54 am #37567

Hi,

I’m using ccap to control what my users see on my site, but as I have so many variants on a page it’s very complicated to view the pages as an admin as all of the capability variations show up to me as an admin.

Is there any way of switching this right off, so that Admins see the page the same way a user does, based on my custom capabilities?

thanks,
Rich

List Of Topic Replies

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Tuesday Jan 15th, 2013 at 1:26 pm #37599
Staff Member

Thanks for your inquiry. ~ We appreciate your patience :-)

What most site owners will do is create test accounts from the Dashboard. You can do this from Users -> Add New in WordPress. You might give your test accounts usernames like: subscriber, level1, level2, leve1_ccap_music, level1_ccap_videos, etc. Just use the same password for all of them. These test accounts should be given Roles (or even Custom Capabilities) as you create them from the Dashboard. This way you can log in as one of these test accounts; allowing you to view things from different customer perspectives.

It is also possible to generate links that will automatically log you in as different Users.
This requires a small plugin. I’ll provide instructions below.

Please create this directory and file:
/wp-content/mu-plugins/s2-login-links.php
(NOTE: these are MUST USE plugins, see: http://codex.wordpress.org/Must_Use_Plugins)
(See also: http://www.s2member.com/kb/hacking-s2member/)

Posted: Tuesday Jan 15th, 2013 at 2:03 pm #37619

Hi Jason,

Thanks for your response. I suppose my site is a little different to most in that it’s a self-publishing site that sits on top of the WordPress platform. i.e. I’ve built a CMS on top of a CMS!…

The net result is that I use my site as a publishing tool – as do my staff – but they don’t understand why there is three or four variations of everything on a page because I’m using multiple ccap’s – they see all of them.

The only alternative for me I think is if I remove their ‘admin’ status and find different ways for them to perform their roles without accessing the wordpress back-end.

I was hoping for a panacea!! thanks for your help though!

Posted: Tuesday Jan 15th, 2013 at 3:58 pm #37642
Staff Member

Thanks for your reply :-)

You might also consider adding a new Role to your WordPress installation. That’s pretty simple to do. You could add a new Role that you might call “Sub Administrator”, or “WP Administrator”, if you like that better.

With this new Role, you could grant these Administrators everything that a normal Administrator would have access to. The only difference is that they are NOT a true Administrator, in the eyes of s2Member; and thus, they will NOT have access to every Custom Capability.

I recommend this plugin to add new Roles:
http://wordpress.org/extend/plugins/capability-manager-enhanced/

See also: http://codex.wordpress.org/Roles_and_Capabilities

Posted: Tuesday Jan 15th, 2013 at 4:54 pm #37661

That’s the ticket!!! Thanks Jason, I think that will do the trick. Thanks for taking the time to help me out :)

Viewing 4 replies - 1 through 4 (of 4 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.