В личный раздел добавляю новый модуль и мне нужно, чтобы он отображался только при наступлении некоего события. Если по простому, то есть переменная, которая принимает значения
true
и false
. Нужно, чтобы при истине модуль отображался, а при лжи - его не было видно.Функция описания модуля
Код: Выделить всё
namespace kimiv\fleaMarket\ucp;
class ucp_fm_profile_info
{
function module()
{
global $config;
return array(
'filename' => '\kimiv\fleaMarket\ucp\ucp_fm_profile_module',
'title' => 'UCP_PROFILE',
'version' => $config['fleaMarket_version'],
'modes' => array(
'configuration' => array(
'title' => 'UCP_FM_PROFILE', // Имя модуля/вкладки
'auth' => 'ext_kimiv/fleaMarket && acl_u_fleamarket_use',
'cat' => array('UCP_PROFILE')),
),
);
}
}
Код: Выделить всё
'auth' => 'ext_kimiv/fleaMarket && acl_u_fleamarket_use && S_FM_REGISTERED',
Код: Выделить всё
Parse error: syntax error, unexpected ')' in N:\home\chipgu.ru\www\includes\functions_module.php(472) : eval()'d code on line 1
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5284: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_module.php(472) : eval()'d code:1)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5284: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_module.php(472) : eval()'d code:1)
[phpBB Debug] PHP Warning: in file [ROOT]/includes/functions.php on line 5284: Cannot modify header information - headers already sent by (output started at [ROOT]/includes/functions_module.php(472) : eval()'d code:1)
ЧипГуру