Plugins
From BBlog
| Table of contents |
Plugin Types
Plugins in bBlog can be of different types:
- function_ plugins
- admin_ plugins
- builtin_ plugins
- modifier_ plugins
References to type_name.php relate to the plugin file name, with the the type at the beginning of the name, followed by an underscore, then the plugin name.
Installing a New Plugin
To install a new plugin upload the type_name.php file into the /bblog/bBlog_plugins/ directory on your webserver. Once this is done, log into the administrator webpage and click on the "Plugins" button in the menu.
At the bottom of the page, you will find a Scan for new plugins button. After clicking this button, the newly uploaded plugin should be detected and loaded automatically.
If the plugin developer provided additional information (such as help, description, contact info) it will be available by clicking on the "Info / Help" button, located at the right of the table entry for each plugin.
Understanding function_ plugins
The function_plugins implements new functions for your templates.
To learn how to use functions within Smarty templates, please read the documentation (http://smarty.php.net/manual/en/language.syntax.functions.php).
Since every plugin implements something specific, you should carefully read the documentation, as it should specify the parameters needed and the results expected.
- I'm really not clear on what this paragraph is trying to say - is there a function_plugin, or was the original author trying to say that plugins bring new functionality? --Morpheus
Understanding Other Plugins
Calendar Plugin
With the new version of bBlog, a plugin Calendar is bundled with the script. To use the Calendar plugin in your templates, simply enter {calendar} in your template where you want the Calendar to appear. To change the way the Calendar is displayed, modify the calendar.html file in your templates folder, and update your CSS entries that are used by the plugin.
External links
bBlog Plugin Repository (http://www.bblog.com/repo)
