Opcja ukrywania wyłączona czyli powinno pokazywać
<?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 usercpForms_gtx extends public_core_usercp_manualResolver implements interface_usercp
{
public $tab_name = 'Gra';
public $ok_message = '';
public $hide_form_and_save_button = true;
public $uploadFormMax = 0;
public $defaultAreaCode = 'characters';
public function init()
{
}
public function getLinks()
{
$array = array();
$array[] = array( 'url' => 'area=characters',
'title' => ipsRegistry::instance()->getClass('class_localization')->words['change_settings'],
'active' => $this->request['tab'] == 'gtx' && $this->request['area'] == 'characters' ? 1 : 0,
'area' => 'characters'
);
}
public function runCustomEvent( $currentArea )
{
//-----------------------------------------
// INIT
//-----------------------------------------
$html = '';
//-----------------------------------------
// What to do?
//-----------------------------------------
switch( $currentArea )
{
case 'addchar':
return $this->customEvent_addchar();
break;
}
//-----------------------------------------
// Turn off save button
//-----------------------------------------
$this->hide_form_and_save_button = 1;
//-----------------------------------------
// Return
//-----------------------------------------
return $html;
}
public function showForm( $current_area, $errors=array() )
{
//-----------------------------------------
// Where to go, what to see?
//-----------------------------------------
switch( $current_area )
{
default:
case 'characters':
return $this->formCharacters();
break;
}
}
public function saveForm( $current_area )
{
//-----------------------------------------
// Where to go, what to see?
//-----------------------------------------
switch( $current_area )
{
default:
case 'characters':
return $this->saveCharacters();
break;
}
}
public function formCharacters()
{
/* Build and return the form */
$template = 'Test';
return $template;
}
}