tele955848
05-28-2014, 02:04 PM
Hey everyone,
I hope you can help me.
I have in my 4.2. (only in the forum.php) the sidebar in it and would like it is not visible to guests.
Here's what I've done and it works well, but unfortunately wrong exactly.
What do I have here in the code so change it so the guests can not see.
So I have created a plug-in Hook (forumhome_start) with the following code:
if ( $vbulletin->userinfo['userid'] ) $vbulletin->options['enablesidebar'] = false;
LG
EDIT:
Has done to have found the error.
If someone needs the correct code is:
if (is_member_of($vbulletin->userinfo, 1)) $vbulletin->options['enablesidebar'] = false;
I hope you can help me.
I have in my 4.2. (only in the forum.php) the sidebar in it and would like it is not visible to guests.
Here's what I've done and it works well, but unfortunately wrong exactly.
What do I have here in the code so change it so the guests can not see.
So I have created a plug-in Hook (forumhome_start) with the following code:
if ( $vbulletin->userinfo['userid'] ) $vbulletin->options['enablesidebar'] = false;
LG
EDIT:
Has done to have found the error.
If someone needs the correct code is:
if (is_member_of($vbulletin->userinfo, 1)) $vbulletin->options['enablesidebar'] = false;