2
/start question
I ran php debug on my site and it came up with a fatal error message it seems its the flashout module I installed will only work for members but if i make it available to anonymous users it causes my page to become blank how do i go about fixing the problem. The problem file is in the modules/flashout/blocks/flashout_block.php <---Problem
Problem file --->(flashout_block.php)
Quote:
function ShoutboxFlash() {
global $xoopsUser;
// Load module handler... :)
$module_handler2 =& xoops_gethandler('module');
$xoopsModule2 =& $module_handler2->getByDirname('flashshout');
// Thx to Kazu for explaining me how this thing works...
// Load the config handler, for then loading the configs from the flashshout module... :)
$config_handler2 =& xoops_gethandler('config');
$xoopsModuleConfig2 =& $config_handler2->getConfigsByCat(0, $xoopsModule2->getVar('mid'));
if(isset($xoopsUser))
{
$flashshout['username'] = $xoopsUser->getVar('username');
}else{
$flashshout['username'] = "Anonymous";
}
if($xoopsModuleConfig2['flashshout_block_big'] == 1)
{
$flashshout['flashshoutfile'] = "flash/Flashshout_".$xoopsModuleConfig2['flashshout_color'].".swf";
$flashshout['flashshout_width'] = "345";
$flashshout['flashshout_height'] = "355";
}else{
$flashshout['flashshoutfile'] = "flash/Flashshoutside_".$xoopsModuleConfig2['flashshout_color'].".swf";
$flashshout['flashshout_width'] = "140";
$flashshout['flashshout_height'] = "350";
}
$flashshout['flashshout_comment'] = $xoopsModuleConfig2['flashshout_comment'];
return $flashshout;
}
?>
Any ideas??? Is the coding wrong as I am not too crash hot on php!!
kiwiguy
/end question