Archive plugin

Creating and modifying plugins.
Post Reply
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Archive plugin

Post by Davy »

I haven't really searched for this, because of the many topics about archives... :)

But, is it possible to automatically add a month to the archive-plugin when a new month starts?

So in February 2006, it is:
December 2005
January 2006
But I want it automatically to be:
December 2005
January 2006
February 2006
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Re: Archive plugin

Post by garvinhicking »

Hi!

Hm, I'm afraid I don't understand what you mean exactly :)

The archives sidebar is generated automatically and will automatically show the latest X months. So when it is February 2006, you will also see links for february 2006!

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

Yes, sorry I've made a mistake!

The problem is the amount of months. That is always the same. So when a new month starts, an old month will be hidden. But I want to show all months.

In that case, every month the amount of months has to be updated (+ 1).
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

Just enter a very large amount of months then? :-)

Why would you want to display mroe than 12 months or so, do you really think that is useful?

Regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

I just want to display every month in which I've logged.

That will improve the flexibility of the search.
garvinhicking
Core Developer
Posts: 30022
Joined: Tue Sep 16, 2003 9:45 pm
Location: Cologne, Germany
Contact:

Post by garvinhicking »

Hi!

You could patch the archives plugin then and change the PHP code to just remove the limiting?

I'm afraid this solution is too specific and not many people would use it, so I can't offer to code that for you in my free time...

Best regards,
Garvin
# Garvin Hicking (s9y Developer)
# Did I help you? Consider making me happy: http://wishes.garv.in/
# or use my PayPal account "paypal {at} supergarv (dot) de"
# My "other" hobby: http://flickr.garv.in/
Davy
Regular
Posts: 109
Joined: Fri Oct 13, 2006 2:06 pm
Location: The Netherlands

Post by Davy »

well I see loads of blogs that use an archive with all months, that is updated each month (WordPress does it standard and automatically).

So I'm going to tweak the plugin this weekend!
Post Reply