News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Where should I place clicksor ads - NEED SOME HELP!

Started by Toufique Ahmed, January 23, 2006, 03:10:09 AM

Previous topic - Next topic

Toufique Ahmed

Hello,
         I want to place clicksor ads, and when i tryied to do that in index.template.php (where google adsense ads are also placed) it simple give errors!
Do this is problem with clicksor ads code?
Click sor ad type is like whenever it finds appropriate word it give its own link there and that will be counted as ad. Like word "Mobile" is used in a post it will give a link on mobile (ads).
and i want to place it in whole forum!
so where should i put this

Thanks

Prasad007

well it wont work if you put the adcode in index.php
so put it in template.index.php in the directory of the theme you use:
www.yoursite.com/forum/themes/yourtheme/template.index.php (example)
put it there and let me know how it turns out.

Toufique Ahmed


Prasad007


Toufique Ahmed

Dear there is nothing like template.index.php in themes directry. I am using SMF 1.1Rc2, rather then template.index.php there is index.template.php. When i inserted code some where it gives errors!
so tell me where should i put the code

Thanks
Toufique Ahmed

Prasad007

Quote from: Toufique Ahmed on January 25, 2006, 03:29:10 AM
Dear there is nothing like template.index.php in themes directry. I am using SMF 1.1Rc2, rather then template.index.php there is index.template.php. When i inserted code some where it gives errors!
so tell me where should i put the code

Thanks
Toufique Ahmed
sorry for that
put it in the end of the index.template.php file just before the ?>

dtm.exe

Quote from: Prasad007 on January 28, 2006, 12:07:50 PM
put it in the end of the index.template.php file just before the ?>

That would not work.

Prasad007


Toufique Ahmed

Succeed clicksor ad is working properly i have placed it in index.template.php
the problem was with clicksor ads code
this is orginal code from clicksor

<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';
//-->
</script>
<script type='text/javascript' src='http://ads.clicksor.com/clicksor.php?pid=15682&sid=50629'></script>
<noscript><a href='http://www.clicksor.com'>Contextual advertising</a></noscript>

and this i have added (because uper code gives error)

<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";
//-->
</script>
<script type="text/javascript" src="http://ads.clicksor.com/clicksor.php?pid=15682&sid=50629"></script>
<noscript><a href="http://www.clicksor.com">Contextual advertising</a></noscript>

Advertisement: