October 18, 201213 yr Hey id like to implement a simple plugin system into my blog software but since ive never done one before im not real sure how to go about it. Any examples would be nice thanks in advance.
October 18, 201213 yr Author There's a pretty good list of initial points at http://stackoverflow...system-with-php Seeing your code would help - as organised code will make a good starting point. As your blog is called "simple blog" do you think your audience (how by definition won't be writing plugins) will really bother with plugins? You're better off keepong things simple - maybe give the user a mini "settings" panel at most. If you're going down the route of plugins, I see little point in someone using your software over Wordpress (which does have a plugin system already and is 100% free). I actually decided to scratch the ideas of plug-ins after i wrote the above post should of updated the post saying so but thank you for the link anyways
October 18, 201213 yr I agree with rallport, if your members are screaming out for a feature you can always just code it in and release in an update. Will save wasted time developing a plugin system that wouldn't get used.
October 18, 201213 yr That code I posted the other day on OOP advice uses a plugin system for validators, processors & filters. I guess i would extend the interface to have pre and post processing hooks for plugins to have more control. http://www.webdesignerforum.co.uk/topic/65220-help-with-oop/#entry411837 Its just at a code level, no fancy zip file packages or anything like that. If i wanted to do that I would write a standard schema in XML to use as a manifest file that my application could read and register the plugins.
Create an account or sign in to comment