1
Yero
iStats... does nothing?
  • 2004/12/30 18:50

  • Yero

  • Just popping in

  • Posts: 24

  • Since: 2002/10/1


Hi,

I started with a fresh new 2.0.9 install and installed a couple of additional modules. One of those was iStats, which seems very handy to get hold of some statistics of my site.

But... iStats does nothing. It's stuck at zero and no matter how matter visitors arrive (as seen from 'Who's online') it remains at zero...

I have chmodded the cache map to 777 and config.php to 666. Is there something else I might be doing wrong?

Thanks,
Yero

2
hemertje
Re: iStats... does nothing?
  • 2004/12/30 19:12

  • hemertje

  • Just popping in

  • Posts: 32

  • Since: 2004/2/14


u must edit some files as told int the readme:

To do during the I-Stats module installation:

1 - Extract the contents from the archive and upload it in the modules directory of your XOOPS site, then proceed to a traditional installation of a module.

2 - Add in the *.css files of each theme the following classes:

.statstable { margin:0px; padding:0px; width:auto; font-size: small; font-weight: normal;}
.stats { vertical-align: bottom; width:625px; margin:0; border: 0;}
.statsimg { vertical-align: bottom; width:25px; text-align:center;}
.statsimgweekday { vertical-align: bottom; font-size: small; font-weight: normal;}
.statswords { border-width: 0; font-size: x-small; background-color: transparent; font-weight: normal; text-align:center; width:25px;}
.statsfore { width: 30%; padding:2px;}
.statsdiv { text-align:center; padding:0px;}

I added these classes trying to guaranteeing the same visual aspect of the module with the majority of the XOOPS themes
and also with these browsers (IE, opera, mozilla, konqueror and galeon).
Some imperfections with konqueror.

3 - Go in each theme.html file and add in the footer part of XOOPS the following code:
Example resulting from the Default XOOPS theme:

<table width="100%" cellspacing="0">
<tr id="footerbar">
<td><a href="https://xoops.org/" target="_blank"><img src="<{$xoops_imageurl}>poweredby.gif" alt="" /></a>
<{if $xoops_isadmin != 1}>
<script type="text/Javascript">
<!--
istat = new Image(1,1);
istat.src = "http://YOUR_XOOPS_SITE_URL/modules/istats/include/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&refer="+escape(document.referrer)+"&page="+location.href;
//-->
</script>
<{/if}>
</td>
</tr>
</table>
</body>
</html>

This code will allow the stats module to count.

4 - It should be noted that for the owners of 1024x768 screen, you should not show right blocks on the I-Stats page because it'll broke your screen.
There too, I makes my possible so that visual style is the same one in 1024x768 and in the higher resolutions.
If somebody moreover fixed in css and tables questions managed to do better things than me (what does not seem too difficult to me),
I say: don't hesitate to correct it and to send me the new files.


Sylvain B webmasterhttp://123rando.com

3
Yero
Re: iStats... does nothing?
  • 2004/12/30 21:05

  • Yero

  • Just popping in

  • Posts: 24

  • Since: 2002/10/1


Oops, I must have overlooked that... Sorry, this worked!

Login

Who's Online

151 user(s) are online (89 user(s) are browsing Support Forums)


Members: 0


Guests: 151


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits