If this is your first visit, be sure to
check out the FAQ by clicking the
link above. You may have to register
before you can post: click the register link above to proceed. To start viewing messages,
select the forum that you want to visit from the selection below.

Enjoy an ad free experience by logging in. Not a member yet? Register.

Build a plugin system into your application

What I'm offering here is a script to offer a simple plugin architecture to a script or scripts you have written. It is PHP 5 based due to the Object functionality required. It is simple to use, and is designed in such a way so that:

If you are integrating it into an application, minimal code changes are needed

If you are building with it, you don't even need to think about plugins

You would most likley include this from another file, but it doesn't really matter how you do it, just providing the class is there. Then, to utilize the plugin you would add this to the top of the original script (or wherever):

PHP Code:

TinyPluginController::instance()->registerPlugin( new BlogPlugin );

Once that code is there, the following happens:

All of the returned DB records will be passed through htmlentities()

All entries except the first will get shortened to 200 characters.

The words 'books', 'media' and 'development' will be replaced with the respective links.