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.

Myago 03-04-2018 12:12 AM

Quote:

Originally Posted by Bouncer222 (Post 1988099)
When you choose custom it loads the paypal page with a donation of $5.00. Is this only me or is anyone else getting this too?

EDIT: It actually does this for any amount, it still puts it as 5.00, anyone know how to fix this?

I've this problem for years. Has anyone solved?

MarkFL 03-04-2018 01:06 AM

Quote:

Originally Posted by Myago (Post 2593256)
I've this problem for years. Has anyone solved?

I just downloaded this to my dev site (vB 4.2.5, PHP 7), and it works exactly as expected with regards to donation amounts.

Pocket Aces 09-26-2018 10:27 PM

Having problem installing this. Just keep giving me blank page when I try to import the product.

gmhoward 07-09-2019 09:32 PM

I admit I haven't looked through all the replies, just the last few pages. Sorry if this is a duplicate.

Is there a way to block this from unregistered users? I'm getting constant donation spam that is fake.

winky8300 10-01-2019 02:36 PM

hello
thanks for this addon but I have a problem dates are not displayed correctly d-m-y

a solution please

spillage 10-08-2019 11:32 PM

Quote:

Originally Posted by winky8300 (Post 2600849)
hello
thanks for this addon but I have a problem dates are not displayed correctly d-m-y

a solution please

Date format is on the settings page from what I can see.

winky8300 10-09-2019 04:02 AM

Quote:

Originally Posted by spillage (Post 2600901)
Date format is on the settings page from what I can see.

hello thank you for your answer, but it does not work i always have m-d-y instead of the date

Sforums 10-17-2019 02:52 AM

Valter, can you create same add-on for bitcoin donations?

Za4a Tuner 12-05-2019 02:39 PM

Hy MarkFL,
Quote:

Originally Posted by MarkFL (Post 2593259)
I just downloaded this to my dev site (vB 4.2.5, PHP 7), and it works exactly as expected with regards to donation amounts.

did you try to add a donation manuell?
When i try to add a donation in the list, nothing happens!

kr Chris

eboggs_jkvl 03-03-2020 04:49 PM

1 Attachment(s)
Hello,

ONly user group #6 (admin) can see the payment list. I have a need to allow another user group to view the payments list, in my case User group 18 & 27. I have this:
Usergroups able to view Payment list (comma separated list of IDs) 6,18,27

They see the drop down list to "View Payments" but no payments are listed (I see 4 test payments as an admin)

The attached file 01 shows what user group 18 sees when they click on payment activity and click on "View Payments".

Attached file 02 shows my settings in the Control Panel.

Suggestions?

Mattwhf 03-04-2020 12:41 AM

Can PayPal Donate box add to right sidebar?

eboggs_jkvl 03-06-2020 02:08 PM

The program will NOT PM anyone other than an ADMIN for the notifications. You must be in the ADMIN user group to get the PMs. I have people in other User groups that I'd like to operate and use this program. Making people an admin is NOT an answer. I set it for 3 User Groups (1 admin and 2 other groups, "1 Club Treasurer" and "1 Activity Coord." as such 6,18,28 Nothing via PM notifications, only user group 6 (admins) get the PMs. I've set them as Secondary "Admins" and they see the list of donors but no PM notifications. I put them in User Group 6 (Admin) everything works just fine.

If I don't set them to at least secondary Admins, they can't see the list of donations.

This has got to be a bug in the programming or I have missed a permission somewhere along the line.

Little help please?

Eboggs

eboggs_jkvl 03-11-2020 11:05 PM

Nothing?

winky8300 06-24-2020 10:51 AM

Hello
I want to edit the phrase "Donation to Support {my site name}, so that my site name will be replaced by another name in all occurrences.
Thank you for your help


All times are GMT. The time now is 08:13 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.03303 seconds
  • Memory Usage 1,814KB
  • 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
  • (7)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)pagenav_pagelinkrel
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (24)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