ballhogjoni Posted March 27, 2007 Share Posted March 27, 2007 Hey everyone, I am trying to put the kontera ad code on my forum site, but i don't know where to begin because I have tried to put it in several places but they all don't work. The kontera ad code is just a contextual advertising. It underlines the words twice. this is my code: <script type='text/javascript'> var dc_AdLinkColor = 'orange' ; var dc_UnitID = 14 ; var dc_PublisherID = XXXX ; var dc_adprod = 'ADL' ; </script> <script type='text/javascript' src='http://kona.kontera.com/javascript/lib/KonaLibInline.js'> </script> Quote Link to comment https://forums.phpfreaks.com/topic/44506-solved-smf-forum-help/ Share on other sites More sharing options...
monk.e.boy Posted March 27, 2007 Share Posted March 27, 2007 this should go in the <head></head> of the page. monk.e.boy Quote Link to comment https://forums.phpfreaks.com/topic/44506-solved-smf-forum-help/#findComment-216147 Share on other sites More sharing options...
ballhogjoni Posted March 27, 2007 Author Share Posted March 27, 2007 actually it needs to be at the bottom of the page, right before the end body tag. That's not my issue. The issue is what page I would put it in if all pages are php pages. Does anyone know how to work with the SMF forum scripts. This forum is designed using the SMF forum script. Quote Link to comment https://forums.phpfreaks.com/topic/44506-solved-smf-forum-help/#findComment-216164 Share on other sites More sharing options...
wildteen88 Posted March 27, 2007 Share Posted March 27, 2007 If it needs to go at the bottom of page source then edit the template called index.template.php and scroll down to line 435: Line 435 should look like this, NOTE: I am referring to the default theme. </body></html>'; and change it to this: </body></html> <script type="text/javascript"> var dc_AdLinkColor = \'orange\' ; var dc_UnitID = 14 ; var dc_PublisherID = XXXX ; var dc_adprod = \'ADL\' ; </script> <script type="text/javascript" src="http://kona.kontera.com/javascript/lib/KonaLibInline.js"></script>'; Your Kona adds should display on every page on your forum. Quote Link to comment https://forums.phpfreaks.com/topic/44506-solved-smf-forum-help/#findComment-216201 Share on other sites More sharing options...
ballhogjoni Posted March 27, 2007 Author Share Posted March 27, 2007 thank you that worked perfectly. Quote Link to comment https://forums.phpfreaks.com/topic/44506-solved-smf-forum-help/#findComment-216253 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.