Greenguy's Board


Go Back   Greenguy's Board > Programming & Scripting
Register FAQ Calendar Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread Rate Thread Display Modes
Old 2006-01-04, 12:26 PM   #1
clueless1
Internet! Is that thing still around?
 
Join Date: Jan 2006
Posts: 3
Help: Clickzs with Invision Power Board (Javascript/PHP Related)

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.
clueless1 is offline   Reply With Quote
Old 2006-01-04, 10:40 PM   #2
Mattinblack
Asleep at the switch? I wasn't asleep, I was drunk
 
Join Date: Nov 2005
Location: London UK in a house share with three 28 yr old girls...perv perv
Posts: 215
Err... cant answer for powerboard but dont see how you can use this script in the head section simply cos it prints code to the page that tries to load an image as a dummy to activate a cgi based counter.
The only html that should be in the head section is title, scripts that dont do document writes, Meta tags and styles.

Needs to be between the body /body tags as far as I can see.
__________________
Mattinblack - <a href="http://pornlinks.kwikfire.com">PornLinks</a> - <a href="http://strange-attractor.kwikfire.com">Strange Attractor</a> - <a href="pnav.kwikfire.com">PORNavigator</a> - <a href="http://ukescort.kwikfire.com/">Fem Escorts</a> - <a href="http://kwikfire.com/">Hosting</a>
Mattinblack is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:43 AM.


Mark Read
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
© Greenguy Marketing Inc