Version: 1.00, by el3m3nt
Developer Last Online: Oct 2002
Version: 2.2.x
Rating:
Released: 04-04-2002
Last Update: Never
Installs: 75
No support by the author.
Latest Version: 1.3
This hack is not very special for me. I just wanted to create a mainpage on which you can see.. (as a member) everything what u like to see. The idea of the script is similar to the vbHome of nakkid and also a little bit to the vBPortal. I tested all of them.. but i was looking for something better . so i decided to write such a script myself...
Features:
Active threads & newest posts
News & Polls (read from a newsforum and a pollforum)
Quick CP Links on the index-site
Buddies on the index-site
Very easy to customize. Just edit the templates!
Available in english and german!
Summary: On this index-site you can see everything what you as a member would like to see .
Credits
Newscode part from vBHome by nakkid.
Onlinetodaycode part from Online Today Hack by Mystics.
Pollcode part from vBPortal by wajones.
Note!
I'd really like to get every feedback you guys can give me. Also post bugreports and suggestions to improve this script. If you have installed this hack, pls click on the install button to receive updates thru email. Thank you .
Show Your Support
This modification may not be copied, reproduced or published elsewhere without author's permission.
Hmmm...something is awry...the fix didn't work for me.
This is what happens, I have the php file loaded up for test purposes until I figure all of it out. It is named newindex.php just for ease of use (I haven't really messed with it since installing it). If I go to my forum the number "Most users ever online" works and functions like it should.
If I pull up the newindex.php it resets the "most users ever online" back to one (or however many are online at that time). I don't click anything it just changes on the load.
I followed the instructions you left above but it didn't seem to cure it.
$todayusers=$DB_site->query("SELECT userid, username, usergroupid, lastactivity, invisible FROM user
WHERE lastactivity > " . mktime(0,0,0,date("m"),date("d"),date("Y")) . "
ORDER BY username");
while ($todayuser=$DB_site->fetch_array($todayusers)) {
$numbertodayonline++;
if ($todayuser['invisible']==1 and $bbuserinfo['usergroupid']!=6) {
$numbertodayonlineinvisible++;
continue;
}
}
$DB_site->free_result($todayusers);
if ($bbuserinfo[usergroupid] == 6) {
$todayonline = $numbertodayonline;
} else {
$todayonline = $numbertodayonline - $numbertodayonlineinvisible;
}
//today online hack by Mystics - end
The downside to this is that you can't display the number of registered users logged in today on the vBindex page, so you also need to remove (or comment out):