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.
$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):
Originally posted by Steph2k Hmmm. I did this but it does not seem to be working for me. Any other ideas?
That should do the job, its worked perfectly for me since I made that modification to my forums. I would guess that its something else that is causing the problem.
Is it vBhome or vBindex you have? If its vBhome then this is the wrong thread.
57 is a high number of queries, you want to try and keep it bellow 30 for optimal performance, if you don't have many conncurrent visitors though it doesn't matter to much.
sorry i have vbindex ...... the one on this thread. why is my vbindex running so many queries ???
Originally posted by Vinney sorry i have vbindex ...... the one on this thread. why is my vbindex running so many queries ???
Because of all the stuff you have displayed on the page, the only way to reduce the number of queries is to remove sections of the code, like news, latest threads, polls etc.
Great mod peoples. I have successfully got it running rather smoothly in the directory below my forums (the hack is installed in /, the forums under /forums). I just have one problem though... (of course I do, otherwise I wouldn't be writing this)
If I write a post in the news forum like:
Quote:
This is written on the first line.
This is written on the third line, and there is a blank line between this and the first line.
it shows on the vbindex page as:
Quote:
This is written on the first line. This is written on the third line, and there is a blank line between this and the first line.
ie., the line breaks appear in the post, but not on the vbindex page.
This is the only lil minor problem that I'm having at the moment. I've tried looking in the vbindex.php file, and from what I can see, the following three lines get the post from the database:
Quote:
$getnews=$DB_site->query_first("SELECT * FROM post WHERE threadid='$newsthreadid' ORDER BY postid ASC LIMIT 1");
$newstext=bbcodeparse($getnews[pagetext],$newsforum,1);
$newstext=str_replace("<br />","",$newstext);
Has anyone been able to get line breaks to appear in the vbindex page? If so, how did you do it?
Also, with the amount of codefixes and ammendments that have been made since the v1.3 release, are we likely to see v1.4 soon?
Originally posted by Spingo This is the only lil minor problem that I'm having at the moment. I've tried looking in the vbindex.php file, and from what I can see, the following three lines get the post from the database:
Remove this line to allow line breaks in the newsblock
PHP Code:
$newstext=str_replace("<br />","",$newstext);
Quote:
Also, with the amount of codefixes and ammendments that have been made since the v1.3 release, are we likely to see v1.4 soon?
I have no idea if el3m3nt is supporting or going to release a new version of this hack, he doesn't seem to post much in this thread, I may see about releasing a new version if he isn't going to and theres any interest.
Page generated in 26.07498503 seconds (0.43% PHP - 99.57% MySQL) with 65 queries.
This is why its so slow, the main page has 65 queries on it. You will need to remove some functions from your vbindex PHP file to reduce the number of queries and thus speeding up the load time of the page.
Hi all, i've just installed this hack here (soon to be here), and so far it's looking really good.
What I want to do, once i've moved the forum to GameVine.co.uk is use this file in the root directory rather than the forum dir, what would I need to change in order for this to be possable?
Cheers (sorry if this quistion has already been asked, but over 300 posts is a bit too much to track though)