Hello again,
I have the following code:
PHP Code:
if($foruminfo['forumid'] == 41){
$newpost['prefixid'] = 'Pending';
}
Yes my prefix ID is "Pending". I am using the newthread_post_complete hook.
Line 443 is:
PHP Code:
$prefix_options = fetch_prefix_html($foruminfo['forumid'], $newpost['prefixid'], true);
So I am guessing I am using the right syntax.
The hook I am using is line 271 and the $newpost['prefixid'] is defined on line 170:
PHP Code:
if (can_use_prefix($vbulletin->GPC['prefixid']))
{
$newpost['prefixid'] =& $vbulletin->GPC['prefixid'];
}
Could someone help me out?
Thanks again.
EDIT: I have made sure that the prefix is assigned to that forum, so the issue isn't that the prefix isn't there.