Statistics: Posted by Jason Caldwell — January 24th, 2012, 8:58 pm
Statistics: Posted by AMEEKER — January 24th, 2012, 2:57 pm
Statistics: Posted by AMEEKER — January 23rd, 2012, 12:51 am
Yes, you've got it!
for Level 0 I'd link to domain.com/register (I'm using BuddyPress)
for Level 1 I'd link to http://domain.com/?register_level=1 (after inserting that code below into my functions, which will allow Level 1 to be free)
for Level 2 I'd link to the generated PayPal shortcode or link created through the PayPal Buttons panel
Is that right?
Statistics: Posted by Jason Caldwell — January 19th, 2012, 2:36 pm
Jason Caldwell wrote:
Here is more of a real-world example of how this might be implemented on your site.
Inside the functions.php file for your WordPress® theme, insert a snippet like this:
- Code:
add_action("init", "register_level");
function register_level(){
if(isset($_GET["register_level"])){
$link = c_ws_plugin__s2member_register_access::register_link_gen ("none", "-", $_SERVER["HTTP_HOST"], $_GET["register_level"], false);
wp_redirect($link); exit();
}
}
Here are how the actual links would be formulated:
- Code:
http://example.com/?register_level=1
http://example.com/?register_level=2
http://example.com/?register_level=3
http://example.com/?register_level=4
Statistics: Posted by AMEEKER — January 17th, 2012, 10:08 am
Statistics: Posted by Cristián Lávaque — December 11th, 2011, 2:33 am
Statistics: Posted by knowlesy27 — December 8th, 2011, 4:09 pm
Statistics: Posted by Cristián Lávaque — December 8th, 2011, 3:34 pm
Statistics: Posted by Cristián Lávaque — December 8th, 2011, 1:49 pm
knowlesy27 wrote:Hi there,
I have setup 3 different level, free, standard and premium. the standard and premium levels login to there default page that is setup which is called account details, but when i login as the free user it reverts to the dashboard(http://website.com/wp-admin). can you tell me what i need to do to get it to go to the account details when logged in.
Also is it possible to configure the premium login widget to display different option for user level?
Statistics: Posted by knowlesy27 — December 8th, 2011, 11:43 am
Statistics: Posted by Cristián Lávaque — December 8th, 2011, 3:56 am
Statistics: Posted by bessmccarty1 — December 1st, 2011, 10:20 pm
Statistics: Posted by bessmccarty1 — December 1st, 2011, 10:06 pm
Statistics: Posted by bessmccarty1 — November 29th, 2011, 5:38 pm
Statistics: Posted by knowlesy27 — November 29th, 2011, 6:22 am
Statistics: Posted by Cristián Lávaque — November 28th, 2011, 10:57 pm
Statistics: Posted by bessmccarty1 — November 27th, 2011, 6:05 pm
Statistics: Posted by luthimir — November 26th, 2011, 8:01 pm
Statistics: Posted by Jason Caldwell — November 20th, 2011, 7:51 pm
captcha="clean"
[s2Member-Pro-PayPal-Form register="1" level="0" ccaps="" desc="Signup now, it's Free!" custom="www.yourwebsite.com" tp="0" tt="D" captcha="0" /]
Statistics: Posted by luthimir — November 19th, 2011, 12:31 pm
Yes, that should do it. Make sure that IS a unique value.ajoslin103 wrote:
I think I have an answer -- based on the code it looks like using a "-" for the member id each time is saying "been here done that" -- so I substituted in a strval(time()) to get a never repeating value
Statistics: Posted by Jason Caldwell — November 15th, 2011, 12:04 pm
// this is an [s2member] suggested function for supporting free membership levels above 0
// see: http://www.primothemes.com/forums/viewtopic.php?f=36&t=2819
add_action ("init", "register_level");
function register_level ()
{
if (isset ($_GET["register_level"]))
{
// public static function register_link_gen ($subscr_gateway = FALSE, $subscr_id = FALSE, $custom = FALSE, $item_number = FALSE, $shrink = TRUE)
// $link = c_ws_plugin__s2member_register_access::register_link_gen ("none", "-", $_SERVER["HTTP_HOST"], $_GET["register_level"], false); // DIST
$link = c_ws_plugin__s2member_register_access::register_link_gen ("none", strval(time()), $_SERVER["HTTP_HOST"], $_GET["register_level"], false);
wp_redirect ($link);
exit ();
}
}
Statistics: Posted by ajoslin103 — November 14th, 2011, 8:53 pm