|
Archive /
ChangeSummaryVersion: obsolete QuestionHow can I add a field to the edit form to allow authors to enter a "summary" of the changes made, and have this summary appear in RecentChanges and page history? AnswerThe Attach:changesum.php script modifies the edit form to provide a text box for entering a one-line summary of edit changes, and to have this summary line appear in the RecentChanges and page history displays. To use this script, simply copy it into your cookbook/ subdirectory and then add the following line to your configuration file: VersionChangesum.php is actually Version 2.2 BugsHow do you get the summary to show up when using PmWiki/MailPosts -- and right now it doesn't seem to work on RecentChanges or Main.AllRecentChanges pages -- only in the page history. I would also like to require the summary as yet another layer between wiki and spambots. -- Crisses Hmm, it's working on my RecentChanges (see the summary line on this post). To require the summary for a post, you can do something like:
if (!$ChangeSummary) {
unset($_POST['post']);
$EditMessageFmt .= "<h3>Change summary is required</h3>";
}
Changed the "@$_POST" to "$_POST, works for me opitzs
We've done this at http://apfelwiki.de. We made some change to the local rss.php. We have documentated them in our own "coolbook" http://apfelwiki.de/wiki/CookBook/RSSFeedAnpassungen. --kt007 February 02, 2005, at 02:10 AM Contributors
Sandbox for changes and experimentsTesting the changesummary script, adding the 'csum:$Now' attribute. test Categories: GUI |