Quote:
Originally Posted by Tyraunt
Hello,
I want to redirect a specific forum if a 'Guest' or 'Newbie' views it unless they are promoted to the usergroup which will be able to view this forum. Thanks
|
Try this:
Go to your Plugin Manager at your Acp and create a new plugin. For the hook location choose:
forumdisplay_start
Then for the php code add this:
PHP Code:
global $foruminfo;
$redirectforums = array(1,2,3);
if(!$vbulletin->userinfo['userid'] AND in_array($foruminfo['forumid'], $redirectforums))
{
$vbulletin->url = 'http://www.redirecturl.com';
}
Then replace1,2,3 with the id of the forums where you want to resdirect the guests when viewing the redirect forums.
Also, replace
Code:
http://www.redirecturl.com
with the actual url of where you want to redirect your guests when viewing those particular forums.
To do the same if the guests will view the latest post at those particular forums, add the exact php code for the the
showthread_start hook location as well. (create a new plugin).
Hope it helps.