To fix the wrong time being set on the sticky post, in your addpost.php script find this:
code:
// -------------------------------------------------------
// Otherwise just update the reply total if it is approved
elseif ( ($Main) && ($Sticky) && ($Approved == "yes") ) {
$query = "
UPDATE {$config['tbprefix']}Posts
SET B_Replies = B_Replies + 1,
B_Sticky = '$date'
WHERE B_Number = '$Main'
AND B_Board = '$Board_q'
";
$dbh -> do_query($query);
}
and replace it with this:
code:
// -------------------------------------------------------
// Otherwise just update the reply total if it is approved
elseif ( ($Main) && ($Sticky) && ($Approved == "yes") ) {
$query = "
UPDATE {$config['tbprefix']}Posts
SET B_Replies = B_Replies + 1,
WHERE B_Number = '$Main'
AND B_Board = '$Board_q'
";
$dbh -> do_query($query);
}
And that *should* do the trick...