Extension:My blog

My Blog is a MediaWiki extension that allows a blogger to the user's menu. It allows each user to have the capabilities to create blog entries and to have their blog entries listed under the "Most Recent Blogs" from the Navigation Menu. The "Most Recent Blogs" ties back to the extension Dynamic Article List for PHP4.

Note: Most up to date version of this extension can be found at: http://www.chekmate.org/wiki/index.php/Projects

Maintainer
Shannon McNaught (smcnaught) - I am also available on irc.chekmate.org #MediaWiki

Homepage
ChekMate Technical Focus Group

License
SpecialPageListSubBlogs.php/SpecialPagesListAllBlogs.php - Adds Blog functionality to MediaWiki

Copyright (C) 2005 Shannon McNaught

This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.

Download

 * Extension:My blog/SpecialPageSubBlogs.php
 * Extension:My blog/SpecialPagesAllBlogs.php

Issues Reported
One user has reported:
 * too bad...couldn't get it going on my wiki...line 306 (MW 1.6.5) giving problems... ** RESOLVED ** Source Code has been updated. See Discussion for more details.


 * This has only been tested on MediaWiki: 1.5.5 and a quick test on 1.6.5, 1.6.8 and 1.7.0. If others could comment on their experiences on installations and versions, it would be appreciated.

EugeneP (mailto: eugene (at) panaitov (dot) net)


 * For MW 1.8.2 this extension refused working causing exception in SpecialPagesAllBlogs.php line 51: invalid numeric format passed for includes/Database->limitResult. The problem is in

(This has to be fixed as well in SpecialPageSubPages.php line 51)

The fix is:

Add Extensions to the Extensions Folder
My Blog was created from User:Joshurtree/SpecialListSubPages.

Add these files to the extensions directory:
 * Extension:My blog/SpecialPageSubBlogs.php
 * Extension:My blog/SpecialPagesAllBlogs.php

Making "my blog" in the user menu
/* set up the default links for the personal toolbar */ $personal_urls = array; if ($this->loggedin) {
 * link is in /includes/SkinTemplate.php
 * Look for

Down a few lines, right before "$href = $this->makeSpecialURL('Preferences');" Added:

$personal_urls['myblog'] = array(                               'text' => "my blog",                                'href' => $this->makeSpecialUrl("ListSubBlogs/User:$this->username")                         );

Making "Most Recent Blogs" in the Navigation Menu
Go to MediaWiki:Sidebar http://YourHost/wiki/index.php/MediaWiki:Sidebar

Edit Page and Add: ** recentblog-url|recentblog

Edit http://YourHost/wiki/index.php/MediaWiki:recentblog-url and Add: Special:ListAllBlogs/ Edit http://YourHost/wiki/index.php/MediaWiki:recentblog Most Recent Blogs

Add Extensions to your LocalSettings.php
require_once("extensions/SpecialPageSubBlogs.php"); require_once("extensions/SpecialPagesAllBlogs.php");

testt

Change Log
version 0.01b - First release.

Blog Dynamic Article List Report
Added a dynamic summary report to be displayed on the front page to show recent blog entries.
 * Dynamic Article List

Other sites using this extension

 * ChekMate Technical Focus Group
 * HTPCnz - Home Theatre PC wiki - Chat - Blogs - Forums