squishi
11-30-2008, 10:57 AM
It's the simplest plugin ever - but I don't get it to work. :(
Hook: forumhome_start
if($bbuserinfo['field63']=='Random'){
$variablename = "1";
}
else{
$variablename = "2";
}
The profile field #63 has the options "Random" and "Latest".
But $variablename is always 2!
--------------- Added 1228050472 at 1228050472 ---------------
Ah, okay.
The solution: $vbulletin->userinfo['field63']
Hook: forumhome_start
if($bbuserinfo['field63']=='Random'){
$variablename = "1";
}
else{
$variablename = "2";
}
The profile field #63 has the options "Random" and "Latest".
But $variablename is always 2!
--------------- Added 1228050472 at 1228050472 ---------------
Ah, okay.
The solution: $vbulletin->userinfo['field63']