Recent Topics

1 Nov 10, 2005 06:25    

I'm lost here. I'm signing up to have Chitika sell ads and they have a java script aplet they need me to paste into my blog template for it to work (and they suggested having it at the bottom of eachi post).

So far I've tried pasting it into:

1) The footer file in the main blog directory
2) The template file in the main blog directory
3) the main file in the normal directory.

Noe of its worked and the script doesn't show up at all. Where does this sucker go?

<script type="text/javascript"><!--
ch_client = "adamelijah";
ch_width = 160;
ch_height = 160;
ch_color_border = "#FFFF33";
ch_non_contextual = 1;
var ch_queries = new Array( "digital cameras", "ipod mini", "sony playstation", "dell laptop" );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
ch_query = ch_queries[ch_selected];
//--></></script><br />c="http://scripts.chitika.net/eminimalls/mm.js" type="text/javascript">

2 Nov 10, 2005 14:52

To edit your skin you need to go into your skin's directory and edit the _main.php file.

So if you're using the custom skin you would go to \blogs\skins\custom\_main.php

3 Nov 11, 2005 02:44

Okay, I've copied and pasted the text into the template half a dozen time and each time I save it and check my blog, its still not showing up, where do I save it so that it shows up.

My blog URL is http://www.adamsweb.us/blog

--Adam Graham

4 Nov 11, 2005 05:20

Well, on my skin, I have a line of code in the _main.php file that looks like this:

<?php } // ---------------------------------- END OF POSTS ------------------------------------ ?>


I would put your snippet of code right above that line. Are you sure that's the only block of code you need to get the ads to work? I'm no javascript expert so I can't look at it and know if there's a problem.

5 Nov 11, 2005 17:48

The first thing I notice is that this code is not valid. The last line contains some invalid tags, including the link to your external script.

I can't say for sure what it is supposed to look like, but here is my best guess.

<script type="text/javascript"><!--
ch_client = "adamelijah";
ch_width = 160;
ch_height = 160;
ch_color_border = "#FFFF33";
ch_non_contextual = 1;
var ch_queries = new Array( "digital cameras", "ipod mini", "sony playstation", "dell laptop" );
var ch_selected=Math.floor((Math.random()*ch_queries.length));
ch_query = ch_queries[ch_selected];
//--></script>
<script src="http://scripts.chitika.net/eminimalls/mm.js" type="text/javascript"></script>


Try that and see if it works. If not, then you need to go back to wherever you got this script and ask for some valid HTML code.


Form is loading...