From 653fd4ee1afd690f46e7c32a1ac93ba891c0e675 Mon Sep 17 00:00:00 2001 From: vargenau Date: Tue, 2 Apr 2013 08:25:32 +0000 Subject: [PATCH] Move info from code to help page git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@8736 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/plugin/WikiBlog.php | 32 -------------------- pgsrc/Help%2FWikiBlogPlugin | 60 ++++++++++++++++++++++++++++++++++++- 2 files changed, 59 insertions(+), 33 deletions(-) diff --git a/lib/plugin/WikiBlog.php b/lib/plugin/WikiBlog.php index 92773cbe0..1ed22e1c2 100644 --- a/lib/plugin/WikiBlog.php +++ b/lib/plugin/WikiBlog.php @@ -30,28 +30,6 @@ require_once 'lib/TextSearchQuery.php'; * This plugin shows 'blogs' (comments/news) associated with a * particular page and provides an input form for adding a new blog. * - * USAGE: - * Add <> at your PersonalPage and BlogArchive and - * BlogJournal will find the Blog entries automatically. - * - * Now it is also the base class for all attachable pagetypes: - * "wikiblog", "comment" and "wikiforum" - * - * HINTS/COMMENTS: - * - * To have the blog show up on a separate page: - * On TopPage, use - * <> - * Create TopPage/Blog with this page as actionpage: - * <> - * - * To have the main ADMIN_USER Blog appear under Blog and not under WikiBlog/Blog - * or UserName/Blog as for other users blogs, - * define BLOG_DEFAULT_EMPTY_PREFIX=true - * use the page Blog as basepage - * and user="" (as default for ADMIN or current user) and pagename="Blog" - * in the various blog plugins (BlogArchives, BlogJournal) - * * TODO: * * It also works as an action-page if you create a page called 'WikiBlog' @@ -94,16 +72,6 @@ class WikiPlugin_WikiBlog } // Arguments: - // page - page which is blogged to (default current page) - // - // order - 'normal' - place in chronological order - // - 'reverse' - place in reverse chronological order - // - // mode - 'show' - only show old blogs - // 'add' - only show entry box for new blog - // 'show,add' - show old blogs then entry box - // 'add,show' - show entry box followed by old blogs - // // TODO: // // - arguments to allow selection of time range to display diff --git a/pgsrc/Help%2FWikiBlogPlugin b/pgsrc/Help%2FWikiBlogPlugin index f86b92ad4..3c5b4bda0 100644 --- a/pgsrc/Help%2FWikiBlogPlugin +++ b/pgsrc/Help%2FWikiBlogPlugin @@ -1,4 +1,4 @@ -Date: Fri, 13 Apr 2012 18:14:27 +0000 +Date: Tue, 2 Apr 2013 10:23:48 +0000 Mime-Version: 1.0 (Produced by PhpWiki 1.4.0) Content-Type: application/x-phpwiki; pagename=Help%2FWikiBlogPlugin; @@ -9,10 +9,68 @@ Content-Transfer-Encoding: binary This simple [[Help:WikiPlugin|plugin]] allows blog-style entries on a page. Try making a few entries, and then look at [[RecentChanges]] to get an idea of how things work. +This plugin shows 'blogs' (comments/news) associated with a +particular page and provides an input form for adding a new blog. + +== Arguments == + +{| class="bordered" +|- +! Argument +! Description +! Default value +|- +| **page** +| page which is blogged to +| Current page +|- +| **order** +| +* 'normal' - place in chronological order +* 'reverse' - place in reverse chronological order +| normal +|- +| **mode** +| +* 'show' - only show old blogs +* 'add' - only show entry box for new blog +* 'show,add' - show old blogs then entry box +* 'add,show' - show entry box followed by old blogs +| show,add +|} + +== Usage == + +Add {{{<>}}} at your ~PersonalPage and BlogArchives and +BlogJournal will find the Blog entries automatically. + +Now it is also the base class for all attachable pagetypes: +"wikiblog", "comment" and "wikiforum" + +== Hints/comments == + +To have the blog show up on a separate page: + +On ~TopPage, use {{{<>}}} +Create ~TopPage/Blog with this page as actionpage: +{{{<>}}} + +To have the main ADMIN_USER Blog appear under Blog and not under WikiBlog/Blog +or ~UserName/Blog as for other users blogs, +define BLOG_DEFAULT_EMPTY_PREFIX=true +use the page Blog as basepage +and user="" (as default for ADMIN or current user) and pagename="Blog" +in the various blog plugins (BlogArchives, BlogJournal) + == Example == <> +== Author == +* Michael Van Dam, major refactor by [[Help:Jeff Dairiki|Jeff Dairiki]] (as ~AddComment) +* Changed as baseclass to ~AddComment and ~WikiForum and ~EditToolbar integration by [[Help:Reini Urban|Reini Urban]]. + + == See Also == * [[Help:BlogJournalPlugin]] * [[Help:BlogArchivesPlugin]] -- 2.45.0