Version: , by trilOByte
Developer Last Online: Sep 2013
Version: 2.2.x
Rating:
Released: 12-24-2001
Last Update: Never
Installs: 570
No support by the author.
Well, with over 200 downloads and 32 problem free install's, I though it time to take this out of the beta hacks forum (note, there are no changes to the file in the beta forum, so no need to re-download if you already have the hack installed).
I put this together originally as a walkthrough for an admin friend, and thought someone might find it useful. Althouth technically, my contribution is a couple of simple template edits, it does contain hacks posted previously.
Like I said, it's a combination of 2 previously relesed hacks (both credited fully). One by Firefly (avatar hack) and one by MrLister (since your last visit). It combines both of these hacks into a welcome panel at the top of the BB, just like the one here and on a few other sites. I'm pretty much a newbie to vB hacking, and struggled to put this together myself (couldn't find any instructions/hacks etc), but I think I've done an OK job. Maybe this will save a few headaches to others like myself
Anyway, here's a pic to illustrate the hack/edit (or whatever it is )
Oh yeah, btw.... I was experienceing forum slowdown's, especially during peak time, and it was the worst on the forumhome... well I ran the sql explain stuff and found out that the line:
PHP Code:
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'");
was causing a major slowdown because there was no index on post.dateline, if you add an index on it (and thread.lastpost for good measure since it has a similar query) you should see a nice speed improvement, especially if you have a good number of posts (my forum is approaching 400,000).
[QUOTE]05-01-03 at 07:18 PM eoc_Jason said this in Post #402 Oh yeah, btw.... I was experienceing forum slowdown's, especially during peak time, and it was the worst on the forumhome... well I ran the sql explain stuff and found out that the line:
PHP Code:
$getnewpost=$DB_site->query_first("SELECT count(*) AS posts FROM post WHERE dateline > '$bbuserinfo[lastvisit]'");
was causing a major slowdown because there was no index on post.dateline, if you add an index on it (and thread.lastpost for good measure since it has a similar query) you should see a nice speed improvement, especially if you have a good number of posts (my forum is approaching 400,000).
easiest way would be to use phpmyadmin, you can just click the index button on the dateline column in the post table. Or, if you know how to use MySQL from the command line, let me know and I can tell you how to do the Alter Table command.