Hallo,
in the phplist/admin directory I can find a plugin directory. Is there an existing plugin interface for adding own features and if, is it documented?
Moderators: Dragonrider, J_S, Hernol, vancoovur, H2B2, Heritage
# you can create your own pages to slot into PHPlist and do certain things
# that are more specific to your situation (plugins)
# if you do this, you can specify the directory where your plugins are. It is
# useful to keep this outside the PHPlist system, so they are retained after
# upgrading
# there are some example plugins in the "plugins" directory inside the
# admin directory
# this directory needs to be absolute, or relative to the admin directory
define("PLUGIN_ROOTDIR","/home/me/phplistplugins");
# uncomment this one to see the examples in the system (and then comment the
# one above)
#define("PLUGIN_ROOTDIR","plugins"); Ref: http://docs.phplist.com/NewIn211If you want to create plugins, the place to start is the defaultplugin, which will contain coder documentation on what each method in the class does and how it interacts with the core code.
As to documentation on plugin development, this could be improved/extended I think. Anyway, this might help you get started:
class newplugin extends phplistPlugin {
var $coderoot ="customplugins/newplugin/";
}
echo "hello world"
function adminmenu() {
return array(
"test" => "shown Item"
);
}
Users browsing this forum: No registered users and 0 guests