Quote:
Originally Posted by taffy056
I want to keep this as simple as humanly possible, adding crons and whatnot are too intensive in my eyes, I will figure this one out, no worries
|
Crons are the best and near only way to keep things non intensive, a cron to update the ammount of users online would be best.
You
need to add indexs to the datelines in the thread and post tables, which should reduce the query times even more, for the two table scans to get the ammount of new posts.
simplicity is not the best way when it comes to some things.
The data that you want to get can be very strenious on the server, esp done on everypage load for every user, including guests it seems, very bad idea, guests DO NOT need to see this data, and most of it would be flawed to them as well.
As far as Avatars go, try this in the config.php file
define('AVATAR_ON_NAVBAR', 1);
And this in the navbar.
<img src="image.php?$session[sessionurl]u=$bbuserinfo[userid]&dateline=$bbuserinfo[avatardateline]" title="$bbuserinfo[username]'s Avatar" alt="Avatar" border="0" />