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.

oztrack 03-29-2005 06:35 AM

I added the new code and it still is not adding new apid members properly even though they go through paypal. Paypal was processed OK as a subscription payment.

amykhar 03-29-2005 10:24 AM

Well, at least that's a step forward. The problem with adding people properly is NOT a problem with the hack. I've had this problem with subscriptions since they were first released. All Jelsoft ever says to me is "it works for me"

So, over the next few days, I am going to dive into Jelsoft code and see if I can't get it working. If possible, can some of you pm me and volunteer to sign up for a one month membership to my site for testing purposes at times I ask you to? I can refund the payment, but am unable to pay myself. (I don't have a second bank account to use to set up a test paypal account)

aggiefan 04-12-2005 08:42 PM

I was wondering...does this install work now without the problems? Where does it stand? I'm about to launch my new board (and recurring payments) would be very awesome....I just don't have time or the man power to manually adjust people.

Can anybody update this?

amykhar 04-13-2005 02:34 AM

The hack, as it is, installs fine. And, it sets up the recurring subscriptions fine. What isn't working right is something that isn't working right with subscriptions in general - even without the hack installed. Some times, payments don't process and subscriptions aren't added or updated.

Romeos Tune 04-25-2005 05:11 AM

This will be great when it's working properly.... When I go to my ACP and test communication I get this error:

cURL Fail
Streams Pass

Whatever cURL is it's showing that it fails. I haven't had anyone sign up yet so it's untested...It takes them to the paypal page to sign up for the right amount but like I said.... It's untested. Can I ignore this or is it going to cause problems and what exactly is the problem? Thanks!

twoseven 04-25-2005 03:04 PM

curl is another set of libs for php and it isnt necessary just makes it nice

Romeos Tune 04-25-2005 04:19 PM

hmmmm, well it's definitely not working properly... I've had several people sign up with paypal but it's not changing their usergroup. I'm having to manually go in and add them to the subscriptions. Anyone have any ideas??

amykhar 04-25-2005 05:12 PM

Romeos, as I said before, that could be the problem with the stock vbulletin subscriptions. I have had problems with those ever since vbulletin 3 was in beta.

Make sure the paypal recurring subscription was set up and make sure you made the changes to the paypal.php file. If you did the paypal.php changes, you are probably seeing the same problem many of us see with subscriptions in general.

Romeos Tune 04-26-2005 03:14 AM

Alrighty then..... Thanks Amy..... I guess I'll just have to wait 'til VB gets it fixed.... If anyone figures out the error or problem I hope they let us know........ :)

Lee 04-29-2005 05:43 PM

Quote:

Originally Posted by Romeos Tune
Alrighty then..... Thanks Amy..... I guess I'll just have to wait 'til VB gets it fixed.... If anyone figures out the error or problem I hope they let us know........ :)

Amy,

I am happy to help trouble shoot this if you'd like. I have two paypal accounts to test with if need be. Let me know if I can help - I have installed the hack successfully and also just got through updating your page 12 update for the email fix.

Thanks!

amykhar 04-29-2005 06:22 PM

Thanks for the offer :) I've read the stock subscription code several times and am not seeing any clear problems. I am starting to wonder if it's a sporadic issue on the pay-pal side.

Lee 05-04-2005 03:43 PM

Quote:

Originally Posted by amykhar
Thanks for the offer :) I've read the stock subscription code several times and am not seeing any clear problems. I am starting to wonder if it's a sporadic issue on the pay-pal side.

I am not sure, but I just got a few subscriptions in and it didn't put them in the new usergroup...I had to do it manually...:)

amykhar 05-04-2005 05:24 PM

speedpro - email me your paypal.php file please. If none of them are working for you, I have to wonder if you got the changes in correctly.

Xtrm2Matt 05-08-2005 04:57 PM

Hi all,

I'm wondering if its possible to add a small addition to this mod? When the renew is due (a few days before and possibly on the day), it emails the user informing them what will happen?

Cheers,
Matt (using 3.0.3 btw)

amykhar 05-09-2005 02:17 AM

That's built into 3.0.7. If you don't want to upgrade your entire board, just get the new code and make the necessary changes to the subscriptions related files.

In addition, that wouldn't be an add-on for this hack. That would be a separate hack of its own. Given the issues this hack has had in the past and the problems some people have with subscriptions in general, I'm not sure this thread is the best place to discuss added subscription features.

Erwin 05-10-2005 02:29 AM

I've been using this hack ever since it came out and never had a complaint so far. :)

amykhar 05-10-2005 11:01 AM

Erwin, the problems I've had have never been with this hack per-say. It's with the paypal subscriptions themselves, even unhacked. Since I started using VB3 beta, a significant percentage of subscriptions never process - and that's with stock vbulletin. I'm not the only one with this problem, but it's been ignored for more than a year now by Jelsoft.

Xtrm2Matt 05-10-2005 02:11 PM

Quote:

