[Help] Adding a clicksor ad

Started by venomthakid, June 26, 2005, 01:23:22 AM

Previous topic - Next topic

venomthakid

Im trying 2 ad advertisment to my site. Wat i did was find the logo in my template.index.php and with dream weaver i found the smflogo and replaced it with the find and replace.
I get this error when i open the page up.

Template Parse Error!
It seems something has gone sour on the forum with the template system. This problem should only be temporary, so please come back later and try again. If you continue to see this message, please contact the administrator.


What i do wrong did i add the clicksor javascript wrong?

[Unknown]

In the code you're trying to add, make sure to put a \ (backslash) before any ' (single quotes) or \ (backslashes.)  If you don't, you'll get that error.

An alternative is something more like what's described here:

Integrating the forum into your site...

-[Unknown]

venomthakid

i still dont understand heres my code for clicksor

'/<!-- Clicksor.com Advertising Code Begin -->
<script type='text/javascript'>
<!--
clicksor_layer_border_color = '#B4D0DC';
clicksor_layer_ad_bg = '#ECF8FF';
clicksor_layer_ad_link_color = '#0000CC';
clicksor_layer_ad_text_color = '#000000';
clicksor_text_link_bg = '';
clicksor_text_link_color = '#000FFF';

clicksor_enable_text_link = true;

clicksor_banner_border = '#B4D0DC'
clicksor_banner_ad_bg = '#ECF8FF'
clicksor_banner_link_color = '#0000CC'
clicksor_banner_text_color = '#000000'
clicksor_banner_image_banner = true;
clicksor_enable_pop = true;
//-->
</script>
<script type='text/javascript' src='http://ads.clicksor.com/showAd.php?pid=16945&sid=23113&adtype=1'></script>
<!-- Clicksor.com Advertising Code End -->"


can u show me what u mean with the backslashes

treo


<?php
echo "<!-- Clicksor.com Advertising Code Begin -->
<script type='text/javascript'>
<!--
clicksor_layer_border_color = '#B4D0DC';
clicksor_layer_ad_bg = '#ECF8FF';
clicksor_layer_ad_link_color = '#0000CC';
clicksor_layer_ad_text_color = '#000000';
clicksor_text_link_bg = '';
clicksor_text_link_color = '#000FFF';

clicksor_enable_text_link = true;

clicksor_banner_border = '#B4D0DC'
clicksor_banner_ad_bg = '#ECF8FF'
clicksor_banner_link_color = '#0000CC'
clicksor_banner_text_color = '#000000'
clicksor_banner_image_banner = true;
clicksor_enable_pop = true;
//-->
</script>
<script type='text/javascript' src='http://ads.clicksor.com/showAd.php?pid=16945&sid=23113&adtype=1'></script>
<!-- Clicksor.com Advertising Code End -->"
;
?>


If you have single Qoutes in the Code you want to add to the template you have to use Double Quotes around it

venomthakid


Advertisement: