The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Paypal Donations for vBulletin 3.0.7 Details »» | ||||||||||||||||||||||||||
Due to real life I have ended support of this hack. Please see licensing information below. Please read the troubleshooting tips below before asking for support. ******************************** Paypal Donations for vBulletin 3.0.7 Release version: 1.07 Release Date: 28 June 2005 ChangeLog: Paypal Donations 1.08 Special Thanks:
dsboyce8624 SLeeeper And all of the Alpha Testers that helped out with this Hack! I couldn't have done it without you. What it does Quite simply this hack provides you a way to receive donations from your website's users and provide them with the recognition deserving of a donating member of you community. It uses Paypal exclusively because of Paypal's "Instant Payment Notification" system.The basics are this:
Features
**Coming Soon**
Stuff you have to do Files to upload: 34 Files to modify: 3 Templates to modify: 1 (required) / 2 (Optional) Queries to run: (The install script does this for you, uninstallation is also provided as well) Ease of install: easy, simply follow the instructions in the install script. Time of install: ~5 minutes ***REMEMBER! Add your email address that Paypal has on file in Donations settings. This step is not an option, your payments, although they may be valid, will all be considered invalid if you do not do this! Sign up for Paypal's Premiere Account (Business), and setup IPN. Paypal Registration You will need to register with Paypal for a premiere account if you have not already, if you have, but your account is probably a personal account, you will need to upgrade the account to a premiere account. Assuming that you have a premiere account and have been verified, you then go into your profile at http://www.paypal.com and the select Instant Payment Notification. There will be a checkbox that you must check, you do NOT have to point to the script at Paypal, if you choose not to do this, then you will need to make sure that your Notification URL is put in the settings or this script will NOT WORK!On most systems it will be either: http://www.yourdomain.com/ppverify.phpor http://www.yourdomain.com/forum/ppverify.phpThat's all there is to setting up Paypal to work with your site! Install Upload all the files in the archive into their provided directoriesRun the provided install file, setup your settings, after installation, DELETE THE FILE! This will usually be: http://www.yourdomain.com/forum/admi...ns_install.phpor http://www.yourdomain.com/admincp/donations_install.php How To Use The System To begin with, you simply upload all the files into their respective directories (keeping the structure in the archive).After you upload the files, point your browser to the installation file: donations_install.php and run the installer all the way through, remembering to save your settings at the end (you MUST put in your paypal email, and the path to donate.php, and the path to ppverify.php). Remember, if you have the system set in test mode, you will not be able to process LIVE transactions. If you are going live immediately, then change this setting to no! After you install, simply delete the donation_install folder and all files within it, and the install file. Now you are ready to play. The system is 100% phrased on the user viewable side, so you will need to edit some of the phrases to better suit your site, specifically the phrases titled: your_donations_are_appreciated all_donations_go_towards_furthering_goals donation_used_to_further_mission are the ones that I recommend redoing to suit your site. After editing the phrases, next comes adding your donation buttons and goals. Always add your goals first as the buttons can be attached to a specific goal so that the user gets credit for donating towards a specific goal (you can of course add a button that does not attach to a goal for a general coffer fund type of deal, but goals are the preferred method). After adding a goal, you can then add a button to the site. The settings for the buttons are self-explanatory for the most part, the only required input from you is the title, and the description of the button. Everything else will work fine without input. The system defaults to use the USD currency. If you change this currency in the Donations settings, then to get the correct exchange pricing, you need to run the CRON file to update your Exchange Rates table. To do this simply log into your AdminCP and then do the following:
From there, it's all fairly intuitive. The biggest thing to remember is that to use this hack you MUST have a paypal Business or Premiere account, and have turned IPN on in your Paypal profile. If you run into troubles with a transaction, make sure that you are not trying to verify a sandbox transaction with the live Paypal server and vice versa (the test setting). Secondly, this system will notify you of suspect transactions that Paypal refuses to validate. If you get an email stating that a transaction was invalid, it would suit you to investigate it to find out where the transaction came from and why it failed verification. If all is kosher you can add the donor to the AdminCP so that they get credit for the donation. To assist in this you can edit an invalid transaction to show as valid if the transaction turns out to be kosher. The steps to this are as follows:
After Install You will need to add a link somewhere in your navigation system for vBulletin pointing your users to the donations page (if you installed the vBadvanced Module then you have a link on the home page, but you might want to add one in the nav bar as well), as well as setting up your paypal account to give IPN responses to you, you can do this in your Paypal Profile under Instant Payment Notification.To play in PayPal's Sandbox you will need to be registered with their developer network and setup a few sandbox accounts to play with the sandbox properly. I have throughly tested the sandbox functionality, and it is working until they decide to change coding standards again. Troubleshooting tips and procedures Due to the multitude of possible break-points between Paypal and this script I must request that the following be followed before reequesting support on this system from this point forward:
Lastly, if you have modified the base files in any way, I will NOT give support to this. The files are set in the way that they need to be to run under 90% of server installations. Any other installations that require files to be merged, etc., sorry but you are on yer own in that situation. FYI: The Paypal Notification is completely seperate from the user being sent back to your site. Thus the reason that the ppverify.php file is NOT a function of donate.php. How To Get vBadvanced CMPS v1 Module to work with vBadvance CMPS v2 Follow this link to aranthorn's Instructions on how to get this to work. https://vborg.vbsupport.ru/showpost.php?p=669033&postcount=231 Thank you aranthorn!!! ******************************** I sincerely hope that you enjoy this hack, Please feel free to send feedback to tnp@noblepagan.com! To view this in action head over to: http://damn.that-sucks.net or http://www.noblepagan.com Thank you! )O( Cloudrunner )O( P.s. Anyone who feels the need to donate to me (*hint hint*) feel free to do so, I won't stop you (yeah, I'm as greedy as the next guy). In fact we are a non-profit organization over at The Noble Pagan, so your donation would be tax-deductible . LICENSE: Quote:
Supporters / CoAuthors Show Your Support
|
Comments |
#92
|
|||
|
|||
Quote:
|
#93
|
|||
|
|||
Well, I had my first real, didn't put it in by hand, donation.
Not only did it feel real good, it worked well. |
#94
|
||||
|
||||
i manged to install this on one site with no problems
3.06 board as well using 1.02 . it installed with no problems into the vbadvanced in no time at all. i tried to do it on a 3.07 board from a fresh install and i get the followin sql error, remember this is a fresh install here so i find it really odd that it sees a duplicate value :S Invalid SQL: INSERT INTO template VALUES (NULL, '-1', 'adv_portal_donate', '<!-- Donations Block --> <table align=\\\"center\\\" border=\\\"0\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" class=\\\"tborder\\\" width=\\\"100%\\\"> <tr> <td class=\\\"tcat\\\"><span class=\\\"smallfont\\\"><strong>$vba_options[portal_blockbullet] Donations</strong></span></td> </tr> $donate_goals_bits <td class=\\\"$getbgrow\\\" align=\\\"center\\\"> Our Top $vboptions[donate_CMPS_users] Donors <hr /> <table> $donate_goals_userbits </table> </td> </tr> <tr> <td class=\\\"$getbgrow\\\" align=\\\"center\\\"> <a href=\\\"$vboptions[bburl]/donate.php\\\"><img src=\\\"$stylevar[imgdir_button]/donate_button.gif\\\" border=\\\"0\\\"></a> </td> </tr> </table> <br /> <!-- End Donations Block -->', '<!-- Donations Block --> <table align=\"center\" border=\"0\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" class=\"tborder\" width=\"100%\"> <tr> <td class=\"tcat\"><span class=\"smallfont\"><strong>$vba_options[portal_blockbullet] Donations</strong></span></td> </tr> $donate_goals_bits <td class=\"$getbgrow\" align=\"center\"> Our Top $vboptions[donate_CMPS_users] Donors <hr /> <table> $donate_goals_userbits </table> </td> </tr> <tr> <td class=\"$getbgrow\" align=\"center\"> <a href=\"$vboptions[bburl]/donate.php\"><img src=\"$stylevar[imgdir_button]/donate_button.gif\" border=\"0\"></a> </td> </tr> </table> <br /> <!-- End Donations Block -->', 'template', '1118691219', 'Cloudrunner', '3.0.7') mysql error: Duplicate entry '-1-0' for key 2 so im stuck getting it to install into vbadvanced, need a bit of help. |
#95
|
|||
|
|||
Quote:
I bet there are like 5 of them, it's possible one used the same name. If you go into Style Manager does it show a template with that name? I saw the fresh install part, but it's possible you added other hacks. Just checking. Also, if you do find it in there, just delete it if it's not needed. Then try again. |
#96
|
||||
|
||||
hi thanks for the quick reply,
i dont actually have ANY other paypal hack installed on that board and i've been through the styles and theres nothing there. Now unless its a bork in this db im unsure. i've tried installing it without using that module and i've hit the problem with calling out to the external website. What bothers me about that is that I can ping that server and i know it can route to it via a web browser but it doesn't seem to work which is odd as hell. I have full control over that apache box though so if i need to change a setting just let me know what it is. |
#97
|
||||
|
||||
Just to mention from earlier with a 3.0.6 error for duplicate phrases:
Code:
Database error in vBulletin 3.0.7: Invalid SQL: ALTER TABLE language ADD phrasegroup_ppdonations MEDIUMTEXT NOT NULL ; mysql error: Duplicate column name 'phrasegroup_ppdonations' mysql error number: 1060 Date: Monday 13th of June 2005 09:01:58 PM Script: http://localhost/dev/zelcom1_350b-end/admincp/donations_install.php Referer: http://localhost/dev/zelcom1_350b-end/admincp/donations_install.php Username: aerithfreak IP Address: 127.0.0.1 Oh and any plans for this to go onto 3.5.0 once it's released? EDIT: I uninstalled and installed again, the problem persisted, uninstalled and installed again for a third time and now it works. Oh well, no complaining, as long as it works. |
#98
|
||||
|
||||
just a quick question
http://www.oanda.com/convert/fxdaily...list=donations thats the link it goes to and if i surf to it i get a server error from their site, thats not a 404 but an actual formatted error page on their site. could this be causing trouble? additional: it takes quite a while to transfer to the site as well so could it be timing out at the php level. |
#99
|
||||
|
||||
i made a really i made a quick change to the code that checks to make sure its a valid donation link and not just 'donations' (just changed it to USD if it found donations in the link dunno if that will cause major problems later on but i can always revert the code back) any the hack continued to install. but i hit ANOTHER database error, remembering that i've run the uninstaller everytime its failed and it never got this far i get this error now.
Invalid SQL: INSERT INTO template VALUES (NULL, '-1', 'DONATIONS', '$stylevar[htmldoctype] <html dir=\\\"$stylevar[textdirection]\\\" lang=\\\"$stylevar[languagecode]\\\"> <head> <!-- no cache headers --> <meta http-equiv=\\\"Pragma\\\" content=\\\"no-cache\\\" /> <meta http-equiv=\\\"Expires\\\" content=\\\"-1\\\" /> <meta http-equiv=\\\"Cache-Control\\\" content=\\\"no-cache\\\" /> <!-- end no cache headers --> <title>$vboptions[bbtitle] -- Donations</title> $headinclude </head> <body> $header $navbar <!-- main --> <table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\"> <thead> <tr align=\\\"center\\\"> <td class=\\\"tcat\\\" colspan=\\\"3\\\">$vbphrase[how_to_donate]</td> </tr> <tr align=\\\"center\\\"> <td class=\\\"thead\\\" colspan=\\\"3\\\"> <span class=\\\"smallfont\\\">$vbphrase[processor_paypal]</span> </td> </tr> </thead> <tbody> <tr align=\\\"center\\\"> $donationbits </tr> <tr> <td class=\\\"tfoot\\\" colspan=\\\"3\\\"> </td> </tr> </tbody> </table> <br /> <table border=\\\"0\\\" width=\\\"100%\\\"> <tr valign=\\\"top\\\"> \" . (($vboptions[\'showdonators\'] ==1) ? (\" <td> <table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\"> <thead> <tr align=\\\"center\\\"> <td class=\\\"tcat\\\" colspan=\\\"3\\\">$vbphrase[top_donators]</td> </tr> <tr align=\\\"center\\\"> <td class=\\\"thead\\\" colspan=\\\"3\\\">$vbphrase[sorted_by_total_donation]</td> </tr> </thead> <tbody> <tr align=\\\"center\\\"> $topdonatorbits </tr> <tr> <td class=\\\"tfoot\\\" colspan=\\\"3\\\"> </td> </tr> </tbody> </table> </td> \") : (\"\")).\" <td> \" . (($vboptions[\'showgoals\'] == 1) ? (\" <table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\"> <thead> <tr align=\\\"center\\\"> <td class=\\\"tcat\\\" colspan=\\\"2\\\">$vbphrase[our_donation_goals]</td> </tr> <tr align=\\\"center\\\"> <td class=\\\"thead\\\" colspan=\\\"2\\\"> $vbphrase[money_goes_towards_goals]<br /> \" . (($vboptions[\'showtotalcollected\'] == 1) ? (\" \" . (($mc_total > 0) ? (\" $vbphrase[we_have_collected] $$mc_total $vbphrase[since] $vboptions[donationstartdate] \") : (\" $vbphrase[we_have_not_collected] \")).\" \") : (\"\")).\" </td> </tr> </thead> <tbody> <tr align=\\\"center\\\"> $donationgoalbits </tr> <tr> <td class=\\\"tfoot\\\" colspan=\\\"2\\\"> </td> </tr> </tbody> </table> <br /> \") : (\"\")).\" <table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\"> <thead> <tr align=\\\"center\\\"> <td class=\\\"tcat\\\">$vbphrase[your_donations_are_appreciated]</td> </tr> <tr align=\\\"center\\\"> <td class=\\\"thead\\\">$vbphrase[all_donations_go_towards_furthering_goals]</td> </tr> </thead> <tbody> <tr> <td class=\\\"alt1\\\"> $vbphrase[donation_used_to_further_mission] </td> </tr> \" . (($vboptions[\'501c3\'] == 1) ? (\" <tr> <td> $vbphrase[non_profit] <br /> $vbphrase[our_tax_id] <br /> <center><strong>$vboptions[taxid]</strong></center> </td> </tr> \") : (\"\")).\" <tr> <td class=\\\"tfoot\\\"> </td> </tr> </tbody> </table> \" . (($vboptions[\'showverifiedseal\'] == 1) ? (\" <br /> <table class=\\\"tborder\\\" cellpadding=\\\"$stylevar[cellpadding]\\\" cellspacing=\\\"$stylevar[cellspacing]\\\" border=\\\"0\\\" width=\\\"100%\\\" align=\\\"center\\\"> <thead> <tr align=\\\"center\\\"> <td class=\\\"tcat\\\" colspan=\\\"3\\\">$vbphrase[paypal_verified]</td> </tr> </thead> <tbody> <tr align=\\\"center\\\"> <td class=\\\"alt1\\\" align=\\\"center\\\"> <a href=\\\"https://www.paypal.com/us/verified/pal=$vboptions[paypal_email]\\\" target=\\\"_blank\\\"> <img src=\\\"$stylevar[imgdir_misc]/paypal_verified.gif\\\" border=\\\"0\\\" alt=\\\"Official PayPal Seal\\\"> </a> </td> <td class=\\\"alt2\\\" align=\\\"center\\\" width=\\\"100%\\\"> $vbphrase[what_it_means_to_be_verified] </td> </tr> <tr> <td class=\\\"tfoot\\\" colspan=\\\"3\\\"> </td> </tr> </tbody> </table> \") : (\"\")).\" </td> </tr> </table> <!-- /main --> $footer </body> </html>', '$stylevar[htmldoctype] <html dir=\"$stylevar[textdirection]\" lang=\"$stylevar[languagecode]\"> <head> <!-- no cache headers --> <meta http-equiv=\"Pragma\" content=\"no-cache\" /> <meta http-equiv=\"Expires\" content=\"-1\" /> <meta http-equiv=\"Cache-Control\" content=\"no-cache\" /> <!-- end no cache headers --> <title>$vboptions[bbtitle] -- Donations</title> $headinclude </head> <body> $header $navbar <!-- main --> <table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\"> <thead> <tr align=\"center\"> <td class=\"tcat\" colspan=\"3\">$vbphrase[how_to_donate]</td> </tr> <tr align=\"center\"> <td class=\"thead\" colspan=\"3\"> <span class=\"smallfont\">$vbphrase[processor_paypal]</span> </td> </tr> </thead> <tbody> <tr align=\"center\"> $donationbits </tr> <tr> <td class=\"tfoot\" colspan=\"3\"> </td> </tr> </tbody> </table> <br /> <table border=\"0\" width=\"100%\"> <tr valign=\"top\"> <if condition=\"$vboptions[\'showdonators\'] ==1\"> <td> <table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\"> <thead> <tr align=\"center\"> <td class=\"tcat\" colspan=\"3\">$vbphrase[top_donators]</td> </tr> <tr align=\"center\"> <td class=\"thead\" colspan=\"3\">$vbphrase[sorted_by_total_donation]</td> </tr> </thead> <tbody> <tr align=\"center\"> $topdonatorbits </tr> <tr> <td class=\"tfoot\" colspan=\"3\"> </td> </tr> </tbody> </table> </td> </if> <td> <if condition=\"$vboptions[\'showgoals\'] == 1\"> <table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\"> <thead> <tr align=\"center\"> <td class=\"tcat\" colspan=\"2\">$vbphrase[our_donation_goals]</td> </tr> <tr align=\"center\"> <td class=\"thead\" colspan=\"2\"> $vbphrase[money_goes_towards_goals]<br /> <if condition=\"$vboptions[\'showtotalcollected\'] == 1\"> <if condition=\"$mc_total > 0\"> $vbphrase[we_have_collected] $$mc_total $vbphrase[since] $vboptions[donationstartdate] <else /> $vbphrase[we_have_not_collected] </if> </if> </td> </tr> </thead> <tbody> <tr align=\"center\"> $donationgoalbits </tr> <tr> <td class=\"tfoot\" colspan=\"2\"> </td> </tr> </tbody> </table> <br /> </if> <table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\"> <thead> <tr align=\"center\"> <td class=\"tcat\">$vbphrase[your_donations_are_appreciated]</td> </tr> <tr align=\"center\"> <td class=\"thead\">$vbphrase[all_donations_go_towards_furthering_goals]</td> </tr> </thead> <tbody> <tr> <td class=\"alt1\"> $vbphrase[donation_used_to_further_mission] </td> </tr> <if condition=\"$vboptions[\'501c3\'] == 1\"> <tr> <td> $vbphrase[non_profit] <br /> $vbphrase[our_tax_id] <br /> <center><strong>$vboptions[taxid]</strong></center> </td> </tr> </if> <tr> <td class=\"tfoot\"> </td> </tr> </tbody> </table> <if condition=\"$vboptions[\'showverifiedseal\'] == 1\"> <br /> <table class=\"tborder\" cellpadding=\"$stylevar[cellpadding]\" cellspacing=\"$stylevar[cellspacing]\" border=\"0\" width=\"100%\" align=\"center\"> <thead> <tr align=\"center\"> <td class=\"tcat\" colspan=\"3\">$vbphrase[paypal_verified]</td> </tr> </thead> <tbody> <tr align=\"center\"> <td class=\"alt1\" align=\"center\"> <a href=\"https://www.paypal.com/us/verified/pal=$vboptions[paypal_email]\" target=\"_blank\"> <img src=\"$stylevar[imgdir_misc]/paypal_verified.gif\" border=\"0\" alt=\"Official PayPal Seal\"> </a> </td> <td class=\"alt2\" align=\"center\" width=\"100%\"> $vbphrase[what_it_means_to_be_verified] </td> </tr> <tr> <td class=\"tfoot\" colspan=\"3\"> </td> </tr> </tbody> </table> </if> </td> </tr> </table> <!-- /main --> $footer </body> </html>', 'template', '1118695264', 'Cloudrunner', '3.0.7') mysql error: Duplicate entry '-1-0' for key 2 mysql error number: 1062 |
#100
|
|||
|
|||
I'm not sure why it would say you have a dupe, if you have a virgin DB.
Have you donwloaded the zip since Cloudrunner reworked it? Maybe try that? Otherwise you'll have to wait for him, I'm stumped. |
#101
|
|||
|
|||
will this work on vbadanced v2 portal?
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|