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

Reply
 
Thread Tools
Widget - Donations / Forum Sidebar - Donations Details »»
Widget - Donations / Forum Sidebar - Donations
Version: 1.00, by IR15H IR15H is offline
Developer Last Online: Oct 2019 Show Printable Version Email this Page

Category: vBulletin CMS Widgets - Version: 4.0.0 Rating:
Released: 12-20-2009 Last Update: Never Installs: 217
Template Edits
Re-useable Code Additional Files Translations  
No support by the author.

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


Title Image



How To Install Basic
  1. Files
    • Download the attached zip file, extract it.
    • Upload it's contents to your forum root.
  2. Create a widget
    • ADMIN CP > vBulletin CMS > Widgets > Create New Widget
      • Widget Type: Static HTML
      • Title: Donations
      • Description: Widget for site donations.
  3. 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">&euro; - EUR</option>
      <option value="GBP">&pound; - 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
      Quote:
      vbcms_widget_static_page
    • NB. Change YOUREMAIL@paypal.com and www.YOURSITE.com in Static HTML to suit your needs.
  4. 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
  1. Files
    • Download the attached zip file, extract it.
    • Upload it's contents to your forum root.
  2. Create a new template
    • Admin CP > Styles & Templates > Style Manager > Add New Template
    • Title
      Quote:
      vbcms_widget_donations
    • 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="" />&nbsp;{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.
  3. Create a widget
    • ADMIN CP > vBulletin CMS > Widgets > Create New Widget
      • Widget Type: Static HTML
      • Title: Donations
      • Description: Widget for site donations.
  4. 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">&euro; - EUR</option>
      <option value="GBP">&pound; - 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
      Quote:
      vbcms_widget_donations
    • NB. Change YOUREMAIL@paypal.com and www.YOURSITE.com in Static HTML to suit your needs.
  5. 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.

Download Now

File Type: zip widget-donations.zip (23.6 KB, 917 views)

Screenshots

File Type: jpg basic.jpg (108.3 KB, 0 views)
File Type: png options.png (27.2 KB, 0 views)
File Type: png Images.png (16.2 KB, 0 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.
2 благодарности(ей) от:
Judith2, SKIDROW

Comments
  #2  
Old 12-21-2009, 08:25 PM
Vaupell's Avatar
Vaupell Vaupell is offline
 
Join Date: Apr 2008
Location: Esbjerg, Denmark
Posts: 1,036
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have no clue why someone would rate this down...

I rate 5 stars, and says Thank you.. installing..
Reply With Quote
  #3  
Old 12-21-2009, 08:25 PM
IR15H IR15H is offline
 
Join Date: Feb 2007
Location: England
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

How To Install Basic Forum Sidebar
  1. Files
    • Download the attached zip file, extract it.
    • Upload it's contents to your forum root.
  2. Enable the Sideblock
    • ADMIN CP > Settings > Options > Forum Sidebar and Block Options > Edit Settings > Enable Forum Sidebar > Yes
  3. Create a Sideblock
    • ADMIN CP > Forums & Moderators > Forum Blocks Manager > Add Block > Select Block Type > Custom HTML/PHP
      • Title: Donations
      • Description: Sideblock for site donations.
      • Cache time: 1440
      • Content Type: HTML
    • Content
      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">&euro; - EUR</option>
      <option value="GBP">&pound; - 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 to Use
      Quote:
      block_html
    • NB. Change YOUREMAIL@paypal.com and www.YOURSITE.com in Static HTML to suit your needs.

How To Install Image Title Forum Sidebar
  1. Files
    • Download the attached zip file, extract it.
    • Upload it's contents to your forum root.
  2. Enable the Sideblock
    • ADMIN CP > Settings > Options > Forum Sidebar and Block Options > Edit Settings > Enable Forum Sidebar > Yes
  3. Create a new template
    • Admin CP > Styles & Templates > Style Manager > Add New Template
    • Title
      Quote:
      block_donations
    • Template
      HTML Code:
      <li>
      	<div class="block smaller">
      		<div class="blocksubhead">
      			<a class="collapse" id="collapse_block_donations" href="#top"><img alt="" src="{vb:stylevar imgdir_button}/collapse_40b.png" id="collapseimg_donations"/></a>
      			<span class="blocktitle"><img src="{vb:stylevar imgdir_cms}/widget-donations_colour.png" title="{vb:raw blockinfo.title}" alt="" />{vb:raw blockinfo.title}</span>
      		</div>
      		<div id="block_donations" class="blockbody floatcontainer">
      			<div class="blockrow">{vb:raw content}</div>
      		</div>
      	</div>
      	<div class="underblock"></div>
      </li>
    • NB. Change {vb:stylevar imgdir_cms}/widget-donations_colour.png to suit your needs.
  4. Create a Sideblock
    • ADMIN CP > Forums & Moderators > Forum Blocks Manager > Add Block > Select Block Type > Custom HTML/PHP
      • Title: Donations
      • Description: Sideblock for site donations.
      • Cache time: 1440
      • Content Type: HTML
    • Content
      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">&euro; - EUR</option>
      <option value="GBP">&pound; - 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 to Use
      Quote:
      block_donations
    • NB. Change YOUREMAIL@paypal.com and www.YOURSITE.com in Static HTML to suit your needs.

If the donation block does not show up in the sidebar log out of your site then log back in and it should appear.
Reply With Quote
  #4  
Old 12-21-2009, 08:31 PM
Trek Trek is offline
 
Join Date: Sep 2003
Posts: 664
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Very cool, a PayPal mod is one of the things I wanted to have before I upgraded, thanks much!
Reply With Quote
  #5  
Old 12-21-2009, 08:46 PM
bart6767 bart6767 is offline
 
Join Date: Aug 2008
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks very much .
Reply With Quote
  #6  
Old 12-21-2009, 09:48 PM
Bounce's Avatar
Bounce Bounce is offline
 
Join Date: Mar 2004
Location: Edinburgh,Scotland
Posts: 919
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this be made to work on the forum side bar as well ?
Reply With Quote
  #7  
Old 12-21-2009, 09:53 PM
milsirhc's Avatar
milsirhc milsirhc is offline
 
Join Date: Jan 2007
Posts: 206
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I agree! It will be great if this can work on the forum side bar too.
Reply With Quote
  #8  
Old 12-21-2009, 10:11 PM
bart6767 bart6767 is offline
 
Join Date: Aug 2008
Posts: 149
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I have mine working in the forum sidebar .
Attached Images
File Type: jpg money.jpg (105.8 KB, 0 views)
Reply With Quote
  #9  
Old 12-21-2009, 11:02 PM
IR15H IR15H is offline
 
Join Date: Feb 2007
Location: England
Posts: 161
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by hIBEES View Post
Can this be made to work on the forum side bar as well ?
Quote:
Originally Posted by milsirhc View Post
I agree! It will be great if this can work on the forum side bar too.
Please see the third post of this thread for instructions on how to add it to the forum sidebar .

-----------

Thanks to those who have marked installed, glad you find it useful.
Reply With Quote
  #10  
Old 12-21-2009, 11:24 PM
VonDoom's Avatar
VonDoom VonDoom is offline
 
Join Date: Dec 2008
Location: USA
Posts: 494
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Vaupell View Post
I have no clue why someone would rate this down...

I rate 5 stars, and says Thank you.. installing..
Its getting to be a ridicules habit around here.
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 02:47 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.08311 seconds
  • Memory Usage 2,385KB
  • Queries Executed 24 (?)
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
  • (6)bbcode_html
  • (9)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (4)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (10)post_thanks_box
  • (2)post_thanks_box_bit
  • (10)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (10)post_thanks_postbit_info
  • (9)postbit
  • (5)postbit_attachment
  • (10)postbit_onlinestatus
  • (10)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
  • fetch_musername
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • post_thanks_function_fetch_thanks_bit_start
  • post_thanks_function_show_thanks_date_start
  • post_thanks_function_show_thanks_date_end
  • post_thanks_function_fetch_thanks_bit_end
  • post_thanks_function_fetch_post_thanks_template_start
  • post_thanks_function_fetch_post_thanks_template_end
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_attachment
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete