At long last, we're moving to forums powered by, well, Movable Type itself. You'll want to bookmark http://forums.movabletype.org/ for future reference, and in the meantime you can view these old forums as a read-only archive of past posts. Thanks for being part of the community!
![]() ![]() |
Apr 6 2005, 03:52 PM
Post
#1
|
|
|
Group: Members Posts: 31 Joined: 1-May 02 Member No.: 569 |
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 -------------------- |
|
|
|
Apr 6 2005, 04:04 PM
Post
#2
|
|
|
Group: Members Posts: 6,743 Joined: 23-July 02 From: Christchurch, New Zealand Member No.: 3,469 |
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.
|
|
|
|
Apr 7 2005, 06:18 AM
Post
#3
|
|
|
Group: Members Posts: 31 Joined: 1-May 02 Member No.: 569 |
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! 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! -------------------- |
|
|
|
Jul 24 2005, 06:46 PM
Post
#4
|
|
|
Group: Members Posts: 17 Joined: 18-July 05 Member No.: 32,140 |
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! |
|
|
|
![]() ![]() |
| Lo-Fi Version | Time is now: 11.24.09 - 10:56 PM |