CodingForums.com

CodingForums.com (http://www.codingforums.com/index.php)
-   HTML & CSS (http://www.codingforums.com/forumdisplay.php?f=13)
-   -   AdSense Conditional Author Codes (http://www.codingforums.com/showthread.php?t=284532)

TheEtc 12-22-2012 01:16 AM

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='data:post.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.

felgall 12-22-2012 01:59 AM

What server side language is that if statement using? Do you have that language available on your server?

TheEtc 12-22-2012 01:49 PM

To be honest I have no idea what that means haha. I forgot to mention that this is a Blogger site though, if that helps.

TheEtc 12-28-2012 05:20 PM

I still can't figure this out. Does anyone have any suggestions?

TheEtc 01-04-2013 05:05 AM

Still having problems with this if anyone has any ideas

TheEtc 01-08-2013 07:10 PM

Hate to keep bumping but I haven't figured this out yet and I'd like to get it running as soon as possible for the other contributors to my website, so any help would really be appreciated

TheEtc 01-15-2013 06:39 AM

...bump......

TheEtc 01-22-2013 07:54 AM

Alright, I guess you should just save the forum space and delete this thread.


All times are GMT +1. The time now is 04:51 AM.

Powered by vBulletin®
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.