MyBB Community Forums

Full Version: EzIRC Error
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi everyone again Smile

EzIRC is a plugin for mybb.
You have a plugin .php file & a 'chat.php' file you need to put in the forum root folder.

This is the 'chat.php' content :
http://pastebin.com/NQKH6na2

Now I added the chat.php into a subfolder with the name WebIRC
so mysite.com/WebIRC/chat.php

I get this error :
Warning: require_once(.//global.php) [function.require-once]: failed to open stream: No such file or directory in /home/nanogame/public_html/sergemorel/WebIRC/chat.php on line 45

Fatal error: require_once() [function.require]: Failed opening required './/global.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/nanogame/public_html/sergemorel/WebIRC/chat.php on line 45

I tried to look what's wrong , but I don't find the error, it worked before.

ALSO, it doesn't work if I put the chat.php in the root folder, I get the same error

Thanks in advance
see above problem AND its required changes here : EzIRC for MyBB (look through first 2 pages)
I tried to change the forumdir
I tried to put in /WebIRC
/WebIRC/
WebIRC
WebIRC/
Nothing

They all give an error that the forumdir is incorrect, if I put / it's working but with the error
if you have chat.php in webirc folder then in chat.php put $forumdir = "../"; (on line 11)
thanks, that works Smile
what do you put where the * is?
$forumdir = "*"; // change this if you want the script to work outside your forums..
it was
$forumdir = "/"; // change this if you want the script to work outside your forums..
^ depends on where you have kept chat.php file .

if chat.php is in a directory on the forum root then
$forumdir = "../";


if chat.php is in the forum root directory then
$forumdir = "/";