1
Tresend
enter in hits I-Stats
  • 2004/11/23 4:37

  • Tresend

  • Just popping in

  • Posts: 55

  • Since: 2003/2/15


I'm using the counter block from I-Stats athttp://www.bhsjester.com but I've had a lot of hits before I installed the module, and I want to include those hits in the counter. How do I make it start from 1602 instead of 00000?

2
jdseymour
Re: enter in hits I-Stats

Go into phpmyadmin, search for the string "xoops_is_count" and edit it.

3
Tresend
Re: enter in hits I-Stats
  • 2004/11/23 12:52

  • Tresend

  • Just popping in

  • Posts: 55

  • Since: 2003/2/15


Ok thanks! Also, does the counter count page views, or does it count unique visits? And why doesn't mine seem to be counting at all!!?http://www.bhsjester.com

4
Tresend
Re: enter in hits I-Stats
  • 2004/11/23 12:58

  • Tresend

  • Just popping in

  • Posts: 55

  • Since: 2003/2/15


Field: count
Type: INT
Length/Values: 10
Attributes:
Null: not null
Default**: 0
Extra:

That's xoops_is_count. What exactly do I change? I tried changing default but it doesn't do anything.

5
jdseymour
Re: enter in hits I-Stats

You would change the value to whatever you want the count to be.

As far as unique visitors and page views, it does both. It plants a cookie also so it will not recount the same machine for a certain period of time (can be defined by you.) But in the advanced menu it gives all sorts of information. I really like this module.

6
jdseymour
Re: enter in hits I-Stats

Now I may be wrong about editing that. The number, as I said, is tied to multiple stats and may not be able to change without breaking the other stats. Anyone know?

Newbie to php MySQL

7
sylvainb
Re: enter in hits I-Stats
  • 2004/11/24 5:41

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hello Jdseymour

If you want to see your counter counting something you must change a 'little' thing:
Quote:

<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+"&referer="+escape(document.referrer)+"&page="+location.href;
//-->
</script>


Don't you think it should be http://www.bhsjester.com?

You can change this replacing the code above by this:

Quote:

<script type="text/Javascript">
<!--
istat = new Image(1,1);
istat.src = "<{$xoops_url}>/modules/istats/include/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&referer="+escape(document.referrer)+"&page="+location.href;
//-->
</script>

That way, it'll be ok even if you change your domain name (This will be modified into the xoops2_install.txt file for the next update of the module).

8
Tresend
Re: enter in hits I-Stats
  • 2004/11/24 12:28

  • Tresend

  • Just popping in

  • Posts: 55

  • Since: 2003/2/15


WOW thanks! I can't believe I missed that! Now for adding in hits. Any ideas anyone?

9
sylvainb
Re: enter in hits I-Stats
  • 2004/11/24 16:49

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hello Tresend

Use your favourite MySQL client (phpmyadmin, MySQL in webmin or whatever you have) and execute this sql query:
UPDATE `xoops_is_countSET `count` = '14836'
.

Of course, change the number to the one you want.
You have to know that increasing the total count will have repercussions into other stats (average per day/month/week...).
But if you only want to use the counter block, it should be ok.

I also noticed that I've make an error into my last post!
You should have read 'Hello Tresend' instead of 'Hello Jdseymour'.

But to avoid any offence: Hello Jdseymour!

Kind Regards

10
Tresend
Re: enter in hits I-Stats
  • 2004/11/25 21:25

  • Tresend

  • Just popping in

  • Posts: 55

  • Since: 2003/2/15


that works perfect! Thank you!

Login

Who's Online

168 user(s) are online (114 user(s) are browsing Support Forums)


Members: 0


Guests: 168


more...

Donat-O-Meter

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

Latest GitHub Commits