Page 1 of 1
??? How Can S2Member Protect Entire Site ???
Posted:
February 14th, 2011, 5:44 pm
by anotheropus
I would like to lock down the entire site like an intranet -- with NO public access nor registration available.
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)
Re: ??? How Can S2Member Protect Entire Site ???
Posted:
February 19th, 2011, 8:26 pm
by anotheropus
Anyone?
Anything?
Re: ??? How Can S2Member Protect Entire Site ???
Posted:
February 22nd, 2011, 5:24 am
by clubdesleaders
Hi,
I think you will have to go to S2member general option and under URI for level 0 you put a /
Try it!
Re: ??? How Can S2Member Protect Entire Site ???
Posted:
December 1st, 2011, 11:32 am
by yoshiyahu
Anotheropus,
Did that work for you? I want to accomplish the same...
Re: ??? How Can S2Member Protect Entire Site ???
Posted:
December 1st, 2011, 11:33 am
by yoshiyahu
didn't work for me....
Re: ??? How Can S2Member Protect Entire Site ???
Posted:
December 1st, 2011, 1:02 pm
by yoshiyahu
ok,
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
Re: ??? How Can S2Member Protect Entire Site ???
Posted:
December 1st, 2011, 1:14 pm
by Eduan
Exactly what is it that you want to accomplish yoshiyahu?
Re: ??? How Can S2Member Protect Entire Site ???
Posted:
December 1st, 2011, 5:17 pm
by yoshiyahu
I am creating a member site on a separate WP install. I want the entire site inaccessible to the general public. Any page that is loaded, takes them to the WP member login page. [unless they are already logged in].
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/membersWhat do you think?
yoshiyahu
Re: ??? How Can S2Member Protect Entire Site ???
Posted:
December 5th, 2011, 11:16 am
by yoshiyahu
anyone?
Re: ??? How Can S2Member Protect Entire Site ???
Posted:
December 5th, 2011, 12:22 pm
by Eduan
I suggest you make a second "homepage" which will be the
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.
Re: ??? How Can S2Member Protect Entire Site ???
Posted:
December 5th, 2011, 12:27 pm
by drbyte
add this to your theme function.php
<?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