|
Cookbook /
BlogSimpleSummary: Experimental blog bundle using pagelists
Status: Stable
Version: 2006-12-12
Prerequisites: pmwiki-2.1
Maintainer:
Download: blogsimple.zipΔ
QuestionHow can I create a simple blog using pagelists? AnswerDownload and install blogsimple.zipΔ
(It could be adapted for a two column skin by moving lists from RightBar to SideBar.)
Included are blogsimple.php and a number of wiki pages for an automatic set up of the blog in groups Blog, BlogPages, BlogComments, BlogArchive and BlogCategories. Installationunzip into the cookbook/ directory which should create directories cookbook/blogsimple/
files:blogsimple.php
README.txt
cookbook/blogsimple/wikilib.d/ pmwiki page store with blog configuration pages
add to config.php: include_once("You can only use either commentboxplus.php or commentbox.php, so if you have commentbox.php installed uninstall it and install commentboxplus.php instead. Use:Open the wiki and go to Blog.Blog, which is the blog homepage.
This means all your blog pages are in one group. If you need blog pages in several groups try BlogSimple2 instead. NotesThis blog works basically using pmwiki’s pagelist markup to generate the various lists you see:
The blog entries are stored as wiki pages in the group BlogPages. The names can carry a date prefix for easy page handling, but this part of the name gets hidden in the page title. It is also not strictly necessay to have the date part in the page name, but it makes file management perhaps easier. Any comments are stored in the group BlogComments on a page with the same name as the blog page. Blog category pages are stored in the group BlogCategories, and archive pages are stored in the group BlogArchive. All the template pages are in the group Blog. New blog entries are added with the newpagebox form using NewPageBoxPlus. Comments are added with a commentbox using CommentBoxPlus. A comment page is included in the blog page with The blog has a BlogConfiguration page from where all the various configuration pages can be accessed, as well as new category and archive pages been added using again a newpagebox form. Blog category and archive pages need to be manually created using the form on the config page. Categorising a blog page is the same as for a normal wiki page using the Advantages
Disadvantages (but not so bad really)
Updates
Note: Remove any old blog configuration pages which have been edited first.
NotesThe latest CommentBoxPlus script allows use of Access Codes. If you use a custom build form to enter comment, using [[<<]](:title {$BlogTitle}:)
>>left<<[[#commentbox]]
(:input form name=cboxform action={$PageUrl} method=post:)
(:input hidden n {$FullName}:)
(:input hidden action comment:)
(:input hidden accesscode {$AccessCode}:)(:input hidden order chrono:)'''Add Comment:'''[[<<]]
(:input textarea text rows=7 cols=50 class=inputtext:)[[<<]]
Author: (:input text author {$Author} class='inputbox':)
Enter code %red%'''{$AccessCode}'''%% (:input text access size='4' maxlength='3' class=inputbox:)\
(:input submit post Post class='inputbutton':)\
(:input reset reset Reset class='inputbutton':)(:input end:)
>><<
----
Back to [[BlogPages/{$Name}|{$BlogTitle}]]\
-- [[Blog.Blog| Blog Home Page]]
CommentsThe $BlogMonth and/or $BlogMonthTitle variables ( cannot contain special characters. I have a problem with a German wiki using blogsimple. The Archive name for march in German is "März" and the umlaut doesn't get recognized. The wiki is utf-8 encoded. Can you help me here? hombre June 12, 2006, at 05:14 AM I am really happy about this good working skript. But I have the problem even with the file names when using special characters like "ü" in the title. For example , while the title is shown correctly, the file name is like "Für" instead of "Für". Then as consequence there are lines like {BlogComments.2006-06-23-Für} on the website, a line that is not meant to be seen at all. I think somebody who knows programming php just has to add a line to the script to change that...? I would appreciate it a lot. michi? June 24, 2006, at 20:10 PM The $Title variable seems to be the same like $Name...why? I want a title which is lower case like (:title this is lower case:). flox July 12, 2006, at 06:38 PM This has been a great startup for my blog website. A new interesting feature would be to have trackback comments, meaning being able to be notified when someone talks about our post. It begins to be more popular, see http://codex.wordpress.org/Glossary#Trackback. I'm just writing the idea cause I'm not a PHP expert so maybe someone else will see how to implement this faster than me. joelmig? July 21, 2006, at 20:10 PM I have no idea how to add Trackback/Ping to pmwiki. Maybe someone else is working on it? ~HansB Spammers have found my site and I get very boring comments. What's the best thing to do about this? Is it easy to force the user to enter a password when creating a comment (and then for instance display the password somewhere on the page)? JeeBee March 19, 2007. Use a CommentBox with an Accesscode field. See CommentBoxPlus - HansB Hi, HansB, I installed this recipe and it worked perfectly with only one little problem. While the "recent comments" display the comment page name(with no date), it's somehow difficult to understand when using, say, Chinese characters. I'm wondering if it is possible to use {$Title} instead of {$BlogTitle} ? In my simple thinking, maybe it can be done by copy the blog page (:title:) PTV to comment page while a comment had been summit. imoc 2007-12-30 Hi Hans! It seems like I have quite a bit of contact with you now and then. ;-) So, I have a very simple question that could probably be answered by anyone, so hopefully anyone will do so. Anyway, I've installed Blog Simple exactly as stated and am using PMWiki 2.2.0 beta 65 with the Triadskin. So, my problem is that the title on the [[Blog/Blog]] page is "BlogListTemplates." How would I change this title to say "Blog Forum" or something of that nature? thanks, Chris October 12, 2008, at 06:05 PM perhaps put a title markup like C: Perfect! Thanks Hans -Chris October 12, 2008, at 06:05 PM See Also
Contributors |