View Single Post
Old 12-22-2012, 01:16 AM   PM User | #1
TheEtc
New Coder

 
Join Date: Oct 2012
Posts: 12
Thanks: 1
Thanked 0 Times in 0 Posts
TheEtc is an unknown quantity at this point
AdSense Conditional Author Codes

Hey guys, wondering if you can help me out with a problem I seem to not be able to wrap my head around. I have a blog with multiple authors on it and I'd like to have one of the AdSense spots change depending on the author. That way, by default, anyone who writes a post gets their code on that page and for everything else it defaults back to me.

I was assuming it would be an easy <b:if cond='dataost.author == "Author"'>insert AdSense code<b:else/> insert my AdSense code</b:if> or something of the sort, but I can't seem to get anything to work. I always end up with error screens, such as one about "invalid data reference post.url: No dictionary named" or about it simply being formatted incorrectly.

Any thoughts on how to accomplish this? I'm sure it's something easy that I'm just overlooking.

Many thanks in advance.
TheEtc is offline   Reply With Quote