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.

Protect content using div class

Home Forums Community Forum Protect content using div class

This topic contains 2 replies, has 3 voices. Last updated by  Raam Dev 4 years, 1 month ago.

Topic Author Topic
Posted: Sunday Nov 11th, 2012 at 1:18 pm #31255

Is there a way of protecting content using a div class?

So if I have a div class called “paid” and another called “all” but only the paid members can see what’s in “paid”.

so:

This is paid content
This is content for everyone

Is that possible?

Thanks

List Of Topic Replies

Viewing 2 replies - 1 through 2 (of 2 total)
Author Replies
Author Replies
Posted: Monday Nov 12th, 2012 at 6:18 am #31275

Look at S2membere>API scripting > Simple Shortcode Conditional (or PHP Conditional). Everything is explained here with examples. But you cannot use div class for it :-)

Posted: Monday Nov 12th, 2012 at 5:39 pm #31364
Raam Dev
Username: Raam
Staff Member

Hi Tyron,

As Jean-Michel explained, you can use the s2Member conditionals (Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals and Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals) to restrict access to content, but there is not currently any feature for specifying a CSS class that should be restricted.

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