1
atisolution
Xoop chat 1.5 on Xoops 2.0.18.2

hi all,

I installed XOOPS Chat 1.5 on my site (xoops 2.0.18.2) - but I got a empty page.

How about you? could you help me to correct?

Thanks in advance

2
abinsblaue
Re: Xoop chat 1.5 on Xoops 2.0.18.2
  • 2008/11/8 6:30

  • abinsblaue

  • Just popping in

  • Posts: 27

  • Since: 2008/10/15


please enable the debug mode and post you errors.

3
atisolution
Re: Xoop chat 1.5 on Xoops 2.0.18.2

I will do.

By the way - does any XOOPS module as same as Live Chat in http://www.bluehost.com/?lo=1 website?

Thanks

4
atisolution
Re: Xoop chat 1.5 on Xoops 2.0.18.2

do you have any ideas for this questions?


5
sailjapan
Re: Xoop chat 1.5 on Xoops 2.0.18.2

Please post the error messages from de-bug.

Never let a man who does not believe something can be done, talk to a man that is doing it.

6
atisolution
Re: Xoop chat 1.5 on Xoops 2.0.18.2

hi

I can see2 error as:

Notice: Use of undefined constant no - assumed 'no' in file /modules/skype/xoops_version.php line 14

Notice: Use of undefined constant php - assumed 'php' in file /modules/xoopschat/class/user.php line 1


7
frankblack
Re: Xoop chat 1.5 on Xoops 2.0.18.2
  • 2008/11/10 15:31

  • frankblack

  • Just can't stay away

  • Posts: 830

  • Since: 2005/6/13


Open the file header.php in modules/xoopschat and change from
>
include(
"../../mainfile.php");
include(
XOOPS_ROOT_PATH."/header.php");
?>

to
include("../../mainfile.php");
include(
XOOPS_ROOT_PATH."/header.php");
?>


HTH, but I guess there are more bugs in this module.

8
atisolution
Re: Xoop chat 1.5 on Xoops 2.0.18.2

hi,

Got same problem:

Fatal error: Class 'XchatUser' not found in /home6/erpvncom/public_html/modules/xoopschat/include/xoopsuser.php on line 15

Notice: Use of undefined constant no - assumed 'no' in file /modules/skype/xoops_version.php line 14

Notice: Use of undefined constant php - assumed 'php' in file /modules/xoopschat/class/user.php line 1


9
kstan_79
Re: Xoop chat 1.5 on Xoops 2.0.18.2
  • 2009/9/24 13:51

  • kstan_79

  • Just popping in

  • Posts: 1

  • Since: 2007/5/9 1


Hi, currently I using xoopschat to communicate with my internal staff (with block). After some complain I'd do some changes of the code to make it more user friendly (Included some dynamic update, ajax, and hide post more older than 50). I feel quite satisfy with the changes and willing to share back with originator.
You can copy following code to replace source code in xoopschat/block folder.
Enjoy!
Quote:

// $Id: blockbottom.php,v 1.2 2003/09/03 coded by frankblack
// ------------------------------------------------------------------------- //
// German Xoops-Support-Site
// < http://www.myxoops.de >
// ------------------------------------------------------------------------- //
// Original Author : Pietro Lascari - http://www.cmq.it
// Modified for XOOPS 2 : Marko "Predator" Schmuck and frankblack
// Licence Type : Public GNU/GPL
// ------------------------------------------------------------------------- //


