![]() |
Create Your Own Addons
With version 1.1 the possibility to easily write addons for the script is introduced.
As an example, very basic, an addon that returns the current date and time is provided. It's entire code as follows (comments inside script removed): PHP Code:
The above script replaces the <CURRENT_DATE_TIME> tag within a template with the current date and time, obviously. The variables from the main script is available, and can be overwritten, so be careful to name your variables. Your addon is inserted to the script as an include(). This is provided for those who wish an easy way to add functionality without altering the main script, which in turn will make it easier to update in the future. And, it is good for me. I wish to keep the main pixelpost thing EASY and BASIC, but yet still have the chance to expand it without cluttering the main download. Reasoning is that if a user wants the basic functionality it's there in the default install. If I come up with added functionality that somewhat expands beyond the fundamental needs of a photoblogger, it will be provided as an addon. |
| All times are GMT. The time now is 05:00 PM. |
Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.