View Full Version : Ad Serving Codes
berto
10-04-2007, 10:39 PM
I wanted to know how I can insert part of my advert code into the html_header.tpl without the whole theme dissapearing?
I am in partnerships with Lycos and their adserving code requires you to add a javascript inside the <head> page.
E.g <script src="http://ad.lea.lycos.co.uk/488744478755889335/adfunction.js"></script>
When I add this code the template does not seem to like it.
Can't tell what might be wrong without looking at actual site...
berto
10-07-2007, 09:57 PM
I will let you know once I am running the stable version.
berto
10-09-2007, 06:08 PM
OK I have inserted the javascript again, please have a look at what happens:
Click Here (http://www.buenatv.co.uk)
I also tried the:
<vte:header type="script" href="URL to your sscript source.js" />
Micha
10-10-2007, 08:29 AM
Ok my friend, think I got the solution for ya :)
Try inserting script this way:
<script src="http://fe.lea.lycos.co.uk/ats/adfunction.js"> </script>
Note the little space between <script> </script>, that should solve your problem.
Now to clarify, when you insert your code this way (without space between) <script></script> the code will be rendered like self closing tag, and we don't want that because it mess up our code, but when you insert it with space between <script> </script>, well the code generates exactly like it should.
Hope that helped you out :)
berto
10-10-2007, 05:31 PM
Thanks very much Micha :) works perfectly now.
vBulletin® v3.8.4, Copyright ©2000-2013, Jelsoft Enterprises Ltd.