Go Back   vb.org Archive > vBulletin Modifications > Archive > Modification Graveyard

Reply
 
Thread Tools
Donations Progress Image (Wiki lookalike) Details »»
Donations Progress Image (Wiki lookalike)
Version: 1.00, by Mr Chad Mr Chad is offline
Developer Last Online: Apr 2009 Show Printable Version Email this Page

Category: Add-On Releases - Version: 3.6.4 Rating:
Released: 01-22-2007 Last Update: Never Installs: 36
 
No support by the author.

If you like it click


Installation Time: <2 mins
Files: 2
Products: 1
VB Version: This actually works on 3.6.4 (not sure about 3.5)

Description:

THIS HACK IS AN ADDITION TO [PayPal Donations]

This Hack will get your dontations stats (i.e. goal total, total donated and percentage) and write them to your Donations Image. It calls the stats from
your Database and writes them to an image called donations.jpg

This hack uses the PHP-GD Function, so be shure you have this enabled on your server. If you don?t be shure about this, ask your host or look in your PHP-Info.

Installation Instructions:
  1. Upload donationsimage.php to your /includes/cron/ dir
  2. Upload donations.jpg to your forum dir / (CHMOD 777 the donations.jpg)
  3. Install the product and run the scheduled task called "Donations Image"
  4. go to yourforum/donations.jpg
Examples:
[Example of Use]
FAQ: N/A

If you like it click


To add extra stats look in the signature.php for more info.

Show Your Support

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

Comments
  #22  
Old 01-24-2007, 05:27 PM
Snake's Avatar
Snake Snake is offline
 
Join Date: Mar 2005
Location: Cleveland, OH
Posts: 3,832
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Wow this is great!
Reply With Quote
  #23  
Old 01-24-2007, 05:44 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I too would like to know, Editing the jpg does not work...been there, tried that lol

Quote:
Originally Posted by Martin-TMGRS View Post
Great hack Could you tell me how to change the $ to ? please. do I just edit the jpg image ?
Reply With Quote
  #24  
Old 01-24-2007, 06:35 PM
scan-pa scan-pa is offline
 
Join Date: May 2006
Location: Lebanon Co. Pa. USA
Posts: 189
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks to Mr Chad for all of his help. I installed the hackslast night and already have had our Jan Goal met in less then 20 hours.

awsome job.
Reply With Quote
  #25  
Old 01-24-2007, 06:54 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by bashy View Post
Ok, just installed and ran the scheduled task as per instructions and it gives error such as this...

Code:
The image “http://www.bashys-place.com/forums/admincp/cronadmin.php?do=runcron&cronid=61” cannot be displayed, because it contains errors.
Although it does work....

Any advice please?

Also i would like it in UK pounds?
Ok, On my Donations page the percentage is 32% for the goal and is in UK pounds, yet this hack is in dollars, this is weird lol

is this hack a percentage of how much is collected towards the goal or is it the total amount in dollars?
ok that error is fine. also it is a percentage. amount divided by goal.



Quote:
Originally Posted by Martin-TMGRS View Post
Great hack Could you tell me how to change the $ to ? please. do I just edit the jpg image ?
lol this is different than the signature stats image hack, this one uses 100% php to make the image.

edit the php file you uploaded. look for:
PHP Code:
    if ($p>.20){
    
imagestring($im3100'$' $donations$white);
    } else {
    
imagestring($im3100'$' $donations$black);
    } 
imagestring($im, 3, 10, 0, '$' . $donations, $black);
just change the symbol inside of the quotes on both.



Quote:
Originally Posted by scan-pa View Post
Thanks to Mr Chad for all of his help. I installed the hackslast night and already have had our Jan Goal met in less then 20 hours.

awsome job.
no problem. I also accept donations :P
Reply With Quote
  #26  
Old 01-24-2007, 07:19 PM
Martin-TMGRS Martin-TMGRS is offline
 
Join Date: May 2005
Location: Coventry
Posts: 74
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Mr Chad, works sweet thanks for your help I to also take donations (LOL)
Reply With Quote
  #27  
Old 01-24-2007, 09:42 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

no problem.
Reply With Quote
  #28  
Old 01-25-2007, 05:15 AM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Thanks Mr Chad, Got it sorted now.... great idea!
Reply With Quote
  #29  
Old 01-25-2007, 06:27 AM
Hornstar Hornstar is offline
 
Join Date: Jun 2005
Location: Australia
Posts: 2,469
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I will keep this in mind, sounds like it may help get more donations. looks good on your site.
Reply With Quote
  #30  
Old 01-25-2007, 07:45 PM
bashy bashy is offline
 
Join Date: Nov 2005
Posts: 2,544
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

I got mine to look like the demo now, see the images

code for peeps if needed...obviously you will need to change the urls to your own...

Code:
<center>
<table>
<td class="alt2" colspan="7" align="center">
<p align="center"><strong>This is the amount you have kindly donated this month<br><a href="http://bashys-place.com/forums/donate.php"><img src="http://bashys-place.com/forums/donations.jpg" border="0"></a><br>
Can you help us to keep the site running?
<a href="#top" onclick="return toggle_collapse('donations')">
[moreinfo]</a></strong></td>
</tr>
</tbody>
<tbody id="collapseobj_donations" style="display: none;">

<tr>
<td class="alt2" colspan="7" align="center">
<p align="center">You can donate [<a target="_blank" href="http://bashys-place.com/forums/donate.php">Here</a>] 
and also view who has donated so far.<br>
<br>
<b>What do you get when donating other than good karma?</b></p>
<p align="left"><font color="#808000">You get a Donate image symbol next to your avatar</font><br>
<font color="#FF6600">If you donate 
?20 or more you can have 1 years free web hosting</font><br>
<font color="#808000">Your help will go towards the upkeep and running of the forum, thank you!</font>.</p></td>
</table>
</center>
Reply With Quote
  #31  
Old 01-25-2007, 08:32 PM
Mr Chad's Avatar
Mr Chad Mr Chad is offline
 
Join Date: Jul 2005
Posts: 911
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

lol you just copied mine...
Reply With Quote
Reply

Thread Tools

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 05:33 AM.


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.07794 seconds
  • Memory Usage 2,314KB
  • Queries Executed 25 (?)
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
  • (1)bbcode_php
  • (4)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
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (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_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete