PDA

View Full Version : weird...


FatalBreeze
09-19-2007, 03:54 PM
when i write this plugin:

if($vbulletin->userinfo['userid'] == 1)
{
eval('$mapp_management = "' . fetch_template('mapp_management') . '";');
}


nothing works...
but when i write this plugin:

eval('$mapp_management = "' . fetch_template('mapp_management') . '";');


everything works...
And i'm userid number 1...

Dismounted
09-20-2007, 06:23 AM
Where are you hooking the plugin at?

FatalBreeze
09-20-2007, 11:35 AM
postbit_display_complete

Dismounted
09-20-2007, 11:36 AM
global $vbulletin;

if ($vbulletin->userinfo['userid'] == 1)
{
eval('$mapp_management = "' . fetch_template('mapp_management') . '";');
}

FatalBreeze
09-20-2007, 12:06 PM
i figured it out already, thanks anyway :)