To wtedy trochę inaczej to trzeba zrobić, o tak:
<?php
if ( ! defined( 'IN_IPB' ) )
{
print "<h1>Incorrect access</h1>You cannot access this file directly. If you have recently upgraded, make sure you upgraded all the relevant files.";
exit();
}
class public_core_global_page extends ipsCommand
{
public function doExecute( ipsRegistry $registry )
{
$sql = $this->DB->buildAndFetch( array( 'select' => '*',
'from' => 'konta_graczy',
'where' => 'Wlasciciel = '.$this->memberData['member_id']
) );
$this->registry->output->setTitle( 'Panel Gracza ' );
$this->registry->output->addNavigation( 'Panel Gracza '.$this->memberData['name'], '' );
$this->registry->getClass('output')->addContent( $this->registry->output->getTemplate( 'global' )->custom_tpl_bit( $sql ) );
$this->registry->getClass('output')->sendOutput();
}
}// End of class
I wtedy w grupie bitów global dodajesz nowy szablon o nazwie custom_tpl_bit ze zmienną o dowolnej nazwie ( nawet $sql, by Ci się nie myliło ).