PDA

View Full Version : Has anybody done a VB stats hack?


Kevlar
08-25-2001, 05:33 PM
Alright, I'm new here... and I tried looking around but couldn't find anything like this yet.

Has anybody done like a VB stats hack? I mean to get some cool information like this?

http://www.bimmerforums.com/stats.php ?

I got most of it working, I just can't get the "most users online" feature to work. It always says the most users online is current user count.

Any ideas?

FYI... this is my first time coding PHP so if I overlooked something simple... give me a break, I'm still learning. :o

Bane
08-25-2001, 06:24 PM
I believe there are currently two people working on vb stats currently.

Znaper is working on one at http://www.german-community.de/statistik.php

And I am working on one as well.

As far as the record users, I can try playing with that a bit and try to figure something out.

JoshFink
08-25-2001, 06:56 PM
Bane, have you had any luck oin the stats code? I'm just trying to figure out if I should start my own or wait for others.

Thanks,

Josh

Kevlar
08-25-2001, 06:57 PM
Good... at least I don't feel alone in my quest for putting the board stats up.

:D

Bane
08-25-2001, 07:26 PM
Well, what Im working on is a little more in depth.. :D A bit more statistics than any others I saw so far..

My niece just led me through a half hour tirade of why that witch from little mermaid is a really horrible person so I havent even looked at the record users bit.

As far as starting your own, if you are any good you can probably do much better than I will anyway. :p If you do figure out the code let us all know.

TheProfessor
08-25-2001, 11:55 PM
Well, here it is, the statistics hack:

Create a file named stats.php. insert the following lines:


<?php
// Boardstatistics scripted by Znaper (e-mail: webmaster@znapers-board.de)

require('./global.php');

// get total members
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=$numbersmembers['users'];

// get active members
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters=$snonposters['users'];
$activemembers=$numbermembers-$nonposters;
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));

// get total posts
$countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post');
$totalposts=$countposts['posts'];

// get total threads
$countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread');
$totalthreads=$countthreads['threads'];

// get total thread views
$boardviews = $DB_site->query_first("SELECT SUM(views) AS threadviews FROM thread");
$totalviews = $boardviews[threadviews];

// get total pms
$totalpms = $DB_site->query_first("SELECT count(*) as pmcount FROM privatemessage");
$totalpm = $totalpms[pmcount];

// thanks to AA for the following lines:
// get Top 10 Posters of the last 30 days
if (isset($days)==0 and $days==0) { $days=30; }

$datecut=time()-($days*86400);

