Page 1 of 1
Very Simple: Place Ad After Entry?
Posted: Thu Nov 16, 2006 8:29 pm
by TopDawg
I was wondering where I should paste my ad code (chitika) within entries.tpl if I want it to show up at the end of my entries?
I've tried some places that looked "logical" (to me, at least) and it makes my page go blank.
Thanks ahead of time!!
Re: Very Simple: Place Ad After Entry?
Posted: Fri Nov 17, 2006 1:33 pm
by garvinhicking
Hi!
Maybe you'd better put it in index.tpl, after the {CONTENT} section?
Where exactly did you try to put which code? I guess you pasted wrong/bad code...
Best regards,
Garvin
Posted: Sat Nov 18, 2006 12:17 am
by TopDawg
I wanted the banner to show up at the bottom of each entry before where the category and author, etc are listed - for example:
Code: Select all
blah blah blah, here's my entry
(ad banner here)
---------------------------------------
Entry by: Me Category: Random
The code they gave me is the following:
Code: Select all
<script type="text/javascript"><!--
ch_client = "TopDawg";
ch_width = 468;
ch_height = 60;
ch_color_border = "261500";
ch_color_bg = "dfd8d1";
ch_color_title = "ff6e1f";
ch_color_text = "261500";
ch_non_contextual = 1;
ch_nosearch = 1 ;
ch_default_category = "81";
var ch_queries = new Array( "cleveland browns", "NFL", "football", "sports", "football jersey" );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
if ( ch_selected < ch_queries.length ) {
ch_query = ch_queries[ch_selected];
}
//--></script>
<script src="http://scripts.chitika.net/eminimalls/mm.js" type="text/javascript">
</script>
Posted: Sat Nov 18, 2006 8:22 pm
by garvinhicking
Hi!
If you insert JS into the entries.tpl, you must replace { with {ldelim} and} with {rdelim} to prevent errors!Try that!:)
HTH,
Garvin