Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Sunday, May 19 2013 @ 09:51 AM EDT


 Forum Index > Support > Plugin Support New Topic Post Reply
 Visitor Stats - Page/Title/URL column content
   
Robin
 09/05/03 07:46AM (Read 1919 times)  
+++++
Full Member

Status: offline


Registered: 02/15/02
Posts: 725
Hi just wondering whether everything is ok with my Visitor Stats (v. 1.2) because all I get in Page/Title/URL column is shared-cgi/php4

Geeklog Polish Support Team
 
Profile Email Website
 Quote
tomw
 09/05/03 09:30AM  
+++++
Full Member

Status: offline


Registered: 08/12/02
Posts: 300
Doesn\'t look good to me.

TomW

 
Profile Email Website
 Quote
Robin
 09/05/03 10:39AM  
+++++
Full Member

Status: offline


Registered: 02/15/02
Posts: 725
What do you suggest Tom?

Geeklog Polish Support Team
 
Profile Email Website
 Quote
tomw
 09/05/03 10:55AM  
+++++
Full Member

Status: offline


Registered: 08/12/02
Posts: 300
I assume that you are talking about the page created by page.php.

That column uses php's parse_url routine to get the host name from the $_CONF['site_url'] variable. And then it uses the $page column from the gl_userstats database to figure out what page it comes from.

If you have a site that is located in a sub-directory of public_html then it will confuse this parsing routine. As a temporary fix you can alter the code in page.php to include the subdirectory. Thus starting on about line 212 you will find a compare like $A['page'] == 'article.php'. Change the 'article.php' to include the subdirectory. If you subdirectory was 'subdir' you would change it to read 'subdir/article.php'. If unsure look in your gl_userstats table at the page column.

Clear as mud? The version I am working on now will have a config variable to fix this.

TomW

 
Profile Email Website
 Quote
Robin
 09/11/03 10:58AM  
+++++
Full Member

Status: offline


Registered: 02/15/02
Posts: 725
Did no good. Or I messed up something.
I have my GL files in a dir called web. Inside there is public_html (in my case called html). So it goes webhtmlarticle.php.
I tried various combinations htmlarticle.php, webarticle.php and webhtmlarticle.php. Same thing. Have I misunderstood your suggestions?

Geeklog Polish Support Team
 
Profile Email Website
 Quote
tomw
 09/11/03 11:25AM  
+++++
Full Member

Status: offline


Registered: 08/12/02
Posts: 300
Robin,

The easiest way to find out what you should use is to look at you database and see what the page column of the gl_userstats contains. If it is just page names like article.php, then you should require no changes, but if it contains web/html/article.php then that is what you should use.

TomW

 
Profile Email Website
 Quote
Robin
 09/12/03 03:07AM  
+++++
Full Member

Status: offline


Registered: 02/15/02
Posts: 725
Right. After careful inspection of gl_userstats there is shared-cgi/php4 in page column. Question

Geeklog Polish Support Team
 
Profile Email Website
 Quote
Robin
 06/08/04 05:43PM  
+++++
Full Member

Status: offline


Registered: 02/15/02
Posts: 725
A small update.
When entering a particular month the Next page link displays
PHP Formatted Code
http://www.geeklog.now.pl/shared-cgi/php?month=Jun&year=2004&page=2
 

And then after clicking on such link I get this
PHP Formatted Code
Warning: Unexpected character in input: ' ' (ASCII=12) state=1 in /home/httpd/shared-cgi/php on line 886

Parse error: parse error in /home/httpd/shared-cgi/php on line 886
 


Any insights?

Geeklog Polish Support Team
 
Profile Email Website
 Quote
tomw
 06/08/04 06:05PM  
+++++
Full Member

Status: offline


Registered: 08/12/02
Posts: 300
It just so happens I think I know what the problem is. Let me guess your site is running on a Zeus webserver, right. If so change the $SCRIPT_NAME to $PHP_SELF in the function create_url in functions.inc.

TomW

 
Profile Email Website
 Quote
Robin
 06/09/04 11:42AM  
+++++
Full Member

Status: offline


Registered: 02/15/02
Posts: 725
To be honest I have no idea as to the kind of webserver it is running on the server.
I applied the recommended change, looks like we are getting there
Now the next page link looks like this
PHP Formatted Code
http://www.geeklog.now.pl/?month=Jun&year=2004&page=2
 

and as you probably would guess it gets you to the index (main) page.

Should I replace $SCRIPT_NAME with $PHP_SELF in the whole functions.inc?

Geeklog Polish Support Team
 
Profile Email Website
 Quote
tomw
 06/09/04 11:51AM  
+++++
Full Member

Status: offline


Registered: 08/12/02
Posts: 300
Sounds good.

TomW

 
Profile Email Website
 Quote
Robin
 06/09/04 03:51PM  
+++++
Full Member

Status: offline


Registered: 02/15/02
Posts: 725
Problem solved
Thanx a lot Tom


Geeklog Polish Support Team
 
Profile Email Website
 Quote
Content generated in: 0.89 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content