PriMoThemes — now s2Member® (official notice)

This is now a very OLD forum system. It's in READ-ONLY mode.
All community interaction now occurs at WP Sharks™. See: new forums @ WP Sharks™

??? How Can S2Member Protect Entire Site ???

s2Member Plugin. A Membership plugin for WordPress®.

??? How Can S2Member Protect Entire Site ???

Postby anotheropus » February 14th, 2011, 5:44 pm

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)
User avatar
anotheropus
Registered User
Registered User
 
Posts: 2
Joined: February 14, 2011

Re: ??? How Can S2Member Protect Entire Site ???

Postby anotheropus » February 19th, 2011, 8:26 pm

Anyone?

Anything?
User avatar
anotheropus
Registered User
Registered User
 
Posts: 2
Joined: February 14, 2011

Re: ??? How Can S2Member Protect Entire Site ???

Postby clubdesleaders » February 22nd, 2011, 5:24 am

Hi,
I think you will have to go to S2member general option and under URI for level 0 you put a /
Try it!
User avatar
clubdesleaders
Registered User
Registered User
 
Posts: 23
Joined: February 22, 2011

Re: ??? How Can S2Member Protect Entire Site ???

Postby yoshiyahu » December 1st, 2011, 11:32 am

Anotheropus,

Did that work for you? I want to accomplish the same...
User avatar
yoshiyahu
Registered User
Registered User
 
Posts: 5
Joined: December 1, 2011

Re: ??? How Can S2Member Protect Entire Site ???

Postby yoshiyahu » December 1st, 2011, 11:33 am

didn't work for me....
User avatar
yoshiyahu
Registered User
Registered User
 
Posts: 5
Joined: December 1, 2011

Re: ??? How Can S2Member Protect Entire Site ???

Postby yoshiyahu » December 1st, 2011, 1:02 pm

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
User avatar
yoshiyahu
Registered User
Registered User
 
Posts: 5
Joined: December 1, 2011

Re: ??? How Can S2Member Protect Entire Site ???

Postby Eduan » December 1st, 2011, 1:14 pm

Exactly what is it that you want to accomplish yoshiyahu?
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: ??? How Can S2Member Protect Entire Site ???

Postby yoshiyahu » December 1st, 2011, 5:17 pm

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/members

What do you think?

yoshiyahu
User avatar
yoshiyahu
Registered User
Registered User
 
Posts: 5
Joined: December 1, 2011

Re: ??? How Can S2Member Protect Entire Site ???

Postby yoshiyahu » December 5th, 2011, 11:16 am

anyone?
User avatar
yoshiyahu
Registered User
Registered User
 
Posts: 5
Joined: December 1, 2011

Re: ??? How Can S2Member Protect Entire Site ???

Postby Eduan » December 5th, 2011, 12:22 pm

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. :)
Now officially accepting Professional s2Member installations along with Bruce C (a.k.a. Ace).

If you're interested in a Professional s2Member Installation, or a Custom Coding Job, you can send your request here.
User avatar
Eduan
Experienced User
Experienced User
 
Posts: 1154
Joined: August 27, 2011
Location: Taxco de Alarcón, Guerrero, México.

Re: ??? How Can S2Member Protect Entire Site ???

Postby drbyte » December 5th, 2011, 12:27 pm

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
User avatar
drbyte
Experienced User
Experienced User
 
Posts: 269
Joined: May 6, 2010


Return to s2Member Plugin

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 2 guests

cron