PDA

View Full Version : [Release] who's in chat (PhpMyChat)


trilOByte
07-21-2003, 07:18 PM
This sort of falls between a hack and a template mod. I've released it as a hack on vB.org, but I think it is somewhere in the middle. I thought I'd drop it in here as there are no vB3 files to edit (other than the phpinclude_start and forumhome templates), just 1 file to upload which is not a vB3 source file.

If a moderator thinks it's too close to a hack to be here, then please delete it.

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.

You can see a working example on http://www.britishblades.com

This should also work with all versions of vB2

Brad
07-21-2003, 07:27 PM
It stays, as long as it dosent edit any stock .php files its always fine.

Im not familar with phpmychat so I dont know if that lncluded file runs any queries. if it dose however, we can restrict that php code to index.php by doing this:

if (THIS_SCRIPT == 'index') {
// chatters -->
ob_start();
require("http://www.yourdomain.com/chatdir/chatters.php3");
$chatters = ob_get_contents();
ob_end_clean();
// end chatters -->
} // end if index

UND3Rburn
07-23-2003, 05:12 AM
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.

Regus
07-23-2003, 08:34 PM
I am also interested in learning how you did that little side menu.

trilOByte
07-23-2003, 10:36 PM
I am also interested in learning how you did that little side menu.


It's here:

side menu template mod (http://www.vbulletintemplates.com/mods/showthread.php?t=2083&highlight=side+menu)

Regus
07-23-2003, 11:30 PM
Thank you!

imported_chuanse
10-10-2003, 06:42 AM
But i need to have phpmychat to get it work?
or is any chat client ok? :)

dstruct2k
10-14-2003, 07:01 PM
phpmychat only... looks good, by the way! If only people used my chatroom, this might have a point. :rolleyes: