vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Graveyard (https://vborg.vbsupport.ru/forumdisplay.php?f=224)
-   -   Add-On Releases - Donations Progress Image (Wiki lookalike) (https://vborg.vbsupport.ru/showthread.php?t=137348)

Mr Chad 01-22-2007 10:00 PM

Donations Progress Image (Wiki lookalike)
 


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:
http://www.beasttoast.com/forum/donations.jpg [Example of Use]
FAQ: N/A


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

scan-pa 01-23-2007 09:33 PM

Installed. Thank you very much, exactly what I was looking for.

Mr Chad 01-23-2007 09:40 PM

lol no problem :D.

heres an example: http://beasttoast.com/forum/lndex.php

scan-pa 01-23-2007 09:42 PM

Only problem is it is looking for a database table that does not exist.

Mr Chad 01-23-2007 09:44 PM

did you install the hack its an addition to?

https://vborg.vbsupport.ru/showthread.php?t=91567

scan-pa 01-23-2007 09:47 PM

Quote:

Originally Posted by Mr Chad (Post 1166015)
did you install the hack its an addition to?

https://vborg.vbsupport.ru/editpost....post&p=1158602

your link is to edit a post. can we get a better URL please?

https://vborg.vbsupport.ru/editpost....post&p=1158602

Mr Chad 01-23-2007 09:53 PM

lol my mistake...

https://vborg.vbsupport.ru/showthread.php?t=91567

scan-pa 01-23-2007 09:56 PM

Does that donation hack work on 3.6.x? The link you posted is too a 3.5.x hack, but this hack here is listed as 3.6.x?

Mr Chad 01-23-2007 10:05 PM

yes kirby made a mod umm i cant find his post .

scan-pa 01-23-2007 11:22 PM

Quote:

Originally Posted by Mr Chad (Post 1166029)
yes kirby made a mod umm i cant find his post .

Found it, and installed it.


Thanks for your help.

Mr Chad 01-23-2007 11:32 PM

Quote:

Originally Posted by scan-pa (Post 1166087)
Found it, and installed it.


Thanks for your help.

could you post the link for others?

scan-pa 01-23-2007 11:45 PM

Quote:

Originally Posted by Mr Chad (Post 1166094)
could you post the link for others?

Page 84 onward of the topic you have the url for.

Mr Chad 01-24-2007 12:11 AM

ok for future refrence you can download the donations 3.6.X version here:
https://vborg.vbsupport.ru/attachmen...8&d=1164680562

hugh_ 01-24-2007 05:56 AM

Has anyone tried this with vbulletin 3.5?

Mr Chad 01-24-2007 06:14 AM

Quote:

Originally Posted by hugh_ (Post 1166232)
Has anyone tried this with vbulletin 3.5?

no i don't think so, but it shouldn't mess anything up. At worst it just wont make the image.

hugh_ 01-24-2007 07:57 AM

I'll try it later, thanks...

hugh_ 01-24-2007 10:07 AM

Will this work without Paypal Donations, I guess not eh?

bashy 01-24-2007 03:15 PM

When installed does it look like the demo you showed us in the example?

bashy 01-24-2007 03:20 PM

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?

Martin-TMGRS 01-24-2007 04:41 PM

Great hack :) Could you tell me how to change the $ to ? please. do I just edit the jpg image ?

Snake 01-24-2007 05:27 PM

Wow this is great!

bashy 01-24-2007 05:44 PM

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

Quote:

Originally Posted by Martin-TMGRS (Post 1166496)
Great hack :) Could you tell me how to change the $ to ? please. do I just edit the jpg image ?


scan-pa 01-24-2007 06:35 PM

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.

Mr Chad 01-24-2007 06:54 PM

Quote:

Originally Posted by bashy (Post 1166452)
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 (Post 1166496)
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 (Post 1166562)
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

Martin-TMGRS 01-24-2007 07:19 PM

Thanks Mr Chad, works sweet thanks for your help :) I to also take donations ;) (LOL)

Mr Chad 01-24-2007 09:42 PM

no problem.

bashy 01-25-2007 05:15 AM

Thanks Mr Chad, Got it sorted now.... great idea! :)

Hornstar 01-25-2007 06:27 AM

I will keep this in mind, sounds like it may help get more donations. looks good on your site.

bashy 01-25-2007 07:45 PM

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>


Mr Chad 01-25-2007 08:32 PM

lol you just copied mine...

bashy 01-25-2007 08:38 PM

i resent the implication /me runs and hides

Actually i looked at ya source code and changed to suit me :)
it bugged me for ages as to how yours revealed the More Info until
i saw ya code and realized it was as simple as collapse, it looks kinda
ajaxy lol, great hack though...well done, although it aint improved my
donations, perhaps my members arnt as well off as some lol

Notice the ? sign, yeah me neither, dont know why its looking like that lol

dutchbb 01-25-2007 10:44 PM

Its great but why did you make it for a 3.5 donations hack? Can it be done for one of the newer ones?

Mr Chad 01-25-2007 10:58 PM

because its one of the best... also you can get a 3.6.X version here:
https://vborg.vbsupport.ru/attachmen...8&d=1164680562

dutchbb 01-25-2007 11:04 PM

I used it before and having troubles with the installer I stopped using it but I'll give the 3.6 a try then, thank you.

Mr Chad 01-25-2007 11:51 PM

im running it on 3.6.3

Ricsca 01-26-2007 12:52 AM

The meter of the offers does not work me...


http://www.tartaportal.it/forums/donate.php

Mr Chad 01-26-2007 01:11 AM

did you attach the donate button to a goal?

Ricsca 01-26-2007 08:03 AM

I did alone donations of test with the button "Add A New Donor"

Ahsin1 01-30-2007 01:41 AM

Hey,

First of all thanks for such a nice hack but the problem is on my site i have 2 active goals when ever active 2nd one this hack dosent work picture shows 0$.

Please advice me some thing
Ahsin

Mr Chad 01-30-2007 02:45 AM

can you export your donation_goals table and post it here


All times are GMT. The time now is 04:22 PM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01338 seconds
  • Memory Usage 1,826KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (3)bbcode_code_printable
  • (1)bbcode_php_printable
  • (9)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (1)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (40)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.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/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.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
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete