![]() |
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.
|
Quote:
http://www.vbulletin.com/docs/html/m...e_conditionals |
Aaahhh!
Thank you :) |
OK it seems to work great when I use
Code:
<if condition="$bbuserinfo['userid'] == 0"> 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? |
to use usergroup you'd have to have something like this
Code:
<if condition="$bbuserinfo['usergroupid'] == 8"> |
THAT's what I was looking for!! Thanks you so much!
|
Can I do it for only a certain IP address so that if the person is a guest I can still single them out?
|
if IPadress=111.11.111.11 then
That kind of thing. |
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'"> |
I will, thanks :)
|
All times are GMT. The time now is 11:43 PM. |
Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
![]() |
|
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|