vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 2.x Full Releases (https://vborg.vbsupport.ru/forumdisplay.php?f=4)
-   -   phpmychat who's online (works with vB3) (https://vborg.vbsupport.ru/showthread.php?t=55432)

Elly 07-24-2003 04:58 PM

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

rikmartin 07-26-2003 12:13 PM

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

GeoffE 08-11-2003 01:00 PM

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?

larke 11-12-2003 04:17 AM

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

larke 11-17-2003 07:52 PM

ok, fixed it, but it still doesn't show up

catocom2 12-23-2003 04:24 AM

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!

Sadie Frost 01-15-2004 02:09 AM

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! :)

pcalloway 01-27-2004 08:55 PM

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. "

EvilLS1 03-21-2004 11:10 PM

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!

RichieBoy67 07-08-2004 01:03 PM

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


All times are GMT. The time now is 07:28 AM.

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.01092 seconds
  • Memory Usage 1,741KB
  • 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
  • (3)bbcode_code_printable
  • (4)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (3)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)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
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete