![]() |
I'm wondering who has got this to work without having to clear your cookies everytime you leave the chat, in order to get the "who's chatting" updated. I saw the solution with the popup on the first page, but surely there is an automatic way...
|
Never mind, after awhile tinkering with the code I have finally got it to work :)
Simply perfect, I have it working with the IRC Bocazas chat hack and everything works fine. This hack causes no performance drop either, for those questioning this. Only thing I wish could be possible is if users using mIRC, or another chat client, could be picked up also..ofcourse that logically isn't possible with this hack. |
Quote:
[edit] Ok, I figured out how to find it in phpmyadmin, and my usergoupid's are the same, so now I don't know what I'm doing wrong....unless the db needs to be modified? I keep getting this db error when I try this: Invalid SQL: SELECT username,invisible,userid,usergroupid FROM user WHERE inchat=1 AND lastchatactivity>1041116216 ORDER BY invisible ASC, username ASC mysql error: Unknown column 'inchat' in 'where clause' mysql error number: 1054 Do I need to modify the db with this? ALTER TABLE user ADD lastchatactivity int(10) unsigned DEFAULT '0' not null ALTER TABLE user ADD inchat smallint(4) DEFAULT '0' not null If so, how do I do that? I do have phpmyadmin installed, but don't know much about it. :ermm: [edit2] AAAARRRRGGGHHHH!!! Well, I added those two to my user table, but it still didn't do anything. |
Yes, use phpMyAdmin. If you enter it, use this:
ALTER TABLE user ADD lastchatactivity int(10) unsigned DEFAULT '0' not null; ALTER TABLE user ADD inchat smallint(4) DEFAULT '0' not null A ";" was missing. Works great for me now.. but messes up another script. |
Thanks, I'll try it again then. What other script does it mess up, though? :disappointed:
|
The Top 5 Statistics hack.
In the "Top 5 Newest Members:", whenever someone joins the chat, it will put their name before the first new user. Conflict with $username. |
Ok cool. I don't use that hack anyway. :)
|
Hm, in VB 3 this gives a database eroor?
$DB_site->query("UPDATE user SET inchat='0' WHERE userid='$bbuserinfo[userid]'"); $DB_site->query("UPDATE user SET lastchatactivity=$ourtimenow WHERE userid='$bbuserinfo[userid]'"); |
Wahhh isnt it possible to rewrite that to VB3???
|
All times are GMT. The time now is 09:48 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|