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.

Show notification that page is restricted

Home Forums Community Forum Show notification that page is restricted

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

Topic Author Topic
Posted: Sunday Mar 24th, 2013 at 7:24 pm #45609
bob barker
Username: Bandit

When a visitor clicks on a restricted post/page on my website, I would like them to see a notification that the page is restricted. Right now it redirects to the membership options page which is ok, but it’s not clear why they’re now viewing a seemingly unrelated page.

What’s the best way for me to create a notice that the page is restricted? Is there functionality within s2Member that can help with this? Let me know.

Thanks,
Eddie

List Of Topic Replies

Viewing 3 replies - 1 through 3 (of 3 total)
Author Replies
Author Replies
Posted: Tuesday Mar 26th, 2013 at 9:03 am #45741

Hi William.

Well, the Membership Options Page can be used to give a message explaining that the page he tried to view is restricted and how to gain access. If you want to customize the message depending on the page, you can use these variables: [hilite path]Dashboard -› s2Member® -› API / Scripting -› Membership Options Page Variables (MOP Vars)[/hilite]

If you want to the message to be shown in the same page he tried to open, though, instead of restricting access to the whole page, you’ll instead have to leave the page unrestricted and protect the content with a conditional. That way if the user has access he can see the content, but if not he’ll see the message explaining. [hilite path]Dashboard -› s2Member® -› API / Scripting -› Simple/Shortcode Conditionals[/hilite]

Posted: Thursday Mar 28th, 2013 at 8:33 am #45972
bob barker
Username: Bandit

Awesome that’s exactly what I needed. Thanks so much for the help Cristián.

Posted: Friday Mar 29th, 2013 at 9:35 am #46054

Cool. Glad I could help. :)

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.