Hack:My portal
Appearance
From mediawiki.org
Release status: unknown |
|
|---|---|
| File:Simportal.png | |
| Implementation | Database, Mywiki |
| Description | 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 Simplortal (simplortal.bzzt.net) . |
| Author(s) | Shannon McNaught |
| Licence | No licence specified |
| Download | http://www.chekmate.org/wiki/simplortal-0-01b.tgz |
| Example | Create a User account on http://www.chekmate.org/wiki/ and click on "my portal" |
| Translate the Hack:My portal extension if it is available at translatewiki.net | |
I will be updating this documentation soon. Still work in progress.
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 Simplortal (simplortal.bzzt.net) .
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.
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
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.
Download
- http://www.chekmate.org/wiki/simplortal-0-01b.tgz simplortal-0-01b.tgz
Installation
- Extract Simplortal-0-01b.tgz to a directory
- Move the simplortal directory to the wiki directory
Change these items in the simplortal/config.inc.php file
$db_host = "localhost"; $db_user = "username"; $db_pass = "password"; $db_database = "wiki";
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');
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" );
Add additional styles to /wiki/skins/monobook/main.css file
div.caption { } div.layoutblock { } div.block { position:relative; border:1pxsolidblack; } 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.blockcaptiona { 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; }
Change Log
version 0.01b - initial version
Screenshot
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.
References
Simplortal
- Simplortal Homepage: simplortal.bzzt.net
- https://sourceforge.net/projects/simplortal/ sf.net project page
- The code: http://simplortal.cvs.sourceforge.net/ in CVS
Similar Projects
- https://sourceforge.net/projects/metadot/ Metadot (nice but complicated, seems held hostage by a company)
- https://sourceforge.net/projects/hpe/ HPE (nice but complicated, stalled since author continued work under a private license)