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.

Hiding the s2member alert from user dashboard

Home Forums Community Forum Hiding the s2member alert from user dashboard

This topic contains 3 replies, has 3 voices. Last updated by  Cristián Lávaque 4 years, 5 months ago.

Topic Author Topic
Posted: Wednesday Aug 8th, 2012 at 2:31 pm #21541

I have a “user dashboard” on my site and I the s2member alert at the top of the page is showing when someone logs in. Every other plugin update or alert isn’t showing – only this one and I need to remove it. Any suggestions?

I’m using Role Scoper along with s2member to configure this. I just need that update and login alert to go away on the User Dashboard. Admin is fine, but I don’t want them to click that or even know it exists.

Thanks!

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Thursday Aug 9th, 2012 at 7:48 am #21614
Raam Dev
Username: Raam
Staff Member

Hi April,

s2Member does not allow users access to the WordPress dashboard, as all the s2Member Level roles are based on the WordPress Subscriber role capabilities, which only allows viewing of content. So, I’m not sure how any of your s2Member users are accessing the WordPress dashboard.

Posted: Thursday Aug 9th, 2012 at 10:16 am #21634

They don’t have access to the s2member dashboard. I have a custom dashboard for each of the people who join the site so they are able to post and edit their own information so I don’t have to do it for them.

Here’s what it looks like:

Do you see what I’m saying? I can’t have the private dashboard show this alert. They can’t see or configure the plugin but the alert is still there. I want to hide it.

Posted: Friday Aug 10th, 2012 at 6:00 am #21688

Hi April.

Thanks for explaining and the screenshot.

You’ll need to edit this file s2member-pro\includes\classes\upgrader.inc.php and add a check to make user it’s shown only to the admin. Some thing like [hilite code]current_user_can('manage_options')[/hilite] or [hilite code]current_user_is('administrator')[/hilite].

I hope that helps. :)

Viewing 3 replies - 1 through 3 (of 3 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.