krumch
Forum Replies Created
-
Sorry that my amswer is too late, but yes, CSS+jQuery do the magic for me.
If you want stable work, don’t edit plugin’s files – next update will delete your changes, and will put your site in a great mess.
Instead, use s2M conditions or mu-plugins/s2-hacks.php to create behawiour you need. There always is a way…
Don’t worry and go ahead! Plugin is very flexible, but this makes it somewhat complicated. You must go throut “learning curve”… Everyone who don’t be scared, later loves the plugin 🙂
BTW, you must populate your Member Signup page, at least with a signup button…
The shortcode will create the form and button for you, you must place it on the page alone.
Hook your function to the “user_register” action hook, it is fired when new user is created.
Try this:
if($_SESSION['free_trial']) { $user = new WP_User($userid); $user->set_role("s2member_level2"); // Set membership expiration // 10 days $expire_on = strtotime('+10 days'); update_user_option ($userid, "s2member_auto_eot_time", $expire_on); //echo $expire_on; }You must re-build your forms and buttons, when you migrate to a new domain, because they must contain the current domain.
The “s2member_auto_eot_time” needs to be “Unix time”, you put a date.
Shortly, you must find exactly fields and copy the info from address fields…
Shorter: find someone… 🙂
You maybe did, but please run again this checklist…
This is server side problem… Call hosting and ask them to confirm, that your site can do “https” requests ot Paypal. Server may need some settings.
Can be done with a jQuery hack.
Admin user have all the privileges. How did you test?
The “user_register” hook should be OK. Not a s2M hook, but WP one. s2M fires it anyway.
My fault: the hook I show fires after the user is created. You must fine some, that fires before the creation of the new user. Maybe “init”. Maybe inside s2M…