vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Member Archives (https://vborg.vbsupport.ru/forumdisplay.php?f=202)
-   -   [Release] who's in chat (PhpMyChat) (https://vborg.vbsupport.ru/showthread.php?t=88365)

trilOByte 07-21-2003 06:18 PM

[Release] who's in chat (PhpMyChat)
 
1 Attachment(s)
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 06: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:

PHP Code:

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 04: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 07:34 PM

I am also interested in learning how you did that little side menu.

trilOByte 07-23-2003 09:36 PM

Quote:

Originally Posted by Regus
I am also interested in learning how you did that little side menu.


It's here:

side menu template mod

Regus 07-23-2003 10:30 PM

Thank you!

imported_chuanse 10-10-2003 05:42 AM

But i need to have phpmychat to get it work?
or is any chat client ok? :)

dstruct2k 10-14-2003 06:01 PM

phpmychat only... looks good, by the way! If only people used my chatroom, this might have a point. :rolleyes:


All times are GMT. The time now is 01:46 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
  • Page Generation 0.02018 seconds
  • Memory Usage 1,725KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)bbcode_php_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (8)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete