PDA

View Full Version : Paypal Donation Sidebar Block



PhucSD
07-06-2011, 11:59 AM
I don't take any credit for this I just modified a cms widget
to work as a sidebar block for us who don't have the suite
tested on vB 4.13

Original Widget, I removed the login part



http://www.vbteam.info/vb-4-0-x-addons-and-template-modifications/36672-widget-welcome-user-paypal-donations.html
Instructions:

Upload upload folder to forum root then go into Forum & Moderators/
Forum Block Manager and create new custom Block

1. Title: Welcome

2. Description:

Block for Welcome User and PayPal Donations.
3. Content Type: HTML

Add Code:



<div class="cms_widget">
<div class="block">
<div class="cms_widget_header">

</div>
<div class="cms_widget_content" align="center">
<vb:if condition="$show['member']">
<ul class="isuser">
<div align="center">If you like our website and want to give something back, you can make a donation. All donations are Welcome.
<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="XXXXX@PaypalEmail.com" />
<input type="hidden" name="item_name" value="Donations to www.YourSiteHere.com!!!"/>
<input type="hidden" name="no_note" value="1" />
<input type="hidden" name="currency_code" value="USD" />
<input type="hidden" name="tax" value="0" />$
<select name="amount">
<option value="5.00">5.00</option>
<option value="10.00">10.00</option>
<option value="15.00">15.00</option>
<option value="20.00">20.00</option>
<option value="25.00">25.00</option>
</select>
</div>
<br />
Select a preferred amount of the donation, and then click the donate button.
<br /><br />
<fieldset>
<input type="image" src="http://www.vbteam.info/images/cms/widget-paypal-donation.png" title="Pay via PayPal" alt="Pay via PayPal" />
</fieldset>
</form>
</div>
Change:


<input type="hidden" name="business" value="XXXXX@PaypalEmail.com" />
To Your email.

Change:



<input type="hidden" name="item_name" value="Donations to www.YourSiteHere.com!!!"/>
<input type="hidden" name="no_note" value="1" />
Take out the reference addy to here:



<input type="image" src="http://www.vbteam.info/images/cms/widget-paypal-donation.png" title="Pay via PayPal" alt="Pay via PayPal" />

v.v...

screen of Block:

http://i53.tinypic.com/fkqftf.jpg
http://i52.tinypic.com/29z645z.png