Re: [Simplog-devel] 0.9.2test2
Brought to you by:
f-bomb
From: Jim Hu <ji...@ta...> - 2005-07-12 00:48:53
|
Upgrade went fine after I modified the db to look like an older one (I wanted something that had a lot of entries in it already). Did you take the layouts out of this distribution? They were in 0.91. Something else that was true in older versions. When you create a new blog it doesn't show up right away in the pulldown menu. This is because the the header is written before the database is updated. This may not be worth fixing. To fix the calendar bug replace the corresponding lines in lib.php, starting at about line 984...I'm afraid that I introduced the bug in my changes when I made the calendar a string that is returned by a function instead of just being echoed: ======================= #determine next and previous month and year $py = $y; $ny = $y; if(($m-1)<1) { $pm = 12; $py--; } else { $pm = $m-1; } if(($m+1)>12) { $nm = 1; $ny++; } else { $nm = $m+1; } if(strlen($pm) == 1) { $pm = "0".$pm; }; if(strlen($nm) == 1) { $nm = "0".$nm; }; $string .= '<tr><td colspan=3 align=right>'; $string .= "<b><a href=\"archive.php?m=$pm&y=$py&blogid=$blogid \">".getPrevMo($mo)."</a></b> </td><td><br></td>"; $string .= "<td colspan=3 align=left><b><a href=\"archive.php?m=$nm&y= $ny&blogid=$blogid \">".getNextMo($mo)."</a></b></td></tr> </table>"; ======================= More testing underway... JH |