vBulletin ModsThe Official vBulletin Modifications Site
https://www.vbulletin.org/forum/showthread.php?t=250131 |
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! :D |
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> |
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? |
Quote:
Also this is fine, you need to make sure the content you show to google is the same you show to any other visitor- this doesn't change that. You can have different content for registered users, and most people do. |
Quote:
Also when I copied that code I got this message Quote:
|
Sorry I thought you knew what condition you wanted already... you need something like this:
That will show the ad to usergroups 5, 6, and 7 and show "Alternate Info" to everyone else. |
Thanks a lot! Works beautifully :)
|
All times are GMT. The time now is 16:32. |
Powered by vBulletin® Version 3.8.14
Copyright © 2021, MH Sub I, LLC dba vBulletin. All Rights Reserved. vBulletin® is a registered trademark of MH Sub I, LLC
Copyright ©2001 - , vbulletin.org. All rights reserved.