Very Simple: Place Ad After Entry?

Skinning and designing Serendipity (CSS, HTML, Smarty)
Post Reply
TopDawg
Regular
Posts: 46
Joined: Thu Sep 14, 2006 5:15 pm
Location: Euclid, Ohio
Contact:

Very Simple: Place Ad After Entry?

Post 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!!
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Very Simple: Place Ad After Entry?

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
TopDawg
Regular
Posts: 46
Joined: Thu Sep 14, 2006 5:15 pm
Location: Euclid, Ohio
Contact:

Post 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>
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Post Reply