The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
||||
|
||||
Simple question.
I want to limit popup ads to just guests. What do I put before and after the popup code so that it will only show to a certain usergroup like guest or maybe even banned? Thanks in advance, this will help me.
|
#2
|
||||
|
||||
Quote:
http://www.vbulletin.com/docs/html/m...e_conditionals |
#3
|
||||
|
||||
Aaahhh!
Thank you |
#4
|
||||
|
||||
OK it seems to work great when I use
Code:
<if condition="$bbuserinfo['userid'] == 0"> <p>Welcome to the forum!<br /> If this is your first visit, we hope you enjoy your stay!</p> </if> But if I change the usergroup to 8 or 16 then it doesn't work for those groups. Is there a switch somewhere that enables it? |
#5
|
|||
|
|||
to use usergroup you'd have to have something like this
Code:
<if condition="$bbuserinfo['usergroupid'] == 8"> <p>Hey usergroup 8</p> </if> |
#6
|
||||
|
||||
THAT's what I was looking for!! Thanks you so much!
|
#7
|
||||
|
||||
Can I do it for only a certain IP address so that if the person is a guest I can still single them out?
|
#8
|
||||
|
||||
if IPadress=111.11.111.11 then
That kind of thing. |
#9
|
|||
|
|||
hmm... not sure if it'll parse $_SERVER in a template, but hey it's worth a try
HTML Code:
<if condition="$_SERVER['REMOTE_ADDR'] == '156.156.156.165'"> <p>Hey usergroup 156.156.156.165</p> </if> |
#10
|
||||
|
||||
I will, thanks
|
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|