PDA

View Full Version : Need help!


Iliana
07-06-2001, 12:55 AM
Where exactly in the index.php file do I insert the following code for this hack?

//BEGIN CHAT HACK
if ($bbusername) {
$chatbulb = 'images/off.gif';
$numchattersa = $DB_site->query_first("SELECT count(username) AS username FROM c_users");
$numchatters = $numchattersa[username];
if ($numchatters == 0)
{
$chatbulb = 'images/off.gif';
$chatmessage = 'Chat room is currently empty';
} else {
$chatbulb = 'images/on.gif';
$chatmessage = "There are $numchatters people in the chat room";
}
eval("\$chatinfo .= \"".gettemplate("chatloggedin")."\";");
} else {
eval("\$chatinfo .= \"".gettemplate("chatloggedout")."\";");
}
//END CHAT HACK

Steve Machol
07-06-2001, 01:01 AM
What chat hack is this? Didn't it come with instructions?

Iliana
07-06-2001, 01:03 AM
I'm sorry I meant to reply to the hack listed on this thread:

http://www.vbulletin.com/forum/showthread.php?s=&threadid=1344&pagenumber=1

Steve Machol
07-06-2001, 02:50 AM
[QUOTE]Originally posted by Iliana
I'm sorry I meant to reply to the hack listed on this thread:

http://www.vbulletin.com/forum/showthread.php?s=&threadid=1344&pagenumber=1