MyBB Community Forums
[For 1.6] EzIRC for MyBB - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Extensions (https://community.mybb.com/forum-201.html)
+--- Forum: Plugins (https://community.mybb.com/forum-73.html)
+---- Forum: Plugin Releases (https://community.mybb.com/forum-102.html)
+---- Thread: [For 1.6] EzIRC for MyBB (/thread-86187.html)

Pages: 1 2 3 4 5 6 7 8 9


RE: EzIRC for MyBB - Xenos - 2011-03-17

You mean you're trying to connect to Mibbit's server? If so, all you need to do is change the IRC server location in the plugin settings. Change it to 'irc.mibbit.net'. Smile


RE: EzIRC for MyBB - chrisgc - 2011-03-17

(2011-03-17, 07:21 PM)Kazuto Wrote: You mean you're trying to connect to Mibbit's server? If so, all you need to do is change the IRC server location in the plugin settings. Change it to 'irc.mibbit.net'. Smile
Doh ... silly me, didn't realise there are some proper settings for the plugin. I thought I'd have to edit the php file somehow Smile.




RE: EzIRC for MyBB - PhotonHeliuM - 2011-03-31

$forumdir invalid.

my forum url is http://btsxchange.com

So what do I write in there ?



RE: EzIRC for MyBB - Heiko - 2011-04-20

Thank you for this Plugin.
I can create a new room with #newroom and click this link.
Is this possible to create a room with the link to the chat.php?

Maybe ...mypage.com/chat.php#newroom

I like when all User join the same room.

Best Regards, Heiko


RE: EzIRC for MyBB - ZebraNasty - 2011-05-10

Looks pretty cool. I'll just stick with the shoutbox though. Nice work.


RE: EzIRC for MyBB - Anjana_Supun - 2011-05-12

$forumdir invalid.

How TO fix It? Plz explain me.. Sad

http://anjana.x10.mx


RE: EzIRC for MyBB - Diminished - 2011-05-14

I get this:

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


Any ideas why?


RE: EzIRC for MyBB - Sajuuk - 2011-05-14

It's trying to include .//global.php, which is wrong. What did you specify as your forumdir??


RE: EzIRC for MyBB - Diminished - 2011-05-14

(2011-05-14, 10:26 PM)Shukaku Wrote: It's trying to include .//global.php, which is wrong. What did you specify as your forumdir??

chat.php file:
Quote:<?php
/**
* Website: http://vbirc.com
* EzIRC originally for vBulletin by Billy Ewing (toonySNN)
* EzIRC name used with permission.
* You are free to modify this file, but please do not remove this copyright notice.
* This chat.php script uses code from this thread; http://community.mybb.com/thread-72204.html
* Without the Open Source MyBB community, this mod would probably not be here.
*/

$forumdir = "/"; // change this if you want the script to work outside your forums..

//end editing


define("IN_MYBB", 1);

if(substr($_SERVER['SCRIPT_NAME'],0,1) == "/")
{
define('THIS_SCRIPT', substr($_SERVER['SCRIPT_NAME'],1));
}
else
{
define('THIS_SCRIPT', $_SERVER['SCRIPT_NAME']);
}
$current_dir = getcwd();

//change working directory to allow board includes to work
$forumdirslash = $forumdir."/";
$change_dir = "./";

if([email protected]($forumdir) && !empty($forumdir))
{
if(@is_dir($forumdir))
{
$change_dir = $forumdir;
}
else
{
die("\$forumdir is invalid!");
}
}

//include board files
require_once $change_dir."/global.php";
require_once MYBB_ROOT."inc/functions.php";
require_once MYBB_ROOT."inc/functions_post.php";
require_once MYBB_ROOT."inc/functions_user.php";
require_once MYBB_ROOT."inc/class_parser.php";
// output the page.
if($mybb->user['uid'])
{
eval("\$chat = \"".$templates->get("ezirc_chat")."\";");
output_page($chat);
}
else
{
$error = "Sorry, you need to be logged in to access EzIRC.";
eval("\$chat = \"".$templates->get("error")."\";");
output_page($chat);
}
//change directory back to current where script is
@chdir($current_dir);

My site is http://protectionforums.com


RE: EzIRC for MyBB - MadMikeyB - 2011-05-15

Change

$forumdir = "/"; // change this if you want the script to work outside your forums..

to

$forumdir = ""; // change this if you want the script to work outside your forums..

If that doesnt work, change it to

$forumdir = "."; // change this if you want the script to work outside your forums..