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
Donation Goal Thermometer Forum Block addon for Donation Manager Details »»
Donation Goal Thermometer Forum Block addon for Donation Manager
Version: 1.00, by SemperFideles SemperFideles is offline
Developer Last Online: Jun 2018 Show Printable Version Email this Page

Category: Miscellaneous Hacks - Version: 4.0.1 Rating:
Released: 01-25-2010 Last Update: Never Installs: 25
Additional Files  
No support by the author.

**This is an addon for the Donation Manager addon if installed as below.**

I've been waiting for something that will be an all-in-one donation system such as the Cyb Paypal Donate for vBulletin 4 but can't wait any longer. I really needed a donation goal monitor as it encourages people to donate who otherwise do not.

I like the features of the Donation Manager addon and decided I would search for some sort of script that would enable me to display donation progress. I found this free script: http://www.arkie.net/~scripts/thermometer/

I have implemented a basic method to display donation progress through both of these scripts. It is a manual process to update donation progress but the Cyb Donate plugin was as well.

DEMO: You can see my implementation in action at http://www.puritanboard.com/forum.php

Instructions
1. Download thermometer.php and upload that into your forum root.
2. Create a new Forum Block
a. AdminCP -> Forums & Moderators -> Forum Blocks Manager
b. Click Add Block
c. Block Title: Donate (or Support Us)
d. Active: Yes
e. Content Type: HTML
f. Content
PHP Code:
<img hspace="10" align="left" border="0" src="thermometer.php?Current=0&Goal=250&Width=100&Height=100&Font=2">
<
br><br>
<
form action="donate.php" method="post"
<
input type="submit" value="Donate" class="newcontent_textcontrol"> <br /> <br
</
form
g. BEFORE YOU SAVE, you must configure the thermometer in the Content block. All the settings are within the img attributes and you don't need to touch the thermometer.php file. Notice that img has the following src value:

thermometer.php?Current=0&Goal=100&Width=50&Height=100&Font=2
(1) Current=current donations received
(2) Goal=donation goal
(3) Width=width of the thermometer
(4) Height=height of thermometer
(5) Font=size of font from 1...whatever
(You can experiment with these settings but I found a width of 50 and Height of 100 with a font size of 2 makes my thermometer about right)
Once you save the Forum Block you can position it in your Block order. When you receive donations you simply edit the forum block and update the Current= value. It's not perfect but it's better than having no goal meter. When the user clicks on the Support Us link he is taken to the Donation System which allows him to donate.

ALTERNATIVE IMPLEMENTATION

You can set up the forum block to allow the user to select pulldown dollar amounts. I don't know how to pass the variables that the donation system uses or I would use them in my block. This block requires a bit more editing to get it working for your site.

Follow the same instructions as above but in the Content Block replace all with:
PHP Code:
<img hspace="10" align="left" border="0" src="thermometer.php?Current=6&Goal=400&Width=50&Height=100&Font=2">
<
br>
<
form action="https://www.paypal.com/cgi-bin/webscr" method="post"
<
input type="hidden" name="cmd" value="_xclick"
<
input type="hidden" name="business" value="email@doman.com">
<
input type="hidden" name="currency_code" value="USD"
<
select name="amount"
<
option value="10">$10</option
<
option value="20">$20</option
<
option value="50">$50</option
<
option value="100">$100</option
<
option value="500">$500</option
</
select
<
input type="hidden" name="no_shipping" value="1"
<
input type="hidden" name="no_note" value="1"
<
input type="hidden" name="lc" value="US"
<
input type="hidden" name="bn" value="PP-BuyNowBF"
<
input type="hidden" name="item_name" value="Forum Donation"
<
input type="hidden" name="cancel_return" value="http://www.forumdomain.com/donate.php?do=fail"
<
input type="hidden" name="return" value="http://www.forumdomain.com/donate.php?do=success"
<
input type="hidden" name="rm" value="2"> <br /><br /> 
<
input type="submit" value="Donate" class="newcontent_textcontrol"> <br /> <br
</
form
Set:
- Thermometer values as before
- email@domain.com to your paypal e-mail address
- value="USD" to a different currency if you want to accept by another currency
- option values to the amounts you want to donate and set the values between the option tags to the currency you want
- value="US" to your country
- value="Forum Donation" to what you want displayed in the paypal cart when the user donates
- forumdomain.com to your forum domain (there are two and they are the success and fail pages of the Donation System plugin)

