PumpinIron
Well-known member
In my PAGE_CONTAINER template I have the following code right before the </body> tag:
The IF statement is attempting to hide the code from this page:
Problem is, it's not working and when you view the source the code still shows up.
What am I doing wrong here? I thought that conditional statement looked correct.
Code:
<xf:if is="$forum.node_id != 243">
<script type="text/javascript">
var vglnk = {key: 'e2eee0d0dd1241da592e3a37e126fb93'};
(function(d, t) {
var s = d.createElement(t);
s.type = 'text/javascript';
s.async = true;
s.src = '//cdn.viglink.com/api/vglnk.js';
var r = d.getElementsByTagName(t)[0];
r.parentNode.insertBefore(s, r);
}(document, 'script'));
</script>
</xf:if>
The IF statement is attempting to hide the code from this page:
Jeep Wrangler TJ Forum
wranglertjforum.com
Problem is, it's not working and when you view the source the code still shows up.
What am I doing wrong here? I thought that conditional statement looked correct.