Hey everyone, does anyone know how to go about making a PHP Plugin system?
Thanks in advance,
Jordan
Hey everyone, does anyone know how to go about making a PHP Plugin system?
Thanks in advance,
Jordan
http://www.google.com/search?q=php+p...ient=firefox-a
I looked over the first few and they look pretty good![]()
gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer
I know how to use google. ;)
Most of those links are not what I am looking for or contian dead links.
gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer
A simple plugin system that allows plugin authors maximum options and that allows multiple plugins.
A plugin system similar to wordpress.
Thanks,
Jordan
I guess, to be very general, you need to separate what you are doing with how you are doing it.
For example, for a blog, you know you are going to display a title and some content. This will be the same no matter what. Then you have a plugin that chooses how to display it.
Since you are creating everything from scratch, I couldn't really tell you how to do it, other than something that makes sense to you.Code:some pseudo code #every blog must have a title and content $title = get_title(); $content = get_content(); #how this title and content is displayed or modified is up to the plugin $plugin = get_plugin(); $plugin->title = $title; $plugin->content = $content; $plugin->make_blog_post();
I usually find some open source code and pick it apart to learn how others do it. Keep in mind that wordpress has hundreds of people contributing code and plugins, and for someone to do all of the same work by him/herself would take a very long time.
Last edited by garrettroyce; 02-15-2009 at 04:49 PM.
gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer
Ok, thanks for the help.