HOME | DOWNLOAD | SUPPORT | INSTALLATION | FAQ | SUPPORT FORUM | DEMO
 ° Forums ° Statistics ° Registration ° Search ° Manual °
SkaLinks Forum / General Discussions / This ish ow to add adsense between listings..
Author Message
BEN
Member

Posted: 20 Jan 2006 07:24:53 ° Edited by: BEN


...I wanted to put my google adsense code between the link listings, heres how I did it.

In cat.tpl find:

{if $ADMIN.Name && $links.Name}
<div class="marg_desc">{$_skalinks_lang.link.editor_name}{$links.Name}</div >
{/if}
<br>
<div class=marg_desc>{$links.description}<br><br>
{if $_output.mod_rewrite}

<a class = 'cat' href='{$_skalinks_url.root}detailed/listing{$links.ID}.html'>{$_skalin ks_lang.link.more_info}</a>

{else}



{/if}</div>

</div>

And add your code below

Simple huh!

This is how mine looks, I just centre aligned the adds:

{if $ADMIN.Name && $links.Name}
<div class="marg_desc">{$_skalinks_lang.link.editor_name}{$links.Name}</div >
{/if}
<br>
<div class=marg_desc>{$links.description}<br><br>
{if $_output.mod_rewrite}

<a class = 'cat' href='{$_skalinks_url.root}detailed/listing{$links.ID}.html'>{$_skalin ks_lang.link.more_info}</a>

{else}



{/if}</div>

</div>
<div align="center">
<script type="text/javascript"><!--
google_ad_client = "pub-1419678022614994";
google_color_border = "ffffff";
google_ad_width = 468;
google_ad_height = 60;
google_ad_format = "468x60_as";
google_ad_type = "text_image";
google_ad_channel ="";
//--></script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script>
</div>

--------------

Note that on my site the adsense only appears twice under the listings, thats because I have a leaderboard google ad in the header, and google only lets you have 3 blocks of ad's per page.

Hope this helps someone!