The JPilot integration has been going really nicely, and I'm getting ready to launch it publicly. The problem is still making the people in the chat room show up.
I want the chatters to show up in Who's In Chat just like the $activeusers do in Who's Online, pulling the info from the location field. I can install other hacks fine, and do small hacks with html and variables, but I'm lost on this one. I know the answer has to be fairly simple!
I want to: determine if the user is on the chat forum, get the users name and stick it on the main page in Who's in Chat (like Who's Online. I've also added $chatusers to the forumhome_loggedinusers template.
Here is what I have so far. I know it's wrong, perhaps someone can show me what I am missing and doing wrong!
I edited index.php and right after this:
Code:
} else {
$username=$loggedin['username'];
}
$location=$loggedin['location'];
I put this:
Code:
if ($location['forum']==105) { //chatuser hack
$chatuser=$loggedin['username'];
}
105 is the number of my forum which I've converted to do chat in. Any help would be appreciated! I will also try the chat user hack a few posts up and see if that works. I don't have an egg bot, maybe there is a way to alter that code.
Thanks,
TigerLily
PS If you are trying to integrate Jpilot and you're having trouble with the smilies showing up, put them in their own table. I don't know why it makes a difference, but it works!