Hello,
I'm trying to insert code for a counter/toplist service into my Invision Power Board--the same messageboard software as this forum. The code needs to be inserted into the < HEAD >< /HEAD > section of every page I wish to be counted. Since every page of the forum uses index.php, I just opened up the file in a text editor and pasted it at the top.
Well, it actually worked. Sort of. The counter/toplist performed as it should, but it messed with the functions of the board--no one could actually log in. So I removed the code from index.php and pasted it properly into the Board Header and Footer Wrapper portion of the IPB Skin Manager. You'd think it would actually work there, since it's editing the HTML of each page's header and footer, but no. The counter/toplist doesn't work at all.
Here's the code in question:
Code:
<script TYPE="text/javascript" LANGUAGE="JavaScript">
<!--
d=document;
d.write("<img src=\"http://cz7.clickzs.com");
d.write("/in.php?");
d.write("myusername&");
d.write(escape(top.document.referrer));
d.write("\" width=1 height=1 align=\"right\" alt=\"\">");
// -->
</SCRIPT>
How can in insert this code so it's displayed and actually working in the < head > portion of index.php?
Thank you kindly in advance for any help or advice.