Memotoo.com and MediaWiki
Contents |
What can this extension do?
This extension allows to display your Memotoo data (address book, calendar, bookmarks, tasks and notes) on your MediaWiki.
Usage
- Go to the settings of your data and configure it:
- Copy the HTML generated WITHOUT
"<iframe src="https://www.memotoo.com/
at the beginning and
"</iframe>"
at the ending.
- Paste the html between "<memotoo>" and "</memotoo>" and insert it into you MediaWiki page.
For Example:
<memotoo>contactsEmbed.php?uid=xxxxxxxxxxx&q=xxxxxxxxxxx" width="600" height="500" style="border:1px solid #999999" frameborder="0" scrolling="auto"></memotoo>
Download instructions
Copy and paste the extension code to a text editor and save the file as "memotoo.php", or download the file here
<?php /** * Display your Memotoo data (address book, calendar, bookmarks, ...) on your MediaWiki * * @version 1.0 * @author Thomas Pequet * @link http://wiki.memotoo.com/wiki/Memotoo.com_and_MediaWiki */ //Extension credits that show up on Special:Version $wgExtensionCredits['parserhook'][] = array( 'name' => 'Memotoo.com and MediaWiki', 'author' => 'Thomas Pequet', 'url' => 'http://wiki.memotoo.com/wiki/Memotoo.com_and_MediaWiki, 'version' => '1.0', 'description' => 'Display your Memotoo data (address book, calendar, bookmarks, ...) on your MediaWiki', ); $wgExtensionFunctions[] = 'wfMemotoo'; function wfMemotoo() { global $wgParser; $wgParser->setHook('memotoo', 'renderMemotoo'); } function renderMemotoo($input) { $output = ; if (ereg("^agendaEmbed.php",trim($input)) || ereg("^contactsEmbed.php",trim($input)) || ereg("^contactsMapEmbed.php",trim($input)) || ereg("^favorisEmbed.php",trim($input)) || ereg("^postItEmbed.php",trim($input)) || ereg("^tasksEmbed.php",trim($input))) $output = '<iframe src="https://www.memotoo.com/'.trim($input).'</iframe>'; return $output; }
Installation
- Put the extension file in your extension folder.
- Put the following code at the end of "LocalSettings.php":
#Extension: Memotoo require_once('extensions/memotoo.php');
See also
- Address Book on your website
- Bookmarks on your website
- Calendar on your website
- Notes on your website
- Tasks / ToDo List on your website