vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 3.0 Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=33)
-   -   Reoccurring Paypal Subscriptions (https://vborg.vbsupport.ru/showthread.php?t=64834)

version2 11-19-2004 02:54 PM

Quote:

Originally Posted by version2
Hey, uh, everyone...I think I might see a problem here.

When I installed this last month my subscribers started subscribing. In my paypal register I can see the 'Subscription Creation' line as well as the 'Payment' line for each new subscriber. Well, a month later it is *almost* time for renewal and I am getting 'Subscription Creations' as well as payments again. And the first subscription creation still look like they are active and are not set to renew for a couple of days now.

What do I need to do?! Is this a problem? I dont really want to wait a couple to find out I am doublebilling all my subscribers.

Well, its because vb is still sending out reminders and my members are re-subscribing. How can I stop this?!

alkatraz 11-25-2004 08:03 PM

vb3.0.3
didn't work for me

got this error in admincp \ clicking on subscriptions
Quote:

Parse error: parse error, unexpected T_CASE in /home/alkatraz/public_html/board/includes/functions_subscriptions.php on line 410
may have something to do with my functions_subscriptions being different.. (but unmodified to my knowledge)
PHP Code:

        $form['hiddenfields'] = "
            <input type=\"hidden\" name=\"cmd\" value=\"_xclick\" />
            <input type=\"hidden\" name=\"business\" value=\"
$vboptions[ppemail]\" />
            <input type=\"hidden\" name=\"item_name\" value=\"
$title Subscription\" />
            <input type=\"hidden\" name=\"item_number\" value=\"
$item\" />
            <input type=\"hidden\" name=\"amount\" value=\"
$cost\" />
            <input type=\"hidden\" name=\"currency_code\" value=\"
$currency\" />
            <input type=\"hidden\" name=\"no_shipping\" value=\"1\" />
            <input type=\"hidden\" name=\"shipping\" value=\"0.00\" />
            <input type=\"hidden\" name=\"return\" value=\"
$vboptions[bburl]/$vboptions[forumhome].php\" />
            <input type=\"hidden\" name=\"notify_url\" value=\"
$vboptions[bburl]/subscriptions/paypal.php\" />
            <input type=\"hidden\" name=\"custom\" value=\"
$userinfo[username]\" />
            <input type=\"hidden\" name=\"no_note\" value=\"1\" />"
;
            break; 

uninstalled

cosycole 11-29-2004 10:23 PM

I installed this hack as we are a subscription site with downloadable linkware collection for the game The Sims. I never got it to work though, if anyone would care to give me a hand I would be most appreciative, as this hack sure is every subscription sites dream :)
NiCole

nautiqeman 11-30-2004 06:09 PM

I'm having a problem whereby when I have the recurring checkbox clicked it doesn't update the user info in vb -- but if I don't have it clicked it works just fine. Any Ideas???

Godzilla MR2 12-04-2004 07:26 PM

any issues on 3.0.3?

hichew 12-05-2004 06:46 PM

Quote:

Originally Posted by Godzilla MR2
any issues on 3.0.3?

i think it's not working with vb 3.0.3
any response from the author ?

hasan2k 12-13-2004 07:10 PM

Quote:

Originally Posted by hichew
i think it's not working with vb 3.0.3
any response from the author ?

I agree.

The one time payment goes through.
Reoccuring feature does not work.

I have double checked everything to make sure the hack is properly coded in the forum but NO luck. Can someone help?

I am using VB 3.0.3

jcr 12-21-2004 10:52 AM

Quote:

Originally Posted by idslamyou
I have had this installed for a month or so. I am just starting to get some members. They are able to subscribe and I get the notice from paypal about their payment, but their usergroup is not changing. I have doublechecked to make sure I have checked the additional usergroup to add them too. Can anyone help?

I have the exact same problem :-/ Please we need help!

amykhar 12-21-2004 11:20 AM

The author can't support you guys. He is no longer a licensed user.

kbadr 12-28-2004 02:09 PM

Anyone get this to work on 3.0.3? I was all excited about this hack until I read the last few posts.

MajorFm.com 01-04-2005 12:22 AM

Its workin on 3.0.3 for me...!


http://www.majorfm.com/forum/subscriptions.php

sub_ubi 01-05-2005 01:09 PM

