Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues
Author Message
sixf00t4
Regular
Regular



Joined: Nov 05, 2006
Posts: 96

PostPosted: Thu Nov 13, 2008 9:05 pm Reply with quote

Quote:
Today is: 1/3/-
is shown when you view detailed statistics.

_________________
Only registered users can see links on this board! Get registered or login! - Only registered users can see links on this board! Get registered or login! - Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Visit poster's website AIM Address
Palbin
Site Admin



Joined: Mar 30, 2006
Posts: 2583
Location: Pittsburgh, Pennsylvania

PostPosted: Thu Nov 13, 2008 9:38 pm Reply with quote

Change line 265 of modules/statistics/index.php from:
Code:
    echo "<center><font class=\"option\"><b>$sitename "._STATS."</b></font><br /><br />"._WERECEIVED." <b>$total</b> "._PAGESVIEWS." $startdate<br />"._TODAYIS.": $now[0]/$now[1]/$now[2]<br /><br />";

To this:
Code:
echo "<center><font class=\"option\"><b>$sitename "._STATS."</b></font><br /><br />"._WERECEIVED." <b>$total</b> "._PAGESVIEWS." $startdate<br />"._TODAYIS.": $nowmonth/$nowdate/$nowyear<br /><br />";
 
View user's profile Send private message
sixf00t4







PostPosted: Thu Nov 13, 2008 9:48 pm Reply with quote

That'll do it. Thanks!
 
Susann
Moderator



Joined: Dec 19, 2004
Posts: 3191
Location: Germany:Moderator German NukeSentinel Support

PostPosted: Fri Nov 14, 2008 7:48 am Reply with quote

Palbin thanks !
I have added this to our bug tracker.
 
View user's profile Send private message
kguske
Site Admin



Joined: Jun 04, 2004
Posts: 6437

PostPosted: Sun Dec 07, 2008 10:09 am Reply with quote

I used a slightly different approach - since the $now variable is already in an array ($dot), I replace $now with $dot in this function.

_________________
I search, therefore I exist...
Only registered users can see links on this board! Get registered or login!
 
View user's profile Send private message
Palbin







PostPosted: Sun Dec 07, 2008 10:29 am Reply with quote

I personally don't like using arrays like that because when you first look at the code you have no idea what they stand for if you are using [0], [1], ....... Smile

Especially since though those variables where already passed to the function.
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> v2.3 RN Issues

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 ©