21
McDonald
Re:
  • 2007/8/19 21:16

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


PHP-Stats generates 2 types of codes for counting: for PHP files and for HTML pages
The first type can be put in the footer, the second one in theme.html. Only use one!
If you use the HTML-version you also have to download the file php-stats.js and put it in the folder containing php-stats.

It will generate some code that will display a counter on your website as well.

You'll find this under Options after login.

EDIT:
Best is to put the code in footer.php.
This way it will detect spiders, bots and visitors much better!
// Code for PHP-Stats counter
define('__PHP_STATS_PATH__','/www/yoururl/phpstats/');
include(
__PHP_STATS_PATH__.'php-stats.redir.php');

?>

Above the code generated by PHP-Stats under Options. Only the 2 lines starting with 'define' and 'include' have to be included before ?>

22
psaxtiri
Re:
  • 2007/8/21 18:06

  • psaxtiri

  • Not too shy to talk

  • Posts: 185

  • Since: 2007/6/17


McDonald from your answers i have fix my half site :)

Thanks for one more time.
Greece.
Xoops 2.0.18.12

23
psaxtiri
Re:
  • 2007/9/1 16:07

  • psaxtiri

  • Not too shy to talk

  • Posts: 185

  • Since: 2007/6/17


What will i do with this?
I install again xoops-stats (i am not gonna uninstall it again promise!) i put the necessary code to the header.php, update sytem module but it doesn't count the hits.
this is my link for the stats

And something last if i manage to make it work i would like to get rid of the label at the end which says what version of XOOPS i use. I don't want that to be visible to my users.

PS: I must make a word file with the answers i collect from here because if something happen and lost all that stuff i am going to freak out :)
Greece.
Xoops 2.0.18.12

24
McDonald
Re:
  • 2007/9/1 16:37

  • McDonald

  • Home away from home

  • Posts: 1072

  • Since: 2005/8/15


What version of Xoops-Stats are you using?

Latest version is Xoops-Stats 0.60

25
psaxtiri
Re:
  • 2007/9/1 16:59

  • psaxtiri

  • Not too shy to talk

  • Posts: 185

  • Since: 2007/6/17


Always the latest


maybe something wrong with the sql tables i don't know.
Greece.
Xoops 2.0.18.12

26
seventhseal
Re:

Quote:

psaxtiri wrote:
Always the latest


maybe something wrong with the sql tables i don't know.


Contact me at xoops.ibdeeming.com - send me a "Contact Me" on how to reach you. I'll get you going. I am back working on a number of XOOPS updates. The site is going to move to xoops.velocitywebdev.com in the next week or so, but if you contact me right away, I'll help you out!

Off-topic - I am also looking at either taking over the GPL of Protector (not my first choice - don't like the mod) or writing a poor-man's mod_security for xoops. Either way, filling a gap that apparently folks are worried about!



BTW - XOOP-STATS is better than PHP-STATS only because it is built for XOOPS! And, I wrote it!
John Horne - a.k.a. - VelocityWebDev, Seventhseal, CreepingDeath
**********************************
VelocityWebDev Tech BLOG
VelocityWebHost Hosting and Design

27
psaxtiri
Re:
  • 2007/9/1 23:48

  • psaxtiri

  • Not too shy to talk

  • Posts: 185

  • Since: 2007/6/17


I think it's better and for the other people here to see your answer inside this forum.

As for your webpage it will be my pleasure to sign-in but in a week to your new site as you say.

I use php-stats for different reason if you see my hole post and for other the xoopstats.

Pm me if you like but i think it is better to tell it here.

Just to mention that the first time i install your module work fine.

The problems start after the reinstall :)
Greece.
Xoops 2.0.18.12

28
psaxtiri
Re:
  • 2007/9/3 10:25

  • psaxtiri

  • Not too shy to talk

  • Posts: 185

  • Since: 2007/6/17


seventhseal i pm you at your page.
Greece.
Xoops 2.0.18.12

Login

Who's Online

168 user(s) are online (103 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