Working on 3.03 for me as well, but I paid someone for help :P

Anyone have any luck with the upgrade to 3.04? It doesn't seem to overwrite any of the files..

http://www.vbulletin.com/forum/showthread.php?t=124876

MajorFm.com 01-05-2005 08:13 PM

also what if the user e.g. its £1 a month

on the second month, paypal will take the money out automatially but how does vb know its been paid, and if the user cancels the paypal account, how does vb know to withdraw the subsciption?

sub_ubi 01-05-2005 10:28 PM

Paypal has a service called Instant Payment Notification (IPN). The information paypal relays to your site (aka, your forum) is handled accordingly.

If a person cancels or doesn't have enough funds to pay, IPN sends that information to vbulletin.

So has anyone done an upgrade with this to 3.04? I'm running 3.03 right now.

MajorFm.com 01-06-2005 12:44 PM

So if someone cancels payment, it will tell my forum this payment was not made, cancel their "vip" access...

Ok fantastic, i have IPN set up all ready so this will be automatic!

Thank you... perfect hack!!

Sal Collaziano 01-06-2005 01:00 PM

I''m sorry if this has already been noted but does the User have the option to pay with recurring payments or not? If not, I think it would be a good idea - and that's the only reason I wont install this mod.. Reason being, I think some people might get scared-away from the thought of being automatically billed.. If they're given the option to have the funds taken from their account automatically, that would be perfect...

MajorFm.com 01-06-2005 01:30 PM

When you set up the subscription, you can set it so its reoccuring or standard, so you can set up 2 options if you like e.g.

VIP Re-Occuring
VIP Standard

Sal Collaziano 01-06-2005 06:12 PM

Very good! I'm going to download this now and install it shortly. :)

sub_ubi 01-19-2005 05:42 PM

Anyone have this working with 3.06?

Zate 01-24-2005 04:35 PM

yes does it work with 3.0.6 ?

if not whats the errors?

Glenn379 02-19-2005 10:43 PM

has anyone gotten this hack to work with 3.0.6 yet?

Illuvatar 02-22-2005 02:56 AM

Welllllll.....we've got a slight issue...lol

Due to the criticality(sp?) of the release of version 3.07, and the fact that we were still running 3.03, I went ahead and upgraded this afternoon. This is one of only two hacks that I needed to reapply and they have modified the original code for the includes/functions_subscription.php file so that now the hack instructions are no longer valid. There is no
Quote:

function construct_payment($method, $cost, $currency, $subscriptionid, $title, $userid)
{
global $vboptions;
to replace any more. :(

I'll go back through this thread and see if this may have happened for releases 4-6, but until then (as I am not a decent coder lol) I am here to plead for help! :p

ChrisSy 03-02-2005 11:01 AM

Quote:

Originally Posted by Illuvatar
Welllllll.....we've got a slight issue...lol

Due to the criticality(sp?) of the release of version 3.07, and the fact that we were still running 3.03, I went ahead and upgraded this afternoon. This is one of only two hacks that I needed to reapply and they have modified the original code for the includes/functions_subscription.php file so that now the hack instructions are no longer valid. There is no to replace any more. :(

I'll go back through this thread and see if this may have happened for releases 4-6, but until then (as I am not a decent coder lol) I am here to plead for help! :p

I had the same proble myself, but after looking through the functions_subscriptions.php file, the update just changed the variable $userid to $userinfo.

So hopefully this hack still works

Edit: yes i can confirm this works in 3.0.7

Illuvatar 03-02-2005 01:14 PM

Quote:

Originally Posted by ChrisSy
I had the same proble myself, but after looking through the functions_subscriptions.php file, the update just changed the variable $userid to $userinfo.

So hopefully this hack still works

Edit: yes i can confirm this works in 3.0.7

Thank you ChrisSy!!! *Bows low*

WoodiE 03-04-2005 09:38 AM

I've got this hack installed and when the subscription is about to end vBulletin sends an email letting that user know their subscription is about to expire, however now mine sends out about 20-30 emails to that user.

What can I do so it only sends one email?

-Michael

sub_ubi 03-06-2005 06:33 AM

What happens to old subscribers if you upgrade from 3.03 to 3.07? Do they all get lost?

AlienSector 03-07-2005 10:36 AM

Has anyone successfully got this working with 3.0.7 and if so, would you be so kind as to detail how you possibly completed the task? I as well as many others would appreciate it very very much :).

Apophis 03-08-2005 06:36 PM

This does work with 3.0.7 with one minor modification.

Open
/includes/functions_subscriptions.php

Find
Code:

function construct_payment($method, $cost, $currency, $subscriptionid, $title, $userid)
{
        global $vboptions,$DB_site;

Replace With
Code:

function construct_payment($method, $cost, $currency, $subscriptionid, $title, $userinfo)
{
        global $vboptions,$DB_site;

It's a simple variable change from $userid to $userinfo

Illuvatar 03-09-2005 02:21 PM

Quote:

Originally Posted by Apophis
This does work with 3.0.7 with one minor modification.

Open
/includes/functions_subscriptions.php

Find
Code:

function construct_payment($method, $cost, $currency, $subscriptionid, $title, $userid)
{
        global $vboptions,$DB_site;

Replace With
Code:

function construct_payment($method, $cost, $currency, $subscriptionid, $title, $userinfo)
{
        global $vboptions,$DB_site;

It's a simple variable change from $userid to $userinfo

Confirmed...works just fine in 3.0.7 :)

The only thing I saw there Apophis that was different in the function construct_payment from the original code was the addition of $DB_site;

My original mistake was putting too much info in the Find bit so it couldn't find the doggone statement. As soon as I just used the keyword "payment" it took me right there. That's why I was freaked out earlier! hehe I thought the original statements for that paragraph may have changed....it didn't...I just couldn't find the bugger! lol

Oh...also... I tried changing from $userid to $userinfo and back again, and it seemed to make no difference. It was that $DB that made the difference.

Overall...I am very pleased that with just this, the SMTP hack, and "How many posts since last visit" one, our boards have all the features and functionality that we used to have to apply 10 or more hacks to achieve! This leaves room for the "would be nice ...but not critical" enhancements if I so choose. *Hats off to dem dere VB developers man* :p

MajorFm.com 03-11-2005 03:29 PM

is this working on 3.0.7?

Marco van Herwaarden 03-11-2005 03:51 PM

Quote:

Originally Posted by MajorFm.com
is this working on 3.0.7?

Are you making a joke?

Just read 1 post above yours.

MajorFm.com 03-11-2005 03:54 PM

lol... whoooops... just did a quick reply... flicked through the thread and missed that! thanks!

Dragon_Z 03-15-2005 09:27 PM

I installed this and got this error whenI attempted to run the SQL Query, forgive me if this is simple but this is only my first day at this.

Quote:

ALTER TABLE `subscription` ADD `reoccur` VARCHAR( 10 ) DEFAULT '0' NOT NULL ;
Quote:

An error occurred while attempting to execute your query. The following information was returned.
error number: 1146
error desc: Table 'zforum.subscription' doesn't exist

Illuvatar 03-16-2005 04:23 AM

Well....hmmmmm...

I just had one of my users send me this
Quote:

Subject: Paid Subscription Expiry Notice

Hello,

Your access to the paid subscription "Silver Subscriber Monthly" is about
to expire.
To extend this you must visit
http://www.warofthering.net/forums/v...scriptions.php

If you do not extend your subscription access will be removed.

Yours,
War of the Ring Community team
Now this concerns me for obvious reasons. The subscription is indeed showing as recurring in the Subscription Manager, but of course the expiry date remains the same whether it says recurring or not, and I'm assuming here that this automatic notification is based on the expiry date.

I'm going to tell this user not to do anything and let's see what it does. Has anyone else ran into this?

Thanks!

thenewuser 03-18-2005 10:36 PM

I just did this, and now when people sign up they don't get access to the forums...

Please help me I've had to manually add over 100 people alone today.

amykhar 03-20-2005 07:02 PM

To keep the original author from losing credit for his work, I am adopting this abandoned baby. I have updated the install instructions to get them right for vb 3.0.7 and am including them here until an admin adds me to the support list.

I have been in contact with the original author, and he has blessed my helping out. So, we are good to go there.

I understand there are some bugs. Once I get this code posted, and a few people have installed it, we can start working on any remaiing issues such as emails going out to subscribed users when the deadline approaches.

Please understand that a hack like this takes a while to test because the time frame for reoccurring subscriptions to process.

spence2 03-20-2005 10:04 PM

Thank you, Amy, for taking on the development & support of this hack! Also a big thank you to insanctus for the original code and for giving you permission to carry on with it (and to the admins here for adding you on as a supporter).

I'm sure everyone will be glad that you are here. ;)

Illuvatar 03-20-2005 11:59 PM

Thank you amykhar for taking this on! *bows low*

I will go ahead and either compare yours against the orignal or back the original out and then apply yours.

My issue as I listed above is actually not as major as it first appeared, as while it did issue the expiry notification and then went ahead and kept the subscription active in VB AND it left Paypal alone. My only issue now is the expiry notices going out and I'm hoping your changes will sort it for me.

I also have another question. I have the subscriptions set-up to automatically change a member's usergroup to either Silver or Gold for both annual and monthly subs and that works fine. However, I also have custom groups set-up for my mods, admins, etc. that are also subscribers. The subscription works a charm in that as it recurrs it ensures that the user is in the proper usergroup. What I had happen is that the member I mentioned above was reset from Silver Moderator to Silver Subscriber and I really cannot have it de-modding my staff at will. hehe

I decided to just manage those subs via Paypal and manually set the custom usergroups when it's appropriate. This may be my only recourse, but like the Rank deal where many people have asked about having it modified to pick up swecondary usergroups, this might be something to look at as well here.

All I have to do now is get these monthlys recurring properly without sending expiry notices and I will be a happy camper! :)

amykhar 03-21-2005 12:54 AM

Quote:

Originally Posted by Illuvatar
Thank you amykhar for taking this on! *bows low*

I will go ahead and either compare yours against the orignal or back the original out and then apply yours.

My issue as I listed above is actually not as major as it first appeared, as while it did issue the expiry notification and then went ahead and kept the subscription active in VB AND it left Paypal alone. My only issue now is the expiry notices going out and I'm hoping your changes will sort it for me.

I also have another question. I have the subscriptions set-up to automatically change a member's usergroup to either Silver or Gold for both annual and monthly subs and that works fine. However, I also have custom groups set-up for my mods, admins, etc. that are also subscribers. The subscription works a charm in that as it recurrs it ensures that the user is in the proper usergroup. What I had happen is that the member I mentioned above was reset from Silver Moderator to Silver Subscriber and I really cannot have it de-modding my staff at will. hehe

I decided to just manage those subs via Paypal and manually set the custom usergroups when it's appropriate. This may be my only recourse, but like the Rank deal where many people have asked about having it modified to pick up swecondary usergroups, this might be something to look at as well here.

All I have to do now is get these monthlys recurring properly without sending expiry notices and I will be a happy camper! :)

I haven't done anything about the expiration emails yet. At this point, my code simply updates the install instructions for the new version of vbulletin.

As to your other problem, make your gold and silver secondary usergroups. In other words, when your members subscribe, they'll stay in their basic user group, but also be added to gold or silver. This way, your mods and admins don't lose their rank.

Illuvatar 03-21-2005 01:12 AM

Quote:

Originally Posted by amykhar
I haven't done anything about the expiration emails yet. At this point, my code simply updates the install instructions for the new version of vbulletin.

As to your other problem, make your gold and silver secondary usergroups. In other words, when your members subscribe, they'll stay in their basic user group, but also be added to gold or silver. This way, your mods and admins don't lose their rank.

That's a real good idea and thankyee!

The only issue we would have is that if I make the sub usergroups secondary, then the rank that is assigned to them would not be displayed due to that pesky "primary usergroup only" issue. :ermm:

See...I currently have a rank assigned for all levels of subscriptions so that a pretty Silver or Gold Ring is displayed in the members postbit. Seeing as we're a Lord of the Rings site, having a ring has been a pretty good incentive. :p

From what I can tell now...if VB would just enable the blasted ranks to work with secondary usergroups, ALL my problems will be solved! lol

And no worries about the expiry emails for now. I too am gratefull that you are taking this on and will wait patiently for the fix. :-)


All times are GMT. The time now is 08:58 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01413 seconds
  • Memory Usage 1,853KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (4)bbcode_code_printable
  • (1)bbcode_php_printable
  • (15)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete