Quote:
Originally Posted by Sarcoth
Can we set this up so only certain users can see postbit addon?
PHP Code:
if (is_member_of($vbulletin->userinfo, 5, 6, 7))
{
if ($post['fieldx'])
{
$template_hook['postbit_userinfo_right_after_posts'] .= '<dt>My FieldX</dt> <dd>' .$post[fieldx]. '</dd>';
}
}
I can't seem to get that part to work. Thanks.
|
Quote:
Originally Posted by Lynne
It could be you need to globalize $vbulletin if you are using that variable.
|
Thanks Lynne. I know I had tried that earlier and thought it did not work. Going over my notes I see I used "$global $vbulletin;". I needed to leave out the first $ to fix the problem.
I thought globalizing it could be a security risk in some cases. Is there a problem doing that in this plugin?
Thank you again for the help on that. Now I can go to sleep.