11
sylvainb
Re: I-Stats not counting
  • 2004/11/29 23:22

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hello Jensclas

Always the same question, always the same answer.

I just visited your website and edited his source and I cannot see the portion of javascript code that you MUST put in it to see istats working fine.

I have nothing against you but seeing this kind of question time after time after time after....
I think, sometimes, that people should think about doing a search before just asking.

And, like Brash said, the xoops2_install.txt file contain all the necessary things to run this script, all you have to do is to read it.

I hope you will not take any offences as it's really not against you.

So, after saying that, here is what you have to do:

- Edit your theme.html and add near the </body> tag and before it the javascript code
<script type="text/Javascript">
          <!--
          
istat = new Image(1,1);
          
istat.src "http://<{$xoops_url}>/modules/istats/include/counter.php?sw="+screen.width+"&sc="+screen.colorDepth+"&referer="+escape(document.referrer)+"&page="+location.href;
          
//-->
          
</script>


- Now you have two choices, you can delete all files into your templates_c folder or you can go into the admin section of XOOPS --> system admin -> Preferences -> General settings -> then set Update module template .html files from themes/your theme/templates directory? to yes.

Go to your Home page and if you edit your website source you should be able to view the code.
Don't forget to set the above option back to no after you are sure that your templates are updated.


Kind Regards



12
sylvainb
Re: enter in hits I-Stats
  • 2004/11/26 5:45

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hello Jackwan

As soon as I saw his post, I've sent a PM to him to tell him he can send to me his hack.
I don't know what it really occured, but I've never received anything from him.

However there is this THREAD and, as you can see, it seems to solve the referer problem.

This will be modified into the next update of the module as , for now, I'm trying to work on the timezone "problem".

I hope my english is comprehensible, because I just awake!

Kind Regards



13
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



14
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).



15
sylvainb
Re: ISTATS; Only the unique referer domain name as a stat
  • 2004/11/22 16:27

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hello Jfebus

Your modifications/corrections will be tested and then added into Istats.
Thanks for your help into debugging it.
I also want to say that I must apologize for this mistake (document.referer) instead of (document.referrer)... what a shame
Be sure that from know, before applying any modification to a module (modifications that I can see in others threads), I'll test it and test it and test it... and, especially, I'll do a google search with things (javascript) I don't really know.

One more time, thank you and all my appologies to everybody.



16
sylvainb
Re:Web stats doesen't work.. why?
  • 2004/11/17 20:57

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hello Oldpueblo.

You have an option (into the admin part of the module) where you can set the cookie lifetime.
You can try to decrease this time.

Also, please, ensure yourself that you don't set any cache time to this module into XOOPS settings (system admin -> preferences -> general settings -> Module-wide Cache option).



17
sylvainb
Re:Web stats doesen't work.. why?
  • 2004/11/17 6:51

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


You only have to do what you have already done into your theme.html file and erase all files into templates_c folder after you are sure that the new file is uploaded.
You don't need to be afraid about that because all files will be rebuilt by xoops.

If you used the second option (set to YES...), don't forget to set it back to NO.

[Edit]
I see you're attempting to update your theme.html file and then -> Blank page.
Are you sure that the theme.html file you are uploading is set onto your website with the right permissions (at least chmod 444 read/read/read)?[/Edit]



18
sylvainb
Re:Web stats doesen't work.. why?
  • 2004/11/17 6:30

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hello Oldpueblo.

I just visited your website and edited his source.
I can't see the portion of code you have to put in it.
Erase the theme.html file (or all files they will be rebuilt) into your templates_c folder or go to into your admin section -> preferences -> General Settings -> and set to YES 'Update module template .html files from themes/your theme/templates directory?'.

All should be ok after that.



19
sylvainb
Re:ms-weather module city codes
  • 2004/10/25 5:11

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


Hello everybody,

I wouldn't recommend to use msweather on a live website (on an intranet one...perhaps!?) because when I released it I didn't noticed that the way it recovered the weather info was ILLEGAL.

So, do what you want but use it at your own risk.

Kind Regards



20
sylvainb
Re:xcGallery ecard problem
  • 2004/10/24 20:16

  • sylvainb

  • Not too shy to talk

  • Posts: 168

  • Since: 2003/2/11


By the way,
I you plan to use php5 (or your host forces you to use it), you should replace all instances of scandir in searchnew.php (there are 4 of it) with xcscandir for example.
Because this is a function implemented in php5.




TopTop
« 1 (2) 3 4 5 ... 13 »



Login

Who's Online

223 user(s) are online (49 user(s) are browsing Support Forums)


Members: 0


Guests: 223


more...

Donat-O-Meter

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

Latest GitHub Commits