The websiteFrame PHP extension: Difference between revisions
(rough description) |
m (changed actual location for PHP file to "official" extension directory) |
||
Line 1: | Line 1: | ||
The sourcecode for the extension can be found [[websiteFrame.php Source Code | here]]. | The sourcecode for the extension can be found [[websiteFrame.php Source Code | here]]. | ||
To add the extension: copy the souce code in a file named ''websiteFrame.php'', and put it in directory ''/etc/mediawiki-extensions/extensions-available'' | To add the extension: copy the souce code in a file named ''websiteFrame.php'', and put it in directory ''/usr/share/mediawiki-extensions''. Then create a symlink to this source code in directory ''/etc/mediawiki-extensions/extensions-available''. Finally, create a symlink in ''/etc/mediawiki-extensions/extensions-enabled'' to this previous symlink. To bring this about, execute the following commands: | ||
vi /usr/share/mediawiki-extensions/websiteFrame.php | |||
ln -s . | ln -s /usr/share/mediawiki-extensions/websiteFrame.php /etc/mediawiki-extensions/extensions-available/websiteFrame.php | ||
ln -s /etc/mediawiki-extensions/extensions-available/websiteFrame.php /etc/mediawiki-extensions/extensions-enabled/websiteFrame.php | |||
Of course, in the first line, you're put in your favourite text editor [[vim]], where you'll need to type or paste the actual source code. | |||
As an example, you can use an iFrame by putting in code like this: | |||
<pre> | <pre> | ||
<websiteFrame> | <websiteFrame> |
Latest revision as of 12:04, 26 October 2008
The sourcecode for the extension can be found here.
To add the extension: copy the souce code in a file named websiteFrame.php, and put it in directory /usr/share/mediawiki-extensions. Then create a symlink to this source code in directory /etc/mediawiki-extensions/extensions-available. Finally, create a symlink in /etc/mediawiki-extensions/extensions-enabled to this previous symlink. To bring this about, execute the following commands:
vi /usr/share/mediawiki-extensions/websiteFrame.php ln -s /usr/share/mediawiki-extensions/websiteFrame.php /etc/mediawiki-extensions/extensions-available/websiteFrame.php ln -s /etc/mediawiki-extensions/extensions-available/websiteFrame.php /etc/mediawiki-extensions/extensions-enabled/websiteFrame.php
Of course, in the first line, you're put in your favourite text editor vim, where you'll need to type or paste the actual source code.
As an example, you can use an iFrame by putting in code like this:
<websiteFrame> website=http://www.google.com/talk/service/badge/Show?tk=z01q6a-longcode-8k5lm1&w=200&h=60 border=0 height=60 width=200 name=GoogleChatwithSaruman! allowtransparency=true </websiteFrame>
Note that the "=" sign is replaced with = and the & sign by & because the PHP script doesn't like them literally.