Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: Toufique Ahmed - tammikuu 23, 2006, 03:10:09 AP

Otsikko: Where should I place clicksor ads - NEED SOME HELP!
Kirjoitti: Toufique Ahmed - tammikuu 23, 2006, 03:10:09 AP
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
Otsikko: Re: Where should I place clicksor ads - NEED SOME HELP!
Kirjoitti: Prasad007 - tammikuu 23, 2006, 03:51:31 AP
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.
Otsikko: Re: Where should I place clicksor ads - NEED SOME HELP!
Kirjoitti: Toufique Ahmed - tammikuu 23, 2006, 04:26:59 AP
ok i will try and tell you the results.......
Otsikko: Re: Where should I place clicksor ads - NEED SOME HELP!
Kirjoitti: Prasad007 - tammikuu 23, 2006, 04:56:22 AP
Lainaus käyttäjältä: Toufique Ahmed - tammikuu 23, 2006, 04:26:59 AP
ok i will try and tell you the results.......
sure! take your time! :)
Otsikko: Re: Where should I place clicksor ads - NEED SOME HELP!
Kirjoitti: Toufique Ahmed - tammikuu 25, 2006, 03:29:10 AP
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
Otsikko: Re: Where should I place clicksor ads - NEED SOME HELP!
Kirjoitti: Prasad007 - tammikuu 28, 2006, 12:07:50 IP
Lainaus käyttäjältä: Toufique Ahmed - tammikuu 25, 2006, 03:29:10 AP
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 ?>
Otsikko: Re: Where should I place clicksor ads - NEED SOME HELP!
Kirjoitti: dtm.exe - tammikuu 28, 2006, 12:12:02 IP
Lainaus käyttäjältä: Prasad007 - tammikuu 28, 2006, 12:07:50 IP
put it in the end of the index.template.php file just before the ?>

That would not work.
Otsikko: Re: Where should I place clicksor ads - NEED SOME HELP!
Kirjoitti: Prasad007 - tammikuu 28, 2006, 12:48:41 IP
Lainaus käyttäjältä: dtm.exe - tammikuu 28, 2006, 12:12:02 IP
Lainaus käyttäjältä: Prasad007 - tammikuu 28, 2006, 12:07:50 IP
put it in the end of the index.template.php file just before the ?>

That would not work.
ummm... then wat wud??
Otsikko: Re: Where should I place clicksor ads - NEED SOME HELP!
Kirjoitti: Toufique Ahmed - tammikuu 31, 2006, 01:15:34 AP
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>