PayPal Donation Widget

Last Update
29 April 2013
Regular License
$12
Extended License
$60
Sales
48

PayPal Donation Widget is a simple PHP -script that allows you to embed donation box into any HTML -page (PHP-page, ASP -page, whatever-page). It displays recent/top donors and donation button (it also can display full list of donors as a table or comma separated string). Once your visitor donated through widget, his/her name appears in a list. Widget is embedded with 1-line JavaScript code.

Features

Any number of recent donors: display as many recent donors as you wish.

Highly customizable: change colors, fonts and styles using CSS , all CSS -classes are ready.

PayPal ready: you just need set up your PayPal ID.

Lite script: no database queries or heavy server loads.

Easy integration: insert 1 JavaScript line of code into your pages.

Multiple display modes: display widget by different ways.

3rd party websites integration: you can insert the same widget into any websites, located on other domains.

Easy to install: you only need to edit config.php (title, PayPal ID, number of recent donors, target to reach).

Installation Let’s imagine that you have website: http://www.website.com/ and you want to install there.

1. Create folder “donationcontest” (use any other name) in root of your domain. Once created it can be reached by URL : http://www.website.com/donationcontest/

2. Unpack zip-archive into this folder and set permission 0777 for folder “data”. To make sure that you did everything correctly, open URL http://www.website.com/donationcontest/ in browser, you will see phrase: “Silence is the gold!”.

3. Edit config.php and set 6 parameters: script URL (http://www.website.com/donationcontest/), title of widget, your PayPal ID, number of recent donors, currency and target to reach.

4. Embed widget into any page of any website with any of the following modes (you can see all this modes on “Live Preview” page):

Recent donors<script type="text/javascript" charset="utf-8" src="http://www.website.com/donationcontest/donation_widget.php"></script>

TOP donors<script type="text/javascript" charset="utf-8" src="http://www.website.com/donationcontest/donation_widget.php?mode=top"></script>

Recent donors only<script type="text/javascript" charset="utf-8" src="http://www.website.com/donationcontest/donation_widget.php?mode=recent-only"></script>

TOP donors only<script type="text/javascript" charset="utf-8" src="http://www.website.com/donationcontest/donation_widget.php?mode=top-only"></script>

All donors table<script type="text/javascript" charset="utf-8" src="http://www.website.com/donationcontest/donation_widget.php?mode=donors-table"></script>

All donors comma-separated string<script type="text/javascript" charset="utf-8" src="http://www.website.com/donationcontest/donation_widget.php?mode=donors-string"></script>

Button only<script type="text/javascript" charset="utf-8" src="http://www.website.com/donationcontest/donation_widget.php?mode=button"></script>

That’s it! Enjoy using the PayPal Donation Widget.

If you have problems regarding using this script, please contat me and I’ll help you.