Results 1 to 15 of 65
Page 1 of 5
FirstFirst 1 2 3 ... LastLast

Thread: [RELEASE] VBStats version 1.0

  1. #1
    Senior Member Mas*Mind has disabled reputation
    Join Date
    Jun 2000
    Location
    Amsterdam, The Netherlands
    Age
    30
    Posts
    1,450
    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]
    Last edited by Mas*Mind; Fri 13th Apr '01 at 4:36am.
     

  2. #2
    Senior Member The_Sisko is on a distinguished road The_Sisko's Avatar
    Join Date
    Jun 2000
    Location
    Hamburg, Germany
    Age
    31
    Posts
    382
    I installed it on my board, but frist I had to clean up some small mistakes!

    http://www.startrek-download.de/vbb/...action=vbstats

    Great work, but look over your readme again, I found a lot of small misstakes!
    The Sisko
    SciFi-Forum.de
     

  3. #3
    Senior Member Mas*Mind has disabled reputation
    Join Date
    Jun 2000
    Location
    Amsterdam, The Netherlands
    Age
    30
    Posts
    1,450
    Can you give some detailed information? Because I can't find anything I forgot/told wrong...

    Btw: You can change the colors of the graphics to suit your site...Look into the vbstats.php
     

  4. #4
    Senior Member chrispadfield is on a distinguished road chrispadfield's Avatar
    Join Date
    Aug 2000
    Location
    London, UK
    Age
    28
    Posts
    5,368
    sorry to sound ignorant, how do i know if the GDlib library is installed? a friend installed php for me and i don't know.

    Thanks
     

  5. #5
    Senior Member Mas*Mind has disabled reputation
    Join Date
    Jun 2000
    Location
    Amsterdam, The Netherlands
    Age
    30
    Posts
    1,450
    Create a php-script with the following code in it:

    Code:
    <?php
    
    phpinfo();
    
    ?>
    Then call that script from your webbrowser and it'll tell you somewhere if GDLib is enabled

    EG: http://feyenoordforever.nl/phpinfo.php

    And search there for GD, it says for me:

    GD Support enabled
    GD Version between 1.3 and 1.6.1
    FreeType Support enabled
    FreeType Linkage with TTF library
    GIF Support enabled

    BTW: If your GD-version only supports another file-format (png for example) you can change it in vbstats.php:

    $graph->SetFileFormat("gif");

    'gif', 'jpg' and 'png' are supported
     

  6. #6
    Senior Member chrispadfield is on a distinguished road chrispadfield's Avatar
    Join Date
    Aug 2000
    Location
    London, UK
    Age
    28
    Posts
    5,368
    http://www.ascifi.com/refer/phpinfo.php

    GD Support enabled
    GD Version between 1.3 and 1.6.1
    GIF Support enabled

    yipee guessing that is enough.

    Question:

    The graphs do posts/month, user/month etc. What about a graph for over time, ie one that steadily rises but you can see it going up and up and up. What do you think? I would like that.

    Cool hack, really original. Thanks.
     

  7. #7
    Senior Member Mas*Mind has disabled reputation
    Join Date
    Jun 2000
    Location
    Amsterdam, The Netherlands
    Age
    30
    Posts
    1,450
    I don't think I understand that last suggestion...

    You mean a more fluid (is that the right word in english?) line in stead of one that goes from point to point in straight lines?

    tell me plz
     

  8. #8
    Senior Member chrispadfield is on a distinguished road chrispadfield's Avatar
    Join Date
    Aug 2000
    Location
    London, UK
    Age
    28
    Posts
    5,368
    nope. At the moment it plots:

    January : 156 posts
    February : 212 posts
    March : 131 post etc.

    I would also like if possible:

    January : 156 posts
    February : (Jan + February) = 368
    March (Jan + Feb + March) = 499

    so you get a graph that shows the forum growing over time.
     

  9. #9
    Senior Member Mas*Mind has disabled reputation
    Join Date
    Jun 2000
    Location
    Amsterdam, The Netherlands
    Age
    30
    Posts
    1,450
    Ah yes...

    I thought about that and will look into that when I've time
     

  10. #10
    Senior Member chrispadfield is on a distinguished road chrispadfield's Avatar
    Join Date
    Aug 2000
    Location
    London, UK
    Age
    28
    Posts
    5,368
    cool, thanks. Again, great hack!
     

  11. #11
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    didn't work for me... just came up blank

    mine says


    GD Support enabled
    GD Version between 1.3 and 1.6.1
    GIF Support enabled


    but didn't work ?
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  12. #12
    vBulletin Team eva2000 is on a distinguished road eva2000's Avatar
    Join Date
    May 2000
    Location
    Brisbane, Australia
    Posts
    29,252
    i am not sure, but ain't templates 'vbstats' and 'memberstats' meant to be referenced in global.php as well for the templates to work ? can't remember is it global.php in admin directory or forum ?
    _
    * Required server info for server performance issues here
    * Choosing right cpus for high concurrency vB servers

    => Xeon Nehalem-EP 55xx > Xeon 54xx harpertown > Xeon 53xx > Opteron
    => vB4 FAQ | vB 4 Features | vB4 Syle Info | Internet brand Message
    => IBxAnders vB4.0 Search & InnoDB | InnoDB conversion | Large forums drive configs!
     

  13. #13
    vBulletin Team Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke is a name known to all Wayne Luke's Avatar
    Join Date
    Aug 2000
    Location
    So. California
    Age
    38
    Posts
    34,662
    Blog Entries
    1
    Originally posted by Mas*Mind
    Create a php-script with the following code in it:

    Code:
    <?php
    
    phpinfo();
    
    ?>
    Then call that script from your webbrowser and it'll tell you somewhere if GDLib is enabled

    EG: http://feyenoordforever.nl/phpinfo.php

    And search there for GD, it says for me:

    GD Support enabled
    GD Version between 1.3 and 1.6.1
    FreeType Support enabled
    FreeType Linkage with TTF library
    GIF Support enabled

    BTW: If your GD-version only supports another file-format (png for example) you can change it in vbstats.php:

    $graph->SetFileFormat("gif");

    'gif', 'jpg' and 'png' are supported
    You don't have to create a new script... Just call the index.php in your admin folder with an action of phpinfo.

    i.e. http://yourforum.com/youradmin/index.php?action=phpinfo
    Wayne Luke
    Get started with your own social network.
    Purchase and download vBulletin today.
    vBCodex (Running vB 4.0 Suite) - Take your vBulletin Community to the next level. Modification tips, tricks and support.
     

  14. #14
    Senior Member Mas*Mind has disabled reputation
    Join Date
    Jun 2000
    Location
    Amsterdam, The Netherlands
    Age
    30
    Posts
    1,450
    Eva > Nope, there is absolutely no need to change anythying in the Vbfiles...
    I've no clue what could be wrong, but The_Sisko allready said my manual was incomplete so I may forgot something (I don't know what it might be )
    What do you mean by blank? Doesn't an image show up at all? Don't you even see the form button/select field?
    More info plz, and an URL if you have that.

    wluke > Thanks! didn't know that
     

  15. #15
    Senior Member The_Sisko is on a distinguished road The_Sisko's Avatar
    Join Date
    Jun 2000
    Location
    Hamburg, Germany
    Age
    31
    Posts
    382
    Originally posted by Mas*Mind
    Can you give some detailed information? Because I can't find anything I forgot/told wrong...

    Btw: You can change the colors of the graphics to suit your site...Look into the vbstats.php
    First off all I tried to change it, but didn't realy fit. I try it later again!

    I overlook my changes and find maybe I made a mistake and fixed thsi one and had so had to fix some more....

    But still you said make a link to:
    http://feyenoordforever.nl/forum/sta...ction=fmbstats
    but I thing it ahve to be:
    http://feyenoordforever.nl/forum/sta...action=vbstats
    otherwise a blank page shows up.

    So you also have to change in the first template the line:
    <input type="hidden" name="action" value="fmbstats">
    to
    <input type="hidden" name="action" value="vbstats">

    Otherwise it woukd work for me.
    Oh and I I had to use png in the vbstats.php, but this is only for my Server!

    Tell me if this is corect or do I make a mistake, then I apologize.

    P.S.: Also close in the first template the <HTML> TAG, thats it.
    The Sisko
    SciFi-Forum.de
     

Page 1 of 5
FirstFirst 1 2 3 ... LastLast

Similar Threads

  1. [Release v2.0.3] vbStats
    By Bane in forum Releases: Version 2.x
    Replies: 213
    Last Post: Fri 26th Oct '01, 9:58pm
  2. Release date: Version 2.0 (PHP3 version)
    By Caesar in forum vBulletin 2 'How Do I' and Troubleshooting
    Replies: 3
    Last Post: Thu 22nd Feb '01, 11:08am
  3. Is there a release date for the new version?
    By brookelyn in forum vBulletin 1.1.x Questions
    Replies: 2
    Last Post: Wed 13th Sep '00, 12:06pm

Bookmarks

Posting Permissions

Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts