Re: [gwiley] Placeholder for Ad Code

By Kimber - August 25, 2010

I wrap ad codes of google adsense using

https://docs.google.com/Doc?docid=0AR2-8_4-7slRZGY5emY3NGRfM2NmZmJic2N3&hl=en

I put the codes right above the content placeholder I want the ads to appear in and the ads appear in the content.

Re: [Kimber] Placeholder for Ad Code

By gwiley - August 25, 2010

Thanks for the reply, Kimber! Unfortunately, I don't fully understand what you're doing, though. Are you using the My Placeholders page, creating a new placeholder, i.e. my.googlead, and adding your google ad code and inserting that placeholder, i.e. $my.googlead$, directly into the content area where you type the article?

If not, do you have sample code of what you're doing?

Thanks!

Re: [gwiley] Placeholder for Ad Code

By Kimber - August 25, 2010

In Admin > Template Editor > articlePages/articlePage.html

I put:

<div style="display:block;float:right;margin: 5px;">
My Google Codes
</div>
<div class="content">
<br> $article.content$
</div>

I am not using placeholder for the ad codes. I am wrapping them directly in the page.

Example: http://www.momsbreak.com/printable/craftpaper/balloonpaper3.shtml

Does that help?

Re: [Kimber] Placeholder for Ad Code

By gwiley - August 25, 2010

I see what you're doing. It's not *exactly* what I was looking for, but closer than what I have now. Thanks very much for your input! I was hoping more for placing it anywhere in the content area just not wrapped around the top or the bottom in some fashion. But, that'll bring my Ad up from the bottom of the page and make it look more integrated than in the disjointed fashion it is now.

Thank you very much! I owe ya one!

Re: [gwiley] Placeholder for Ad Code

By Kimber - August 25, 2010

I use to use Article Manager as my primary web site software and that is the closest I have ever gotten to getting the ads in the content. I know some place on the forum, if you search, there is an article on making ad show up much ever so many paragraphs so you might try searching the forum for that article.

Re: [Kimber] Placeholder for Ad Code

By gwiley - August 25, 2010

I found the article you're talking about. I can use that to do EXACTLY what I wanted. Thanks!

For those that need it, here's what I did. It wrapped the text in the content area around a 250x250 Google Ad with a right-justify a couple paragraphs down. Embedded all snug.

1. Connect with your web server and look for the "articlePage.html" template file, this file can be found inside the /templates/articlePages/ directory. :)

2. Open up this template file and look for this bit of code:

$article.content$

Change it to this:

<p>$article.content:limitParagraphs(1-2)$

<!-- templateIf: $article.content:limitParagraphs(2)$ ne "" -->


<div style="display:block;float:right;margin: 5px;">
<!-- Place your Adsense code here BEGIN-->
!!!Google Code HERE!!!
<!-- Place your Adsense code here END-->
<br>
</div>

<!-- /templateIf -->

$article.content:limitParagraphs(3+)$</p>

This is what it looks like: http://funreviews.net/publish/SportsandRecreation/Les_Baer_s_Tactical_Recon.php

Re: [gwiley] Placeholder for Ad Code

By Kimber - August 26, 2010

Happy to help