![]() |
|
Thread Tools |
#1
|
||||
|
||||
![]()
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! ![]() No members have liked this post.
|
#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>
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#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? No members have liked this post.
Last edited by Cool Dog; 10 Sep 2010 at 08:22. |
#4
|
||||
|
||||
Originally Posted by Cool Dog
You'd put in like this:![]()
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.
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#5
|
||||
|
||||
Originally Posted by BirdOPrey5
Hello again, thank you for your help. Sorry I'm rather new at this but what do I put into "your condition"? I tried to leave it how it is but it did not work.![]()
Also when I copied that code I got this message
No members have liked this post.
|
#6
|
||||
|
||||
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.
__________________
-Joe Former vb.org Moderator. Retired. @BirdOPrey5 | All Things BOP5 | Joe's Ultimate Off Topic Note - I no longer making new VB mods, sorry. No members have liked this post.
|
#7
|
||||
|
||||
Thanks a lot! Works beautifully
![]() No members have liked this post.
|
![]() |
«
Previous Thread
|
Next Thread
»
Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
Thread Tools | |
|
|
New To Site? | Need Help? |
All times are GMT. The time now is 10:09.