Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-13T09:54:19-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=16314 2011-12-13T09:54:19-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16314&p=56415#p56415 <![CDATA[Re: Lockout Site]]> Good job on doing this! And thanks for sharing this with others.

Statistics: Posted by Eduan — December 13th, 2011, 9:54 am


]]>
2011-12-13T09:33:00-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16314&p=56411#p56411 <![CDATA[Re: Lockout Site]]>
In you index.php (of your theme file) above the <? get_header(); ?> put:

<?php if(!is_user_logged_in()){ ?>
<?php header( 'Location: http://www.nameofsite.com/wp-login.php?action=register' ) ; ?>
<?php } else { ?>

then above <?php get_footer(); ?> put the following in:

<?php } ?>

---

Basically you're saying if the person isn't logged in as a user push them to the s2member registration page, otherwise show the page as normal. I've tested this quickly and seems to be ok. If anyone has problems/questions just post here and I'll take a look.

Statistics: Posted by Silver Bullet — December 13th, 2011, 9:33 am


]]>
2011-12-12T22:07:34-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16314&p=56398#p56398 <![CDATA[Re: Lockout Site]]> viewtopic.php?f=4&t=2287

Hope this helps. :)

Statistics: Posted by Eduan — December 12th, 2011, 10:07 pm


]]>
2011-12-12T20:54:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=16314&p=56397#p56397 <![CDATA[Lockout Site]]>
I've recently installed s2member and can't seem to find a way to lockout the whole site. I'd like to have the first page an unregistered/not-logged in user sees is simply the registration form (I'd edit to make it clear what they need to do)

Any help on how this would be done would be very helpful.

Thanks
SB

Statistics: Posted by Silver Bullet — December 12th, 2011, 8:54 pm


]]>