![]() |
|
|
#1 |
|
Member
Join Date: Jul 2003
Location: West Wales
Posts: 55
|
Hi to all and a Happy New Year,
For some reason the dropdown date in the news editor only spans from 2002 to 2008. How can I change this to include 2009 and future years? I have searched through the files on the server and had a look in the database but I cannot see where to make any changes. Any ideas?
__________________
Durum patientia frango (Latin: By patience I break what is hard) |
|
|
|
| sponsored links |
|
|
#2 |
|
Member
Join Date: Oct 2004
Posts: 30
|
Hi,
search EDITOR_news.php in directory /backend (former /adminstrator you should have been renamed) Near line 507 you'll find: <option value="2008"<?php if ($year == "2008") print " selected"; ?>>2008</option> Duplicate, modify and append as line 508 like this: <option value="2009"<?php if ($year == "2009") print " selected"; ?>>2009</option> That's it Regards from Germany Dirk Last edited by triadib : 1st of January 2009 (Thu) at 06:18. |
|
|
|
|
|
#3 |
|
Member
Join Date: Jul 2003
Location: West Wales
Posts: 55
|
Hi,
Thanks for clearing that up for me. When I searched earlier I tried terms like; 'date' and 'dropdown' but did not think to search for '2008'. I hope I will have my thinking hat on for the rest of the year. All the best for 2009.
__________________
Durum patientia frango (Latin: By patience I break what is hard) |
|
|
|
| sponsored links |
|
|
#4 |
|
Junior Member
Join Date: Oct 2004
Posts: 1
|
I know this thread is old, but I tweaked the news editor so that I wouldn't need to edit the code every year. I changed the newsyear select options in the EDITOR_news.php file to:
<?php for ($n = 2002; $n < date('Y') + 5; $n++) { print "<option value=\"" . $n . "\""; if ($year == $n) print " selected"; print ">" . $n . "</option>\n"; } ?> This way, years get shown in the combo from 2002 to 5 years from the current year. |
|
|
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Seen These - 2008 Best News Photos? | john-in-japan | General Photography Talk | 5 | 19th of December 2008 (Fri) 11:29 |
| 30D - Good News, Bad News (not about the camera!) & A Question! | nitsch | Canon EOS Digital Cameras | 17 | 18th of March 2006 (Sat) 10:21 |
| Changing the News date format | Ewan | Version 1.0-1.5 discussion | 1 | 4th of October 2005 (Tue) 02:28 |
| Links in News Editor | aviceda | Version 1.0-1.5 discussion | 1 | 30th of September 2002 (Mon) 08:17 |