Download Now

File Type: php thermometer.php (2.7 KB, 239 views)

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #32  
Old 02-12-2010, 04:42 PM
movslow movslow is offline
 
Join Date: Aug 2008
Posts: 297
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Direct link to my thermometer.php file.

Nothing.

http://movslow.com/forum/thermometer.php

Reply With Quote
  #33  
Old 02-12-2010, 10:14 PM
Videx's Avatar
Videx Videx is offline
 
Join Date: Feb 2007
Posts: 3,085
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by movslow View Post
Direct link to my thermometer.php file.

Nothing.

http://movslow.com/forum/thermometer.php

You're lucky. When I try to access my thermometer via direct link like that I get a page full of really scary error messages! Are you sure you're setting up the forum block properly? I see you have several blocks so I would assume you know how it's done. But really, even if the thermometer isn't working you should get a block with the text and links in it.
Reply With Quote
  #34  
Old 02-13-2010, 02:26 PM
apaydin2148 apaydin2148 is offline
 
Join Date: May 2007
Posts: 44
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

can you do something like this image?

Reply With Quote
  #35  
Old 02-13-2010, 09:54 PM
cicciotto cicciotto is offline
 
Join Date: Jan 2010
Posts: 25
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

as they did with version 4.0.1?
http://www.ipmart-forum.it/forum.php
Reply With Quote
  #36  
Old 02-19-2010, 11:43 PM
SemperFideles's Avatar
SemperFideles SemperFideles is offline
 
Join Date: Oct 2006
Location: Northern VA
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I wonder if anyone else is experiencing an uptick in donations since implementing this. I used to rely upon the Cyb bar below my Navbar but my donations per month have actually gone up quite a bit with the thermometer.

Call it ugly or whatever you like but it works. I had some previous research and experience with Pay per click advertising and the upper left of the screen is always where PPC advertising was most effective. I think the location combined with the thermometer graphic is inspiring more donations.
Reply With Quote
  #37  
Old 02-20-2010, 11:26 AM
icemann's Avatar
icemann icemann is offline
 
Join Date: Sep 2005
Posts: 103
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I'll see how it does.
Reply With Quote
  #38  
Old 02-23-2010, 04:52 AM
sinistergaming's Avatar
sinistergaming sinistergaming is offline
 
Join Date: Jan 2007
Location: WorldWide
Posts: 83
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

will this work with vsa donations?
i really dig the thermometer but i need the functions in vsa donations.
for usergroups and stuff
Reply With Quote
  #39  
Old 02-23-2010, 12:11 PM
SemperFideles's Avatar
SemperFideles SemperFideles is offline
 
Join Date: Oct 2006
Location: Northern VA
Posts: 223
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by sinistergaming View Post
will this work with vsa donations?
i really dig the thermometer but i need the functions in vsa donations.
for usergroups and stuff
I'm trying to figure out how to do it. I would love to be able to make it work for myself. I'm going to try to poke around and figure out how to do it.
Reply With Quote
  #40  
Old 02-26-2010, 01:55 AM
Breakthru Breakthru is offline
 
Join Date: Oct 2004
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Would be amazing if could use this image...

Attachment 113082
Reply With Quote
  #41  
Old 04-22-2010, 11:24 AM
Reef Man Reef Man is offline
 
Join Date: Nov 2006
Posts: 123
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Can this be configured as a widget? is it possible to change the thermometer picture?
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 11:20 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.05004 seconds
  • Memory Usage 2,359KB
  • 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_php
  • (2)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
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (1)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
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • 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