Community Support Forums — WordPress® ( Users Helping Users ) — 2010-06-27T07:29:38-05:00 http://www.primothemes.com/forums/feed.php?f=4&t=286 2010-06-27T07:29:38-05:00 http://www.primothemes.com/forums/viewtopic.php?t=286&p=1268#p1268 <![CDATA[Re: Making restricted pages send users to registration page]]>

I have a real estate website that uses an idx feed. My goal is to allow readers to view the first couple pages first, but after that be required to login. This means that I do not turn away first visitors, but that I can still capture leads... higher quality than if I made everyone sign up.

OK, I see what you're trying to accomplish. Let me soak on that one for a bit. I'll get back to you.

@TODO - Delayed access control hack/code snippet/feature.. : soaking.


Also... do you have a place I can donate? I don't think I have a need for the "premium" s2member plugin, but would still like to contribute.

Yes, that is very nice of you to ask.
http://www.primothemes.com/donate/

Statistics: Posted by Jason Caldwell — June 27th, 2010, 7:29 am


]]>
2010-06-26T12:00:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=286&p=1249#p1249 <![CDATA[Re: Making restricted pages send users to registration page]]>
I have a real estate website that uses an idx feed. My goal is to allow readers to view the first couple pages first, but after that be required to login. This means that I do not turn away first visitors, but that I can still capture leads... higher quality than if I made everyone sign up.

Also... do you have a place I can donate? I don't think I have a need for the "premium" s2member plugin, but would still like to contribute.

Thanks!

Statistics: Posted by seacoast — June 26th, 2010, 12:00 pm


]]>
2010-06-26T02:00:33-05:00 http://www.primothemes.com/forums/viewtopic.php?t=286&p=1232#p1232 <![CDATA[Re: Making restricted pages send users to registration page]]>

Second question, is there away to make it direct to the login page after so many seconds have gone by?

Sure. Please explain exactly what you're trying to accomplish though.
There are few different things, but it depends on what you're trying to do exactly.

Statistics: Posted by Jason Caldwell — June 26th, 2010, 2:00 am


]]>
2010-06-26T01:59:23-05:00 http://www.primothemes.com/forums/viewtopic.php?t=286&p=1231#p1231 <![CDATA[Re: Making restricted pages send users to registration page]]>
Code:
add_action("template_redirect", "redirect_membership_options_to_login");

function redirect_membership_options_to_login(){
    $mop = $GLOBALS["WS_PLUGIN__"]["s2member"]["o"]["membership_options_page"];
    if($mop && is_page($mop) && isset($_GET["s2member_level_req"])){
        header("Location: " . wp_login_url()); exit;
    }
}

Statistics: Posted by Jason Caldwell — June 26th, 2010, 1:59 am


]]>
2010-06-25T09:59:46-05:00 http://www.primothemes.com/forums/viewtopic.php?t=286&p=1202#p1202 <![CDATA[Making restricted pages send users to registration page]]> http://www.example.com/example2/ url.

My question, is there away to make it direct to the login page?

Second question, is there away to make it direct to the login page after so many seconds have gone by?


Thanks!

Statistics: Posted by seacoast — June 25th, 2010, 9:59 am


]]>