Community Support Forums — WordPress® ( Users Helping Users ) — 2011-12-05T12:27:59-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=2287 2011-12-05T12:27:59-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2287&p=54595#p54595 <![CDATA[Re: ??? How Can S2Member Protect Entire Site ???]]>
<?php $args = array(
'echo' => true,
'redirect' => site_url( $_SERVER['/mypage/'] ),
'form_id' => 'loginform',
'label_username' => __( 'Username' ),
'label_password' => __( 'Password' ),
'label_remember' => __( 'Remember Me' ),
'label_log_in' => __( 'Log In' ),
'id_username' => 'user_login',
'id_password' => 'user_pass',
'id_remember' => 'rememberme',
'id_submit' => 'wp-submit',
'remember' => true,
'value_username' => NULL,
'value_remember' => false ); ?>
<?php

then on your index.php or home.php add this

<?php get_header(); ?>

<?php if(is_user_logged_in()){ ?>
members only stuff
<?php } else { ?>
<?php wp_login_form( $args ); ?>
<?php } ?>

<?php get_footer(); ?>


include the above inside the site loop to protect all

Statistics: Posted by drbyte — December 5th, 2011, 12:27 pm


]]>
2011-12-05T12:22:31-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2287&p=54594#p54594 <![CDATA[Re: ??? How Can S2Member Protect Entire Site ???]]> login welcome page, the reason the login welcome page can't be the homepage is because the login welcome page is for members only, and naturally the homepage is for anyone.

What I recommend you do is:
1. Create a login welcome page like the one you want, make sure it's not the homepage.

2. Create a membership options page that has the forms for new users.

3. You can block the whole site with URI restrictions which you can find under WP Admin -> s2Member -> General Options -> URI Restrictions. You can check this video for more info: http://www.s2member.com/general-options-overview-video/

Hope this helps. :)

Statistics: Posted by Eduan — December 5th, 2011, 12:22 pm


]]>
2011-12-05T11:16:18-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2287&p=54591#p54591 <![CDATA[Re: ??? How Can S2Member Protect Entire Site ???]]> Statistics: Posted by yoshiyahu — December 5th, 2011, 11:16 am


]]>
2011-12-01T17:17:58-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2287&p=54333#p54333 <![CDATA[Re: ??? How Can S2Member Protect Entire Site ???]]>
I just got this error from S2.

s2Member: Your Login Welcome Page is currently configured as your Home Page ( i.e. static page ) for WordPress®. This causes internal conflicts with s2Member. Your Login Welcome Page MUST stand alone. Please correct this. See: WordPress® -> Reading Options. Or change: s2Member -> General Options -> Login Welcome Page.


Inside I have a bunch of forms for members.

here is the location
http://huntersfairwaysir.com/members

What do you think?

yoshiyahu

Statistics: Posted by yoshiyahu — December 1st, 2011, 5:17 pm


]]>
2011-12-01T13:14:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2287&p=54325#p54325 <![CDATA[Re: ??? How Can S2Member Protect Entire Site ???]]> Statistics: Posted by Eduan — December 1st, 2011, 1:14 pm


]]>
2011-12-01T13:02:14-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2287&p=54324#p54324 <![CDATA[Re: ??? How Can S2Member Protect Entire Site ???]]>
1. upload wp page links to
2. insert url [http://domain.com/wp-login.php?action=login] in wp page links to on the membership options page.
3. Update/save changes

This bypasses the membership options page. Once logged in, if revisited should go directly to membership home page.

I'm not sure if this is the best way but it appears to work. I am open to correction.

J

Statistics: Posted by yoshiyahu — December 1st, 2011, 1:02 pm


]]>
2011-12-01T11:33:11-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2287&p=54320#p54320 <![CDATA[Re: ??? How Can S2Member Protect Entire Site ???]]> Statistics: Posted by yoshiyahu — December 1st, 2011, 11:33 am


]]>
2011-12-01T11:32:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2287&p=54319#p54319 <![CDATA[Re: ??? How Can S2Member Protect Entire Site ???]]>
Did that work for you? I want to accomplish the same...

Statistics: Posted by yoshiyahu — December 1st, 2011, 11:32 am


]]>
2011-02-22T05:24:41-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2287&p=7019#p7019 <![CDATA[Re: ??? How Can S2Member Protect Entire Site ???]]> I think you will have to go to S2member general option and under URI for level 0 you put a /
Try it!

Statistics: Posted by clubdesleaders — February 22nd, 2011, 5:24 am


]]>
2011-02-19T20:26:26-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2287&p=6921#p6921 <![CDATA[Re: ??? How Can S2Member Protect Entire Site ???]]>
Anything?

Statistics: Posted by anotheropus — February 19th, 2011, 8:26 pm


]]>
2011-02-14T17:44:43-05:00 http://www.primothemes.com/forums/viewtopic.php?t=2287&p=6718#p6718 <![CDATA[??? How Can S2Member Protect Entire Site ???]]>
I have searched a few times for "private site", "protect site", "protect entire site", "protect all pages"...

I recently set up five new WP sites, added S2member, and somehow I managed to get three of them to have an S2member login screen at the root URL hone page... but the other two--I can't make it happen.

I've followed the video tutorial and added the word "all" to the levels of pages to protect.

I opened the S2member general settings panel on a locked down site next to a site that will not lock down, and I started at the top, went line by line and set them both the same--no luck.

Did I do something outside of S2Member?

It seems that locking down an entire site so only registered users have access, would be fairly easy/common, and with easily found note.

Thank you for your help (and patience)

Statistics: Posted by anotheropus — February 14th, 2011, 5:44 pm


]]>