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 s2M on front-end

Home Forums Community Forum Hiding s2M on front-end

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

Topic Author Topic
Posted: Monday May 13th, 2013 at 9:19 am #49815
Prolet
Username: vesta

Hi to all!
First of all I’d like to express my deep respect to the developer’s team! Your work is great!Thank you!
Also I’d like to know is there any way of hiding s2Member’s panel from the posts, pages, portfolios on front-end?
I don’t want the users to be able to use s2M levels for restrictions and to use s2M Custom Capabilities.
Is it possible?
Thank you for your time!
Vesta
PS
I’d love to apologise to Bruce for not answering to him – http://www.s2member.com/forums/topic/few-wp-instalation-under-1-domain/
I didn’t mean to be rude. Just I had some nasty family problems and I didn’t do any computer work.
Thank you, Bruce, for your explanation!

List Of Topic Replies

Viewing 11 replies - 1 through 11 (of 11 total)
Author Replies
Author Replies
Posted: Tuesday May 14th, 2013 at 3:47 am #49917

I’d like to know is there any way of hiding s2Member’s panel from the posts, pages, portfolios on front-end?
I don’t want the users to be able to use s2M levels for restrictions and to use s2M Custom Capabilities.
Is it possible?

I’m not sure I understand. s2Member doesn’t show up on the front-end, only the admin pages.

I’d like to express my deep respect to the developer’s team! Your work is great!Thank you!

Thanks for the kudos! :)

Posted: Tuesday May 14th, 2013 at 5:24 am #49933
Prolet
Username: vesta

Hi Cristián,
Thank you for your reply.
I asume I didn’t use the right terms to say what is my problem.
Could you, please see the pic here http://worldartistmanagement.com/kuku/
This is a test user account.
The part with s2member, up in the right corner is what I don’t want to be seen from users.
Is that possible? Thank you for your time!

Posted: Wednesday May 15th, 2013 at 6:04 am #50010
Prolet
Username: vesta

Hi again,
I’m sorry for the wrong link.
Please find the screenshot here: http://worldartistmanagement.com/s2members-help/
Thank you!

Posted: Wednesday May 15th, 2013 at 8:11 am #50012
Ian Tasker
Username: clariner

@prolet

This is straightforward to remove, you will need to add the following to your functions.php in your theme.

function my_remove_meta_boxes() {
if( !current_user_can(‘manage_options’) ) {
remove_meta_box([XXXX], ‘portfilio’, ‘side’ );
}
}

add_action( ‘admin_menu’, ‘my_remove_meta_boxes’ );

where [XXXX] is replaced with the id of the div tag for the meta box, would be something like ‘s2memberdiv’.
this will remove it for non-administrators. (i dont have access to my version of s2member to get the correct tag)

if you need it for other post_type just change ‘portfilio’ to something else.

Posted: Wednesday May 15th, 2013 at 9:30 am #50015
Prolet
Username: vesta

Bless you Ian,

Thanks for your time and effort!
I used all divs firebug gave to me and I didn’t succeed at all.
I’ll appreciate if tell me how to find it, please!
I’m sorry to bother you with such a simple questions but this is the situation from my side – a nightmare.
Thank you again!
Best wishes,
Prolet

Posted: Wednesday May 15th, 2013 at 4:48 pm #50030
Ian Tasker
Username: clariner

When i get a spare minute, i will test the code on our installation and will post something when its complete and working

Posted: Thursday May 16th, 2013 at 2:01 am #50051
Prolet
Username: vesta

Great!
Ian, I’m thrilled!
Thank you!

Posted: Wednesday May 22nd, 2013 at 11:43 am #50373
Prolet
Username: vesta

Dear Ian,
Did you have any success with the code?
I don’t want to press you, just … I hope you will write back to me :)
Thank you!

Posted: Thursday May 23rd, 2013 at 5:03 pm #50464
Posted: Friday May 24th, 2013 at 2:46 am #50538
Prolet
Username: vesta

Cristián!
Please accept my deepest appreciation and respect!
Your help is great!
Thank you and Ian for spending time to help!
The code worked as a charm!
Bless you!

Posted: Friday May 24th, 2013 at 8:50 pm #50588

Great! :)

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