Page 1 of 1

Javascript / HTML Site Statistics

Posted: Mon Oct 30, 2006 2:49 am
by Jeffrey35
Hey guys,
I want to use an external site statistics counter.
Like with all external site counters, it is neccesary to copy a code to your website (between BODY tags). I want the counters icon to appear at the bottem of the sidebar. The theme that i use is Bex-01.

This is the code to be pasted:

<!--CheckStat Free 4.2 Begin-->
<!--LET OP: De teller zal worden verwijderd indien-->
<!--aanpassingen zijn gemaakt aan deze code of-->
<!--wanneer het icoon niet zichtbaar is op de site.-->
<script type="text/javascript" language="javascript">
function checkstat(a,v){var set=new Array();if(typeof v=="string")
{set[0]=parseInt(v.substring(0,1))}else{set[0]=(v==3||v==4)?0:1}
var jv,sz,sc,i;js="";var td=new Date();var tm=td.getTime();
var s=screen;var d=document;var l="http://checkstat.nl/cgi-bin/";
var lo=d.URL;var n=navigator;var re=typeof(top.document)=="object"?
top.document.referrer:d.referrer;for(i=0;i<=5;i++)
{d.write('<script language="javascript1.'+i+'">js="'+i+'"<\/script>')}
if(js>=1){jv=n.javaEnabled()?"y":"n"}if(js>=2){sz=s.width+"*"+s.height;
sc=n.appName.substring(0,9)=="Microsoft"?s.colorDepth:s.pixelDepth;}
var ar="&location="+escape(lo)+"&screensize="+sz+"&screencolors="+sc+
"&javascript=1."+js+"&java="+jv+"&referrer="+escape(re)+"&time="+tm;
if(set[0]){d.write('<a target=_blank href="'+l+'show.cgi?'+a+
'"><img nosave name=icon width=19 height=19 border=0 alt="CheckStat" '+
'src="'+l+'count.cgi?'+a+ar+'"><\/a>')}else{d.write('<img width=1 '+
'height=1 src="'+l+'count.cgi?'+a+ar+'">')}}checkstat('jeflog','110')
</script><noscript>
<a href="http://checkstat.nl/cgi-bin/show.cgi?jeflog"
target=_blank><img name=icon width=19 height=19
src="http://checkstat.nl/cgi-bin/count.cgi?jeflog"
border=0 alt=CheckStat></a></noscript>
<!--CheckStat Free 4.2 End-->

Does someone know how to make this possible. I tried the HTML Nugget Plugin but i can't see the Counter-icon then and their doesn't seem to be an option make the icon show at the bottom of the sidebar.

Greetz,
Jeffrey

Re: Javascript / HTML Site Statistics

Posted: Mon Oct 30, 2006 10:55 am
by garvinhicking
Hi!

Could you tell us the URL to your blog so that we can see your HTML nugget?

Regards,
Garvin

Posted: Mon Oct 30, 2006 4:59 pm
by Jeffrey35
The URL of my website is http://www.jeflog.nl/

With the Spartacus plugin I found the "HTML Nugget in sidebar" plugin. But the HTML code still doesn't seem to work properly. The placement of the nugget is last in row of the sidebar content.

Greetz,
Jeffrey

Posted: Mon Oct 30, 2006 10:16 pm
by garvinhicking
Hi!
Jeffrey35 wrote:The URL of my website is http://www.jeflog.nl/
That's not right, actually :)

Your URL is this:

http://jeflog.nl/serendipity/

Where it works properly. You embed s9y in a frameset, where the javascript you pasted simply does not work, so you need a different javascript. Ask the authors of the JS for a better script, or you need to get rid of the frameset!

BTW: You are missing this file: http://jeflog.nl/serendipity/templates/ ... /bexlt.gif which makes some of the graphics not appear

Best regards,
Garvin

Posted: Tue Oct 31, 2006 10:51 am
by Jeffrey35
Ok, thanks.
I managed to fix the problem.

Greetz,
Jeffrey