MyBB Community Forums
[For 1.8] MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN) - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Releases (https://community.mybb.com/forum-102.html)
+---- Thread: [For 1.8] MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN) (/thread-123597.html)

Pages: 1 2 3 4 5 6 7 8 9 10


RE: MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN) - dragonexpert - 2017-03-23

(2017-03-16, 05:14 PM)Skullgraver Wrote: MyBB has experienced an internal SQL error and cannot continue.

SQL Error:
1364 - Field 'order' doesn't have a default value
Query:
INSERT INTO mybbrm_mysubs (name,admin_desc,description,recurring,price,currency,new_group,active,accepted_gids,item_name,item_number) VALUES ('Loyalist','Loyalist','Loyalist',0,'N;','EUR',8,1,'all','Loyalist','sub_{$sid}')
Please contact the MyBB Group for technical support.

how to fix?

Ask your host to disable strict mode for MySQL. An alternative solution is to alter the table so the column order has a default value which can be done in PHPMyAdmin


RE: MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN) - tanya - 2017-04-19

anyone can fix this ?? i tried to uninstall and install it again but it did not fixed Sad
http://prntscr.com/ey4i3t


RE: MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN) - kleoz - 2017-05-21

Hello mate , i was wondering is there a way to change PayPal subscription to PayPal donation but still keep the rest of the functionality ?

So for example when someone clicks on the MySubsciption's PayPal button it is redirected to the PayPal donation Page and not PayPal Purchase subscription page .


RE: MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN) - Billz - 2017-08-13

where can i edit the settings for this plugin


RE: MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN) - mar1986 - 2017-08-17

When i confirm payment like below:

   


i am forwarded to PAYPAL page and i have error like below

   

someone know what is wrong ?


RE: MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN) - Soldier - 2018-03-07

There is no README.txt


RE: MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN) - .m. - 2018-03-07

^ first post of this topic has required details. see also this readme file


RE: MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN) - dayzhub1 - 2018-03-20

When setting up the "Accepted Groups" that can purchase a certain rank, it seems any that isn't one of the top 7 ranks on the list is unable to be chosen. I will select it, save, then it is unchecked and it doesn't block others from purchasing the rank like it should.


RE: MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN) - Dexxa - 2018-03-20

(2016-03-25, 03:05 AM)p00lz Wrote: Any idea on getting GBP setup on this

Would it be as simple as:
\admin\modules\user\mysubs.php

Line 95 onward here:
		$currency_options = array(
			'USD' => "USD (US Dollar)",
			'EUR' => "EUR (Euro)",
			'CAD' => "CAD (Canadian Dollar)"
		);

And just making this adjustment:
		$currency_options = array(
			'USD' => "USD (US Dollar)",
			'EUR' => "EUR (Euro)",
			'CAD' => "CAD (Canadian Dollar)",
			'GBP' => "GBP (British Pounds Sterling)"
		);

And the same with line 344-348 (after the above adjustment), same code.



Then \inc\plugins\mysubs.php

Line 278 onward:
                {
                    case 'EUR':
                        $curcode = '€';
                        break;
                    case 'USD':
                    case 'CAD':
                    default:
                        $curcode = '$';
                        break;
                }



Make this change:
                {
                    case 'EUR':
                        $curcode = '€';
                        break;
                    case 'GBP':
                        $curcode = '£';
                        break;
                    case 'USD':
                    case 'CAD':
                    default:
                        $curcode = '$';
                        break;
                }


And the same at Line 334-343 (after the above adjustment)

I've attached a file with the above modifications if anybody wants to test

edit;tested and admin module does not load
edit;forgot a bloody comma it loads now, new fixed files attached

I still need to test with a paypal though, might take me some time

I've just tested it and its working fine on mine :-)


RE: MySubscriptions - Paid Usergroup Subscriptions (Paypal IPN) - Brody - 2018-05-10

(2016-09-13, 12:57 PM)Shade Wrote: Not sure if anyone has pointed this out already, but there's an issue with usergroups. File inc/plugins/mysubs.php, line 580:

					if($sub['accepted_gids'] != 'all')
						{
							$gids = explode(',', $user['additionalgroups']);
							$gids[] = $user['usergroup'];
							$matched = array_intersect($gids, explode(',', $sub['accepted_gids']));
							if(empty($matched)) $accepted_gid = false;
						}

This does not work as the $sub variable hasn't been initialized. Instead, you should use $item which is loaded with the actual subscription.

					if($item['accepted_gids'] != 'all')
						{
							$gids = explode(',', $user['additionalgroups']);
							$gids[] = $user['usergroup'];
							$matched = array_intersect($gids, explode(',', $item['accepted_gids']));
							if(empty($matched)) $accepted_gid = false;
						}

Without this correction, if one of the subscriptions has a blank field as allowed usergroups the whole process will fail.

Thanks, trying this out now. Hopefully works out for me.