
05-22-2012, 02:47 PM
|
|
|
Join Date: May 2012
Posts: 22
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
Quote:
Originally Posted by BirdOPrey5
I didn't check whether the code is good or not, just that what you wrote the first time was definitely invalid.
This is what I use personally to disable for users with IE 9... (on the global_start hook)
Code:
if (ieversion() < 9.0)
{
$is_livetopic = true;
$livetopichook = 'template_edits';
include 'includes/livetopic_hooks.php';
}
And it works for everyone else. If you want it only for mods and admins I would suggest:
Code:
global $vbulletin;
if (is_member_of($vbulletin->userinfo, 5, 6, 7))
{
$is_livetopic = true;
$livetopichook = 'template_edits';
include 'includes/livetopic_hooks.php';
}
(you don't need an array.)
If it still breaks for other users then I don't know, check and make sure no other code was changed.
|
Thank you, that code worked perfectly. :up:
|