Help - Search - Members - Calendar
Full Version: Adsense in Archives
Movable Type Community Forum > Using Movable Type > Additional Features
Harvey
Hello all.

Trying to get Adsense to show up on my Archive files but not having much luck.

I think I need to put it into my Master Archive Index Template...

And have tried like this.

CODE
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "DTD/xhtml1-transitional.dtd">

<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title><$MTBlogName$> Archives</title>

<link rel="stylesheet" href="styles-site.css" type="text/css" />

</head>

<body text="000000" bgcolor="#FFFFFF" background="images/back.gif">

<!-- All encompasing Table just for centering -->
<table width="100%" border="0" cellspacing="0" cellpadding="0" align="center">
<tr>
<td>

<!-- Inside Table -->
<table width="602" border="0" RULES=GROUPS cellspacing="1" align="center" bgcolor="Black">
<tr>
<td colspan="8" background="images/title2.jpg" width="600" height="62" ALT="Title"> 
</td>

<!-- NAVIGATION SECTION -->
<? include "phpinc/mainnav2.inc"; ?>
<!-- END NAVIGATION SECTION -->

<!-- NEWS SECTION -->
<? include "phpinc/news.inc"; ?>
<!-- END NEWS SECTION -->



<tr>
<td bgcolor="white" valign="top" width="600" height="100%" colspan="8">    


<div id="container">
<div class="blog">
<div class="blogbody">
<MTArchiveList>
<a href="<$MTArchiveLink$>"><$MTArchiveTitle$></a><br />

<!--ADSENSE-->
<center>
<table>
<TR><td>
<script type="text/javascript"><!--
google_ad_client = "pub-9529976444939014";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_channel ="";
google_color_border = "CCCCCC";
google_color_bg = "FFFFFF";
google_color_link = "000000";
google_color_url = "666666";
google_color_text = "333333";
//--></script>
<script type="text/javascript"
 src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</td></tr>
</table>
</center>
<!--ADSENSE-->


</MTArchiveList>

</div>
</div>
</div>

<!-- MY STUFF -->
</td>
</tr>
</table>

</td>
</tr>
</table> <!-- end all encompansing table -->
<!-- MY STUFF -->


</body>
</html>


But not having any luck.

Not sure if I have the wrong template file, or if I am just sticking the code in the wrong place?

I am trying to target the archives which show up when someone clicks a Month on the right hand of my site.

The site is here. http://www.japannewbie.com

Any help would be appreciated!

-Harvey
maddy
The Master Archive Index template controls only a single file (archives.html). To have the code appear in all of your archives, you would need to edit the Individual Entry Archive, Date-Based Archive, and Category Archive templates (if you have them all enabled). You might find this thread helpful. smile.gif
Harvey
QUOTE
(if you have them all enabled).


Basic question but, how do I enable them?

Wow weird I'm really bad at this.

I have code in all three of the individual templates, but not getting any reaction from my site. The archives look as if nothing has changed.

I must be missing something incredibly obvious here~

I noticed the edit Archive File Options option in there, and Individual and Date-Based are checked... and those are the templates I added the code to...

weirdness! wink.gif

It seems my tempaltes aren't taking effect... I changed something obvious in my template, changing the "Email Address" in Individual Archive to "Email Addy", and changes weren't reflected. Guess this is why nothing is workin!
stargaze
you would have to rebuild your site!!!!



anyway... i have a question. how come my ads are missing?? they look okay in index page.. but on the first entry individual page, 2 are missing, same goes when i view by categories (which is my archive type) suxxxx i ve been coding this for days now! sad.gif
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2008 Invision Power Services, Inc.