The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
Hi all!
I need the ChatHack, which show me on the forum index page how many users in the chat. All in one hack pls with ZIP file .. and so ... Please .. i search all day long 4 it ... ThX Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
I don't know if I ever have posted this but it is what I use for phpMyChat. This code goes in $index.php. Just make sure to insert this code before the section in index.php that relates to 'loggedinusers'
Code:
// Chatters Hack
// Cleanup Old Users First!
// 240 = Wait 4 mins before deleteing inactive users
$DB_site->query("DELETE from c_users where u_time < ".(time() - 120)." and u_time > 0");
// Ok Get Users and Stats
$chatusers=$DB_site->query("SELECT username from c_users");
if ($chatuser=$DB_site->fetch_array($chatusers))
{
$numchatusers = $DB_site->query_first("SELECT COUNT(username) as chatcount from c_users");
$numchatuser = $numchatusers[chatcount];
$chatusername=$chatuser[username];
$activechatusers=$chatusername;
while ($chatuser=$DB_site->fetch_array($chatusers))
{
$chatusername=$chatuser[username];
$activechatusers.=", ".$chatusername;
}
if ($numchatuser == 1)
{
$numchatuser = "1 User";
}
else
{
$numchatuser = $numchatuser . " Users";
}
}
else
{
$numchatuser = "No Users";
}
$activechatusers will be be the list of user names. I access these two variables from the loggedinusers template. |
|
#3
|
|||
|
|||
|
hmm..
where can i find phpmychat ??? and , i have to install it normaly? then your source in index.php , and all must work ? |
|
#4
|
|||
|
|||
|
|
|
#5
|
|||
|
|||
|
oh man,
that site doesn´t work .... blank site shit .. where can i get the chat zip file.... |
|
#6
|
|||
|
|||
|
Works for me but here is the file http://www.phpheaven.net/download.ph...hat-0.13.1.zip
|
|
#7
|
|||
|
|||
|
thx !
|
|
#8
|
|||
|
|||
|
one question after all..
i have vbulletin installed in my mysql can i install phpmychat in the same mysql? without errors? thx 4 answer! |
|
#9
|
|||
|
|||
|
yes
|
|
#10
|
|||
|
|||
|
forget the question above.
so i installed the chat. so now i desided, to insert the code in index.php but if i do, i get an database error ! ![]() and also i wondering, where the code is to login in the chat ! ? please help ! thx |
![]() |
|
|