The reason I posted this is no body has made a good solution for showing who is in the chat when using vbulletin.
The code works fine with reloading and I don't see any performance changes. It works well.
As for the code I stole, it was only the
----
if ($showforumusers) {
$datecut = $ourtimenow - $cookietimeout;
$chatters = '';
$comma = '';
$forumusers = $DB_site->query("SELECT username, invisible, userid
FROM user
WHERE inchat = 1 AND
lastchatactivity > $datecut");
while ($forumuser = $DB_site->fetch_array($forumusers)) {
if (!$forumuser['invisible'] or $bbuserinfo['usergroupid'] == 6) {
$userid = $forumuser['userid'];
$username = $forumuser['username'];
if ($forumuser['invisible'] == 1) { // Invisible User but show to Admin
$invisibleuser = '*';
} else {
$invisibleuser = '';
}
eval("\$chatters .= \"".$comma.gettemplate('forumdisplay_loggedinuser' )."\";");
$comma = ', ';
}
}
}
------
I would have rewrote, but why do it if one is already main availble. I have noted it's your code. I really don't care if you or I made it. I am not here for competition! I am here to offer some sort of solution to your problems. I mentioned your name.
ITS GEORGEOFCS CODE!!! Yes those 10 lines are his code. It works well. If he won't allow you to use it, I will write my own.
I am sorry for the missunderstanding, I thought this is a community for sharing ideas. Seems to me it's a popularity spike.
I am not selling the code, so don't worry no million is going to arrive at my door.
Cheers
-Dom
|