MW: my portal
From ChekMate Security Group
I will be updating this documentation soon. Still work in progress.
Contents |
[edit]
What is MW: my portal
My Portal is a MediaWiki hack, it is NOT a MediaWiki extension, that allows users to have a custom portal page like MyGoogle, MyYahoo, etc. It is a modified version of http://simplortal.bzzt.net/ Simplortal .
Description of Simplortal from Simplortal Site:
Simplortal is a portal engine which focuses on simplicity, modularity, and being highly configurable, not only for the administrator, but also for the end user. Users can log in and make their own selection of the content they want to see, and even (if the administrator allows it) add their own HTML blocks, RSS feeds, etc.
[edit]
Maintainer
Shannon McNaught (smcnaught)
[edit]
License
MW: My Portal Adds My Portal functionality to MediaWiki Copyright (C) 2006 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]
Installation
- Extract Simplortal-0-01b.tgz to a directory
- Move the simplortal directory to the wiki directory
[edit]
Change these items in the simplortal/config.inc.php file
$db_host = "localhost"; $db_user = "username"; $db_pass = "password"; $db_database = "wiki";
[edit]
Add tables to the wiki database
USE wiki; CREATE TABLE `blocks` ( `user` varchar(20) NOT NULL default '', `moduleconfig` int(11) NOT NULL default '0', `row` int(11) NOT NULL default '0', `col` int(11) NOT NULL default '0', PRIMARY KEY (`user`,`row`,`col`) ); CREATE TABLE `moduleconfigs` ( `id` int(11) NOT NULL auto_increment, `moduletype` int(11) NOT NULL default '0', `configuration` text, PRIMARY KEY (`id`) ); CREATE TABLE `moduletypes` ( `id` int(11) NOT NULL auto_increment, `name` varchar(20) default NULL, `shortname` varchar(20) default NULL, `type` varchar(20) default NULL, PRIMARY KEY (`id`) ); CREATE TABLE `categories` ( `id` int(11) NOT NULL auto_increment, `cat` text NOT NULL, `num` int(11) NOT NULL default '0', PRIMARY KEY (`id`) ); INSERT INTO `moduletypes` VALUES (1, 'Raw HTML', 'rawhtml', 'php'); INSERT INTO `moduletypes` VALUES (2, 'RSS feed', 'rss', 'php'); INSERT INTO `moduletypes` VALUES (3, 'iFrame', 'iframe', 'php');
[edit]
Making "my portal" in the user menu
- link is in /wiki/includes/SkinTemplate.php
- Look for
/* set up the default links for the personal toolbar */
Added:
$personal_urls['mypage'] = array(
'text' => "my portal",
'href' => "/wiki/simplortal"
);
[edit]
Add additional styles to /wiki/skins/monobook/main.css file
div.caption
{
}
div.layoutblock
{
}
div.block
{
position:relative;
border: 1px solid black;
}
div.blockcaption
{
position:relative;
background-color: #0000A0;
color: white;
font-size: 13px;
text-align: left;
height: 1.6em !important;
align: top;
width: 100%;
font-weight: bold;
}
div.blockcaption a
{
position:relative;
color: white;
}
div.blockcontent
{
position:relative;
padding: 0.3em;
}
.date
{
position:relative;
}
span.edit
{
font-size: 2px;
padding:0px;
position:relative;
float: right;
background-color: #0000A0;
}
.table
{
position:relative;
}
.column10
{
position:relative;
}
.column20
{
position:relative;
}
.column21
{
position:relative;
}
.column30
{
position:relative;
}
.column31
{
position:relative;
}
.column32
{
position:relative;
}
.column40
{
position:relative;
}
.column41
{
position:relative;
}
.column42
{
position:relative;
}
.column43
{
position:relative;
}
[edit]
Change Log
version 0.01b - initial version
[edit]
Screenshot
[edit]
Online Example
Create a User account on http://www.chekmate.org/wiki/ and click on "my portal" located within the user menu at the top.
[edit]
References
[edit]
Simplortal
- Simplortal Homepage: http://simplortal.bzzt.net/
- sf.net project page
- The code: in CVS
[edit]





