View Full Version : minicalendar bug?
Lionel
08-21-2005, 11:01 PM
No matter which calendar you select, after saving it, it always come back to the default, even though it displays proper calendar on page. The annoyance is that if you go back to that page for another edit, you must remember to also reset the calendar or it will pick up the displayed default in the field.
Brian
08-22-2005, 02:18 PM
Look in your forums/includes/adminfunctions_vba_cmps.php file for:
$selectbox .= '<option value="' . $calendar['calendarid'] . '">' . $calendar['title'] . '</option>';
Replace with:
$selectbox .= '<option ' . iif($calendar['calendarid'] == $setting['value'], 'selected="selected"') . ' value="' . $calendar['calendarid'] . '">' . $calendar['title'] . '</option>';
And that should take care of the problem.
Lionel
08-22-2005, 02:26 PM
Sure did. And also took care of upcoming events.
vBulletin® v3.7.2, Copyright ©2000-2008, Jelsoft Enterprises Ltd.