include("../../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
include(XOOPS_ROOT_PATH."/modules/xoopschat/include/xoopsuser.php");
include_once(XOOPS_ROOT_PATH."/modules/xoopschat/class/timestamp.php");
include(XOOPS_ROOT_PATH."/modules/xoopschat/include/functions.php");
include XOOPS_ROOT_PATH."/class/xoopsformloader.php";

if ( file_exists("../language/".$xoopsConfig['language']."/blocks.php") ) {
include("../language/".$xoopsConfig['language']."/blocks.php");
} else {
include("../language/english/blocks.php");
}

global $user;

//CheckIfBanned();
//$pchat = "false";
//if ($pchat == "false") {
//if ($room == "") {
$room = getDefaultRoom();
//}
//}

$iclass = new XchatTime();
$tstamp = $iclass->MakeTimeStamp();

echo "";
echo "";
echo "";
echo "";
echo "";
echo "";
echo "\r\n";

include(XOOPS_ROOT_PATH."/include/xoopscodes.php");

echo "\r\n";
echo "\r\n";
echo "";
echo "";
echo "";
echo "";
echo "";

//echo "";
echo "";
echo "
";
echo "
"._BL_XCHAT_FONTBOLD." 
"._BL_XCHAT_FONTITALIC." 
"._BL_XCHAT_FONTUNDERL."
";

xoopsSmilies("msgtextbox");
//echo "
";

$thecolorarr = array(_BL_XCHAT_COLOR1,_BL_XCHAT_COLOR2,_BL_XCHAT_COLOR3,_BL_XCHAT_COLOR4,
_BL_XCHAT_COLOR5,_BL_XCHAT_COLOR6,_BL_XCHAT_COLOR7,_BL_XCHAT_COLOR8,
_BL_XCHAT_COLOR9,_BL_XCHAT_COLOR10,_BL_XCHAT_COLOR11);

$thecolornames = array(_BL_XCHAT_BLACK,_BL_XCHAT_DARKBLUE,_BL_XCHAT_BLUE,_BL_XCHAT_LGREEN,
_BL_XCHAT_GREEN,_BL_XCHAT_DARKRED,_BL_XCHAT_RED,_BL_XCHAT_ORANGE,
_BL_XCHAT_GOLD,_BL_XCHAT_SILVER,_BL_XCHAT_WHITE);

//echo "
";
echo ""._BL_XCHAT_SELECTCOLOR."
";
echo "";
echo "";

if (isset($op)) {
if (!$HTTP_POST_VARS['msg'] == "") {
$message = $HTTP_POST_VARS['msg'];
if ($HTTP_POST_VARS['msg_underlined'] == "on") {
$message = "".$message."";
}

if ($HTTP_POST_VARS['msg_italic'] == "on") {
$message = "".$message."";
}

if ($HTTP_POST_VARS['msg_bold'] == "on") {
$message = "".$message."";
}

$mcolor = $HTTP_POST_VARS['colors'];

if ($mcolor == _BL_XCHAT_AUTO) {
$noformat = true;
} else {
$noformat = false;
$list = 0;
while($mcolor != $thecolornames[$list]) {
$list++;
}
}
$myts =& MyTextSanitizer::getInstance();
$messaggio_censurato = $myts->censorString($message);
if ($noformat == true) {
$messaggio = $messaggio_censurato;
} else {
$messaggio = ''.$messaggio_censurato.'';
}
} else {
exit();
}

switch ($pchat) {
case "false":
insertMessage($room, $messaggio, $userarray['nick'], $tstamp, $userarray['ipaddress']);
break;
}
}
echo "\r\n";
echo "";
//include(XOOPS_ROOT_PATH."/footer.php");

?>


Quote:

// $Id: blockchat.php,v 1.2 2003/09/03 coded by frankblack
// ------------------------------------------------------------------------- //
// German Xoops-Support-Site
// < http://www.myxoops.de >
// ------------------------------------------------------------------------- //
// Original Author : Pietro Lascari - http://www.cmq.it
// Modified for XOOPS 2 : Marko "Predator" Schmuck and frankblack
// Licence Type : Public GNU/GPL
// ------------------------------------------------------------------------- //

include("../../../mainfile.php");
include(XOOPS_ROOT_PATH."/header.php");
include_once(XOOPS_ROOT_PATH."/modules/xoopschat/class/timestamp.php");
include(XOOPS_ROOT_PATH."/modules/xoopschat/include/functions.php");
include(XOOPS_ROOT_PATH."/modules/xoopschat/include/xoopsuser.php");

global $xoopsDB,$xoopsConfig,$xoopsTheme, $xoopsModuleConfig;

CheckIfBanned();
$room = getDefaultRoom();
$formatdate = new XchatTime();
getMessages($room);

echo "\n";
echo "";
echo "";
echo "\n";
echo "";
echo "";
echo "";
echo "";

include(XOOPS_ROOT_PATH."/include/xoopscodes.php");

echo "
";
$countmessages = 1;
$msglimit=30;
if (!$xoopsDB->getRowsNum($res) == 0) {
$countmessages = 0;
$messages_array = array();
while($r = $xoopsDB->fetchRow($res)) {
$msgdate = $formatdate->GetTime("H:i:s",$r[4]);
$isnew=$r[4]-time();
$myts =& MyTextSanitizer::getInstance();
$messaggio = $myts->smiley($r[2]);

if ($xoopsModuleConfig['html'] == 0) {
$messaggio = strip_tags($messaggio, '');
}



$messaggio = even_better_wordwrap($messaggio,$xoopsModuleConfig['blockwordwrap'],'');
if($isnew<1000)
$messaggio="".$messaggio;


$messages_array[] .= "".$msgdate." [".$r[3]."] : ".$messaggio."
";
$countmessages++;

}
$k=0;
for($x=$countmessages;$x>=0;$x--) {
if($k>=$msglimit)
break;

echo $messages_array[$x];
$k++;

}
} else {
echo "
";
}

if($countmessages == 0) {
echo "
";
}
echo "
";
echo "
";
echo ""._MI_XCHAT_NOMESSAGES."";
echo "
";
echo "[ "._BL_XCHAT_NOMSGSTODAY." ]";
echo "
Check more history here
";
echo <<< EOF

EOF;

echo "";
if ($xoopsModuleConfig['orderascdesc'] == 'DESC') {
echo "\n";
}
echo "";

?>


Quote:

// $Id: xchatblock.php,v 1.2 2003/09/03 coded by frankblack
// ------------------------------------------------------------------------- //
// German Xoops-Support-Site
// < http://www.myxoops.de >
// ------------------------------------------------------------------------- //
// Original Author : Pietro Lascari - http://www.cmq.it
// Modified for XOOPS 2 : Marko "Predator" Schmuck and frankblack
// Licence Type : Public GNU/GPL
// ------------------------------------------------------------------------- //

function xchat_show($options)
{
global $xoopsModuleConfig, $theroom, $modversion, $xoopsConfig, $config_handler, $module_handler;
//$content="";

$config_handler=xoops_gethandler('config');
$module_handler=xoops_gethandler('module');
$xoopsModule =& $module_handler->getByDirname("xoopschat");
$xoopsModuleConfig =& $config_handler->getConfigsByCat(0, $xoopsModule->getVar('mid'));
$refreshinterval=$xoopsModuleConfig["chatrefresh"]*1000;
$content = "





";

$block = array();
$block['content'] = $content;
$block['title'] = _XCHATBLOCKTITLE;
return $block;
}

function xchat_edit($options)
{
$form = _BL_XCHATWORDWRAP." 
";
$form .= _BL_XCHATBLMSGH." 
";
$form .= _BL_XCHATBLINPUTH." 
";
return $form;
}


?>


10
sailjapan
Re: Xoop chat 1.5 on Xoops 2.0.18.2

Thanks for sharing !

Login

Who's Online

199 user(s) are online (82 user(s) are browsing Support Forums)


Members: 1


Guests: 198


Skype-Fr,

more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Oct 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits