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)

amykhar 03-21-2005 01:58 AM

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.

Illuvatar 03-21-2005 02:16 AM

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! :p

cgjackson2001 03-21-2005 02:48 PM

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

Marco van Herwaarden 03-21-2005 03:12 PM

You will find it on line:
Code:

362

thenewuser 03-21-2005 10:33 PM

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?

amykhar 03-21-2005 11:37 PM

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.

thenewuser 03-21-2005 11:51 PM

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? :)

amykhar 03-22-2005 12:17 AM

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.

amykhar 03-23-2005 03:55 PM

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\" />


amykhar 03-23-2005 04:12 PM

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.


All times are GMT. The time now is 12:54 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.01352 seconds
  • Memory Usage 1,745KB
  • 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
  • (11)bbcode_code_printable
  • (3)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