• Welcome to PHPVIBE Forums. Please log in.

[ Video Sharing CMS v4 ] Custom js script Code Issue

Started by megaman79,

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

megaman79Topic starter

Hello PHPVibe,

I am trying to use a start counter script in my Footer Site, but is telling me there is
syntax issue.

Code:
<script type="text/javascript" id="tc_e6d2846adc">
var _tcq = _tcq || []; _tcq.push(['blog', 'e6d2846adc', 'fa2a2a', 'ffffff']); 
(function() { var e = document.createElement('script'); e.type = 'text/javascript'; e.async = true; e.src = 'http://s.tcimg.com/w/v2/blog.js'; var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(e, s); })();
</script>

"Very Happy with PHPVibe"
  •  

PHPVibe A.

Show the wrapping code.
You can't just past that there, without escaping the bracelets.
http://www.phprevolution.com/forum/how-to/how-to-implement-a-pop-up/

megaman79Topic starter

Quote from: Alexander on
Show the wrapping code.
You can't just past that there, without escaping the bracelets.
http://www.phprevolution.com/forum/how-to/how-to-implement-a-pop-up/

Thanks Alexander,

I made it more simple, I just replaced the ' to " (in the code). it works also.
"Very Happy with PHPVibe"
  •  

Marius P.

" or \' would have worked, this is what he meant with "escaping the bracelets"
Happy with my help? Buy me a coffee.
Please, always use the search before opening a new topic! We're all here on our (limited) free time! Make sure you help yourself too!
  •  

megaman79Topic starter

Quote from: @Mario on
" or \' would have worked, this is what he meant with "escaping the bracelets"

Thanks @Mario
"Very Happy with PHPVibe"
  •  

Similar topics (7)