The year drop down box for searching by date in Coranto stops at 2008. This is because the list of available years is hard coded.

The code lines below are each all one line

This fix is for version 1.25.2.

In, line 1452 reads:

PrintSelectValues($selyear, qw(same 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008)); # What? Make it automatic? Come on, we need a year-based bug here...

Add the years you want to show to the list. If you do not have any items in the earlier years you can delete them from the list. So on a new install where you will never post items dated in the past you could change it to:

PrintSelectValues($selyear, qw(same 2009 2010 2011 2012 2013 2014 2015 2016));

If you are not using 1.25.2 do a search for $selyear in

And yes it need to be automatic, but there are a lot of things to consider. What is the oldest post in the database (and this can change using ChangeDateNew), what is highest year already posted to, and what is the current year.

Backup the original This code was very quickly tested on my local server.

Please report results and discuss in this forum thread.

Page last modified on October 27, 2009, at 06:28 PM