Quote:
Originally Posted by Simon Lloyd
--------------- Added 16 May 2010 at 11:50 ---------------
Could it be incorporated in a pluggin where you can state which templates cannot be accessed?
|
You would have to establish your own hook in your custom php file. How to notify vB of the existence of the hook is explained by Paul here:
https://vborg.vbsupport.ru/showthread.php?t=83390
The code for your hook would be:
PHP Code:
($hook = vBulletinHook::fetch_hook('my_custom_hook')) ? eval($hook) : false;
BTW: That permisson does not prevent templates from being accessed. It kicks in much earlier - it prevents the main part of the php page from being processed.
Quote:
Could you also tell me how to do this in a php statement?
<if condition="is_member_of($vbulletin->userinfo, array(1, 2, 3))">.
|
PHP Code:
if (is_member_of($vbulletin->userinfo, 1,2,3))
{
YOUR CODE
}