Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff
Author Message
Elderberry
New Member
New Member



Joined: Aug 13, 2002
Posts: 20

PostPosted: Sat Oct 04, 2003 4:40 pm Reply with quote

I'm baaaaaccckkk!

Site info block is running fine except for two things. The number of page hits shown in site info is 26137 but page hits shown in stats module is 32345. Why the difference? Not a biggie but I'm curious.

The users avatar doesn't show up when he logs in. I see there is a long thread about that that I need to work through though. I'll probably find the fix in it.

Don't you just love setting up new sites? Very Happy

_________________
Mike 
View user's profile Send private message Visit poster's website
fury
Worker
Worker



Joined: Sep 09, 2003
Posts: 165

PostPosted: Sat Oct 04, 2003 4:59 pm Reply with quote

I may be stepping on Ravens toes here and I do apologize for it but if you could check this it may be a quick fix.
Check in your administration panel and in Preferences check to see what the site start date is set to.
If it is after you had started your site and you are getting you other numbers from webstats or something of that nature please try to adjust date to the date you started your site and see if that fixes it.
Thanks
Fury
 
View user's profile Send private message
Raven
Site Admin/Owner



Joined: Aug 27, 2002
Posts: 17088

PostPosted: Sat Oct 04, 2003 5:04 pm Reply with quote

Laughing No toes to step on here! I welcome the help and hope that more of you will become active Forum answerers!
 
View user's profile Send private message
Elderberry







PostPosted: Sat Oct 04, 2003 5:14 pm Reply with quote

Site start date in preferences is October 2001. That's what shows in Site Info and on the Statistics page. I'm not sure what you mean about where the numbers are coming from. Both site info and statistics get the numbers from the nuke DB.

A little explanation is in order here. The site is new with a vanilla upload of PHPNuke v6.9. However the data base was loaded with a dump from the site I'm replacing. That's why the October 2001 start date.

I realize that could be the cause of the discrepancy but since both modules query from the same data base I'm wondering why the different numbers. As I said, it's not a biggie and I can live with it but I'd sure like to know why.
 
fury







PostPosted: Sat Oct 04, 2003 5:15 pm Reply with quote

one other thing looking at ravens perfect code is if you had a site up prior to nuke or had to reinstall your database for any reason it is calling on the hits from the sql from the site
Code:
$content .= "<small>"._PAGESVIEWS."<br />$startdate</small></center>";

$content .= "<hr noshade>";
$content .= "<center>"._BHITS." "._BTD.": <b><a href=\"modules.php?name=Statistics&op=DailyStats&year=$t_year&month=$t_month&date=$t_date\">$today</a></b><br />";
$content .= ""._BHITS." "._BYD.": <b><a href=\"modules.php?name=Statistics&op=DailyStats&year=$y_year&month=$y_month&date=$y_date\">$yesterday</a></b><br /></center>";

This is the code i refer to:
If you have every cleared this or redone your database that is where the discrepancy may be for it only calls from the sql hits.
I may be wrong (as usuall)
Thanks
Fury
 
Elderberry







PostPosted: Sat Oct 04, 2003 5:52 pm Reply with quote

fury wrote:
If you have every cleared this or redone your database that is where the discrepancy may be for it only calls from the sql hits.

I have not cleared/redone it so I don't think that is the problem. I suspect the only way I'm gonna know is to look at the code to see where each is pulling the number from. I was just hoping someone would know.

But, I've been fooling with this stuff all day and I'm tired of it. Smile I'm going to get a beer and forget about it till tomorrow! Thanks for the suggestions.
 
fury







PostPosted: Sat Oct 04, 2003 6:35 pm Reply with quote

sry that i could not help any further
thanks
Fury
 
Raven







PostPosted: Sat Oct 04, 2003 6:38 pm Reply with quote

Elderberry wrote:
I'm baaaaaccckkk!
The users avatar doesn't show up when he logs in. I see there is a long thread about that that I need to work through though. I'll probably find the fix in it.

Don't you just love setting up new sites? Very Happy
That's a long-standing nuke bug. I have published a fix for it.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> General/Other Stuff

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©