Gdy dodam bit:
function onlinePlayers($onlineList, $onlineCount) {
$IPBHTML = "";
if( IPSLib::locationHasHooks( 'hrp', $this->_funcHooks['onlinePlayers'] ) )
{
$count_134ef258bb15c29022283a0804d6fed3 = is_array($this->functionData['onlinePlayers']) ? count($this->functionData['onlinePlayers']) : 0;
$this->functionData['onlinePlayers'][$count_134ef258bb15c29022283a0804d6fed3]['onlineList'] = $onlineList;
$this->functionData['onlinePlayers'][$count_134ef258bb15c29022283a0804d6fed3]['onlineCount'] = $onlineCount;
}
if ( ! isset( $this->registry->templateStriping['charFields'] ) ) {
$this->registry->templateStriping['charFields'] = array( FALSE, "row1","row2");
}
$IPBHTML .= "<div id='content' class='clear'>
<div id=\\\\"abox\\\\" class=\\\\"center\\\\" style=\\\\"width:800px;margin:5px auto\\\\">
<div class=\\\\"clear block_wrap block_fixed\\\\">
<ul class='tab_bar no_title'>
<li class=\\\\"active\\\\"><a href=\\\\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=online", "publicWithApp",'' ), "", "" ) . "\\\\">hrpcze online ($onlineCount)</a></li>
<li><a href=\\\\"" . $this->registry->getClass('output')->formatUrl( $this->registry->getClass('output')->buildUrl( "module=leader", "publicWithApp",'' ), "", "" ) . "\\\\">Panele grupowe</a></li>
</ul><br />
<div class='general_box statistics clearfix'>
<div class='stats_list hrp_online_list' id='active_users'>
<h2>
{$onlineCount} hrpczy online
</h2>
" . ((count($onlineList)) ? ("
<p>
".$this->__f__99b2cf58531d298b6b728247149af84d($onlineList,$onlineCount)."</div>
") : ("
<br /><p class='message'>Obecnie nie ma hrpczy online na serwerze.</p><br />
")) . "
</div>
</div>
</div>";
return $IPBHTML;
}
function __f__99b2cf58531d298b6b728247149af84d($onlineList, $onlineCount)
{
$_ips___x_retval = '';
$__iteratorCount = 0;
foreach( $onlineList as $player )
{
$__iteratorCount++;
$_ips___x_retval .= "
" . ((($player['kp'] > IPS_UNIX_TIME_NOW)) ? ("
<div class=\\\\"hrpPlayerOnlineGP\\\\">{$player['nick']}<br />
<span class='desc'>
" . IPSLib::makeNameFormatted( $player['members_display_name'],$player['member_group_id'] ) . "" . $this->registry->getClass('output')->getTemplate('global')->user_popup($player['member_id'], $player['members_seo_name']) . ", <b>{$player['_time']}</b></span>
</div>
") : ("
<div class=\\\\"hrpPlayerOnline\\\\">{$player['nick']}<br />
<span class='desc'>
" . IPSLib::makeNameFormatted( $player['members_display_name'],$player['member_group_id'] ) . "" . $this->registry->getClass('output')->getTemplate('global')->user_popup($player['member_id'], $player['members_seo_name']) . ", <b>{$player['_time']}</b></span>
</div>
")) . "
";
}
$_ips___x_retval .= '';
unset( $__iteratorCount );
return $_ips___x_retval;
}
robi się biała strona zamiast wyświetlać zawartość - czemu tak się dzieje?