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
  #42  
Old 01-01-2010, 07:24 PM
Doctor Death Doctor Death is offline
 
Join Date: Dec 2005
Posts: 449
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Installed and works great... simple install.

THanks much
Reply With Quote
  #43  
Old 01-01-2010, 11:49 PM
THE__DRIFTER THE__DRIFTER is offline
 
Join Date: Feb 2009
Posts: 65
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Guess I'm stupid... Following the instructions this will not work. Looking at the second pic; where did that code come from? I was hopeful but disappointed at the same time... Have not marked installed and can't until there is reason too. I hope I am missing something simple.
Reply With Quote
  #44  
Old 01-02-2010, 05:28 PM
linuxututs linuxututs is offline
 
Join Date: Oct 2009
Posts: 160
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by THE__DRIFTER View Post
Guess I'm stupid... Following the instructions this will not work. Looking at the second pic; where did that code come from? I was hopeful but disappointed at the same time... Have not marked installed and can't until there is reason too. I hope I am missing something simple.
I couldn't get it to work as it is supposed to either.
That's the reason I came up with a different way.
It can't get much simpler than adding that code to the bottom of your "vbcms_widget_recentforumposts_page" template.

Hope this helps you also.

Thanks,

P.S. Still have to upload the image though.....And the code I'm referring to is from My post up above..Thanks,
Attached Images
File Type: png 4vbpaypal.PNG (22.0 KB, 0 views)
Reply With Quote
  #45  
Old 01-02-2010, 09:55 PM
JADM JADM is offline
 
Join Date: Jun 2007
Posts: 21
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

None of this is to take away from the work that IR15H put into this. I am not a coder and could not have done what he did, so kudos to him for sharing this.

That said, I was interested in getting a progress bar along with the donate button. So, I bought a $20 script from here.. I followed the installation instructions (took me 5 minutes), went to paypal.com to generate my code (5 minutes) and created a static HTML widget (5 minutes). The point is that it was very easy for me and I am by no means any type of guru on coding. My results are attached.

If you want to see it on my site, go here.

I am not criticizing the mod at all. And I am thankful for the instructions on adding to Forum sidebar...that is my next step!
Attached Images
File Type: jpg Paypal donate with progress bar.jpg (55.5 KB, 0 views)
Reply With Quote
  #46  
Old 01-18-2010, 11:58 AM
Rckcrwlr Rckcrwlr is offline
 
Join Date: Dec 2008
Location: PA
Posts: 182
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

When I click to change the amount or anything else, it sends me to my profile page.

Did I miss something???
Reply With Quote
  #47  
Old 01-18-2010, 06:47 PM
COL NIL SATIS COL NIL SATIS is offline
 
Join Date: Aug 2009
Location: Liverpool UK
Posts: 802
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

this is fantastic....nominated and rated 5!!! installed
Reply With Quote
  #48  
Old 01-19-2010, 11:43 AM
wayne.richards@ wayne.richards@ is offline
 
Join Date: Jul 2008
Posts: 113
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

SORTED! What A Great Mod!
Reply With Quote
  #49  
Old 01-19-2010, 04:08 PM
SuperGLS SuperGLS is offline
 
Join Date: Nov 2004
Posts: 126
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Great work!

If we we wanted to add Australian dollars to the list we'd just need to add a value like:

<option value="AUD">$ - AUD</option>

Right?
Reply With Quote
  #50  
Old 01-20-2010, 04:26 PM
Sax on the Web Sax on the Web is offline
 
Join Date: Feb 2006
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

What about passing a parameter?
I have a need to to know donor's user name.
They often use different email for Payal than for forum registration.

thanks,
Reply With Quote
  #51  
Old 01-20-2010, 04:44 PM
messengermatt messengermatt is offline
 
Join Date: Aug 2009
Posts: 91
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Sax on the Web View Post
What about passing a parameter?
I have a need to to know donor's user name.
They often use different email for Payal than for forum registration.

thanks,
That is a good idea i'd also like to know which forum members are donating- can it be incorporated into the actual invoice via an API ?
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 10:03 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.09118 seconds
  • Memory Usage 2,372KB
  • 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
  • (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
  • (4)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
  • (6)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