Quote:
Originally Posted by Yorixz
What I want to do is create a modification similar to what you see here on vB.org; quotes/codes not visible untill a user is in a "special" usergroup (where he gets moved to when he validated his account in some way). As this can't be done by template edits I think this is the only possible way.
Sorry for the terrible slow reply, been busy this week.
|
you can change the usergroup by changing the 5, this is if the persons usergroup = 5 then they view the correct page. if not, they get an error.
Code:
if ($vbulletin->userinfo['usergroupid'] == 5)
{
echo'You are in the right usergroup!'
} Else {
echo'Sorry, you cant view this page!'
}
this is if the user has a larger usergroup id than 5, they view the page
Code:
if ($vbulletin->userinfo['usergroupid'] > 5)
{
echo'You are in the right usergroup!'
} Else {
echo'Sorry, you cant view this page!'
}
is this what you wanted?