1
kiwiguy
Blank pages but not always Very strange
  • 2004/9/14 16:03

  • kiwiguy

  • Friend of XOOPS

  • Posts: 295

  • Since: 2004/4/19


I know that there a lot of other posts concerning blank pages but this is completly different. When I have my site turned on and I log out it comes up as a blank page but when I turn my site off and log out the page comes up no probs telling me that is turned of I am running

xoops 2.0.7.1
php 4.x.x

I cannot understand what i have done wrong this all happended after i finished installing xf sections and doing all the sections on it and I installed the module flashout but have had no probs until I turned my site back on and logged off!

cheers
kiwiguy

2
kiwiguy
Re: Blank pages but not always Very strange
  • 2004/9/14 17:09

  • kiwiguy

  • Friend of XOOPS

  • Posts: 295

  • Since: 2004/4/19



/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

Login

Who's Online

237 user(s) are online (53 user(s) are browsing Support Forums)


Members: 0


Guests: 237


more...

Donat-O-Meter

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

Latest GitHub Commits