latest stable versions: v150827 (changelog)

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

manually update a user EOT time and level

Home Forums Community Forum manually update a user EOT time and level

This topic contains 21 replies, has 2 voices. Last updated by  Eduan 4 years, 3 months ago.

Topic Author Topic
Posted: Thursday Sep 6th, 2012 at 8:28 am #24305

I am new to s2member so, I don’t know how to manually update user eot time and thier level.

Thanks

List Of Topic Replies

Viewing 21 replies - 1 through 21 (of 21 total)
Author Replies
Author Replies
Posted: Thursday Sep 6th, 2012 at 12:22 pm #24341
Eduan
Username: Eduan
Moderator

Hello Vishnu,

The way to do this is to edit the user’s info under Dashboard -› Users -› All Users -› [Username], edit the user’s info under the s2Member section, and to modify their level just modify their WordPress role.

Hope this helps. :)

Posted: Friday Sep 7th, 2012 at 12:16 am #24457

hi Eduan,

actually i was asking about the php function for update a user eot time when he/she is registering.

Thanks for your reply.

Vishnu

Posted: Friday Sep 7th, 2012 at 9:26 am #24517
Eduan
Username: Eduan
Moderator

So you want to know the function that updates the user’s EOT? Or the hook for when that happens?

In any case, you can search the codex for that:
http://www.s2member.com/codex/stable/overview-summary/

Hope this helps. :)

Posted: Friday Sep 7th, 2012 at 9:29 am #24519

Thanks Eduan,

I will try it next day because it is the time to leave office.

I will try defiantly

Thanks again

Posted: Tuesday Sep 11th, 2012 at 1:31 am #24850

Hello Eduan,

I found some hooks of the s2member where should i use these. I want to update the user Eot time Please suggest, few are here.
in which file i should use.
add_action (“ws_plugin__s2member_during_configure_user_registration_front_side”, “my_fixed_EOT_time”);
add_action (“ws_plugin__s2member_during_paypal_notify_during_subscr_signup_w_update_vars”, “my_fixed_EOT_time”);
add_action (“ws_plugin__s2member_during_paypal_notify_during_subscr_modify”, “my_fixed_EOT_time”);
function my_fixed_EOT_time ($vars)
{
$vars[“user_id”]=597;
$expire_on = strtotime (“2012-10-30”);
if(update_user_option ($vars[“user_id”], “s2member_auto_eot_time”, $expire_on)){
echo “updated”;die;
}else{
echo “Not updated thanks”;die;
}
}

Posted: Tuesday Sep 11th, 2012 at 2:33 am #24854

it is done , one more question that i can found if some one choose paid subscription and didn’t pay,
Thanks for previous help.

Thanks

Posted: Tuesday Sep 11th, 2012 at 8:39 am #24880
Eduan
Username: Eduan
Moderator

Hello Vishnu,

Well, if a user chose to pay, and then at the end he turned back on the idea, then the charge simply wasn’t made and the user won’t have the access he was going to pay for.

Does this answer your question?

Posted: Tuesday Sep 11th, 2012 at 8:55 am #24885

Sorry,

I want to tell u that I am new to s3member.There is a procedure in my site that if a user choose to pay.It is going to the checkout page to pay.and simply user start to visiting site as subscriber and my client want that if a user choose paid subscription then force his to pay. You have any Idea regarding this if any Please tell.

Thanks

Posted: Tuesday Sep 11th, 2012 at 9:27 am #24891
Eduan
Username: Eduan
Moderator

So basically, you don’t want him to cancel his payment once he’s started?

Posted: Tuesday Sep 11th, 2012 at 9:37 am #24897

I want to deactivate his account

Posted: Tuesday Sep 11th, 2012 at 10:01 am #24899
Eduan
Username: Eduan
Moderator

OK, so if he decides to not pay, automatically deactivate his account? I’m sorry, you’re not being clear enough so I’m kinda guessing it. :/

Posted: Wednesday Sep 12th, 2012 at 12:12 am #24963

Yes, You are right.

Posted: Wednesday Sep 12th, 2012 at 8:52 am #25003
Eduan
Username: Eduan
Moderator

Hello Vishnu,

Well I’m afraid this isn’t possible with s2Member. :/

Probably isn’t possible with PayPal even, remember that anything that s2Member does to a member (EOT related and stuff) all comes from PayPal, PayPal tells s2Member what to do, so if PayPal doesn’t tell s2Member (or any other program for that matter) it can’t really do it.

I’m just thinking out loud here, but what if you hacked s2Member so that if the user doesn’t come with a special key (with which the user will come if he payed correctly) he will be demoted. That’s all I can think of to accomplish this.

– Eduan

Posted: Wednesday Sep 12th, 2012 at 8:55 am #25006

can we talk on skype

Posted: Wednesday Sep 12th, 2012 at 9:01 am #25010

If you think there is any way in core php. Suggest me.

Posted: Wednesday Sep 12th, 2012 at 12:41 pm #25038
Eduan
Username: Eduan
Moderator

I’m sorry Vishnu, I don’t have a Skype.

You would need to edit s2Member itself to accomplish this though. I suggest you post your job request for a freelancer to look at, at jobs.wordpress.net.

Hope this helps. :)

Posted: Thursday Sep 13th, 2012 at 7:47 am #25157

Is S2member provide the facility for send emails after expiration of the EOT of the user ? Please suggest I am so much late.

Posted: Thursday Sep 13th, 2012 at 9:10 am #25162
Eduan
Username: Eduan
Moderator

You can make s2Member send a call to a URL (or send an email) under Dashboard -› s2Member® -› API / Notifications -› EOT/Deletion Notifications. The thing is you would have to make a hack that generates the email you need when s2Member calls it.

Hope this helps. :)

Posted: Thursday Sep 13th, 2012 at 9:22 am #25165

What is the EOT/Deletion Notification URLs: ?

Posted: Thursday Sep 13th, 2012 at 9:23 am #25166

Please tell in details ?

Posted: Thursday Sep 13th, 2012 at 9:56 am #25172
Eduan
Username: Eduan
Moderator

Although the full documentation is available there, it basically tells s2Member to send some special parameters to that URL you specify. As a non-related question, are you a developer?

Viewing 21 replies - 1 through 21 (of 21 total)

This topic is closed to new replies. Topics with no replies for 2 weeks are closed automatically.

Old Forums (READ-ONLY): The community now lives at WP Sharks™. If you have an s2Member® Pro question, please use our new Support System.

Contacting s2Member: Please use our Support Center for bug reports, pre-sale questions & technical assistance.