Simple Machines Community Forum

Customizing SMF => SMF Coding Discussion => Aiheen aloitti: johnpaul2k2 - helmikuu 24, 2014, 02:06:17 AP

Otsikko: what will i add to this code, so it will work please
Kirjoitti: johnpaul2k2 - helmikuu 24, 2014, 02:06:17 AP
I have loans of codes on this but it seems not to work. Please what will i add again? i pasted it within HTML BLOCK but it fails to show. so i was instructed to add before end </body> in index.template.php

please what will i add to this code, so it will work






<!-- Kontera(TM);-->
<script type='text/javascript'>
var dc_AdLinkColor = 'blue' ;
var dc_PublisherID = 235642 ;

</script>
<script type='text/javascript' src='http://kona.kontera.com/javascript/lib/KonaLibInline.js'>
</script>
<!-- end Kontera(TM) -->

Otsikko: Re: what will i add to this code, so it will work please
Kirjoitti: margarett - helmikuu 24, 2014, 02:51:51 AP
You need to echo it and the single quotes need to be escaped with a backslash
Otsikko: Re: what will i add to this code, so it will work please
Kirjoitti: johnpaul2k2 - helmikuu 24, 2014, 03:03:24 AP
did it like this ( even before posting



echo' <!-- Kontera(TM);-->
<script type='text/javascript'>
var dc_AdLinkColor = 'blue' ;
var dc_PublisherID = 235642 ;

</script>
<script type='text/javascript' src='http://kona.kontera.com/javascript/lib/KonaLibInline.js'>
</script>
<!-- end Kontera(TM) --> ;



right??? if yes , then it didn't work
Otsikko: Re: what will i add to this code, so it will work please
Kirjoitti: johnpaul2k2 - helmikuu 24, 2014, 03:49:54 AP
got it fixed :)