$posts=$DB_site->query("SELECT DISTINCT(userid),COUNT(postid) AS posts
FROM post
WHERE userid > 0 AND post.dateline>=$datecut
GROUP BY userid
ORDER BY posts DESC
LIMIT 10");

while ($user=$DB_site->fetch_array($posts)) {

$result=$DB_site->query_first("SELECT username
FROM user
WHERE userid=$user[userid]");
$topposters.="<tr><td><a href=\"member.php?action=getinfo&userid=$user[userid]\">$result[username]</a></td><td>$user[posts]</td></tr>";
}

// thanks to AA for the following lines:
// get Top 10 Posters of the last 24 hours
if (isset($days2)==0 and $days2==0) { $days2=1; }

$datecut2=time()-($days2*86400);

$posts2=$DB_site->query("SELECT DISTINCT(userid),COUNT(postid) AS posts
FROM post
WHERE userid > 0 AND post.dateline>=$datecut2
GROUP BY userid
ORDER BY posts DESC
LIMIT 10");

while ($user2=$DB_site->fetch_array($posts2)) {

$result2=$DB_site->query_first("SELECT username
FROM user
WHERE userid=$user2[userid]");
$toplastposters.="<tr><td><a href=\"member.php?action=getinfo&userid=$user2[userid]\">$result2[username]</a></td><td>$user2[posts]</td></tr>";
}


$co="Statistics-Hack ? 2001 by <a href=\"mailto:webmaster@znapers-board.de\">Znaper</a>, thanks to AA";
$templatesused = "";
// Only one template is used so load it when called
eval("dooutput(\"".gettemplate("boardstatistics")."\");");

// free used memory
unset($user);
$DB_site->free_result($posts);
unset($user2);
$DB_site->free_result($posts2);

?>


Save this file the root directory of your board.

Next create a template namend boardstatistics. Insert the following lines into the template:


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>

<title>$bbtitle Boardstatistics</title>
$headinclude
</head>
<body>

$header
<br>

<table cellpadding="0" cellspacing="0" border="1" width="100%" align="center">
<tr><td bgcolor="#00496C" align="center"><font face="verdana, arial, helvetica" size="2" color="Silver"><b>BOARDSTATISTIK</b></td></tr>
<tr><td bgcolor="#000333">
<normalfont>
<b>?</b> Registered Members: <b>$numbermembers</b><br>
<b>?</b> 0-Posters: <b>$nonposters</b><br>
<b>?</b> Active Members: <b>$activemembers</b><br>
<b>?</b> Active rate of all Members: <b>$activityrate %</b><br>
<b>?</b> Total Threads: <b>$totalthreads</b> threads<br>
<b>?</b> Total Posts: <b>$totalposts</b> posts<br>
<b>?</b> Total Views: <b>$totalviews</b> views<br>
<br>
<b>?</b> <b>$totalpm</b> Private Messages are stored in our Mailboxes!
<br><br><center>
<table><tr><td valign="top">

<table cellpadding="2" align="center" bordercolor="#000040" border="-1">
<tr bgcolor="#00496C"><td colspan=2 align=center><b>Top10 Poster of the last 30 days</b></td></tr>
<tr bgcolor="#00496C"><td>Username</td><td>posts</td></tr>
$topposters</table>
</td><td valign="top">

<table cellpadding="2" align="center" bordercolor="#000040" border="-1">
<tr bgcolor="#00496C"><td colspan=2 align=center><b>Top Poster of the last 24 hours</b></td></tr>
<tr bgcolor="#00496C"><td>Username</td><td>Posts</td></tr>
$toplastposters</table>
</td></tr></table>
<br><br></center>
</font></normalfont>
</td></tr></table>

$footer
<center>$co</center>
</body>
</html>


Now just call stats.php. Furthermore place a link in on of your templates so members can view the stats. I suggest forumhome ...

Greetings, The Professor!

JamesUS
08-26-2001, 05:54 AM
There is also another vBStats hack that does something slightly different. If you want to take a look, search for 'vbstats' in the Hacks forum.

Lian
08-26-2001, 12:52 PM
Very nice TheProfessor,
I'll suggest to built that into our forums,
Lian

TheProfessor
08-26-2001, 02:00 PM
Yeah, but please remeber that all credits go to Znaper and AA ...

Kevlar
08-26-2001, 04:24 PM
Random users are getting this error

Warning: Cannot add header information - headers already sent by (output started at /home/bimmer/www/main.php:7) in /home/bimmer/www/forum/admin/functions.php on line 1459

Only random users. I don't get it, but other users are telling me the error exists.

any ideas?

TheProfessor
08-26-2001, 04:29 PM
This has nothing to do with this hack, because main.php is not a part of vB ...

Kevlar
08-26-2001, 05:04 PM
Yeah, main.php is the webpage which I included the stats on.

http://www.bimmerforums.com/main.php

The page is all HTML except for some php that does the includes for my header.htm, footer.htm, last10posts and now stats.php.

But it's random... I don't see the error, but somebody else does...

Znaper
08-26-2001, 05:12 PM
Im work on a new Version of the Stats Hack, this release in the next 2 weeks.

Sarge
08-26-2001, 09:01 PM
Originally posted by Kevlar
Random users are getting this error

Warning: Cannot add header information - headers already sent by (output started at /home/bimmer/www/main.php:7) in /home/bimmer/www/forum/admin/functions.php on line 1459

Only random users. I don't get it, but other users are telling me the error exists.

any ideas?

HEy bro, this is an easy fix

since you are including the stats file onto another page, you don't need to use the header and footer information included in the template above. He designed this as a stand alone script and if you include it into a file it will print 2 headers, which is why you got a error.

What you need to do is to modify the template, so that the < head > and < foot > sections don't show . You only need the table part
Thanks
Sarge

Kevlar
08-26-2001, 09:34 PM
Here is the code that I am now using. I cannobolized the code from above to make it work on my webpage instead of in a template.


<?php
// Boardstatistics scripted by Znaper (e-mail: webmaster@znapers-board.de)

require('./global.php');

// get total members
$numbersmembers=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user');
$numbermembers=$numbersmembers['users'];

// Get newest Member

// $getnewestusers=$DB_site->query_first("SELECT userid,username FROM user WHERE userid=$numbermembers");
// $newusername=$getnewestusers['username'];
// $newuserid=$getnewestusers['userid'];

// get active members
$snonposters=$DB_site->query_first('SELECT COUNT(*) AS users,MAX(userid) AS max FROM user WHERE posts=0');
$nonposters=$snonposters['users'];
$activemembers=$numbermembers-$nonposters;
$activityrate=sprintf("%.2f",(100*$activemembers/$numbermembers));

// get total posts
$countposts=$DB_site->query_first('SELECT COUNT(*) AS posts FROM post');
$totalposts=$countposts['posts'];

// get total threads
$countthreads=$DB_site->query_first('SELECT COUNT(*) AS threads FROM thread');
$totalthreads=$countthreads['threads'];

// get total thread views
$boardviews = $DB_site->query_first("SELECT SUM(views) AS threadviews FROM thread");
$totalviews = $boardviews[threadviews];

// get total pms
$totalpms = $DB_site->query_first("SELECT count(*) as pmcount FROM privatemessage");
$totalpm = $totalpms[pmcount];

// get record users online
$getrecordusers=$DB_site->query_first("SELECT * FROM template WHERE title='maxloggedin'");

// thanks to AA for the following lines:
// get Top 10 Posters of the last 30 days
if (isset($days)==0 and $days==0) { $days=30; }

$datecut=time()-($days*86400);

$posts=$DB_site->query("SELECT DISTINCT(userid),COUNT(postid) AS posts
FROM post
WHERE userid > 0 AND post.dateline>=$datecut
GROUP BY userid
ORDER BY posts DESC
LIMIT 10");

while ($user=$DB_site->fetch_array($posts)) {

$result=$DB_site->query_first("SELECT username
FROM user
WHERE userid=$user[userid]");
$topposters.="<tr><td><a href=\"forum/member.php?action=getinfo&userid=$user[userid]\">$result[username]</a></td><td>$user[posts]</td></tr>";
}

// thanks to AA for the following lines:
// get Top 10 Posters of the last 24 hours
if (isset($days2)==0 and $days2==0) { $days2=1; }

$datecut2=time()-($days2*86400);

$posts2=$DB_site->query("SELECT DISTINCT(userid),COUNT(postid) AS posts
FROM post
WHERE userid > 0 AND post.dateline>=$datecut2
GROUP BY userid
ORDER BY posts DESC
LIMIT 10");

while ($user2=$DB_site->fetch_array($posts2)) {

$result2=$DB_site->query_first("SELECT username
FROM user
WHERE userid=$user2[userid]");
$toplastposters.="<tr><td><a href=\"forum/member.php?action=getinfo&userid=$user2[userid]\">$result2[username]</a></td><td>$user2[posts]</td></tr>";
}

$co="Statistics-Hack ? 2001 by <a href=\"mailto:webmaster@znapers-board.de\">Znaper</a>, thanks to AA";
// $templatesused = "";
// Only one template is used so load it when called
// eval("dooutput(\"".gettemplate("boardstatistics")."\");");

echo (" <font face=\"Verdana,Arial\" size=\"-1\"> ");
echo (" <b>?</b> Registered Members: <b>$numbermembers</b><br> ");
// echo (" <b>?</b> Newest Member: <b><a href=\"forum/member.php?action=getinfo&userid=$newuserid\">$newusername</a></b><br> ");
// echo (" <b>?</b> 0-Posters: <b>$nonposters</b><br> ");
// echo (" <b>?</b> Active Members: <b>$activemembers</b><br> ");
echo (" <b>?</b> Active rate of all Members: <b>$activityrate % </b><br> ");
echo (" <b>?</b> Total Threads: <b>$totalthreads </b><br> ");
echo (" <b>?</b> Total Posts: <b> $totalposts </b><br> ");
echo (" <b>?</b> Total Views: <b>$totalviews </b><br> ");
// echo (" <br> ");
// echo (" <b>?</b> <b> $totalpm </b> Private Messages are stored in our Mailboxes! </font> ");

echo ("<Table cellpadding=2 cellspacing=0 border=0 style=\"font-family:verdana,arial; font-size:xx-small;\">");
echo ("<tr><td colspan=2>Top Posters for Past 30 days</td></tr>");
echo ("$topposters");
echo ("</table>");

echo ("<Table cellpadding=2 cellspacing=0 border=0 style=\"font-family:verdana,arial; font-size:xx-small;\">");
echo ("<tr><td colspan=2>Top Posters for Past 24 hours</td></tr>");
echo ("$toplastposters");
echo ("</table>");

// free used memory
unset($user);
$DB_site->free_result($posts);
unset($user2);
$DB_site->free_result($posts2);

?>



I don't see a < head > or < foot > section you are talking about. I have a < head > as part of the HTML page like a < head > and a < / head > and a < body > and < / body >

Is that what you mean?

Sarge
08-26-2001, 09:48 PM
You posted the php file, I was referring to the template

Remove the below from your board statictics template and you will be good to go

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>

<title>$bbtitle Boardstatistics</title>
$headinclude
</head>
<body>

$header

$footer
<center>$co</center>
</body>
</html>

Kevlar
08-27-2001, 01:04 PM
<HTML>
<HEAD>
<TITLE>BIMMERFORUMS</TITLE>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">

</HEAD>
<?php
include ('header.htm');
?>
<TABLE WIDTH="<? echo("$tablewidth") ?>" BORDER="0" CELLSPACING="0" CELLPADDING="2" ALIGN="CENTER">
<TR>
<TD>
<DIV ALIGN="center">
<P><IMG SRC="grfx/yellowm.jpg" WIDTH="760" HEIGHT="72" ALT="" BORDER="0"></P>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="2">
<TR VALIGN="TOP">
<TD><FONT FACE="Verdana, Arial" SIZE="+1">Welcome to Bimmerforums.com</FONT><BR>
<BR>
<FONT FACE="Verdana, Arial" SIZE="-2">Bimmerforums.com ... bimmerforums.com. Come join us!</FONT><BR>
</P>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
<TR>
<TD BGCOLOR="#DDDDFF"><B><FONT FACE="Verdana, Arial" SIZE="-1">Main Headlines</FONT></B></TD>
</TR>
</TABLE>
<P><B><FONT FACE="Verdana, Arial" SIZE="-1">August 23, 2001 - </FONT></B><FONT FACE="Verdana, Arial" SIZE="-1">New
page is up, but still under development.</FONT></P>
<P><B><FONT FACE="Verdana, Arial" SIZE="-1">July 18th, 2001</FONT></B><FONT FACE="Verdana, Arial" SIZE="-1">
- I decided to play around with the idea of 1024x768 screen resolutions. I liked it... those who
don't have a 1024x768, UPGRADE TIME!</FONT></P>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
<TR>
<TD BGCOLOR="#DDDDFF"><B><FONT FACE="Verdana, Arial" SIZE="-1"><B>Future Gatherings</B></FONT></B></TD>
</TR>
</TABLE>
<P><FONT FACE="Verdana, Arial" SIZE="-1"><B>09/19/01</B> - Md/NoVA/DC Meet and Drive through the mountains
</FONT></P>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
<TR>
<TD BGCOLOR="#DDDDFF"><B><FONT FACE="Verdana, Arial" SIZE="-1"><B>Most Recent Threads</B></FONT></B></TD>
</TR>
</TABLE>

<? include("last10.php"); ?>

</TD>
<TD WIDTH="250">
<TABLE WIDTH="275" BORDER="0" CELLSPACING="0" CELLPADDING="2" ALIGN="RIGHT">
<TR>
<TD BGCOLOR="#DDDDFF">
<DIV ALIGN="CENTER"><B><FONT FACE="Verdana, Arial" SIZE="-1">Product Focus</FONT></B></DIV>
</TD>
</TR>
<TR>
<TD>
<DIV ALIGN="CENTER"><IMG SRC="grfx/m5engine.jpg" WIDTH="275" HEIGHT="206"><BR>
<FONT FACE="Verdana, Arial" SIZE="-1">2001 M5 Engine</FONT></DIV>
</TD>
</TR>
<TR>
<TD BGCOLOR="#DDDDFF">
<DIV ALIGN="CENTER"><B><FONT FACE="Verdana, Arial" SIZE="-1">Featured BMW</FONT></B></DIV>
</TD>
</TR>
<TR>
<TD>
<DIV ALIGN="CENTER"><IMG SRC="grfx/m3coupe.jpg" WIDTH="275" HEIGHT="139"><BR>
<FONT FACE="Verdana, Arial" SIZE="-1">Kevlar's WannaBe 2002 M3 SMG Coupe</FONT></DIV>
</TD>
</TR>
<TR>
<TD BGCOLOR="#DDDDFF">
<DIV ALIGN="CENTER"><FONT FACE="Verdana, Arial" SIZE="-1"><B>Board Information</B></FONT></DIV>
</TD>
</TR>
<TR>
<TD VALIGN="TOP">
<FONT FACE="Verdana, Arial" SIZE="-1">Top Posters:</FONT>
<? include("topposters.php"); ?>
<P><FONT FACE="Verdana, Arial" SIZE="-1"></FONT></P>

</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>

</DIV>
</TD>
</TR>
</TABLE>
<P>
<?php
include ('footer.htm');
?>
</BODY>
</HTML>



I took out most of the text to make this somewhat shorter, if you want to see the full page, go to http://www.bimmerforums.com/main.php ... The only things in the header.htm and footer.htm are regular HTML files that have a bunch of links for the menu.

So you're saying I should take out the < head > and < / head > from the HTML file?

Sarge
08-27-2001, 02:06 PM
Yes.. you only need to include the table
If you don't then you will have 2 heads and 2 body tags on the same page
Also.. your template was incorrect anyways because you forgot to start the <body> tag, but you ended </ body>
at the bottom

Use this and see if it works

<?php
include ('header.htm');
?>
<TABLE WIDTH="<? echo("$tablewidth") ?>" BORDER="0" CELLSPACING="0" CELLPADDING="2" ALIGN="CENTER">
<TR>
<TD>
<DIV ALIGN="center">
<P><IMG SRC="grfx/yellowm.jpg" WIDTH="760" HEIGHT="72" ALT="" BORDER="0"></P>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="2">
<TR VALIGN="TOP">
<TD><FONT FACE="Verdana, Arial" SIZE="+1">Welcome to Bimmerforums.com</FONT><BR>
<BR>
<FONT FACE="Verdana, Arial" SIZE="-2">Bimmerforums.com ... bimmerforums.com. Come join us!</FONT><BR>
</P>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
<TR>
<TD BGCOLOR="#DDDDFF"><B><FONT FACE="Verdana, Arial" SIZE="-1">Main Headlines</FONT></B></TD>
</TR>
</TABLE>
<P><B><FONT FACE="Verdana, Arial" SIZE="-1">August 23, 2001 - </FONT></B><FONT FACE="Verdana, Arial" SIZE="-1">New
page is up, but still under development.</FONT></P>
<P><B><FONT FACE="Verdana, Arial" SIZE="-1">July 18th, 2001</FONT></B><FONT FACE="Verdana, Arial" SIZE="-1">
- I decided to play around with the idea of 1024x768 screen resolutions. I liked it... those who
don't have a 1024x768, UPGRADE TIME!</FONT></P>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
<TR>
<TD BGCOLOR="#DDDDFF"><B><FONT FACE="Verdana, Arial" SIZE="-1"><B>Future Gatherings</B></FONT></B></TD>
</TR>
</TABLE>
<P><FONT FACE="Verdana, Arial" SIZE="-1"><B>09/19/01</B> - Md/NoVA/DC Meet and Drive through the mountains
</FONT></P>
<TABLE WIDTH="100%" BORDER="0" CELLSPACING="0" CELLPADDING="4">
<TR>
<TD BGCOLOR="#DDDDFF"><B><FONT FACE="Verdana, Arial" SIZE="-1"><B>Most Recent Threads</B></FONT></B></TD>
</TR>
</TABLE>

<? include("last10.php"); ?>

</TD>
<TD WIDTH="250">
<TABLE WIDTH="275" BORDER="0" CELLSPACING="0" CELLPADDING="2" ALIGN="RIGHT">
<TR>
<TD BGCOLOR="#DDDDFF">
<DIV ALIGN="CENTER"><B><FONT FACE="Verdana, Arial" SIZE="-1">Product Focus</FONT></B></DIV>
</TD>
</TR>
<TR>
<TD>
<DIV ALIGN="CENTER"><IMG SRC="grfx/m5engine.jpg" WIDTH="275" HEIGHT="206"><BR>
<FONT FACE="Verdana, Arial" SIZE="-1">2001 M5 Engine</FONT></DIV>
</TD>
</TR>
<TR>
<TD BGCOLOR="#DDDDFF">
<DIV ALIGN="CENTER"><B><FONT FACE="Verdana, Arial" SIZE="-1">Featured BMW</FONT></B></DIV>
</TD>
</TR>
<TR>
<TD>
<DIV ALIGN="CENTER"><IMG SRC="grfx/m3coupe.jpg" WIDTH="275" HEIGHT="139"><BR>
<FONT FACE="Verdana, Arial" SIZE="-1">Kevlar's WannaBe 2002 M3 SMG Coupe</FONT></DIV>
</TD>
</TR>
<TR>
<TD BGCOLOR="#DDDDFF">
<DIV ALIGN="CENTER"><FONT FACE="Verdana, Arial" SIZE="-1"><B>Board Information</B></FONT></DIV>
</TD>
</TR>
<TR>
<TD VALIGN="TOP">
<FONT FACE="Verdana, Arial" SIZE="-1">Top Posters:</FONT>
<? include("topposters.php"); ?>
<P><FONT FACE="Verdana, Arial" SIZE="-1"></FONT></P>

</TD>
</TR>
</TABLE>
</TD>
</TR>
</TABLE>

</DIV>
</TD>
</TR>
</TABLE>
<P>
<?php
include ('footer.htm');
?>

Kevlar
08-27-2001, 02:41 PM
I'm a bone head :o ... I understand now, I'll try it and see how it works.

Thanks.

calldaffer
05-25-2002, 03:08 AM
Alright guys, I am using this hack on my site and I like it. Can anyone tell me how I would add in a few more lines that would show me the top thread starter, member of the day, etc...can this be added in relatively easily?

Xanthine
05-25-2002, 03:44 AM
Originally posted by calldaffer
Alright guys, I am using this hack on my site and I like it. Can anyone tell me how I would add in a few more lines that would show me the top thread starter, member of the day, etc...can this be added in relatively easily? \

THIS WAS POSTED 7 MONTHS AGO!!!

:)

calldaffer
05-25-2002, 11:34 AM
Ok, so I can't use it cuz its posted 7 months ago? Anyway...I have this hack installed, and my question is does anyone know how I can add more lines into the code to reflect Top threat starter and a member of the day?

Dalius
05-25-2002, 03:33 PM
Oh my god. Why is this bumped?

Use Bane's vB Stats hack.

Mireade
04-17-2003, 09:10 AM
Hello

Thanks to Znaper and other good contributors of this thread.
:bunny:

I know this is an old thread but, I could not find anywhere else what I'm looking for.

I installed here (http://www.repaire.net/) the Boardstatistics add on by Znaper.

It works great and tell real time on my first page how many members, how many connected people and howmany threads.
All right.

I would be glad now to add one more to these items

How could I add the number of visits (sessions) today or yesterday ? (I'm not able to generate the right query for that...)

I guess it should be a few lines to add to the script but which lines ;-) ?

Thanks in advance.