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
  #62  
Old 07-19-2011, 05:17 PM
Scans007 Scans007 is offline
 
Join Date: Jul 2011
Posts: 12
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

This rocks...thx a ton for the work put in! This is my 3rd day using vBulletin and setting it all up...flawless

The only note I might make is you say to drop it in the forum root folder, I needed to put the zipped stuff in the forums/images/cms to get it to show up properly.

awesome!
Reply With Quote
  #63  
Old 07-20-2011, 09:19 AM
Athrun1234 Athrun1234 is offline
 
Join Date: Nov 2010
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

An excellent tutorial!!! Kudos to the creator!!!
Reply With Quote
  #64  
Old 09-10-2011, 08:20 PM
K4GAP K4GAP is offline
 
Join Date: Mar 2008
Posts: 1,255
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Has anyone tried this on 4.1.5 ?
Reply With Quote
  #65  
Old 09-11-2011, 05:27 AM
SarahScott SarahScott is offline
 
Join Date: Aug 2011
Posts: 10
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I can't get the CMS widget with TITLE to work. Just displays as the basic widget on 4.1.5
Reply With Quote
  #66  
Old 10-18-2011, 07:24 PM
Smevans Smevans is offline
 
Join Date: Oct 2009
Location: Illinois
Posts: 1
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Awesome love this!
Reply With Quote
  #67  
Old 06-04-2012, 05:29 AM
Lombardo Lombardo is offline
 
Join Date: Dec 2007
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Will this work on 4.2.0?
Reply With Quote
  #68  
Old 06-04-2012, 06:44 AM
BlessedFWI's Avatar
BlessedFWI BlessedFWI is offline
 
Join Date: Dec 2008
Posts: 86
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Lombardo View Post
Will this work on 4.2.0?
I just added it and it seems to work. I had to upload the images on my server to the images/misc folder though for them to show up. Not sure why!
Reply With Quote
  #69  
Old 06-09-2012, 01:25 PM
Lombardo Lombardo is offline
 
Join Date: Dec 2007
Posts: 230
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by BlessedFWI View Post
I just added it and it seems to work. I had to upload the images on my server to the images/misc folder though for them to show up. Not sure why!
Thank you.
Reply With Quote
  #70  
Old 03-01-2013, 07:22 PM
JustAskJulie JustAskJulie is offline
 
Join Date: Nov 2002
Posts: 197
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I recently noticed that this widget tries to add a shipping charge to the users donation. Is there a way to disable this?
Reply With Quote
  #71  
Old 08-07-2013, 12:32 PM
stevieb stevieb is offline
 
Join Date: Apr 2005
Posts: 169
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed +1.

However - the code is actually wrong - if you follow method B the widget looks like this:

Attachment 145970

So in order to get it looking like the demo's in post 1 you need to edit the create template HTML from what was originally posted here:

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>

To read like this version here (add the red element):

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_pound_colour.png" alt="" />&nbsp;{vb:raw widget_title}</h3>
		</div>
		<div class="cms_widget_content widget_content" align="center">
			{vb:raw static_html}
		</div>
	</div>
</div>
Which will then render the correct ending

Attachment 145971
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 09:44 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.05154 seconds
  • Memory Usage 2,369KB
  • 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
  • (2)bbcode_code
  • (3)bbcode_html
  • (5)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
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (2)post_thanks_box_bit
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (1)post_thanks_postbit
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (4)postbit_attachment
  • (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
  • 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