Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.0 > vBulletin 3.0 Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
Reoccurring Paypal Subscriptions Details »»
Reoccurring Paypal Subscriptions
Version: 1.00, by insanctus insanctus is offline
Developer Last Online: May 2006 Show Printable Version Email this Page

Version: 3.0.0 Rating:
Released: 05-06-2004 Last Update: 03-22-2005 Installs: 109
 
No support by the author.

What this does (added in first post)

With the current vbulletin subscription set up, it only charges your members one time. So if you have a pay based site, or forum area they have to keep subscribing, and causing them to waste time and effort (and maybe you lose money)

What this does, is give you the option if you want one time payment (standard vb) or reoccurring payment.

When you choose reoccurring the script has them sign up for a reoccurring payment, as paypal sends you confirmation each time you get a subscription payment, your system will now update their access time.

This will save your members from having to resign up all the time and hopefully save you some money


For instance, say you have a paying member?s only area, and you want them to have to pay $10 a month.

With this you can charge per month and it handles all the charges, and every month they send another payment automatically your script gets updated and sets their new expiration.


This has been asked for many times and IMO should have been in to begin with.

Enjoy and I will help as I can.

Note from the new supporter: This hack is now being actively supported again. I have updated the install instructions to work for version 3.0.7, and we can now begin to work out any existing bugs. This code is still raw and has not been tested extensively due to the difficult nature of testing paypal transactions.

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #162  
Old 03-21-2005, 01:58 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Actually, you can still show the rank if you use a template conditional. Do a check for is_member_of and display the titles based on that.
Reply With Quote
  #163  
Old 03-21-2005, 02:16 AM
Illuvatar's Avatar
Illuvatar Illuvatar is offline
 
Join Date: Apr 2002
Location: So. Cal
Posts: 70
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by amykhar
Actually, you can still show the rank if you use a template conditional. Do a check for is_member_of and display the titles based on that.
Ya know....that's what I've been thinking! It has to be a real simple fix to pick up the secondaries, and I have even seen a post here before that it would be a simple if-then-else condition.

Thing is....I may be able to edit code and get a hack to work, but a coder I am not. lol

You don't suppose Ole Illu could trouble you for another bit of a teeny hack would ya? Just give me the code and tell me where to put it and I will good as gold! Oh...there are actually tons of folks here that would be ever so gratefull to you as well!
Reply With Quote
  #164  
Old 03-21-2005, 02:48 PM
cgjackson2001 cgjackson2001 is offline
 
Join Date: Feb 2005
Posts: 7
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hi,

I cant find this line of text in the includes/functions_subscriptions.php

Code:
function construct_payment($method, $cost, $currency, $subscriptionid, $title, $userinfo)
{
	global $vboptions;
Can someone help me to find it, i'm using the latest version 3.07.

Thanks,
Chris
Reply With Quote
  #165  
Old 03-21-2005, 03:12 PM
Marco van Herwaarden Marco van Herwaarden is offline
 
Join Date: Jul 2004
Posts: 25,415
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

You will find it on line:
Code:
362
Reply With Quote
  #166  
Old 03-21-2005, 10:33 PM
thenewuser thenewuser is offline
 
Join Date: Mar 2005
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Hello, very nice program and I thank you. I believe I installed it correctly and made the 1 line of code change that was needed for the new VB.

The problem I am having here is:

people are paying paypal, and not showing up as subscribed so right now I'm having to manually add 10-100 people a day which is killing me.

I have a group set up and everything, they just don't seem to be added to be able to view the forums. but when I use your "add user" feature then they can view the forums.

So for some reason the script is not adding them to the subscription group.

Any thoughts?
Reply With Quote
  #167  
Old 03-21-2005, 11:37 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

It's more than one line in the new VB, and I saw the same problem today on my own site. Testing takes a while on these things because I have to wait for payments to trickle in. I'm going to look into it tomorrow.
Reply With Quote
  #168  
Old 03-21-2005, 11:51 PM
thenewuser thenewuser is offline
 
Join Date: Mar 2005
Posts: 150
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by amykhar
It's more than one line in the new VB, and I saw the same problem today on my own site. Testing takes a while on these things because I have to wait for payments to trickle in. I'm going to look into it tomorrow.
Could you point me in the right direction?
Reply With Quote
  #169  
Old 03-22-2005, 12:17 AM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by thenewuser
Could you point me in the right direction?
I have the correct replacement code in the install file. Several of the hidden variables changed in the newer version of vbulletin. I incorporated them into the hack, but haven't had time to really go over them. Also, I believe some things have changed on the paypal side since this hack was written. I need to wait until tomorrow when my brain is a little less groggy and dive into it in detail.
Reply With Quote
  #170  
Old 03-23-2005, 03:55 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK. I've had some time to poke around and found the one line of code that was making the subscriptions not set up properly.

Remove this line from your functions_subscriptions.php

Code:
			<input type=\"hidden\" name=\"ammount\" value=\"$cost\" />
Reply With Quote
  #171  
Old 03-23-2005, 04:12 PM
amykhar's Avatar
amykhar amykhar is offline
 
Join Date: Oct 2001
Location: PA
Posts: 4,438
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

OK. Let's try this code to handle the emails going out that shouldn't be:

in your includes/cron/subscriptions.php file
Find:
Code:
user.languageid
Add after:
Code:
,subscription. reoccur
Find:
Code:
LEFT JOIN " . TABLE_PREFIX . "user AS user ON (user.userid = subscriptionlog.userid)
Add After:
Code:
LEFT JOIN " . TABLE_PREFIX . "subscription AS subscription ON (subscription.subscriptionid = subscriptionlog.subscriptionid)
Find:
Code:
	vbmail_start();
Add Above:
Code:
   if (!$subscriptions_reminder[reoccur]){
Find:
Code:
vbmail_end();
Add After:
Code:
}
I have not updated the install instructions yet because this code has not been thoroughly tested yet. Let me know how it works for you, please.
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 10:59 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.04896 seconds
  • Memory Usage 2,321KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (11)bbcode_code
  • (3)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete