A second little bugfix...
In addpost.php, find the following:
************************************************************
// -------------------------------------------------------
// Make sure there's a location or it's a reply
if($Calendar == 'Y') {
if ( !$Location && !$replyto ) {
$html -> not_right($ubbt_lang['ALL_FIELDS'],$Cat);
}
}
************************************************************
And replace with:
************************************************************
// -------------------------------------------------------
// If this is a reply, don't treat this as a calendar
if ( $replyto ) { $Calendar = 'N' ; }
// -------------------------------------------------------
// Make sure there's a location or it's a reply
if($Calendar == 'Y' && !$Location) {
$html -> not_right($ubbt_lang['ALL_FIELDS'],$Cat);
}
************************************************************
As a result of the bug, addpost was making unneeded entries into the Events table for replies. If desired, you can delete entries in the w3t_Events table which don't have a location listed.
Also, an old/incorrect date was being shown in the preview of replies on the calendar board.
Regards,
Max