vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Add-ons (https://vborg.vbsupport.ru/forumdisplay.php?f=245)
-   -   Miscellaneous Hacks - VSa - PayPal Donate (https://vborg.vbsupport.ru/showthread.php?t=236480)

bremereric 10-05-2015 01:12 AM

Worked for me just fine in vb4.2.3

imanutter 10-11-2015 02:29 PM

Been using this a long time. It was installed by a professional as I was new to vb.

Question.

I am the only one who can accept donation. I have looked every where to add others or even other user groups.

I'm guess it's a simple fix but I have no idea and no one else seems to have posted this problem.

Thanks in advance.

bremereric 10-11-2015 03:13 PM

Quote:

Originally Posted by imanutter (Post 2556788)
Been using this a long time. It was installed by a professional as I was new to vb.

Question.

I am the only one who can accept donation. I have looked every where to add others or even other user groups.

I'm guess it's a simple fix but I have no idea and no one else seems to have posted this problem.

Thanks in advance.

Hack will only allow one paypal email address. It's in admicp>settings>options>vsa-paypal donate.

imanutter 10-13-2015 08:00 PM

Quote:

Originally Posted by bremereric (Post 2556791)
Hack will only allow one paypal email address. It's in admicp>settings>options>vsa-paypal donate.

This is correct.. may be if I explain this way..

When some one donates, it's not set to auto accept and auto update on the donations list.

Once I have confirmed payment I then approve there donation on the web site and the donation list is updated.

No other partner on our Web site can accept the donation on the web site apart from me.

ozzy47 10-13-2015 09:52 PM

If that is what you want, the only option is the pro version of the DBTech one, this mod has never auto confirmed donations.

JesWhite 09-27-2016 02:00 PM

hi. how can i add this addon manually.?
i want to add manual to templates...

PHP Code:

                if ($vbulletin->options['vsapaypal_donbar_autoinsert'])                {                    $ad_location['global_below_navbar'] .= $vsapaypal_donbar;                } 

this code is autoinert to navbar.. this code is addon named VSa - PayPal Donate - Link
and i want to insert to navbar but i want to show only registered users etc...
because of i must add manually...
there isn't any option to users...
thanks for your helps..

i will disable autoinsert on vbulletin settings... after that i will add manually.
i added {vb:raw vsapaypal_donbar} but not worked..

Fungsten 10-18-2016 06:23 PM

I don't have an /inc/plugins/ directory. I have an includes but does not contain the plugins dir.

Yes I have looked around the software and the directory is no where.

moonclamp 10-24-2017 08:47 AM

Does anyone know how to make this work when the forum is turned off?

I'm sick of perpetually begging my members to give money so need to do something drastic.

Peter Walker 11-28-2017 01:52 AM

1 Attachment(s)
I know I am late, yet I have only now moved my vB 3.8.9 forum straight to vB 4.2.5.

I have been using the similar Donate hack on vB3, so it made sense to install this one. It looks similar, but there are some differences and I found a pretty big bug - surprising nobody talks about it in 57 pages of comments. I did find a workaround for the bug as I will explain.

First of all, I compared the differences in what is sent to PayPal between the old and new version.
This mod adds the following to the url string sent to PayPal: &sra=1&src=1&srt=1

Seems harmless enough, until you try to submit a donation for one month. This results in the following error on PayPal:
"The link you have used to enter the PayPal system is invalid. Please review the link and try again."

As I knew that only three parameters had been added, I tested each of them until I found the problem: srt=1

PayPal defines that parameter as follows: "Specify an integer with a minimum value of 2 and a maximum value of 52."

Sure enough, as soon as I set srt=2, it worked.

As I did not want recurring subscriptions, I made some changes to the .xml file to get it to work as it did in the vB3 version. I also decided to set the locale to US as otherwise, my mainly US subscribers were being presented with a German PayPal page.

Find the following in VSa_PPDon.xml
Code:

                        if(strstr($vbulletin->GPC['amount'],'|'))
                        {
                                $vsapp_get_amount = explode('|', $vbulletin->GPC['amount']);
                                $vsapp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions';
                                $vsapp_ppurl .= '&a3='.$vsapp_get_amount[0];
                                $vsapp_ppurl .= '&p3='.$vsapp_get_amount[1];
                                $vsapp_ppurl .= '&t3=M';
                                $vsapp_ppurl .= '&no_note=1';
                                $vsapp_ppurl .= '&sra=1';
                                $vsapp_ppurl .= '&src=1';
                                $vsapp_ppurl .= '&srt='.$vsapp_get_amount[1];
                        }
                        else
                        {
                                $vsapp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_xclick';
                                $vsapp_ppurl .= '&amount='.$vbulletin->GPC['amount'];
                        }

Replace with:

Code:

                        if(strstr($vbulletin->GPC['amount'],'|'))
                        {
                                $vsapp_get_amount = explode('|', $vbulletin->GPC['amount']);
                                $vsapp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_xclick-subscriptions';
                                $vsapp_ppurl .= '&a3='.$vsapp_get_amount[0];
                                $vsapp_ppurl .= '&p3='.$vsapp_get_amount[1];
                                $vsapp_ppurl .= '&t3=M';
                                $vsapp_ppurl .= '&no_note=1';
                                $vsapp_ppurl .= '&lc=US';
                        }
                        else
                        {
                                $vsapp_ppurl = 'https://www.paypal.com/cgi-bin/webscr?cmd=_xclick';
                                $vsapp_ppurl .= '&amount='.$vbulletin->GPC['amount'];
                                $vsapp_ppurl .= '&lc=US';
                        }

In this change, I have completely removed the "&sra=1&src=1&srt=1" and added "&lc=US" to the string sent to PayPal. This makes all donations one-time, as it was in vB3, and ensures that all sponsors land on an English PayPal language page.

I find this works better for me and avoids the error for one month subscriptions. I also found that PayPal will show an error for any subscriptions longer than 24 months, so avoid that.

What I would really like, is an option to have this mod make use of the original vBulletin PayPal subscription system. Then a two month subscription could actually add the donor to the specified VIP group for those two months and then automatically remove the subscription to that usergroup, when the subscription expires. I do that manually, but it would be great if that possibility could be added to this mod. Is perhaps Valter, or someone else, up to the challenge?

I have attached my modified .xml file, in case anyone here finds it useful.

Peter Walker 01-18-2018 12:39 AM

Problem: Donations not appearing on view Donations list (admin)

I have been using the popular similar mod "Cyb - PayPal Donate" for years without problems - I am very familiar with that mod and therefore it was natural to upgrade to this one with vb 4.2.5.

Since I wrote the previous post, my forum actually went back online and people have started donating. It was only then that I discovered this issue, that several people have mentioned here, yet I have seen no answers.

As this mod obviously is working for some people, I now desperately need to find an answer to the following issue:

vBulletin 4.2.5
PHP: 5.6.33
MySQL Version: 5.7.20-0ubuntu0.16.04.1

Using slightly modified version of this mod 5.0.3 (see previous post). The modifications only change what is sent to PayPal and fix the span issue, nothing database related.

When a user uses the mod to make a donation, they get to the PayPal page normally and a PM is sent to them, but their donation is not added to the database.
I have checked vsa_ppdonate directly and no entry is added at all. Consequently, I am unable to confirm the donation at all on the View Donations page.

If I use: "Add Donor Manually", the user is added to the database and shown on the list and automatically confirmed. No months are given, but I can correct that with the Edit button.

I even installed a fresh version of the forum and just installed this mod. The same problem occurred.

So Vader, please look into this and resolve it. I can provide you with full access to my test forum to help diagnose this. Plenty of others have complained about the same issue. So let us get to the bottom of this problem and fix it.

Test Forum: https://www.rifeforum.com/forum-425/

Feel free to join and test this.


All times are GMT. The time now is 10:57 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.03534 seconds
  • Memory Usage 1,765KB
  • 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
  • (2)bbcode_code_printable
  • (1)bbcode_php_printable
  • (2)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (2)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