MW: my blog
From ChekMate Security Group
Contents |
What is 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.
Maintainer
Shannon McNaught (smcnaught)
License
SpecialPageListSubPages.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
Installation
Add Extensions to the Extensions Folder
My Blog was created from User:Joshurtree/SpecialListSubPages.
Add these files to the extensions directory:
Making "my blog" in the user menu
- link is in /includes/SkinTemplate.php
- Look for
/* set up the default links for the personal toolbar */
Added:
$personal_urls['myblog'] = array(
'text' => "my blog",
'href' => $this->makeSpecialUrl("ListSubPages/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/SpecialPageSubPages.php");
require_once("extensions/SpecialPagesAllBlogs.php");
Change Log
version 0.01b - First release.
Screenshot
Live Example
See online example at http://www.chekmate.org/wiki/.
You will need to create an account to see your personal "my blog" page.
References
Blog Dynamic Article List Report
Added a dynamic summary report to be displayed on the front page to show recent blog entries.
Remarks
- see Descussions for list of problems
- btw: limitResult issue is resolved by following (notice that there is no comma after $offset):
array( 'ORDER BY'=>'page_touched DESC','LIMIT' => $limit,'OFFSET' => $offset ) );
- btw: in the 2 special pages added it is assumed that /wiki is the root of the wiki and it is hardcoded. You may consider editing
- Sorry for editing this article, discussions are not editable :-(





