I need to add a specific javascript into the <header> but I need it ONLY when the view.video.tpl is loaded.
How can I achieve this?
I need to add a specific javascript into the <header> but I need it ONLY when the view.video.tpl is loaded.
How can I achieve this?
Open view_video.php file and paste your JavaScript code after
If you can't get it fixed, open a Support ticket with your site FTP login details.Code:$(function(){ show_comments(' . $video_id . ',1); });
Thanks,
I paste it after:
And I get a blank white page when trying to load the video.Code:$(function(){ show_comments(' . $video_id . ',1); }); </script>
I'm actually trying to load the CPALead javascript code in the header:
Why isn't it working?Code:<script type="text/javascript">var isloaded = false;</script><script type="text/javascript" src="http://www.cpalead.com/show_cu.js?pub=xxxxxx&gateid=xxxxxxxx"></script><script type="text/javascript">if (!isloaded) { window.location = 'http://www.cpalead.com/abp'; }</script><noscript><meta http-equiv="refresh" content="0;url=http://www.cpalead.com/java" /></noscript>
Open view_video.php file and find
Then replace it withCode:<script language="JavaScript" type="text/javascript" src="' . VSHARE_URL . '/js/playlist.js"></script>
Try this.Code:<script language="JavaScript" type="text/javascript" src="' . VSHARE_URL . '/js/playlist.js"></script> <script type="text/javascript">var isloaded = false;</script> <script type="text/javascript" src="http://www.cpalead.com/show_cu.js?pub=xxxxxx&gateid=xxxxxxxx"></script> <script type="text/javascript">if (!isloaded) { window.location = 'http://www.cpalead.com/abp'; }</script> <noscript><meta http-equiv="refresh" content="0;url=http://www.cpalead.com/java" /></noscript>
Thanks,
Nope, again I get the blank white page of death.
Bookmarks