PDA

View Full Version : Miscellaneous Hacks - [Chris] Donations with IPN Support


Christos Teriakis
11-17-2012, 11:00 PM
Donations with IPN Support
by ChrisTERiS (http://www.christeris.com)



Please note that from
11 Aug 2013
you can get support only in my site
http://www.teriakis.com (http://www.teriakis.com)



Maybe you'll think why another addon for Donations. Well its true that there are another 2 (maybe 3) addons for donations, but as I know none of them supports:
Instant Payment Notifications
Multi level GoalsJust for this reason and as I wanted to use it for my site I coded this addon. I can't say that is the flagship on his category, but it has exactly what I want. Check the features below and if you like them, then download and use it.

1.- Features
Unlimited level of Goals (Categories). In my case it's useful as I want to have a goal for each of my mods, so I wanted to have 3 root categories for vB3, vB4, vB5 etc.
Instant Payment Notification. You don't need anymore to manually mark donations as paid.
Auto generates donation forms for:
Forum Sidebar: Generates, Installs and Activates the form !!
CMS Widget: Generates and Installs it. The only that you've to do is to add it on your Layout.
On Screen: This is very useful as it shows the code on the screen where you can copy and paste it in any page (eg to create vBadvanced block). You can add this code even in pages out of your vB directory as it has the full url for submission.
You can Manually add/edit/delete Donations
There is a "My Donations" menu in UserCP
Total donations (amount) appears at postbit.2.- Installation
Download and unpack the file
Open with a text editor the file: donations_paypal.php and modify line 9 setting the full path (server path) to the file donations/paypallog.txt
Save the file and upload all the files from upload/ folder to your vB installation.
CMOD 666 the file donations/paypallog.txt (it writes only the errors).
Login to AdminCp and set the Donations-> General Settings
Give a look at PM and Page Options in case that you want to change the predefinied messages
Add you Goals
....and last create your forms for Forum sidebar or CMS page3.- Attention

I don't need a seperate page for donations that's why you'll not find a dedicate page for it. If you want I can add such a page with some toys like "Latest donations", "Top Donors" etc. For my own use I'll add tomorrow (and then I'll release it here) a block generator which will works just like the donation form, but showing data like "Top Donors" etc. Everything should be automatic.

4.- Copyright

It's frustating to write always "Don't remove my copyright". It became so boring so I decided to place a switch on the options. If you think that my name is so ugly, just turn it off and it will gone.

All the best
Chris

rgreene1971
11-18-2012, 08:33 PM
Can this be set up to work with google check out? Frankly I hate paypal and have many members who refuse to use paypal.

*note - I just registered on your site and was told I was banned. LOL

ProFifaLeagues
11-18-2012, 10:12 PM
Looking like another great mod Chris thank you,Keep up the great work mate!

Christos Teriakis
11-19-2012, 05:50 AM
Can this be set up to work with google check out? Frankly I hate paypal and have many members who refuse to use paypal.

*note - I just registered on your site and was told I was banned. LOL

Looking it from the code side is easy to add Google checkout plus 2CO as I've already the code from another plugin. What is not yet clear is if you can use it. Do they accept donations for payments or only payments for products? Unless if they have changed their rules, 2CO does not allows to use it for donations.

Chris
PS: I replied by email for your issue in my site.

rgreene1971
11-19-2012, 06:35 AM
I signed p to google and set up donations as digital software donation

Christos Teriakis
11-19-2012, 06:40 AM
I signed p to google and set up donations as digital software donation

Ok. Later on today I'll release an update with some additions and I'll try to include Google checkout. Please note that I have no merchant account with Google so I can't test it, but I have it in my shop addon and works fine.

Chris

mitch84
11-19-2012, 03:12 PM
hi, it's difficult for add a payment site ( like payza.com or moneybookers)? ths

rgreene1971
11-20-2012, 03:33 AM
Ok. Later on today I'll release an update with some additions and I'll try to include Google checkout. Please note that I have no merchant account with Google so I can't test it, but I have it in my shop addon and works fine.

Chris

Awsome, I am looking forward to testing it out

dormopoco
04-22-2013, 11:05 AM
i have renamed my Admincp Folder. How to run this plugin?

Christos Teriakis
04-22-2013, 01:11 PM
i have renamed my Admincp Folder. How to run this plugin?

You'll upload the file that exists at upload/admincp/ folder to your new admin directory.

craigvm
05-12-2013, 08:23 PM
can you use nochex to accept donations with this as i use nochex for my paid subscriptions on my forum as done use paypal now as i dont trust them anymore

BeoRski
06-16-2013, 04:15 AM
Database error in vBulletin 4.2.0:

Invalid SQL:
DELETE FROM vb_donations_user_balance WHERE id=13;

MySQL Error : Table 'xxx.vb_donations_user_balance' doesn't exist
Error Number : 1146
Request Date : Sunday, June 16th 2013 @ 01:11:56 PM
Error Date : Sunday, June 16th 2013 @ 01:11:56 PM
Script : xxx/donations_admin.php?do=payments&action=delete&id=13
Referrer : xxx/donations_admin.php?do=payments
IP Address : xx.xx.xx.xx
Username : xxx
Classname : vB_Database_MySQLi
MySQL Version : 5.5.31-cll

---
Any solutions? I tried re-importing and it's still the same error. donations.php also displays either a blank page or an invalid variable error.

Christos Teriakis
06-16-2013, 04:54 AM
Any solutions? I tried re-importing and it's still the same error. donations.php also displays either a blank page or an invalid variable error.

Please upload the attached file at your admincp/ directory

BeoRski
06-16-2013, 05:18 AM
Thanks Chris! That gets rid of some of the errors in the admincp. There is another bug that I have found. Whatever "goal" I select, it always ends up showing under the description the first one that I created when we get to the Paypal checkout page. When it proceeds and I click on return to site, it would show under the redirection notice: "Invalid data specified". Then when it finally proceeds, donations.php just shows a blank page.

Also under "My Donations", the date is off. In my forums, it shows 1/1/1970.

Thank you for your help. ^_^

Christos Teriakis
06-16-2013, 08:44 AM
Thanks Chris! That gets rid of some of the errors in the admincp. There is another bug that I have found. Whatever "goal" I select, it always ends up showing under the description the first one that I created when we get to the Paypal checkout page. When it proceeds and I click on return to site, it would show under the redirection notice: "Invalid data specified". Then when it finally proceeds, donations.php just shows a blank page.

Also under "My Donations", the date is off. In my forums, it shows 1/1/1970.

Thank you for your help. ^_^

Please give me some hours to get back with an update.

BeoRski
06-17-2013, 05:09 AM
Thank you Chris!

BeoRski
06-27-2013, 03:55 AM
Hi Chris, any chance you got to fix the issue? ^_^

Christos Teriakis
08-11-2013, 05:14 PM
Please note that from 11 Aug 2013 you can get support only in my site
http://www.teriakis.com (http://www.teriakis.com)