21
brash
Re: What Web Statistics Package Do You Use?
  • 2004/2/28 15:37

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Did you copy the view_stats_d.php file from the pscounter module to the root of your PHP-Stats directory?

22
carnuke
Re: What Web Statistics Package Do You Use?
  • 2004/2/28 19:20

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


No I did not know about this. I have done it now and updated the

"Setup about PHP-STAT Pro URL of view_stats_d.php http:// "

address in admin. It now points to the view_stats_d.php file that's in the root of the the stats directory, however the stats still do not show in the page block.

Any other ideas??

Thanks for your response.

Richard

23
Olorin
Re: What Web Statistics Package Do You Use?
  • 2004/2/28 22:39

  • Olorin

  • Just popping in

  • Posts: 50

  • Since: 2003/7/5 1


I suppose you forgot inserting "the tracking tag" on your web site. Did you add the following HTML tag to somewhere in your web site?
Quote:





Well, I should have mentioned how to install this module. Thx brash.

24
carnuke
Re: What Web Statistics Package Do You Use?
  • 2004/2/29 7:44

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Thanks again for your comment. No the stats tracking code is in place, th4 stats are working realy well, I just cant get the pscounter block to display any data. To recap; my XOOPS installation is in a sub-dir of my root using db1. My php-stats is in the root and recording on db-2. I have now also copied the tracking file ( view_stats_d.php) from pscounter to the php-stats root and pointed to this file with full url in the admin page. Still no stats show.

Just one other strange thing here; the "powered" ink in the pscounter points to this address "http://lunarhouse.com/stats/view_stats_d.php/admin.php" The directory structure of this link is correct, up to /stats/ then it calls 2 files. admin.php does not exist in my file set!

Thanks again for any help, are there any other calls within the scripts that assume everything is all in the root directory?? This could be the problem if so.

Richard

25
Olorin
Re: What Web Statistics Package Do You Use?
  • 2004/3/1 8:15

  • Olorin

  • Just popping in

  • Posts: 50

  • Since: 2003/7/5 1


Quote:

carnuke wrote:
Just one other strange thing here; the "powered" ink in the pscounter points to this address "http://lunarhouse.com/stats/view_stats_d.php/admin.php" The directory structure of this link is correct, up to /stats/ then it calls 2 files. admin.php does not exist in my file set!

Thanks again for any help, are there any other calls within the scripts that assume everything is all in the root directory?? This could be the problem if so.

Richard

Well, there seems to be something wrong on your setting. The address is supposed to be "http://lunarhouse.com/stats/admin.php" instead of "http://lunarhouse.com/stats/view_stats_d.php/admin.php". I have no idea why your value( the url to view_stats_d.php) is not correctly stripped...

Anyway, you don't need to start with "http://" for the absolute path to "view_stats_d.php".
(So you can copy & paste the following:
lunarhouse.com/stats/view_stats_d.php
)
This is the only possibility I can imagine to solve the problem.

And view_stats_d.php is the only file which should be moved to the root of php-stat.

By the way, I've just updated my php-stat to 0.18. There are many changes... But I soon realized it cannot catch the visits of those who don't activate "javascript" and "referrer".

Here are some hacks to track these people...

php-stats.php line 25
Replace the whole line with
Quote:
if(isset($_GET['NS_url'])) $NS_url=htmlspecialchars(addslashes(str_replace("aAmMpP","&",$_GET['NS_url']))); else $NS_url="";


Insert the following code to your theme.html
Quote:

<{php}>$xoops_url=XOOPS_URL;
$ref="";$ref = $xoops_url.$_SERVER['REQUEST_URI'];
$ref = htmlspecialchars(addslashes($ref));
$ref=str_replace("&","aAmMpP",$ref);
echo <<

EOM;
<{/php}>
maybe "$ref = htmlspecialchars(addslashes($xoops_url.$_SERVER['REQUEST_URI']));" is better....

If you install XOOPS in your sub-directory $_SERVER['REQUEST_URI'] also returns the name of sub-directory, I suppose. In this case, you also need to strip it at php-stats.php...

------
Is the bug related with "code" solved already? Anyway, the "&" in the code should be "& a m p;"

26
carnuke
Re: What Web Statistics Package Do You Use?
  • 2004/3/1 9:14

  • carnuke

  • Home away from home

  • Posts: 1955

  • Since: 2003/11/5


Hi Olorin,

Thank-you for your detailed reply. My only guess regarding why these things have occured is because I have used 2 directories. I also notice that if you click the link in my previous post it returns the correct tracking count! Nothing else is any different. Anyway, I will implement these changes and take it from there. (btw, I also have the latest version of php-stats)

Thanks again

Richard

27
macmend
Re: What Web Statistics Package Do You Use?
  • 2004/3/29 10:27

  • macmend

  • Quite a regular

  • Posts: 285

  • Since: 2004/2/27


I am new to xoops, though I have used other boards/portals before...XMB and Invision mainly.

I am a bit confused over this php-stats, install, as when I install it:

1. it still shows the italian website in the javscript, even though config.php is altered

2. I am using 1.8 and my stats dir is installed at the root level of xoops, BUT XOOPS is in installed in XOOPS subdir of the web root.
3. I wish there was an install explanation for php-stats in english
4. The hack above does it work for XOOPS in a sub dir or does it need altering?
5 What is/Where is "pscounter"


28
brash
Re: What Web Statistics Package Do You Use?
  • 2004/3/29 11:05

  • brash

  • Friend of XOOPS

  • Posts: 2206

  • Since: 2003/4/10


Hi macmend,

Just keep in mind that PHP-Stats is a totally seperate program to Xoops, but I really do think it is the best free PHP/MySQL based statistics package out there. To try and answer your questions:

1. Editing the config.php file will set your server, MySQL database and password, but to install PHP-Stats you will need to run the setup.php (http://yourdomain.com/php-stats/setup.php).

2. As these are two seperate programs I'd advise to keep your XOOPS and PHP-Stats installs seperate. Mind you this is a personal preference thing.

3. So do I.

4. I'd advise to get it working & become a bit familiar first before trying more advanced hacks as above.

5. Look at page 1 of this thread and you should find reference to a block called pscounter which is used to display a few of your PHP-Stats records in your XOOPS site. Lots of us run it around here including myself (mine is slightly modified).

29
macmend
Re: What Web Statistics Package Do You Use?
  • 2004/3/29 18:32

  • macmend

  • Quite a regular

  • Posts: 285

  • Since: 2004/2/27


thanks for that,

I have got php stats working, i think, and I installed the two hacks as i am running 1.8 (maybe against advice...but I can't help myself), however the counter still says one, even though the stats say loads more, can anyone tell me why...maybe I'll just take the counter off.

My problem was that bbedit was not saving the changes i made for some reason, and it still had the italian web address instead of mine.

I think I got a bit over excited at the thought of all those stats.


30
catalin12345
Re: What Web Statistics Package Do You Use?

Personally, I've used both of them, and decided to choose phpstat eventually. And here are the other useful modules for pphlogger & phpstat.

For phpstat:
http://hypweb.net/xoops/modules/pukiwiki/280.html
(pscounter_1.zip is the one.)

For pphlogger:
http://www.uribou.net/modules/mydownloads/singlefile.php?cid=1&lid=3
so if i download pscounter_1.zip is like i haved installed php-stats?

Login

Who's Online

308 user(s) are online (202 user(s) are browsing Support Forums)


Members: 0


Guests: 308


more...

Donat-O-Meter

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

Latest GitHub Commits