![]() |
Show "who's in chat room" on forum home page with integrated phpmychat!
This would greatly help getting more people into my integrated phpmychat room, since when users are on the main forum page they can see who's online in the chat room.
Currently I'm only asking for a number (digit) of the people who are in the chat room, but if it were somehow possible to get it displaying the usernames, that would be really sweet. I know this isn't a Vbulletin hack, but in a sense it is since you are modifying/adding code to Vbulletin templates and php files. (it would also be really cool if done). thanks :D |
1 Attachment(s)
DO you want attachment ?? :p
sorry , my english is poll !! :paranoid: |
You bet I do! In..uh, english that is http://www.diffusion4.com/images/smi...tdroplaugh.gif
|
1 Attachment(s)
DO you want attachment ?? :p
if you want it . you need to Looking for: ==================== index.php PHP Code:
Add the string after it....: ======================== PHP Code:
<font color=red> $numchatters</font> member<font color=green>$chat_username</font> in<a href="/green/chat/index.php3? U=$username&PASSWORD=&N=20&D=10" target="_new" title="go to chat"> <font color=#B50101>your chat</font></a> ========================== sorry , my english is poll !! :paranoid: |
I hate to say it but that didn't work at all! I tried it and it simply gave me an error when I loaded up my forums. Are you talking about forum/index.php for another index.php? I can't see how the code above references to the chat log. Please help me out :D
|
well i agree a hack of this nature would be nice hopefully someone can get soemthing that works for us who would like to have it
|
i think about your database !!
beacause my chat install database the same vbb and i do it you can try again ;) |
What Vbulletin version do you have mem? I tried to install it on 2.2.4 and just gave me errors. I'll try again though, hey what is the link to your forums mem? I wanna see the hack :D
|
Quote:
my forums http://www.greenkiss.com/green ;) my chat http://www.greenkiss.com/green/chat/index.php3 |
Here is the error I get:
-------------------------------------------------------- Database error in vBulletin 2.2.4: Invalid SQL: DELETE from c_users where u_time < 1018581979 and u_time > 0 mysql error: Table 'velocd_Vbulletin.c_users' doesn't exist mysql error number: 1146 Date: Thursday 11th of April 2002 11:30:19 PM Script: http://www.diffusion4.com/index.php? Referer: http://www.diffusion4.com/admin/index.php?action=head -------------------------------------------------------- Are there any values that I should be changing from your code?? |
the install of the datebase between the chat and vbb shold be in the same datebase
|
Same database..?? Don't each require 1 database, of their own? Let me check this out really quick on my cpanel...
edit: Is there a way I can switch over my phpmychat database to the one using vbb (ofcourse maintaining the vbb). What config file do I use or to modify to specify a different database? Anybody? |
1 Attachment(s)
IT's my database
|
Quote:
|
I tried to install the hack as well on v2.2.5 - nothing - no error message or anything - I have already integrated vb and phpmychat - the template you have calls for others that are not automatically placed in the directory?
|
Quote:
|
OK got it working now - great hack - I changed a few things around to get it to wrok a little better - and read a little easier - outstanding!
|
I can tell you like airplanes THF. When I checked your hobby forums, I saw no reference whatsoever on the forum home page to how many users were currently online in the chat room, so I'm not sure where you put it or if you got it up. :/
|
It is on the forums page under newest member!
|
1 Attachment(s)
???? Not seeing it.
(see attachment) |
Can you see the "store" info on the left side - I guess only members can see the who's chatting?
|
Sweet, I successfully (and very easily) moved my tables to another database, and now the hack works perfectly :D
|
Glad you got it working - can you see it if you are not logged in?
|
Yeah, since I put it in my welcome panel that is viewable by all who come to the forums. Though I plan to move it elsewhere..
ONE problemo though, and thats that phpmychat at default clears the members inchat log every 4 minutes. Anyway to set this to possibly 1 minute? Since when a user leaves the chat it still shows up on the forum as him/her being in the chat. I'm sure its some file in the chat directory, just not sure which.. |
All times are GMT. The time now is 03:39 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:
|