Originally Posted by amykhar
Erwin, the problems I've had have never been with this hack per-say. It's with the paypal subscriptions themselves, even unhacked. Since I started using VB3 beta, a significant percentage of subscriptions never process - and that's with stock vbulletin. I'm not the only one with this problem, but it's been ignored for more than a year now by Jelsoft.

That's PayPal's side. If that happens once, or twice, re-add your URL that it uses thingy-ma-jick in the PayPal Options.

On a side note, I'm asking for a quick feature!

Quote:

Subscription Terms:
$9.99 USD for each month
Item Name:
<SUBSCRIPTION NAME>
Item Number:
2_395
Postal Address:

No Address Provided
Unlike the "basic" subscription (unedited basically) that already comes with vBulletin, it puts in the users forum name in this area. Could you add this to the mod please? If not, I have to rely on them using the same email address for their PayPal + Forum Account and not everyone does that.

And as stated above, if the account is changed by the forum, I then have to ask publically who sent me the money and thats a bit of a breach of privacy!

Cheers if someone can understand my request :up: :cool:

Matt


== edit ==

This is what I mean, this is the unedited subscription mail from paypal:

Quote:

Item Title:
<SUBSCRIPTION NAME>
Item Number:
2_358
Custom:
<FORUM NAME>

amykhar 05-10-2005 05:40 PM

Somebody already released what you are asking for. Do a search and you should find it.

Erwin 05-12-2005 02:50 AM

Quote:

Originally Posted by amykhar
Erwin, the problems I've had have never been with this hack per-say. It's with the paypal subscriptions themselves, even unhacked. Since I started using VB3 beta, a significant percentage of subscriptions never process - and that's with stock vbulletin. I'm not the only one with this problem, but it's been ignored for more than a year now by Jelsoft.

It's probably to do with your server/ host communicating with the Paypal IPN.

My site has never had a single Paypal subscription problem, except for when it so happens that my webservers are down for maintenance.

whatthehell 05-12-2005 12:34 PM

Is there anyone available to help install this update?

I am a complete noob and have to say dont really understand the instructions

Especially- Run the following SQL-query

:( Really would like the update though

amykhar 05-12-2005 05:16 PM

Quote:

Originally Posted by whatthehell
Is there anyone available to help install this update?

I am a complete noob and have to say dont really understand the instructions

Especially- Run the following SQL-query

:( Really would like the update though

https://vborg.vbsupport.ru/showthread.php?t=39142

whatthehell 05-13-2005 10:56 AM

Thanks that is perfect :)

Storage Guy 05-13-2005 06:12 PM

Quote:

Originally Posted by amykhar

you can run execute SQL queries in 3.0.7 from AdminCP > Import & Maintenance.

I'm about to install... see how it goes with a test subscription, recurring every 2 days for a dollar.

My damn vB isn't sending registration e-mails right now.. POS.

Storage Guy 05-13-2005 06:49 PM

Amy, can ask you how to do this:

https://vborg.vbsupport.ru/showthrea...220#post650220

I can't find any access masks specific enough! Thank you!

amykhar 05-13-2005 07:11 PM

Create a usergroup with the permissions that you want your paid members to have.
Change the permissions of your registered usergroup so that they can't see the threads, posts, etc.
In your navbar template, do a conditional to show a link to subscribe to your registered usergroup. After they subscribe, promote them to the new usergroup with access.

Making this work is going to hinge on how good you are with template edits and such so that you make it clear to your users what they need to do to see your content.

I would also edit the template that users see immediately after they register. The screen should inform them that the final step is to pay up.

But, this bit of advice is off topic for this thread. Please post your future questions in the other thread so that others may help you as well.

mfarmerhi 06-04-2005 08:44 AM

Curious if the reoccurring Email reminders problem was solved?

amykhar 06-04-2005 02:38 PM

Reocurring email reminders was not a problem with this hack as far as I know. What was solved is that it stopped emailing people who have pay-pal subscriptions which automatically renew.

Make sure you didn't change the frequency that the subscriptions cron job runs. If you did, your subscribers will get multiple emails.

mfarmerhi 06-04-2005 05:44 PM

Yea Amy, that was what I was asking.

So, I was looking at the coding and it looks like it would be relatively easy to add in trial periods (PayPal allows for up to 2). You'd just need another 2 variables (trial period 1 and trial period 2 -- you can enter -0- if you don't want trial periods) and this hack would offer ALL the functionality PayPal offers...

Has anyone else added in trial periods?

kmike 06-06-2005 04:21 AM

I noticed the notification url form field is missing from this hack:
PHP Code:

<input type=\"hidden\" name=\"notify_url\" value=\"$vboptions[bburl]/subscriptions/paypal.php\" /> 

Is it deliberate? It causes vB to not perform any action after payment has been made, if there were some actions set (such as usergroup change and forum permissions updates).


All times are GMT. The time now is 08:59 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.01609 seconds
  • Memory Usage 1,841KB
  • 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
  • (1)bbcode_php_printable
  • (11)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)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