Log in

View Full Version : how do I change drop down years in Add Public Event


bunder
06-06-2003, 06:26 PM
As we are in 2003, I really don't want 2001 and 2002 to appear on the list of years in the drop down on the Add Pulbic Event page, but I can't work out which template I need to edit for that.

it doesn't seem to be in the main calander template nor calander_publicevent

any pointers as at vbulletin.com I was told this might be a hack job

Leslie

assassingod
06-06-2003, 06:35 PM
This is untested, but should work:

Open up calendar.php, and find a appearences of (It appears twice I think) :


$yearbits = '';
for ($gyear = 2000; $gyear < ($NumYear + 3); $gyear++)
{ // generate select menu since 2000 and for the next 3
$yearbits .= "\t\t<option value=\"$gyear\">$gyear</option>\n";
}


and replace with


$yearbits = '';
for ($gyear = 2003; $gyear < ($NumYear + 3); $gyear++)
{ // generate select menu since 2000 and for the next 3
$yearbits .= "\t\t<option value=\"$gyear\">$gyear</option>\n";
}


I think that'll work:)