Pamelaware for MediaWiki is an information card plugin.
Latest Version
The latest PamelaWare version for MediaWiki is v0.9.
Requirements
You will need the following things to use PW-MW:
- A static IP address
- An SSL Certificate
- A MediaWiki Wiki environment (must have version 1.11.0 or later)
- PHP5
- php5-mcrypt (a library that contains crypto stuff)
See the Checking PHP Prerequisites page if you aren't sure whether your site uses PHP5 or php5-mcrypt.
See the SSL Certificate Primer if you want more information on SSL Certificates
Installation
Get the plugin from the PamelaWare Servers
Directly from Subversion
- Go to the 'extensions' subdirectory of your MediaWiki wiki cd <wiki_directory>/extensions
- Check out the "pwmw" directory from either the trunk or from the latest stable branch:
Dev Snapshot: svn co https://pamelaproject.com/svn/pw/pwmw/branches/RB-0.9/pwmw pwmw
- For versions before MediaWiki 13.1: Recursively copy everything in the pwmw/SpecialPages subdirectory to the <wiki_directory>/includes directory. This includes SpecialPage code as well as templates, languages, and images used by this plugin.
- For versions including and after MediaWiki 13.1: Recursively copy everything in the pwmw/SpecialPages subdirectory to the <wiki_directory>/includes directory. SpecialPage code must be copied into a new "specials" sub-directory as of version 13.1 instead of placing those files in the main "includes" directory. Everything in the templates directory should be copied to the templates subdirectory -- the languages, and images subdirectories may have to be created.
- Add the following line to the MediaWiki "LocalSettings.php" file in the <wiki_directory> main directory:
require_once("$IP/extensions/pwmw/pw-mw.php"); - Access the PW Infocard Admin Special Page of your wiki (must use an account with admin privileges)
- Go to http://<wikiurl>/index.php?title=Special:PWInfocardAdmin
- Or you can go to the SpecialPages page and look for the PWInfocardAdmin link
- When you're done configuring the plugin in the Admin Special Page, your plugin should be ready to go!
To add a Left Navbar Login Icon
You can optionally follow the steps below to add an Information Card Login icon to the left Navigation Toolbar:
- Edit MediaWiki:Sidebar
- add the following line into the existing text in the position you prefer and save:
** Special:PWInfocardSubmit|infocardlogin
- add the following line into the existing text in the position you prefer and save:
- Edit MediaWiki:Common.css
- add the following 2 entries and save:
#n-infocardlogin { list-style: none; margin-left: -20px; padding-bottom: 28px; } #n-infocardlogin a { background-image: url('extensions/pwmw/pwlib/images/infocard_60x42.png'); background-position: top left; background-repeat: no-repeat; padding-left: 66px; padding-bottom: 30px; list-style: none; margin-left: 0; }
- add the following 2 entries and save:
- Edit MediaWiki:infocardlogin (this will be a new page)
- Add the following text and save:
Click-in
- Note, you can make this text whatever you want, but you may have to change the CSS to look nice if your text is too long.
- Add the following text and save:
