Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 3.5 > vBulletin 3.5 Add-ons
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
PayPal Donations For vBulletin 3.5.0 Details »»
PayPal Donations For vBulletin 3.5.0
Version: 2.02, by Cloudrunner Cloudrunner is offline
Developer Last Online: Feb 2022 Show Printable Version Email this Page

Version: 3.5.0 Beta 4 Rating:
Released: 07-02-2005 Last Update: 07-06-2006 Installs: 330
DB Changes Uses Plugins Template Edits
Code Changes Additional Files  
No support by the author.

Sorry Guys...I have disappeared from vB coding completely for the time being...RL is paying me $35/hour to ignore it lol. Hope you understand why I haven't been around...

Paypal Donations For vBulletin 3.5
Version 2.02b


Hack Provided and coded by )O( Cloudrunner )O( of The Noble Pagan.
Release version: 2.02b
Release Date: 03 July 2005

Change Log

Paypal Donations 2.02
  • Fixed Bug introduced with the installer for the tables from 2.01
  • Added Who's Online Support Plugins For Donations Script
Paypal Donations 2.01
  • Fixed a small bug in the display of the top / last donors on the donate page.
Paypal Donations 2.00
  • Ported system over to vBulletin 3.50
  • Added ability for the installer to install template edits automatically
  • System installs plugins automatically
  • Fixed some minor bugs that were present in 1.07 of the 3.0.7 vBulletin donations system.
Special Thanks

Special Thanks goes to the following people, without their support, this would never have happened:

dsboyce8624
guvner
SLeeeper
And all of the Alpha Testers that helped out with this Hack!

I couldn't have done it without you all, Thank you!

)O( Cloudrunner )O(

What Paypal Donations Is:

Paypal Donations is a complete system that controls donations and how they are received via backend interfacing between your vBulletin server and Paypal's payment gateway server. The beauty of this marriage of servers is quite simply automation of the donation process as well as security of the transactions for both you, the administrator, and your users. With the Paypal donations system installed on your forums, you will be able to bring in that much needed income to not only keep your forums alive, but also to help defer costs of doing so to the users of your site without having to bug everyone and beg for money.

This seamless integration of Paypal as your backend payment processor not only provides your user with a well known and safe payment processor, but you are saved the hassle of opening a merchant account with your banking institution as well as saves you time in the process as it takes only a few short minutes to sign up with Paypal if you are not already an account holder there.
System Requirements

OS: vBulletin 3.5 (if you are running this already, then your server has the required installation, GD libraries are required, as well as CURL capabilities for this system to work)

Things To Do Before Installation

Direct File Edits To vB Resident Files: 1 (needed to group templates in AdminCP)
File Uploads: 34 (Of which 18 will be deleted after installation, leaving a total of 16 Files on your server)
Direct Database Queries: None, the installer does these for you
Direct Plugin Installation: None, the installer does these for you
Direct Template Modification: None, the installer installs all new templates, and modifies the resident templates as needed

The uninstaller will remove all modifications (to include the templates) should you decide to remove the system from your server.

How To Install / Upgrade Paypal Donations

Installation and Upgrading are as easy as a human like me could make it. Simply upload all the files from the archive to your server keeping the folder hierarchy intact and then point your browser to the installation file. On most servers it will be one of the following:Just follow the prompts from there folks, the installer does all the database, template, plugin, phrasing, and settings automatically for you!

If you ever decide to remove the system, just upload the install files and folder again and run the installer and choose uninstall. The uninstaller will remove any and all modifications that it did to your files, database, and templates automatically as well. Its as easy as you can get!

Time to install: less than five minutes depending on your upload speed.


Steps To Perform After Installation
  1. You must make sure that you have either a Business or Premiere account with Paypal.
    1. If you do not, then you will need to upgrade your Paypal account to that level before this system will work.
  2. You must have Paypal's IPN (Instant Payment Notification) turned on in your Paypal Profile.
    1. You do not need to have it pointing at any particular file for this system to work as the system will tell Paypal where to send the IPN to credit your users and notify you of the transaction.
  3. You will need to run through the donations settings at the end of the installer and make sure that you have all the required information in there.
  4. Please note that this system can be placed into test mode (default setting is ON when system is first installed).
    1. This setting tells the system whether to speak with the real Paypal Server for transactions or with Paypal's Sandbox (testing) server. If you wish to test the system before going live you will need to have access to Paypal's Sandbox server, you can sign up for access there at: http://developer.paypal.com.
  5. You will need to input your Paypal Account Email into the settings
  6. You will need to input the full URL to your donate.php file so that your users can make it back to your site after payment
  7. You will need to input the full URL to your ppverify.php file so that Paypal can send your IPNs to you and your system can process the information and give your users credit for the donation
License

Quote:
Originally Posted by Brandon J. Briggs aka. Cloudrunner
As the original author of the Paypal Hacks for vBulletin 3.0.x and 3.5.x I give full authorization to modify, recode, compile and/or reverse engineer the paypal donation hacks to any and all fully licensed members of vBulletin.org. I also give permission to fully distribute any derivative works that are created due to this authorization without need of providing credit or other means of recompense.
I am releasing this authorization in the hopes that someone will be able to carry on the work that was begun.

Final words

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.

I sincerely hope that you enjoy this hack, Please feel free to send feedback to tnp@noblepagan.com !
Thank you!

)O( Cloudrunner )O(

P.s. Should you feel the need to donate to me in thanks, I will not stop you , in fact I will say thank you and that your support is greatly appreciated. If you do donate to me for this hack, I will give the recognition here as well as on The Noble Pagan. You can find my donations page here (also works as a demo site should you feel the need to check it out):

The Noble Pagan Donation Page

Supporters / CoAuthors

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #732  
Old 01-09-2006, 12:14 AM
Devil Woman Devil Woman is offline
 
Join Date: Jul 2005
Location: England
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have installed this file and I havent got any ability in the admin cp to add donators

Please help

Thanks
Reply With Quote
  #733  
Old 01-09-2006, 01:01 AM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trana
DS,

I am running CMPS 2.0.0 with 3.5.1. I am testing the donations module after upgrading from 3.0.7 (CMPS 1). After the upgrade everything works except when I enable the donations module. Also, the main donation page (donate.php) works fine. The only other custom module that I have added is the random photopost (VBA Gallery) image on the homepage. I do not currently have that module running, but I was able to get it running on a test upgrade I did recently, so I am pretty sure my CMPS build is "ok".

Got any ideas what I can do to troubleshoot this? It is a bit of a pain since the big white page gives no indication of an error. One other thing worth mentioning is that when I refresh the empty white page, my browser crashes.

Thanks!

try deleteing the donate.php file that lies in modules folder and reuploaded. if that dont work try this admincp -> vba cmps -> edit pages what ever your default page is edit that one and see if that donate module is check. also make sure its a PHP File type when you add the module..


@DarKNull and Devil Woman

look at the bottom of this post

https://vborg.vbsupport.ru/showpost....&postcount=707
Reply With Quote
  #734  
Old 01-09-2006, 11:44 PM
Devil Woman Devil Woman is offline
 
Join Date: Jul 2005
Location: England
Posts: 390
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can anyone help as to why I havent got the ability to add donators on the admin panel please

Nikki xx
Reply With Quote
  #735  
Old 01-10-2006, 02:56 AM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

The admincp not showing up:
Head to /forum/includes/xml and edit cpnav_paypal_donations.xml

Find:

Code:
 
<?xml version="1.0" encoding="ISO-8859-1"?><navgroups product="vBulletin">

Replace with:

Code:
<?xml version="1.0" encoding="ISO-8859-1"?><navgroups product="vbulletin">
Reply With Quote
  #736  
Old 01-10-2006, 03:28 AM
Trana Trana is offline
 
Join Date: Apr 2005
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

DS,

I followed your instructions and it still wasn't working. I tried turning on Clean File Output and mysteriously it started showing up! I have no idea why this affects it since the output is already cmps-php enabled. Thanks for your help!

Now I need to reimport my tables as per the instructions because this lovely "upgrade" script has deleted all my data!

Thanks again.
Reply With Quote
  #737  
Old 01-10-2006, 03:38 AM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trana
DS,

I followed your instructions and it still wasn't working. I tried turning on Clean File Output and mysteriously it started showing up! I have no idea why this affects it since the output is already cmps-php enabled. Thanks for your help!

Now I need to reimport my tables as per the instructions because this lovely "upgrade" script has deleted all my data!

Thanks again.

just erase the install code from the xml so it wont reinstall the tables
Reply With Quote
  #738  
Old 01-10-2006, 03:51 AM
Trana Trana is offline
 
Join Date: Apr 2005
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Miss,

Is there a post which shows how to do this?
Reply With Quote
  #739  
Old 01-10-2006, 03:53 AM
Trana Trana is offline
 
Join Date: Apr 2005
Posts: 604
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What template is the CMPS module using? I got it to appear, but all I see is the title and the expand button. I imported my old tables and enabled a few users records for donor/showdonor, but nothing is showing up in my CMPS module. I have added a test string to all the adv_donate modules and nothing is showing up, I can't seem to find which one it is using.

Thanks!
Reply With Quote
  #740  
Old 01-10-2006, 03:57 AM
MissKalunji's Avatar
MissKalunji MissKalunji is offline
 
Join Date: Aug 2003
Location: Canada
Posts: 2,845
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Trana
Miss,

Is there a post which shows how to do this?
no just open the product

remove

Code:
<code>
		<code version="2.0.2">
			<installcode><![CDATA[$db->hide_errors();
$db->query_write("CREATE TABLE ".TABLE_PREFIX."donation_buttons (
	id int(255) NOT NULL auto_increment,
	goalid int(255) NOT NULL default '0',
	amount decimal(10,2) default NULL,
	item_name varchar(127) NOT NULL default '',
	cn varchar(40) NOT NULL default 'Additional Instructions',
	cpp_header_image varchar(255) default NULL,
	cpp_headerback_color varchar(255) default NULL,
	cpp_headerborder_color varchar(255) default NULL,
	cbt varchar(255) NOT NULL default 'Continue Transaction',
	active int(1) NOT NULL default '1',
	description text NOT NULL,
	PRIMARY KEY  (id)
	) TYPE=MyISAM;
");
$db->query_write("CREATE TABLE ".TABLE_PREFIX."donation_currency_exchange (
	server varchar(255) NOT NULL default 'xe',
	base varchar(255) NOT NULL default 'USD',
	USD varchar(255) NOT NULL default '',
	AUD varchar(255) NOT NULL default '',
	CAD varchar(255) NOT NULL default '',
	EUR varchar(255) NOT NULL default '',
	GBP varchar(255) NOT NULL default '',
	JPY varchar(255) NOT NULL default ''
	) TYPE=MyISAM
");
$db->query_write("INSERT INTO ".TABLE_PREFIX."donation_currency_exchange (`USD`, `AUD`, `CAD`, `EUR`, `GBP`, `JPY`) VALUES ('1', '1', '1', '1', '1', '1')");
$db->query_write("CREATE TABLE ".TABLE_PREFIX."donation_donors (
	id int(100) NOT NULL auto_increment,
	userid int(255) NOT NULL default '0',
	ip varchar(255) NOT NULL default '',
	total decimal(10,2) NOT NULL default '0.00',
	PRIMARY KEY (id)
	) TYPE=MyISAM;
");
$db->query_write("CREATE TABLE ".TABLE_PREFIX."donation_goals (
	id int(255) NOT NULL auto_increment,
	title varchar(255) NOT NULL default '',
	description text NOT NULL,
	amount decimal(10,2) NOT NULL default '0.00',
	total_donated decimal(10,2) NOT NULL default '0.00',
	active tinyint(1) NOT NULL default '1',
	PRIMARY KEY (id)
	) TYPE=MyISAM;
");
$db->query_write("CREATE TABLE ".TABLE_PREFIX."donation_paypalipn (
	txn_id varchar(255) NOT NULL default '',
	userid int(255) default NULL,
	test_ipn tinyint(1) default NULL,
	notify_version decimal(10,1) default NULL,
	verify_sign varchar(255) default NULL,
	first_name varchar(255) default NULL,
	last_name varchar(255) default NULL,
	payer_business_name varchar(255) default NULL,
	address_name varchar(255) default NULL,
	address_street varchar(255) default NULL,
	address_city varchar(255) default NULL,
	address_state varchar(255) default NULL,
	address_zip varchar(255) default NULL,
	address_country varchar(255) default NULL,
	address_status varchar(255) default NULL,
	payer_email varchar(255) default NULL,
	payer_id varchar(255) default NULL,
	payer_status varchar(255) default NULL,
	business varchar(255) default NULL,
	receiver_email varchar(255) default NULL,
	receiver_id varchar(255) default NULL,
	item_name varchar(255) default NULL,
	ip_address varchar(255) default NULL,
	quantity int(255) default NULL,
	invoice varchar(255) default NULL,
	memo varchar(255) default NULL,
	tax decimal(10,2) default NULL,
	option_name1 varchar(255) default NULL,
	option_selection1 varchar(255) default NULL,
	option_name2 varchar(255) default NULL,
	option_selection2 varchar(255) default NULL,
	payment_date varchar(255) default NULL,
	parent_txn_id varchar(255) default NULL,
	txn_type varchar(255) default NULL,
	payment_type varchar(255) default NULL,
	payment_status varchar(255) default NULL,
	pending_reason varchar(255) default NULL,
	reason_code varchar(255) default NULL,
	mc_gross decimal(10,2) default NULL,
	mc_fee decimal(10,2) default NULL,
	mc_currency char(3) default NULL,
	mc_handling decimal(10,2) default NULL,
	mc_shipping decimal(10,2) default NULL,
	settle_amount decimal(10,2) default NULL,
	settle_currency char(3) default NULL,
	exchange_rate decimal(10,4) default NULL,
	case_id varchar(255) default NULL,
	case_type varchar(255) default NULL,
	case_creation_date varchar(255) default NULL,
	valid tinyint(1) NOT NULL default '0',
	PRIMARY KEY  (txn_id)
	) TYPE=MyISAM;
");
$db->query_write("ALTER TABLE ".TABLE_PREFIX."user ADD donor TINYINT(1) DEFAULT '0' NOT NULL");
$db->query_write("ALTER TABLE ".TABLE_PREFIX."user ADD showdonor TINYINT(1) DEFAULT '1' NOT NULL");
$db->query_write("INSERT INTO " . TABLE_PREFIX . "cron (`cronid`, `nextrun`, `weekday`, `day`, `hour`, `minute`, `filename`, `loglevel`, `title`) VALUES ('', '', '-1', '-1', '0', '15', './includes/cron/donation_currency_exchange.php', '1', 'Donations Currency Exchange Quotes')");
$db->show_errors();]]></installcode>
			<uninstallcode><![CDATA[$db->hide_errors();
$db->query_write("DROP TABLE " . TABLE_PREFIX . "donation_buttons");
$db->query_write("DROP TABLE " . TABLE_PREFIX . "donation_currency_exchange");
$db->query_write("DROP TABLE " . TABLE_PREFIX . "donation_donors");
$db->query_write("DROP TABLE " . TABLE_PREFIX . "donation_goals");
$db->query_write("DROP TABLE " . TABLE_PREFIX . "donation_paypalipn");
$db->query_write("ALTER TABLE " . TABLE_PREFIX . "user DROP donor, DROP showdonor");
$db->query_write("DELETE FROM " . TABLE_PREFIX . "cron WHERE title = 'Donations Currency Exchange Quotes'");
$db->show_errors();]]></uninstallcode>
		</code>
	</codes>
next time it will only reinstall templates perhaps permissions

but wont touch your tables
Reply With Quote
  #741  
Old 01-10-2006, 04:15 AM
DS MrSinister DS MrSinister is offline
 
Join Date: Dec 2002
Location: the burgh
Posts: 553
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

all the table info for module

https://vborg.vbsupport.ru/showpost....&postcount=370
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 05:37 PM.


Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2024, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.08785 seconds
  • Memory Usage 2,345KB
  • Queries Executed 26 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (4)pagenav_pagelink
  • (4)pagenav_pagelinkrel
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete