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.

S2 Hack For custom EOT not working a. update

Home Forums Community Forum S2 Hack For custom EOT not working a. update

This topic contains 4 replies, has 2 voices. Last updated by  Jason (Lead Developer) 3 years, 10 months ago.

Topic Author Topic
Posted: Sunday Feb 17th, 2013 at 1:54 pm #42031
Ronnie
Username: Zeeflo

Ive used this code for hacking a proform 3 Days membership EOT

<?php
add_action('init', 's2_payment_notification_handler');
function s2_payment_notification_handler()
	{
		if(!empty($_GET['s2_payment_notification']) & !empty($_GET['user_id']) && !empty($_GET['item_number']))
			{
				if(preg_match('/:3 D$/', $_GET['item_number']))
					update_user_option((integer)$_GET['user_id'], 's2member_auto_eot_time', strtotime('+12 hours'));
				exit;
			}
	}
add_filter('ws_plugin__s2member_add_meta_boxes_excluded_types', 's2_meta_box_exluded_post_types');
function s2_meta_box_exluded_post_types($what_s2_says)
	{
		if(!is_super_admin())
			return array_keys (get_post_types ()); // Block in all Post Types.
			
		return $what_s2_says;
	}

Paypal also declares 3:::D as it should when the user bought acces, how ever, his EOT is now in 3 days, not in 12 hours.

Has the developers changed anything?
Please resolute this with me! :)

List Of Topic Replies

Viewing 4 replies - 1 through 4 (of 4 total)
Author Replies
Author Replies
Posted: Monday Feb 18th, 2013 at 12:04 pm #42287
Ronnie
Username: Zeeflo

Please wait with responding to this, I forgot to update my API with the follwing code:

http://www.DOMAIN.DK/?s2_payment_notification=1&user_id=%%user_id%%&item_number=%%item_number%%

I will follow up myself next time a customer buys 3 days access (which should rewrite EOT to 12 hours) :)

Posted: Monday Feb 18th, 2013 at 8:22 pm #42380
Staff Member

Thanks! We will await your response.

Posted: Tuesday Feb 19th, 2013 at 3:48 am #42449
Ronnie
Username: Zeeflo

Hacked worked

I will do the same with our 1 day access in regards to this thread:

http://www.s2member.com/forums/topic/urgent-eot-not-correct/

Posted: Tuesday Feb 19th, 2013 at 4:05 am #42453
Staff Member

@ Ronnie

Your thread was updated here. Thanks!
http://www.s2member.com/forums/topic/urgent-eot-not-correct/#post-42451

Viewing 4 replies - 1 through 4 (of 4 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.