IR15H |
12-20-2009 10:00 PM |
Widget - Donations / Forum Sidebar - Donations
1 Attachment(s)
A simple donation widget for use on your site, tested on vB 4.0 GOLD.
Can also be displayed on your Forum Sidebar. For instructions on adding it to the sidebar, please see the third post of this thread.
Basic
http://img191.imageshack.us/img191/9926/basica.png
Title Image
http://img97.imageshack.us/img97/3451/optionsg.png
How To Install Basic- Files
- Download the attached zip file, extract it.
- Upload it's contents to your forum root.
- Create a widget
- ADMIN CP > vBulletin CMS > Widgets > Create New Widget
- Widget Type: Static HTML
- Title: Donations
- Description: Widget for site donations.
- Configure your widget
- Enter Static HTML;
HTML Code:
<div align="center">If you like our website and would like to give something in return, you can make a donation. All donations are gratefully received.
<br /><br />
<form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
<div>
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="YOUREMAIL@paypal.com" />
<input type="hidden" name="item_name" value="www.YOURSITE.com Donation" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="tax" value="0" />
<select name="currency_code">
<option value="EUR">€ - EUR</option>
<option value="GBP">£ - GBP</option>
<option value="USD">$ - USD</option>
</select>
<select name="amount">
<option value="10.00">10</option>
<option value="15.00">15</option>
<option value="20.00">20</option>
<option value="25.00">25</option>
<option value="50.00">50</option>
<option value="100.00">100</option>
</select>
</div>
<br />
Select your preferred currency and donation amount, then click the donate button.
<br /><br />
<fieldset>
<input type="image" src="images/cms/widget-donations_paypal.png" title="Pay via PayPal" alt="Pay via PayPal" />
</fieldset>
</form>
</div>
- Template Name
- NB. Change YOUREMAIL@paypal.com and www.YOURSITE.com in Static HTML to suit your needs.
- Add widget to a page
- ADMIN CP > vBulletin CMS > Layout manager > Edit
- Insert the Donations widget and place it where you want it to appear
How To Install Title Image- Files
- Download the attached zip file, extract it.
- Upload it's contents to your forum root.
- Create a new template
- Admin CP > Styles & Templates > Style Manager > Add New Template
- Title
- Template
HTML Code:
<div class="cms_widget">
<div class="block">
<div class="cms_widget_header">
<h3><img title="{vb:raw widget_title}" src="images/cms/widget-donations_colour.png" alt="" /> {vb:raw widget_title}</h3>
</div>
<div class="cms_widget_content" align="center">
{vb:raw static_html}
</div>
</div>
</div>
- NB. Change images/cms/widget-donations_colour.png to suit your needs.
https://vborg.vbsupport.ru/
- Create a widget
- ADMIN CP > vBulletin CMS > Widgets > Create New Widget
- Widget Type: Static HTML
- Title: Donations
- Description: Widget for site donations.
- Configure your widget
- Enter Static HTML;
HTML Code:
If you like our website and would like to give something in return, you can make a donation. All donations are gratefully received.
<br /><br />
<form action="https://www.paypal.com/cgi-bin/webscr" target="_blank" method="post">
<div>
<input type="hidden" name="cmd" value="_xclick" />
<input type="hidden" name="business" value="YOUREMAIL@paypal.com" />
<input type="hidden" name="item_name" value="www.YOURSITE.com Donation" />
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="tax" value="0" />
<select name="currency_code">
<option value="EUR">€ - EUR</option>
<option value="GBP">£ - GBP</option>
<option value="USD">$ - USD</option>
</select>
<select name="amount">
<option value="10.00">10</option>
<option value="15.00">15</option>
<option value="20.00">20</option>
<option value="25.00">25</option>
<option value="50.00">50</option>
<option value="100.00">100</option>
</select>
</div>
<br />
Select your preferred currency and donation amount, then click the donate button.
<br /><br />
<fieldset>
<input type="image" src="images/cms/widget-donations_paypal.png" title="Pay via PayPal" alt="Pay via PayPal" />
</fieldset>
</form>
- Template Name
- NB. Change YOUREMAIL@paypal.com and www.YOURSITE.com in Static HTML to suit your needs.
- Add widget to a page
- ADMIN CP > vBulletin CMS > Layout manager > Edit
- Insert the Donations widget and place it where you want it to appear
-------------------------
Credits- All images (except the PayPal one) are derived from www.famfamfam.com.
- The code to make this is fairly basic so feel free to modify to suit your own needs, but if you do use it then please click install. Thank you.
|