Go Back   CodingForums.com > :: Client side development > HTML & CSS

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
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
Old 12-22-2012, 01:59 AM   PM User | #2
felgall
Master Coder

 
felgall's Avatar
 
Join Date: Sep 2005
Location: Sydney, Australia
Posts: 5,465
Thanks: 0
Thanked 499 Times in 491 Posts
felgall is a jewel in the roughfelgall is a jewel in the roughfelgall is a jewel in the rough
What server side language is that if statement using? Do you have that language available on your server?
__________________
Stephen
Learn Modern JavaScript - http://javascriptexample.net/
Helping others to solve their computer problem at http://www.felgall.com/
felgall is offline   Reply With Quote
Old 12-22-2012, 01:49 PM   PM User | #3
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
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 is offline   Reply With Quote
Old 12-28-2012, 05:20 PM   PM User | #4
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
I still can't figure this out. Does anyone have any suggestions?
TheEtc is offline   Reply With Quote
Old 01-04-2013, 05:05 AM   PM User | #5
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
Still having problems with this if anyone has any ideas
TheEtc is offline   Reply With Quote
Old 01-08-2013, 07:10 PM   PM User | #6
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
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 is offline   Reply With Quote
Old 01-15-2013, 06:39 AM   PM User | #7
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
...bump......
TheEtc is offline   Reply With Quote
Old 01-22-2013, 07:54 AM   PM User | #8
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
Alright, I guess you should just save the forum space and delete this thread.
TheEtc is offline   Reply With Quote
Reply

Bookmarks

Tags
adsense, conditional tag, css

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 08:09 AM.


Advertisement
Log in to turn off these ads.