The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Message only certian usergroups can see?
Hello,
I have advertisements on my VB that only certain usergroups can see. Is there a code out there that I can use which will put text behind the ads, so when a certain usergroup has the ability to not see the ads they see the message instead? Much thanks! |
#2
|
||||
|
||||
If you're using <if> conditionals to show ads you can use <else> to show alternate data to people not seeing the ads...
<if condition == "your condition"> AD HTML <else /> Alternate Info </if> |
#3
|
|||
|
|||
Hi, thanks for the message!
Right now I am using the code "$google_adsense_for_search" to list the ad via product. where would I put that into the condition? I just thought of something... I heard hiding text is a bad idea (google doesn't like it) or is that pertaining to something else? |
#4
|
||||
|
||||
Quote:
Code:
<if condition == "your condition"> $google_adsense_for_search <else /> Alternate Info </if> |
#5
|
|||
|
|||
Quote:
Also when I copied that code I got this message Quote:
|
#6
|
||||
|
||||
Sorry I thought you knew what condition you wanted already... you need something like this:
Code:
<if condition = "is_member_of($bbuserinfo, 5,6,7)"> $google_adsense_for_search <else /> Alternate Info </if> |
#7
|
|||
|
|||
Thanks a lot! Works beautifully
|
Thread Tools | |
Display Modes | |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|