The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
vB permissions on a non-vB page?
I was wondering how this would be implemented.
I currently run ads on both my forums and every page of my website. I was wondering how I would go about "getting rid of" the ads on both the forums and every page if the user was registered to the forums. EDIT: To be specific, I would like to be able to use this if statement on a non-vB page: Quote:
Thanks so much. |
#2
|
||||
|
||||
HTML Code:
<if conditon="!$bbuserinfo['userid']">Guests Can see this</if> |
#3
|
||||
|
||||
But for a non-vB page? How do I 'tell' the if statement to look in the directory of my forum users?
|
#4
|
||||
|
||||
So it's not related to vbulletin at all? If you want to check if they are a user on the forums you'll have to include global.php.
|
#5
|
||||
|
||||
Including global.php or at least init.php would be the easiest way.
|
#6
|
|||
|
|||
I would also like to know how this can be done. Anyone know how to do it?
|
#7
|
||||
|
||||
You would need:
PHP Code:
And if you would like to remove the advertisments if a user is registered: HTML Code:
<if condition="$bbuserinfo['usergroupid'] == 1"> Advertisement Code here </if> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|