Topics

User Functions

Events

There are no upcoming events

What's New

Stories

No new stories

Comments last 2 weeks

No new comments

Trackbacks last 2 weeks

No new trackback comments

Links last 2 weeks

No recent new links

NEW FILES last 14 days

No new files

Welcome to Geeklog Monday, May 20 2013 @ 02:31 AM EDT


 Forum Index > Extensions > Cool Hacks New Topic Post Reply
 Changing year dropdown list in Story Submission
   
MrHyde
 11/09/03 08:04PM (Read 1569 times)  
++---
Junior

Status: offline


Registered: 11/09/03
Posts: 15
The drop down list in story submission's shows the years from 2003 to 2008. I want to change that to show from 2002 to 2008, but have not been able to do it.

I changed the following code snippet in submit.php, but it does not seem to make any difference. Any ideas.

if (empty($year)) {
$year = $cur_year;
}
for ($i = $cur_year; $i
$year_options .= '
if ($i == $year) {
$year_options .= 'selected="SELECTED"';
}
$year_options .= '>' . $i . '';
}

to

if (empty($year)) {
$year = $cur_year;
}
for ($i = $cur_year - 1; $i
$year_options .= '
if ($i == $year) {
$year_options .= 'selected="SELECTED"';
}
$year_options .= '>' . $i . '';
}

I even changed the loop to
for ($i = $cur_year; $i
with no effect.

Am I even on the right track?

Thanks
MrHyde

 
Profile Email
 Quote
Content generated in: 0.14 seconds
New Topic Post Reply

Normal Topic Normal Topic
Sticky Topic Sticky Topic
Locked Topic Locked Topic
New Post New Post
Sticky Topic W/ New Post Sticky Topic W/ New Post
Locked Topic W/ New Post Locked Topic W/ New Post
View Anonymous Posts 
Able to post 
Filtered HTML Allowed 
Censored Content