Main
Index
Search
Posts
Who's
Online
Log
In

Home: Discontinued/Classic Products: Article Manager 2:
Author Specific Display Ad

 

 


dbeldowicz
New User

Jun 13, 2008, 10:50 AM

Post #1 of 9 (2493 views)
Shortcut
Author Specific Display Ad Can't Post

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


Jake
Staff


Jun 14, 2008, 7:34 PM

Post #2 of 9 (2458 views)
Shortcut
Re: [dbeldowicz] Author Specific Display Ad [In reply to] Can't Post

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:


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. Smile
-----------------------------------------------------------
Cheers,
Jake Marvin - Product Specialist
support@interactivetools.com

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


Illume Magazine
User

Jun 18, 2008, 6:20 PM

Post #3 of 9 (2431 views)
Shortcut
Re: [Jake] Author Specific Display Ad [In reply to] Can't Post

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


Illume Magazine
User

Jun 19, 2008, 10:09 AM

Post #4 of 9 (2408 views)
Shortcut
Re: [Illume Magazine] Author Specific Display Ad [In reply to] Can't Post

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


Jake
Staff


Jun 19, 2008, 11:46 AM

Post #5 of 9 (2405 views)
Shortcut
Re: [Illume Magazine] Author Specific Display Ad [In reply to] Can't Post

Hi Javed,

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

[hr][i][url "http://www.interactivetools.com/consulting/"][b]Hire me![/b][/url]
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 [url "http://www.interactivetools.com/consulting/"][b]Priority Consulting[/b][/url].[/i]


dbeldowicz
New User

Jun 19, 2008, 11:50 AM

Post #6 of 9 (2401 views)
Shortcut
Re: [Jake] Author Specific Display Ad [In reply to] Can't Post

Awesome, works great, Thanks Jake


carminejg3
User

Mar 31, 2009, 11:34 PM

Post #7 of 9 (1941 views)
Shortcut
Re: [dbeldowicz] Author Specific Display Ad [In reply to] Can't Post

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


Webmaster [wink]
http://news.carjunky.com


aussierewards
User

Apr 1, 2009, 1:38 PM

Post #8 of 9 (1932 views)
Shortcut
Re: [Jake] Author Specific Display Ad [In reply to] Can't Post

HI Jake,

Where should this "template if" be inserted ? Which template and what position on the template ?

Thanks Jake
Aussie


Donna
Staff / Moderator


Apr 2, 2009, 2:08 PM

Post #9 of 9 (1893 views)
Shortcut
Re: [aussierewards] Author Specific Display Ad [In reply to] Can't Post

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