![]() |
phpmychat who's online (works with vB3)
Been done lots before, and is *very simple*, but this will work with pretty much most versions of vB and it definitely works with vB3! It's really not difficult as it's basically a (minor) mod of files included with phpmychat distro.
The following can be used to display "who's in chat" using PhpMyChat, either integrated (with Stasiks integration hack) or out of the box. It can be used with standalone chat dB or chat dB that has been integrated with vB, there are no vB files to hack, and only one template to edit. Again, vBintegration is not required, shared databases are not required for this to work. It doesnt get much simpler. There are 3 steps.... 1 file to upload. 1 addition to phpinclude template. 1 edit of forumhome template. |
no users in chat screenie....
|
who's in chat screenie...
|
|
I shall test it out soon. :)
|
Cool, 2 installs no questions. :)
Dead simple innit? I should point out that in the screenies, I have the "who's chatting" box in a side panel, but you can put it anywhere - even on a none-vB page (although I havent tested that, I can see no reason why not). It just gives you "$chatters" which will give you a list of chatters pretty much wherever you put it. You can wrap it up in your own html to make it look however you want. The refresh time is set by your phpMyChat options. I have mine set to update every 60 seconds - it's not instant, but it's close enough. |
Trilobyte,
I'm curious if you could help me. I need the IRC chat integration into Vb 2.3, I need it free and I'd like to have a place on my forum where people see who is chatting. Where is this item on Vb. When I do a search on vb.org I get nothing but confused with the pirc, mirc, irc, and so forth that I don't know what to install. What do you recommend? |
Quote:
Look here: https://vborg.vbsupport.ru/showthrea...threadid=21329 For Stasik's integration hack with vBulletin. Many people prefer IRC, it's faster, less of a resource hog and way more powerful for a skilled user. There are some nice integration scripts too, but I have yet to find one that displays "users in chat now" with any reliability. I suppose it depends on what your needs are. My forum users (www.britishblades.com) are more familiar with hitting bits of hot steel with hammers, than configuring irc clients & chan's, they just wanted a simple chat program, with an auto login, acessible to all the members and private for members only, they also wanted a method of seeing who was in the chatroom as the surf the forums. PhpMyChat fits this brief better than IRC, or even java front ends for irc. However, if your forumites are experienced and competent users, they will undoubtedly prefer an IRC chan, preferably one they can access with mIRC, with a java applet for those less skilled. But it comes at a price. I was using jIRC for a while, with mixed results. My site is mainly (but not exclusively) for UK users. I had a real hard time finding a host that would work internationally, with reliability, that was free of trolls. PhPMyChat - is the best option for me at the moment. It may be good for you also, or it may not. |
I have a quick question. I installed everything and it works great [wonderful directions- thank you!] except I HATE the look of how it says "Who's in chat." I checked the code and saw the
<span class="normalfont"> tag which I am unfamiliar with. I deleted that and inserted a normal font tag like: <font face="verdana" size="1"> and the result was that that entire cell of the table scrunched up into about two pixels and you couldn't see or read anything at all. Can someone tell me how to change my "normalfont" [which is unlike all the rest of the fonts on my entire forum] so that it matches everything else, or instruct me as how to use the other tag without ruining the table? Thank you! =) |
Thanks for pointing this out Kristie, I overlooked it.
< span class="whatever>yourtext< /span> ...is how vBulletin 3 uses css classes for just about everything. I wrote this up for vB3 and this is a legacy of that. I've updated the install file so it should work with pre-vB3 forums. you need to replace: Code:
<b /><span class="normalfont">Who's in Chat</span></b /> Code:
<b><font size="2">Who's in chat</font></b> |
Hmmm, for some reason the txt file wont update, so here is the template with the changes made...
Code:
<!-- chatbox--> |
nice hack. but no thanx to php3 ...
|
Quote:
|
lol.
|
I installed this hack and I get an error in the box were the chatters show I can ont figure out what to do to fix it
this is what it tells me : Warning: Unknown(): stream does not support seeking in /home/asuka/public_html/forum/global.php(313) : eval()'d code on line 35 Can someone please help me fix this besides this small error perhaps in my installing the hack is awsome I have been looking for something like this ^.^ |
what directory do you have phpmychat in? What directory do you have chatters.php3 in? What version of phpmychat are you running? What paths have you specified for the following: ?
Code:
$ChatPath = "../chatdir/chat/"; Code:
$ChatLaunch = "<b><A HREF=\"http://www.yourdomain.com/chatdir/chat/index.php3\" Code:
require("http://www.yourdomain.com/chatdir/chatters.php3"); |
like I asked over @ vBt
great stuff, Im going to install this... BUT Im interested in working on a Side Menu like you did.... Mind telling me where to start? I looked at Mashby(I tihnk)'s template mod for vB2 but that got me no where since in running vB3. |
Quote:
side menu template mod It will work. It's a template mod, just html (or xhtml) and tables, there's no difference between vB2xx and vB3xx in that respect. You might have to tweak it a bit to get it to display just how you want, but the code is good for both versions. |
The directory I have the phpmychat in is in the main directory so it would be http://www.ultimaforce.net/chat
I have chatters.php (renamed it) in chat directory in the main secion so it would be http://www.ultimaforce.net/chat/chatters.php I am unsure as to were to figure out what version of phpmychat I am running it came on my server and has no number or any other item to allow me to figure that out. Code:
$ChatPath = "../chat/chat/ Code:
$ChatLaunch = "<b><A HREF=\"http://www.ultimaforce.net/chat/index.php\" TARGET=\"_self\">chatting</A></B> Code:
require("http://www.ultimaforce.net/chat/chatters.php"); Quote:
|
Quote:
Elly, in your $ChatPath you have too many "chat" dirs, change that to : Code:
$ChatPath = "../chat/ |
I tried that and this is the error I get
Warning: Unknown(): stream does not support seeking in /home/asuka/public_html/forum/global.php(313) : eval()'d code on line 35 Warning: main(./../chat//lib/connected_users.lib.php3): failed to open stream: No such file or directory in /home/asuka/public_html/chat/chatters.php on line 18 Fatal error: main(): Failed opening required './../chat//lib/connected_users.lib.php3' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/asuka/public_html/chat/chatters.php on line 18 |
the "require" bit added to the php_includes just causes the browser to hang and the page doesnt load,,, placed the url in the address bar is fine though
? confused |
Having problems getting the code to work in the phpinclude template. This bit (adapated for my domain):
Quote:
Quote:
The chatbox appears fine in the forum (though always with no users as chat doesn't work), chatters.php3 works fine when run directly etc. The chat and forum are integrated using Stasiks integration hack, which works perfectly as long as the above code isn't in phpinclude.. Anyone got any ideas? |
i'm having problems too.... I get:
Warning: Unknown(http://www.larke.com/real_women/foru.../chatters.php3): failed to open stream: HTTP request failed! HTTP/1.1 401 Authorization Required in /home/httpd/html/www.larke.com/real_women/forum/global.php(301) : eval()'d code on line 8 Fatal error: (null)(): Failed opening required 'http://www.larke.com/real_women/forum/chat/chatters.php3' (include_path='.:/usr/local/lib/php') in /home/httpd/html/www.larke.com/real_women/forum/global.php(301) : eval()'d code on line 8 |
ok, fixed it, but it still doesn't show up
|
Quote:
Code:
// chatters --> |
Could anyone help me with how to do the relative path if my chat room is at a different domain than my vb?
Like $ChatPath = "../../http://www.otherdomain.com/chat/"; Any help would be appreciated - thanks! :) |
I tried to install this hack, and I get the window, but it gives me an error:
Warning: Unknown(): stream does not support seeking in /home/authent/public_html/forum/global.php(386) : eval()'d code on line 8 It also gives me a link to the chatroom, which seems to work: "Nobody is chatting now. " |
Quote:
To fix it I added this bit of code to my vb2 index page (forumhome): Code:
define('THIS_SCRIPT', 'index'); Code:
// chatters --> Works fine now. Nice hack btw, thanks! |
I'm getting better but I still have the hardest time getting the paths correct... can someone please help me for 2 minutes?????
Thanks, Rich Here's what I am getting.. Warning: Unknown(): stream does not support seeking in /home/talkandm/talkandmore-www/global.php(395) : eval()'d code on line 12 Warning: main(./chat/chat/index.php3//lib/connected_users.lib.php3): failed to open stream: Not a directory in /home/talkandm/talkandmore-www/chatters.php3 on line 18 Fatal error: main(): Failed opening required './chat/chat/index.php3//lib/connected_users.lib.php3' (include_path='./:/usr/local/lib/php') in /home/talkandm/talkandmore-www/chatters.php3 on line 18 |
I'm all set now thanks to DarkWizard!!!
Thanks for helping me out DarkWizard!! It works great now!! Rich |
All times are GMT. The time now is 12:33 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:
|