The ACP doesn't use Templates at all.
If you want to introduce custom admin permissions, several steps are necessary:
- Edit init.php array $_BITFIELD['usergroup']['adminpermissions'] to include the new permissions.
To avoid problems with new vBulletin versions using the same bits for other permissions I suggest to use 2^31 first, then 2^30 and so on
- In admincp/index.php wrap all custom navgroups with:
PHP Code:
if (can_administer('canadminhack1'))
{
// Navigation stuff for Hack1 here
}
- Edit all Hacks CP files to include
PHP Code:
if (!can_administer('canadminhack1'))
{
print_cp_no_permission();
}
at the top (after calling global.php)