2010-01-18 17:37:42 +00:00
|
|
|
Several example plugins are included in the plugins/ directory. You
|
|
|
|
can enable a plugin with the following line in config.php:
|
|
|
|
|
2015-06-14 16:59:46 +01:00
|
|
|
```php
|
2010-01-18 17:37:42 +00:00
|
|
|
addPlugin('Example', array('param1' => 'value1',
|
|
|
|
'param2' => 'value2'));
|
2015-06-14 16:59:46 +01:00
|
|
|
```
|
2010-01-18 17:37:42 +00:00
|
|
|
|
|
|
|
This will look for and load files named 'ExamplePlugin.php' or
|
|
|
|
'Example/ExamplePlugin.php' either in the plugins/ directory (for
|
|
|
|
plugins that ship with StatusNet) or in the local/ directory (for
|
|
|
|
plugins you write yourself or that you get from somewhere else) or
|
|
|
|
local/plugins/.
|
|
|
|
|
|
|
|
Plugins are documented in their own directories.
|
|
|
|
|
|
|
|
Additional information on using and developing plugins can be found
|
2015-06-14 16:59:46 +01:00
|
|
|
at the following locations:
|
2010-01-18 17:37:42 +00:00
|
|
|
|
2019-06-02 12:59:37 +01:00
|
|
|
* [Plugin Development](../DOCUMENTATION/DEVELOPERS/Plugins/README.md)
|
2019-05-26 19:40:36 +01:00
|
|
|
* [Community Plugins](https://git.gnu.io/gnu/gnu-social/wikis/GNU-Social-Community-Plugins)
|