View Full Version : if condition for users style
DoB Rhapsody
05-29-2008, 01:10 AM
I'm placing adsense on my site but i have two styles. I would like to style my adsense to look like the style that the user is currently viewing. Is there an if condition i can use for this?
veenuisthebest
05-29-2008, 01:20 AM
would it be tough..??
1. first, create the two different adsense styles at the google adsense website. you'll get two separate codes for each.
2. now, simply put the codes in the style's respective ad location templates or anywhere. thats it
DoB Rhapsody
05-29-2008, 04:01 AM
oh, sorry. I forgot to mention that i'm using an ad management mod. I can only input in one box that will output in all styles. so doing what you've said above just won't work.
--------------- Added 1212092322 at 1212092322 ---------------
A little help please.
I've tried the code below which i was sure was going to work but it didn't..
<if condition="$bbuserinfo['styleid'] == X">
SOME CODE
</if>
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.