From: Tim B. <tim...@wc...> - 2002-01-24 16:20:42
|
On Thursday 24 January 2002 11:00 am, Lawrence Akka wrote: > Sorry - been a bit busy with the day job! Darn...I thought I asked a stumper! > > Where do you want the timestamp to appear? At the beginning of the line where the individual editing the page started typing. > On the page itself? Yes, so the data is recorded in my postgresql database for future reference. Reports and the like. > That's not > too hard. In fact, if you browse a page, you can see at the bottom a line > which says "Last edited on ..." Is that enough for you? Unfortunately, no. I need to be able to go back and see when each entry was made, so I need a permanent record of it to show up on the page itself. > Or do you want > the timestamp next to the changes that have been made? That's a bit > harder. If you do, what happens if someone edits two different parts of > the same page? > Good point. Edicut on the page will be to append to the end. This will be observed by all using it. > You can always see the date and time of any change by looking at > RecentChanges, or PageHistory. > I was unaware of that. I looked at it, but it would be a bit cumbersome when trying to determine when specific entries were made. I would like the chronology to appear on the page itself. I added a line to the editpage.html 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. 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. Thanks, Tim > Lawrence > > At 16:08 24/01/2002, Tim Bogart wrote: > >Well, I must have asked a stumper because nobody has responded to this > >question. > > > >After other inquires, it has been suggested to me that I put a table in > > the wiki database which contains some sort of time stamp and extract it > > at save time. This sounds like the best idea to me. Could somebody > > please give me an idea how to do this? > > > >TIA, > > > >Tim > > > >On Tuesday 22 January 2002 01:32 pm, Tim Bogart wrote: > > > All, > > > > > > Please bare with me folks. I'm not a programmer. I don't even play > > > one on TV. I would like to change the function of the edit button on > > > my wiki so that it performs a time stamp along with save it does. I > > > know from reading the php docs that php does have a time stamp function > > > based on the system clock. > > > > > > How would I go about incorporating this enhancement? > > > > > > As always, TIA. > > > > > > Tim B. > > > > > > _______________________________________________ > > > Phpwiki-talk mailing list > > > Php...@li... > > > https://lists.sourceforge.net/lists/listinfo/phpwiki-talk > > > >_______________________________________________ > >Phpwiki-talk mailing list > >Php...@li... > >https://lists.sourceforge.net/lists/listinfo/phpwiki-talk |