The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Details »» | |||||||||||||||||||||||||
VBStats version 1.0
This hack creats some graphical statistics of your vBulletin Forum. Demo1, this shows some general statistics about your board (posted posts, posted threads, new users) http://feyenoordforever.nl/forum/sta...action=vbstats Demo2, this shows the posting statistics of a particular member (in this case memberid 1 which is me) http://feyenoordforever.nl/forum/sta...stats&userid=1 You can sort everything per month, per week or per day. It uses the Ykcee class (http://ykcee.sourceforge.net) Note: It works ONLY if your server has installed the GDLIB library! Follow the following orders very carefully. There are no changes for you vBulletin files needed First download the zip-file: http://www.feyenoordforever.nl/vbhacks/VBStats.zip 1- Open "vbstats.php" and change the variables on top to your needs. (For explanation of the ykcee variables go to: http://ykcee.sourceforge.net/index.php?MAINNAV=2) 2- If your server is running a PHP version smaller than 4.0 then uncomment the array_slice function in "vbstats.php" (eg: remove /* and */ and the 'Uncomment this if you have a PHP version smaller than 4.0' line) 3- Make a new directory into your vBulletin root directory and call it "stats". 4- Copy "vbstats.php", "ykcee.php", "VERDANA.TTF", "VERDANAB.TTF" and "VERDANAI.TTF" to this directory. 5- Chmod vbstats.php to 755 if you're server is running php in cgi-mode. 6- Make a new template in your vBulletin control panel called "vbstats" 7- Insert the following HTML in it (You can change it to your own design, only leave the $orderby variable and the "action", "max" and "orderby" fields): <html <head><title>$bbtitle Statistics</title></head> <body bgcolor="#7d7092" text="#000000" id=all leftmargin="10" topmargin="10" marginwidth="10" marginheight="10" link="#000000" vlink="#000000" alink="#000000"> <form method="POST"> <table width="100%"> <tr> <td align="center"> <table> <tr> <td align="center"> <img src="vbstats.php?orderby=$orderby&what=users&max=$ max&increased=$increased"> </td> </tr> <tr> <td align="center"> <img src="vbstats.php?orderby=$orderby&what=posts&max=$ max&increased=$increased"> </td> </tr> <tr> <td align="center"> <img src="vbstats.php?orderby=$orderby&what=threads&max =$max&increased=$increased"> </td> </tr> <tr> <td align="center"> <input type="hidden" name="action" value="vbstats"> <input type="hidden" name="max" value="15"> <b><smallfont>Increasing?</b></smallfont><INPUT type="checkbox" value="true" name="increased"> <select name="orderby"> <option value="month">Per month</option> <option value="week">Per week</option> <option value="day">Per day</option> </select> <input type="submit" value="Submit"> </td> </tr> </table> </td> </tr> </table> </form> </body></html> 8- Create somewhere you want in your forumtemplates a link to "http://yourdomain.com/forum/stats/vbstats.php?action=vbstats" 9- Create a new template in your control panel called "memberstats" 10- Insert the following HTML in it (You can change it to your own design, only leave the $orderby and $userid variables and the "action", "max" and "orderby" fields): <html <head><title>$bbtitle Member Statistics</title></head> <body bgcolor="#7d7092" text="#000000" id=all leftmargin="10" topmargin="10" marginwidth="10" marginheight="10" link="#000000" vlink="#000000" alink="#000000"> <form method="POST"> <table width="100%"> <tr> <td align="center"> <img src="vbstats.php?orderby=$orderby&what=members&use rid=$userid&max=$max&increased=$increased"> </td> </tr> <tr> <td align="center"> <input type="hidden" name="action" value="userstats"> <input type="hidden" name="userid" value="$userid"> <input type="hidden" name="max" value="15"> <b><smallfont>Increasing?</b></smallfont><INPUT type="checkbox" value="true" name="increased"> <select name="orderby"> <option value="month">Per month</option> <option value="week">Per week</option> <option value="day">Per day</option> </select> <input type="submit" value="Submit"> </td> </tr> </table> </td> </tr> </table> </form> </body></html> 11- Create a link to "http://feyenoordforever.nl/forum/stats/vbstats.php?action=userstats&userid=$userid" in your "getinfo" template (the template for the userprofiles) OR insert just a little html in the "getinfo" template to show the image directly: <img src="stats/vbstats.php?vbstats.php?orderby=week&what=members& userid=$userid"> (change the orderby variable to suit your needs) That's it! The "max" variable is to set a maximum of the displayed days/weeks/months...otherwise you had to much of them and the image got real messy. You can change it if you want or let the user choose the max value by creating a dropdownlist or a input field in your template called 'max' The only problem I have is that if there is a period of inactivity the graphic isn't represented as it should, (see the 'geplaatste threads' graphic at http://feyenoordforever.nl/forum/sta...&orderby=month ) and note how there ar a few months missing...In fact the space between januari and july should be bigger than it is, but it's too complicated to fix that.... I might fix it later... Let me know what y'all think enjoy! [EDIT]Forgot the download link...DOH![/EDIT] [Edited by Mas*Mind on 11-01-2000 at 04:49 PM] Show Your Support
|
Comments |
#42
|
|||
|
|||
Great hack. Can I see one done in english?
|
#43
|
|||
|
|||
ImageTtfBBox: No TTF support in this PHP build in /home/httpd/html/forum/stats/ykcee.php on line 436
I got this error for the images. What's wrong. |
#44
|
|||
|
|||
Quote:
|
#45
|
|||
|
|||
<a href="http://www.adolescentadulthood.com/phpinfo.php" target="_blank">http://www.adolescentadulthood.com/phpinfo.php</a>
You can get the info from there. It's 4.0.3pl1 I think that perhaps my webhost hasnt installed ttf support, and i've asked them to do it for me. |
#46
|
|||
|
|||
thats the most likely reason
|
#47
|
|||
|
|||
This is what my webhost said:
I have recompiled your php with version 4.0.4. According to http://www.adolescentadulthood.com/info.php ttf support is included in this build of php. However, ttf support is shown to be not included by http://www.adolescentadulthood.com/f...t=users&max=15 Can anybody help? |
#48
|
|||
|
|||
You need to compile TTF support into the GD library...
It should be: gd GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled FreeType Linkage with TTF library GIF Support enabled |
#49
|
|||
|
|||
Thank you. I will notify them immediately. I dont dare mess with the settings myself.
|
#50
|
|||
|
|||
i had to change my $graph->SetFileFormat("gif"); to png ($graph->SetFileFormat("png") because i am running gd 1.8.3. but somehow all the images turn out to be fully black (nothing else)
another question i saw someone running a gd version highter than 1.6.2 with GIF support ? i thought they removed GIF support since version 1.6 due to legal problems ... ? any help here is appreciated thanks in advance [edit]: my gd specs. GD Support enabled GD Version 1.6.2 or higher FreeType Support enabled FreeType Linkage with TTF library PNG Support enabled |
#51
|
|||
|
|||
Hi there i was just wondering if one of you ever find why we get broken image...i have read all the tread make the change but still get this broken image if someone ever figure out plz let me know
btw cool hack |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|