nquang
04-17-2011, 09:13 AM
Hi all,
I edit file "newthread.php" and add this code if ($vbulletin->userinfo['userid'] != 1) {
eval(standard_error('You are not administrator!'));
}
after if (!$foruminfo['allowposting'] OR $foruminfo['link'] OR !$foruminfo['cancontainthreads'])
{
eval(standard_error(fetch_error('forumclosed')));
}
I create a plugin at hook "cache_templates" $zxzxzx = 123456789;
and i call $zxzxzx in template "navbar" Number $number
When i visit my forum. If userid = 1, Number 123456789 is show. But i userid != 1, it not show $number and only show "Number ".
How to fix it? I want value of $number show in template.
Thanks you.
I edit file "newthread.php" and add this code if ($vbulletin->userinfo['userid'] != 1) {
eval(standard_error('You are not administrator!'));
}
after if (!$foruminfo['allowposting'] OR $foruminfo['link'] OR !$foruminfo['cancontainthreads'])
{
eval(standard_error(fetch_error('forumclosed')));
}
I create a plugin at hook "cache_templates" $zxzxzx = 123456789;
and i call $zxzxzx in template "navbar" Number $number
When i visit my forum. If userid = 1, Number 123456789 is show. But i userid != 1, it not show $number and only show "Number ".
How to fix it? I want value of $number show in template.
Thanks you.