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)

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?


All times are GMT. The time now is 09:17 PM.

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.01390 seconds
  • Memory Usage 1,746KB
  • 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
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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