Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

Site and Extra Stats problem.

Quote Reply
Site and Extra Stats problem.
I'm currently having a problem with the Today and Top lists stats not showing up.

In the plugin menu under Topsites
30 Aug 2004 sorted by AU: No links have been clicked on yet.
Yet if I type in the 2004-8-30 the stats show up.

Also the following tags no longer work.
To display the top sites today: No links have been clicked on yet.
To display the top sites this week: No links have been clicked on yet.
To display the top sites this month: This tag is OK

I'm sure they were working a couple of weeks ago so I may have changed something I shouldn't have.

Regards

minesite
Quote Reply
Re: [minesite] Site and Extra Stats problem. In reply to
Just a note to explain this - it seems that minesite's date format was changed somehow by another plugin/global.
Quote Reply
Re: [afinlr] Site and Extra Stats problem. In reply to
I haven't found the Plugin yet but I have a couple of globals that set the date as below.

date and date_long, are these originals by GT or just date ?

date_long
sub {
# Displays the current date.
Links::init_date();
GT::Date::date_set_format($CFG->{'date_long_format'});
my $date = GT::Date::date_get();
GT::Date::date_set_format($CFG->{'date_db_format'});
return $date;
}

Regards

minesite
Quote Reply
Re: [minesite] Site and Extra Stats problem. In reply to
I think that those globals are fine because this line

GT::Date::date_set_format($CFG->{'date_db_format'});

sets it back to the correct format. The problem arises when it is changed and then not changed back.

Can you try adding the tag

<%GT::Date::date_get()%>

to a template and see what is displayed.
Quote Reply
Re: [afinlr] Site and Extra Stats problem. In reply to
Displays 2004-09-11

Regards

minesite