Javascript / HTML Site Statistics

Random stuff about serendipity. Discussion, Questions, Paraphernalia.
Post Reply
Jeffrey35
Regular
Posts: 44
Joined: Thu Oct 26, 2006 7:38 am

Javascript / HTML Site Statistics

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Javascript / HTML Site Statistics

Post by garvinhicking »

Hi!

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

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Jeffrey35
Regular
Posts: 44
Joined: Thu Oct 26, 2006 7:38 am

Post 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
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post 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
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Jeffrey35
Regular
Posts: 44
Joined: Thu Oct 26, 2006 7:38 am

Post by Jeffrey35 »

Ok, thanks.
I managed to fix the problem.

Greetz,
Jeffrey
Post Reply