Quote:
Originally Posted by XGC Paravain
Still waiting for some thing on this
|
This is for a Forum. You have to setup Forum Permissions so they will not be able to see a thread.
Add a new plugin.
Product = Vbulletin.
Hook Location =
forumdisplay_start.
Title = Whatever you want.
Execution Order = 5.
Plugin PHP Code = First code below.
Change the color code to what suits you.
Forum ID = Add your forum id here.
LINK = Add your link to your payment here or whatever you want this to redirect to.
Exclamation Mark = Add this if you want it
NOT to redirect the usergroups you are going to add,
Remove if you want it to redirect the usergroups.
Comma = Add a comma after every usergroup id but not the last one or don't use it if you only have one usergroup id.
User Group's = UseGroup's ID's.
Code:
if (!is_member_of($vbulletin->userinfo, 6,5))
{
if ($forumid == 12)
{
header('Location: http://www.google.com');
}
}
--------------------------------------------------------------------------------------------------------------------
This is for a Tread.
Same as for a Forum except for what below.
Hook Location =
showthread_start.
Thread ID = Add your thread id here.
Code:
if (!is_member_of($vbulletin->userinfo, 6,5))
{
if ($threadid == 16)
{
header('Location: http://www.google.com');
}
}
--------------------------------------------------------------------------------------------------------------------
This is for a Post a New Thread button.
Same as for a Forum except for what below.
Hook Location =
newthread_start.
You can do it for a couple more button but can't think of it off the top of my head.