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.

Force Registration before viewing content?

Home Forums Community Forum Force Registration before viewing content?

This topic contains 7 replies, has 2 voices. Last updated by  Eduan 4 years, 4 months ago.

Topic Author Topic
Posted: Monday Aug 27th, 2012 at 3:46 pm #23191

I was wondering if someone could help me. I am building a membership site that I would like to force the user to register before even viewing any contents of the site (minus the register page/Login page). I currently am using the free version of the S2Member plugin. I would like to avoid .htaccess modification

I would also like to know if there is a feature where I can allow a user to view some of the content on the page, but lock down a video and replace the video with text that says something like, “to view the rest of the contents on this page, please click the link and register. Can that be done in the free version of this plugin or even at all?

Your help would be greatly appreciated!

List Of Topic Replies

Viewing 7 replies - 1 through 7 (of 7 total)
Author Replies
Author Replies
Posted: Monday Aug 27th, 2012 at 5:48 pm #23199
Eduan
Username: Eduan
Moderator

Hello Robert,

You can achieve this blocking the content with URI restrictions, simply use a “/” without the quotes. You can find URI restrictions under Dashboard -› s2Member® -› Restriction Options -› URI Access Restrictions.

Also, you might be interested in s2Member conditionals, here’s an article about them: Knowledge Base » s2Member® Conditionals

Hope this helps. :)

Posted: Wednesday Aug 29th, 2012 at 2:11 pm #23435

Eduan, Thank you so much! this worked for me.

Posted: Wednesday Aug 29th, 2012 at 2:12 pm #23436
Eduan
Username: Eduan
Moderator

Excellent! Glad I was able to help. :)

Posted: Wednesday Aug 29th, 2012 at 2:14 pm #23437

Okay one more question that pertains to this subject. Say I wanted to use one of these shortcodes on a custom home page using php. Could you point me in the right direction of doing this? Your elp, again, will be greatly appreciated.

Posted: Wednesday Aug 29th, 2012 at 2:16 pm #23439
Eduan
Username: Eduan
Moderator

You can check under Dashboard -› s2Member® -› API / Scripting -› Advanced PHP Conditionals which allows you to do conditionals inside code, since shortcodes won’t work inside code.

Is this what you needed?

Posted: Wednesday Aug 29th, 2012 at 5:13 pm #23470

Perfect! You’ve been a great help!

Posted: Wednesday Aug 29th, 2012 at 9:18 pm #23492
Eduan
Username: Eduan
Moderator

Excellent! Glad I was able to help. :)

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