+ Reply to Thread
Results 1 to 7 of 7

Thread: PHP Plugin System

  1. #1
    kesne is offline x10Hosting Member kesne is an unknown quantity at this point
    Join Date
    Apr 2008
    Location
    Tigard, Oregon
    Posts
    47

    PHP Plugin System

    Hey everyone, does anyone know how to go about making a PHP Plugin system?

    Thanks in advance,
    Jordan

  2. #2
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: PHP Plugin System

    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

  3. #3
    kesne is offline x10Hosting Member kesne is an unknown quantity at this point
    Join Date
    Apr 2008
    Location
    Tigard, Oregon
    Posts
    47

    Re: PHP Plugin System

    I know how to use google. ;)

    Most of those links are not what I am looking for or contian dead links.

  4. #4
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: PHP Plugin System

    Quote Originally Posted by kesne View Post
    I know how to use google. ;)

    Most of those links are not what I am looking for or contian dead links.
    I'm not sure what you're looking for then, can you be more specific?
    gjr.gr - coming soon: secrets of OCD coding from a self taught tinkerer

  5. #5
    kesne is offline x10Hosting Member kesne is an unknown quantity at this point
    Join Date
    Apr 2008
    Location
    Tigard, Oregon
    Posts
    47

    Re: PHP Plugin System

    A simple plugin system that allows plugin authors maximum options and that allows multiple plugins.

    A plugin system similar to wordpress.


    Thanks,
    Jordan

  6. #6
    garrettroyce's Avatar
    garrettroyce is offline Generally Helpful Member garrettroyce is a glorious beacon of lightgarrettroyce is a glorious beacon of light
    Join Date
    Apr 2008
    Location
    IL, USA
    Posts
    3,746

    Re: PHP Plugin System

    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.

    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();
    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.

    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

  7. #7
    kesne is offline x10Hosting Member kesne is an unknown quantity at this point
    Join Date
    Apr 2008
    Location
    Tigard, Oregon
    Posts
    47

    Re: PHP Plugin System

    Ok, thanks for the help.

+ Reply to Thread

Similar Threads

  1. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  2. Nuevo en x10? Lee el Tema Principal
    By ZharkD in forum Noticias y Anuncios
    Replies: 7
    Last Post: 10-21-2008, 12:43 PM
  3. Php Comment system
    By Ainokea in forum Programming Help
    Replies: 4
    Last Post: 09-26-2008, 04:45 PM
  4. Problems with PHP?
    By Sup3rkirby in forum Free Hosting
    Replies: 4
    Last Post: 08-05-2008, 12:30 AM
  5. SUHOSIN - Use of eval is forbidden
    By MaestroFX1 in forum Free Hosting
    Replies: 19
    Last Post: 03-07-2008, 02:42 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
x10hosting free hosting for the masses
dedicated servers