Hack:My portal

From MediaWiki.org
Jump to navigation Jump to search
MediaWiki extensions manual
Crystal Clear action run.svg
My portal
Release status: unknown
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
License No license 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[edit]

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[edit]

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

Homepage[edit]

ChekMate Technical Focus Group

License[edit]

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[edit]

Installation[edit]

  • 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[edit]

$db_host = "localhost";
$db_user = "username";
$db_pass = "password";
$db_database = "wiki";

Add tables to the wiki database[edit]

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[edit]

  • 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[edit]

div.caption
{
}

div.layout block
{
}

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;
}

Change Log[edit]

version 0.01b - initial version

Screenshot[edit]

Simportal.png

Online Example[edit]

Create a User account on http://www.chekmate.org/wiki/ and click on "my portal" located within the user menu at the top.

References[edit]

Simplortal[edit]

Similar Projects[edit]

Other sites using this extension[edit]