Extension:My blog
From MediaWiki.org
|
My blog Release status: unstable |
|
|---|---|
| Implementation | MyWiki |
| Description | Allows a blogger to the user's menu. |
| Author(s) | Shannon McNaught |
| Download | http://www.chekmate.org/wiki/index.php/Projects |
| Example | http://www.chekmate.org/wiki/ |
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
Contents |
[edit] Maintainer
Shannon McNaught (smcnaught) - I am also available on irc.chekmate.org #MediaWiki
[edit] Homepage
ChekMate Technical Focus Group
[edit] 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.
[edit] Download
[edit] 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)
$result = $dbr->select( 'page' , array( 'page_namespace', 'page_title', 'page_touched' ), array( 'page_namespace' => '2', "page_title LIKE '%BlogEntry%'"), $fname, array( 'ORDER BY'=>'page_touched DESC', 'LIMIT' => "$offset, $limit" ) );
The fix is:
array( 'ORDER BY'=>'page_touched DESC', 'LIMIT' => "$limit", 'OFFSET' => '$offset' ) );
[edit] Installation
[edit] Add Extensions to the Extensions Folder
My Blog was created from User:Joshurtree/SpecialListSubPages.
Add these files to the extensions directory:
[edit] Making "my blog" in the user menu
- link is in /includes/SkinTemplate.php
- Look for
/* set up the default links for the personal toolbar */
$personal_urls = array();
if ($this->loggedin) {
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")
);
[edit] 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
[edit] Add Extensions to your LocalSettings.php
require_once("extensions/SpecialPageSubBlogs.php");
require_once("extensions/SpecialPagesAllBlogs.php");
[edit] Change Log
version 0.01b - First release.
[edit] Screenshot
[edit] Online Examples
See online example at http://www.chekmate.org/wiki/.
You will need to create an account to see your personal "my blog" page.
[edit] References
[edit] Blog Dynamic Article List Report
Added a dynamic summary report to be displayed on the front page to show recent blog entries.

