Fastclick Java and PHPLD

Discussion in 'JavaScript' started by aaron_nimocks, Jun 16, 2006.

  1. #1
    Im tired of waiting for support on the phpld forums so I thought I would ask here.


    Im having a really tuff time placing my fastclick code on my site using the phplinkdirectory script.

    I keep getting a

    Fatal error: Smarty error: [in header.tpl line 8]: syntax error: unrecognized tag: dc.write(''); date_ob.setTime(date_ob.getTime()+43200000); dc.cookie='he=llo; path=/; expires='+ date_ob.toGMTString(); (Smarty_Compiler.class.php, line 436) in /home/.apri/drug/www.myspacelayoutsdirectory.com/libs/smarty/Smarty.class.php1095 
    PHP:
    Now I am trying to place my code in the templates/header.tpl inside the <head> tags. I have tried putting this code in numerous spots but it either gives me this error or just really messes up the layout of the site.

    This is the code that I am trying to put in. Please help! :)

    <!-- ValueClick Media POP-UNDER CODE v1.8 for myspacelayoutsdirectory.com (12 hour) -->
    <script language="javascript"><!--                                 
    var dc=document; var date_ob=new Date();
    dc.cookie='h2=o; path=/;';var bust=date_ob.getSeconds();
    if(dc.cookie.indexOf('e=llo') <= 0 && dc.cookie.indexOf('2=o') > 0){
    dc.write('<scr'+'ipt language="javascript" src="http://media.fastclick.net');
    dc.write('/w/pop.cgi?sid=26834&m=2&tp=2&v=1.8&c='+bust+'"></scr'+'ipt>');
    date_ob.setTime(date_ob.getTime()+43200000);
    dc.cookie='he=llo; path=/; expires='+ date_ob.toGMTString();} // -->
    </script>                                                          
    <!-- ValueClick Media POP-UNDER CODE v1.8 for myspacelayoutsdirectory.com -->  
    PHP:
     
    aaron_nimocks, Jun 16, 2006 IP