Html And Ad Placement-Need Help

by 3 replies
4
Hi Everyone,

I have a ?..I'm trying to figure out where I would place my html code for say amazon or a Cpa Offer In this template..I want the ad to show in the post just under the title..can someone please help me ? :confused:








<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">


<head>
<title>{$post.title|strip_tags} by {$blog.title}</title>
<meta name="Keywords" content="{$blog.title},{$blog.subtitle}" />
<meta name="Description" content="{$site.title} - {$blog.title}. {$post.title} " />
<link rel="alternate" type="application/rss+xml" title="RSS" href="{$blog.link}rss.xml" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />

<link href="{$blog.troot}style.css" rel="stylesheet" type="text/css">
<meta name="robots" content="index,follow,noarchive">
</head>

<body>
<div id="rap">
<h1 id="header"><a href="{$blog.link}">{$blog.title}</a></h1>

<div id="content">

<div class="content"><form method=get action=http://{$site.domain}/search/>
<input type=text name=query value='{$query}' size="20"><input type=submit value='Find'></form></div>


<h2> {$post.date|date_format:"%B %e, %Y"}</h2>
<div class="post">
<h3 class="storytitle">{$post.title}</h3>
<div class="meta">
by <a href="{$blog.link}">{$blog.title}</a> @ {$post.date} (Category: {$blog.topic_name})
</div>
<div class="storycontent">
{$post.content}
</div>

<div class="feedback">
Original article: <a href="{$post.source_item_backlink}">{$post.title}</a> {if $post.source_channel_copyright}by
{$post.source_channel_copyright}{/if} {if $post.source_channel_title}at
<a href="{$post.source_channel_backlink}">{$post.sour ce_channel_title}</a>{/if}
<br>
Tags: {foreach from=$post.tags item=tag key=key name=tagloop} {if $smarty.foreach.tagloop.last} <a href='http://{$site.domain}/search/{$tag|urlencode}' rel='tag'>{$tag}</a> {else} <a href='http://{$site.domain}/search/{$tag|urlencode}' rel='tag'>{$tag}</a>, {/if} {/foreach}
</div>

</div>

</div>

<div id="menu">
<ul>
<li id="wordpress">Recent posts
<ul>

{foreach from=$posts item=lpost}
<li><a href="{$lpost.link}" rel="bookmark" title="{$lpost.title|strip_tags}">{$lpost.title|st rip_tags}</a></li>{/foreach}

</ul>
</li>
</div>

</div>

</body>
</html>
#programming #html #placementneed
  • Anywhere before the </body> and after the <body>. Depending on where you want it to be displayed on your page of course. VERY Basic HTML Page Structure. You should learn that before you start.
    • [1] reply
    • put your ad code after this:

      <div class="meta">
      by <a href="{$blog.link}">{$blog.title}</a> @ {$post.date} (Category: {$blog.topic_name})
      </div>

      and before this:

      <div class="storycontent">
      {$post.content}
      </div>
  • great script example,its really helpful...

Next Topics on Trending Feed

  • 4

    Hi Everyone, I have a ?..I'm trying to figure out where I would place my html code for say amazon or a Cpa Offer In this template..I want the ad to show in the post just under the title..can someone please help me ? :confused: