Plugins page

Difference between revisions from 2022/04/24 06:49 and 1999/11/30 00:00.
{include:subpage userguide}
LionWiki contains only basic functionality, more advanced features are provided by plugins.
  
!Plugins distributed with LionWiki
* [Admin|UserGuide: Admin plugin] provides means to block IPs, disable plugins etc.
* [AjaxEditing|UserGuide: AjaxEditing plugin] provides "in place" editing
* [BetterEditor|UserGuide: BetterEditor plugin] contains some editor enhancements
* [Captcha|UserGuide: Captcha plugin] is spam filtering plugin
* [Comments|UserGuide: Comments plugin] provides support for page comments
* [Footnotes|UserGuide: Footnotes plugin]
* [ImageExt|UserGuide: ImageExt plugin] provides advanced operations with images
* [Index|UserGuide: Index plugin] inserts list of all pages into a page
* InlineDiff provides high quality revision diffs
* [LatexImg|UserGuide: LatexImg plugin] provides ability to insert snippets of LaTeX into a page that are rendered as either .gif or .png images.
* ListPlugins is simple example plugin which prints installed plugins together with description and their functions. See it [here|http://lionwiki.0o.cz/index.php?action=listplugins].
* [Menu|UserGuide: Menu plugin] can create one level menus
* [Meta|UserGuide: Meta plugin] inserts into HTML head meta tags description and keywords
* [PageVersions|UserGuide: PageVersions plugin] creates list (either bulleted or comma separated) of (language) variants of a page
* [RSS|UserGuide: RSS plugin] generates RSS channel with page changes
* [SelectLanguage and SelectTemplate|UserGuide: SelectPlugins] which creates simple select box to choose from language/template
* [Tables|UserGuide: Tables plugin] is plugin providing syntax for creating tables
* [Tags|UserGuide: Tags plugin] creates non-hierarchical categorization
* WhatLinksHere generates list of pages which contain link to specified page, especially useful when moving pages

!Standalone plugins
These plugins are not part of standard LionWiki distribution and must be downloaded and "installed" separately.

* [Script|UserGuide: Script plugin] can insert both inline and external JavaScript into a page
* [Slimbox plugin|UserGuide: Slimbox plugin]
* [SyntaxHighlighter|UserGuide: SyntaxHighlighter plugin]
* [Upload|UserGuide: Upload plugin]

!Plugin installation and configuration
!!Installation/Activation/deactivation
Plugin installation and activation is done by simply copying the plugin file(s) to the "plugins" directory.

If you want to deactivate some plugin, you have at least three options:
* Delete plugin file.
* Rename them. LionWiki accepts plugins with specific filename - it must start with "wkp_" and end with ".php".
* Deactivate them in Admin plugin, like [here|./index.php?action=admin-plugins].

!!Plugin configuration
Plugins are basically PHP classes with some member variables -- some of these member variables are configuration options. So if you want to change e.g. password in Admin plugin, open plugins/wkp_Admin.php in text editor and change $PASSWORD member variable.

!!!Configuration in config.php
Plugins configuration explained above has one serious flaw - when you upgrade your installation to newer version of LionWiki, all settings is lost. '''Since LionWiki 3.1''' it is possible to configure plugins in config.php file:
{{$Admin["PASSWORD"] = sha1("my_password");}}
So, you take a look at the member variable name in the plugin class and use it as a member of an array named after plugin.

!Writing plugins
We have special page for this, see [How to write a plugin|UserGuide: How to write a plugin].

{tags:plugin, userguide}