Go Back   vb.org Archive > vBulletin Modifications > Archive > vB.org Archives > vBulletin 2.x > vBulletin 2.x Full Releases
FAQ Community Calendar Today's Posts Search

Reply
 
Thread Tools
phpmychat who's online (works with vB3) Details »»
phpmychat who's online (works with vB3)
Version: 1.00, by trilOByte trilOByte is offline
Developer Last Online: Sep 2013 Show Printable Version Email this Page

Version: 2.3.x Rating:
Released: 07-18-2003 Last Update: Never Installs: 11
 
No support by the author.

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.

Show Your Support

  • This modification may not be copied, reproduced or published elsewhere without author's permission.

Comments
  #22  
Old 07-24-2003, 04:58 PM
Elly Elly is offline
 
Join Date: Mar 2002
Posts: 31
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #23  
Old 07-26-2003, 12:13 PM
rikmartin rikmartin is offline
 
Join Date: Jul 2003
Posts: 3
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #24  
Old 08-11-2003, 01:00 PM
GeoffE GeoffE is offline
 
Join Date: Jun 2003
Posts: 14
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Having problems getting the code to work in the phpinclude template. This bit (adapated for my domain):

Quote:
// chatters -->
ob_start();
require("http://chat.clubdogma.com/chatters.php3");
$chatters = ob_get_contents();
ob_end_clean();
// end chatters -->
Whenever I add this in, I get the following error when trying to enter phpmychat :

Quote:
Fatal error: Call to unsupported or undefined function ob_start() in ./global.php on line 314
which looks like I'm not running PHP4, but definitely am (4.2.3).

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?
Reply With Quote
  #25  
Old 11-12-2003, 04:17 AM
larke larke is offline
 
Join Date: Sep 2003
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
  #26  
Old 11-17-2003, 07:52 PM
larke larke is offline
 
Join Date: Sep 2003
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

ok, fixed it, but it still doesn't show up
Reply With Quote
  #27  
Old 12-23-2003, 04:24 AM
catocom2 catocom2 is offline
 
Join Date: Aug 2002
Location: Gainesville, Georgia
Posts: 85
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by Elly
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 ^.^
I figured you you have to put the @ in front of the "require" statement.

Code:
// chatters -->
ob_start();   
@require("http://yourname.com/chat/chat/chatters.php"); 
$chatters = ob_get_contents();  
ob_end_clean();
// end chatters -->
I'm using this with vB3 Gamma now. Cool!
Reply With Quote
  #28  
Old 01-15-2004, 02:09 AM
Sadie Frost's Avatar
Sadie Frost Sadie Frost is offline
 
Join Date: Dec 2001
Location: Pittsburgh
Posts: 307
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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!
Reply With Quote
  #29  
Old 01-27-2004, 08:55 PM
pcalloway pcalloway is offline
 
Join Date: Dec 2003
Location: Indiana
Posts: 53
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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. "
Reply With Quote
  #30  
Old 03-21-2004, 11:10 PM
EvilLS1's Avatar
EvilLS1 EvilLS1 is offline
 
Join Date: Apr 2002
Location: Georgia, USA
Posts: 987
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

Quote:
Originally Posted by rikmartin
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
I had that problem aswell.

To fix it I added this bit of code to my vb2 index page (forumhome):
Code:
define('THIS_SCRIPT', 'index');
Then used this code in phpinclude:
Code:
//  chatters -->
ob_start(); 
if (THIS_SCRIPT == 'index') { 
@require('/home/user/public_html/chat/chatters.php3'); 
$chatters = ob_get_contents(); 
} 
ob_end_clean();
//  end chatters -->
Note the full path to the chat directory instead of using http.

Works fine now.

Nice hack btw, thanks!
Reply With Quote
  #31  
Old 07-08-2004, 01:03 PM
RichieBoy67's Avatar
RichieBoy67 RichieBoy67 is offline
 
Join Date: Apr 2004
Location: CT - Down in a hole..
Posts: 3,057
Благодарил(а): 0 раз(а)
Поблагодарили: 0 раз(а) в 0 сообщениях
Default

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
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 09:08 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.05365 seconds
  • Memory Usage 2,307KB
  • Queries Executed 25 (?)
More Information
Template Usage:
  • (1)SHOWTHREAD
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (1)ad_showthread_beforeqr
  • (3)bbcode_code
  • (4)bbcode_quote
  • (1)footer
  • (1)forumjump
  • (1)forumrules
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (1)modsystem_post
  • (1)navbar
  • (6)navbar_link
  • (120)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (11)post_thanks_box
  • (11)post_thanks_button
  • (1)post_thanks_javascript
  • (1)post_thanks_navbar_search
  • (11)post_thanks_postbit_info
  • (10)postbit
  • (11)postbit_onlinestatus
  • (11)postbit_wrapper
  • (1)spacer_close
  • (1)spacer_open
  • (1)tagbit_wrapper 

Phrase Groups Available:
  • global
  • inlinemod
  • postbit
  • posting
  • reputationlevel
  • showthread
Included Files:
  • ./showthread.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/functions_bigthree.php
  • ./includes/class_postbit.php
  • ./includes/class_bbcode.php
  • ./includes/functions_reputation.php
  • ./includes/functions_post_thanks.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
  • showthread_start
  • showthread_getinfo
  • forumjump
  • showthread_post_start
  • showthread_query_postids
  • showthread_query
  • bbcode_fetch_tags
  • bbcode_create
  • showthread_postbit_create
  • postbit_factory
  • postbit_display_start
  • post_thanks_function_post_thanks_off_start
  • post_thanks_function_post_thanks_off_end
  • post_thanks_function_fetch_thanks_start
  • post_thanks_function_fetch_thanks_end
  • post_thanks_function_thanked_already_start
  • post_thanks_function_thanked_already_end
  • fetch_musername
  • postbit_imicons
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • postbit_display_complete
  • post_thanks_function_can_thank_this_post_start
  • pagenav_page
  • pagenav_complete
  • tag_fetchbit_complete
  • forumrules
  • navbits
  • navbits_complete
  • showthread_complete