|
Cookbook /
XESBlogSummary:Provide blog application functionality for one point installation.
Version:2008-04-01
Prerequisites: 2.2-beta series, PEAR for pingbacks
Status: beta
Maintainer:XES
Categories: Blog, CustomPageStore
Questions answered by this recipeHow can I create a Blog in PmWiki without having to pull together all the components and tricks to do it myself? AnswerInstall XES Blog package and it will give you a bunch of functionality and step-by-step instructions to get up & running with a blogging engine in your PmWiki installation. Currently this recipe is set up for the administrator (admin) to create blog entries and manage the website, and website visitors are allowed to add comments to the website. DescriptionBlogging recipe - compilation of other recipes and custom functions. FeaturesSee XES Blog - Use for usage documentation.
NotesAll screenshots are on a (pretty-much) bare-bones install of PmWiki with very little formatting/css added. Step One: Add files to serverDownload, expand and install xesblog.zipΔ components: everything inside the cookbook folder should be added to your cookbook/ directory, the xeslib.d folder should be placed in the same folder as contains your wiki.d folder, and the blog-images folder should be placed in the root of your web directory. Other configurations are possible, but this is how the package was set up, and you'll have to fiddle if you change it. Step Two: InstallationAdd the following text to your local/config.php file:
Change Options: There are many SDV variables in the xesblog.php file, and values can be replaced by adding $Variable = "value"; to config.php. Example: if you want your "blog" to be under the group name "News", change
$XesBlogGroup = "News"; and $ListCategories_SizedlistNum = 150; means you'll have up to 150 categories in the tag cloud. [NOTE: If you change the group & page name all the included page templates will be off -- groups will need to be changed in pagelists, pagenames in xeslib.d should be changed to the new group name, etc. Changing the group name is still being tested. There may be bugs. You've been warned.] More configurations in xesblog.php willand will be moved to SDV later for easy tweaking of the overall package.Step Three: Pimp your sidebar
Make the following tweaks to the bottom of your sidebar (or add these links, lists, & icons to other chosen area of your website):
Edit as necessary -- if you changed the blog group, you'll need to tweak this setup. Step Four: Enable public comments & pingbacksNavigate to Step Five: Go crazyFeel free to upgrade any of the component packages that are installed -- each is maintained separately by other recipe authors and may have been upgraded before this recipe is updated. Also, poke around pmwiki.org and learn how to add functionality, more add-ins, and redesign your website, however often you'd like. Step Six: Make it pretty.Here's some CSS to customize a few components. Add to pmwiki/pub/css/local.css (create the file if it doesn't exsit):
Functionality notesI do have to document one of the more obscure features of the package. I've added an attribute (variable value) to pages in the Comments/ group -- $Xes_Approved. This value is set to "true" (note this is a string value) when a page has been approved by the administrator. When doing pagelists of comments, you will want to keep this attribute in mind. It is used to filter approved from unapproved comments, as in this sidebar example (also above):
Release Dates
To Do
See AlsoIn action: Documentation/Use notes: (contributor packages below...) ContributorsThis recipe borrows from many other recipes. Here's a partial list of credits, by no means in any specific order:
The rest of the credit goes to PmWiki's flexibility and I take some credit for getting tired of people saying blogging doesn't exist yet, and making it work as a cohesive package. Not sure how much of this functionality people wanted added to the core, but whenever possible I used [Cookbook/PmForm]] and core principles for building this package, so it should be able to stand tough for quite some time. CommentsThis space is for User-contributed commentary and notes. Please include your name and a date (eg 2007-05-19) along with your comment. Optional alternative: create a new page with a name like "ThisRecipe-Talk" (e.g. PmCalendar-Talk). Chris: 2008-02-10 -
When you approve comments, in the recipe a status message is set, but it isn't shown when you approve a comment. Adding a GoupHeader with (:messages:) solves that. This is a quick fix, so the output is visible, but doesn't stand out. Chris: 2008-03-01 -
What would it take to condense the old posts, i.e. show only the posts of this month and provide a link to the posts of a previous month (if present).
When using $EnablePostCaptchaRequired=1, it messes up comment approvals and entering Tags. What do I do? In config.php, put:
Just before the include_once. For the add tag (which is also reachable when only in edit authorisation, I did this in the Blog.GroupFooter:
Simon: 2008-03-29 -
Hi! Thanks a lot for your work! I've seen it working great on your site, but it just doenst work on mine, no matter what. I only get empty pages (Blog.Blog, Category.Category & Blog Archive). Only thing working on my installation is the tagcloud. I checked the pagestore locations several times by now with no effect, I deactivated pingback, doesn't helt either. Now I don't know what to do - any ideas? I guess there might be an error in the PmWiki-Code on Blog.Blog that should show the blog entries, something with the bracktes (?). Thanks, Simon Simon 2008-03-29 Hi again! Sorry to have asked that supid question - I found out it was a bigger problem; since I had an old version of UserAuth the pagelist-directives didn't work at all, and that was the reason why the blog wouldn't work (PITS 00901) An Update to UserAuth2 solved my problem. Thanks again for your great work! Simon The recipe still needs a lot of work to be completely polished, but several people have actually installed it other than me, some with more or less trouble. This recipe is MOSTLY a combination of a bunch of other recipes plus some extra templated pages in a new page directory to save people the trouble of figuring out all the page encoding. I'll hopefully be installing it on several more websites shortly, so I may have another round of revisions for it soon, but it does actually work for many people. Thanks! XES March 29, 2008, at 05:50 PM
|