Welcome to Geeklog, Anonymous Thursday, February 29 2024 @ 11:29 pm EST

Geeklog Forums

Changing year dropdown list in Story Submission


Status: offline

MrHyde

Forum User
Junior
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
 Quote

All times are EST. The time is now 11:29 pm.

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