![]() |
I forgot an extra field in the "memberstats" template:
insert: <input type="hidden" name="userid" value="$userid"> beneath: <input type="hidden" name="action" value="userstats"> That's it |
Ok, Chris; Your wish is fullfilled, the stats also support now an increasing line, demo:
http://feyenoordforever.nl/forum/sta...action=vbstats Just check the "oplopend?" checkbox en click on submit... I updated the first message in this thread AND the readme.txt in the zipfile, so if you're installing this for the first time you'll be fine. If you allready installed the hack there are a couple of thing you need to do: 1) Download the updated zipfile and replace your existing "vbstats.php" with the new one 2) Edit the "memberstats" template: Change <img src="vbstats.php?orderby=$orderby&what=members&use rid=$userid"> to <img src="vbstats.php?orderby=$orderby&what=members&use rid=$userid&max=$max&increased=$increased"> and add: <b><smallfont>Increasing?</b></smallfont><INPUT type="checkbox" value="true" name="increased"> before: <select name="orderby"> 3) Edit the "vbstats" template: change: <img src="vbstats.php?orderby=$orderby&what=users"> to: <img src="vbstats.php?orderby=$orderby&what=users&max=$max&increased=$increased"> change: <img src="vbstats.php?orderby=$orderby&what=posts"> to: <img src="vbstats.php?orderby=$orderby&what=posts&max=$max&increased=$increased"> change: <img src="vbstats.php?orderby=$orderby&what=threads"> to: <img src="vbstats.php?orderby=$orderby&what=threads&max=$max&increased=$increased"> and add: <b><smallfont>Increasing?</b></smallfont><INPUT type="checkbox" value="true" name="increased"> before: <select name="orderby"> (the updated parts are in bold) That's it! Let me know if it worked :) [Edited by Mas*Mind on 11-01-2000 at 05:09 PM] |
Updated it and worked perfect!!! :D
Thanks for this great hack! |
wow,,, that is brilliant.
now problem installing ! if i do this url: http://www.ascifi.com/forums/vbstats...increased=true i get all sorts of errors about no TTF in this build. What do i change to make it use Gif which is supported? Also, just doing http://www.ascifi.com/forums/vbstats...action=vbstats just gives blank images. Is this because of the above problem? I would love to see this hack on my site, thanks so much for the work. |
Requirements
This class was developed on Linux 2.2.14, Apache/1.3.12 with PHP 4.0.1pl2, GD Version 1.8.3, PNG-Support and TTF-Support enabled. Guess you'll have to enable TTF support, I'm no expert on installing PHP on linux so I can't help you on this :( |
arrrr.ok
|
I'm having the same problem as eva2000 - the page just comes up totally blank:
http://www.edevboards.com/stats/vbst...action=vbstats |
Did all of you overlooked their code after we find the little errors? I got the same prob like eva but could fix it with the above code.
Also look or try if it works when you change from gif --> png --> jpg. I had to do so. |
No it still doesn't seem to work. I've gone through all the code changes you have said in this thread, and tried both gif and png (those are the only two my server supports.).
Any more suggestions anyone? :) |
I'm stumped on this :(
Try this: Put this function: function debug($line, $debug) { if($debug) print "$line<br>\n"; } beneath the increased function in vbstats.php (all the way down) and put this line: debug(__line__, $debug); a couple of times between de code in vbstats.php...Try to put it on every spot between de "case this" etc... so it may look like this: case "userstats" : debug(__line__, $debug); $what = $GLOBALS[what]; $max = $GLOBALS[max]; $orderby = $GLOBALS[orderby]; $userid = $GLOBALS[userid]; $increased = $GLOBALS[increased]; eval("echo dovars(\"".gettemplate("memberstats")."\");"); break; case "vbstats" : debug(__line__, $debug); etc.. Then run the script again but with &debug=1 on the end...Then you can follow it and see where it stops... This won't solve the problem, but we'll be able to see what goes wrong (I hope) |
All times are GMT. The time now is 12:18 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 | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|