• Archived  

By dbeldowicz - June 13, 2008

I'm looking for a way to display Google Adsense only if it is by a certain author, is there a way to either create different templates for different authors, or can I put it in the main article template that if this specific author name appears display these ads?

Any Suggestions?

Dan

Re: [dbeldowicz] Author Specific Display Ad

  • Archived  

By Jake - June 14, 2008

Hi Dan,

The easiest way to set this up would be by using templateIf statements that check against your author names on your articlePage.html template. So if you have a field called "author", you would use the following code to check which article wrote the article, and to display the corresponding ad code:

<!-- templateIf: $article.author$ eq "John Doe" -->
***Ad code for John Doe***
<!-- /templateIf -->

<!-- templateIf: $article.author$ eq "Jane Doe" -->
***Ad code for Jane Doe***
<!-- /templateIf -->


You would need to set up one of those statements for each author on your site.

Let us know if you have any other questions. [:)]
-----------------------------------------------------------
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com

Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.

Re: [Jake] Author Specific Display Ad

  • Archived  

By Illume@Magazine - June 18, 2008

OH wow...I think you have just solved my problem Jake! Will this work with author profiles? If I have external pages, one for each author, that houses the author pic/bio, can I use an ssi and do a template if to call the profiles based on the author name?

Thanks,

Javed Ali
ILLUME

Re: [Illume Magazine] Author Specific Display Ad

  • Archived  

By Illume@Magazine - June 19, 2008

This is great! I used the code, and it works flawlessly.

Re: [Illume Magazine] Author Specific Display Ad

  • Archived  

By Jake - June 19, 2008

Hi Javed,

I'm glad to hear this worked out for you! Let us know if there's anything else we can help with. [:)]
-----------------------------------------------------------
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com

Hire me!
Save time by getting our experts to help with your project. Template changes, advanced features, full integration, whatever you need. Whether you need one hour or fifty, get it done fast with Priority Consulting.

Re: [Jake] Author Specific Display Ad

  • Archived  

By dbeldowicz - June 19, 2008

Awesome, works great, Thanks Jake

Re: [dbeldowicz] Author Specific Display Ad

  • Archived  

By carminejg3 - March 31, 2009

this is an awesome thing to know that artman 2 can do.... even if you don't need it right now. thanks

Re: [aussierewards] Author Specific Display Ad

  • Archived  

By Donna - April 2, 2009

Hi there,

This is specific to the article page template, and would go wherever you want the ad to show up. :)
Donna

--
support@interactivetools.com