Canon Digital Photography Forums  

P.O.T.N. SUPPORT SHOP IS OPEN, check it out now!

Go Back   Canon Digital Photography Forums > Exhibit Engine > EE 2 Coding
Register Rules FAQ Members List Search Today's Posts Mark Forums Read



Reply
 
Thread Tools Display Modes
Old 1st of January 2009 (Thu)   #1
picman
Member
 
Join Date: Jul 2003
Location: West Wales
Posts: 55
Default Date only goes up to 2008 in News Editor!

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)
picman is offline   Reply With Quote
This ad block will go away when you log in as member
Old 1st of January 2009 (Thu)   #2
triadib
Member
 
Join Date: Oct 2004
Posts: 30
Default Re: Date only goes up to 2008 in News Editor!

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.
triadib is offline   Reply With Quote
Old 1st of January 2009 (Thu)   #3
picman
Member
 
Join Date: Jul 2003
Location: West Wales
Posts: 55
Default Re: Date only goes up to 2008 in News Editor!

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)
picman is offline   Reply With Quote
This ad block will go away when you log in as member
Old 6th of May 2011 (Fri)   #4
fanta
Junior Member
 
Join Date: Oct 2004
Posts: 1
Default Re: Date only goes up to 2008 in News Editor!

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.
fanta is offline   Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

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


All times are GMT -5. The time now is 02:17.


Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.
This forum is not affiliated with Canon in any way and is run as a free user helpsite by Pekka Saarinen, Helsinki Finland. You will need to register in order to be able to post messages. Cookies are required for registering and posting. HTML in messages is not allowed, plain website addresses are automatically made active by the board.