Greenguy's Board

Greenguy's Board (http://www.greenguysboard.com/board/index.php)
-   Programming & Scripting (http://www.greenguysboard.com/board/forumdisplay.php?f=15)
-   -   Help: Clickzs with Invision Power Board (Javascript/PHP Related) (http://www.greenguysboard.com/board/showthread.php?t=27629)

clueless1 2006-01-04 12:26 PM

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:


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.

Mattinblack 2006-01-04 10:40 PM

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.


All times are GMT -4. The time now is 08:20 AM.

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