From: Jeff D. <da...@da...> - 2002-01-25 16:57:33
|
On Thu, 24 Jan 2002 11:45:00 -0500 "Tim Bogart" <tim...@wc...> wrote: > I added this line to the very begining... > > $ldt=date("Y-m-d G:m:s"); > > and added this line further down ... > > <form method="post" action="${BROWSE}EditPage"> > <textarea class="wikiedit" > name="content" > rows="${EDIT_AREA_HEIGHT}" > cols="${EDIT_AREA_WIDTH}" > wrap="virtual">$FORMVARS[content] > <? echo $ldt ?></textarea> <-----THIS IS THE LINE I ADDED > > which does what I wish, but it happens too late. It happens the *next* time > I push the edit button. Which is one save too late. I'm not sure I understand exactly what you want (from what I do understand, I think the solution you've proposed here is a good one.) Whenever someone edits a page, your patches (above) add a line with the current date at the bottom of the page text. Assuming your users follow the prescribed protocol, they just add their edits below that line... What about that don't you like? > One of my co-workers suggested that I add a database table with the timestamp > and extract it and print it to the screen at the beginning of the > savepage.php script, which seems like a good idea, if I knew what I was doing > and how to do it. Any help would be most appreciated. As noted before, whenever you save a new version of a page, a timestamp is already recorded --- it's already there, and, as has been pointed out, you can access it(among other ways) via the PageHistory display. I guess I don't understand exactly what you're proposing to do with it.... Eventually, PhpWiki will support weblog style pages. As I envision them, these are, essentially: append-only pages, where each edit(appendation) is annotated with the author and date. Is that what you're looking for? |