Plugin system

Discussion in 'PHP' started by Triexa, Apr 20, 2007.

  1. #1
    I was wondering if anyone could explain or point me to a tutorial which shows you how to implement a plugin system. Although I have not looked all that closely, I like vBulletin how you can select from like a hundred "sections" to implement a section of code, without actually having to edit a file or something...

    And obviously security would be a concern so that they could not "harm" your script...
     
    Triexa, Apr 20, 2007 IP
  2. Triexa

    Triexa Active Member

    Messages:
    580
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #2
    Hmm... anyone? I was hoping someone could shed some insight...
     
    Triexa, Apr 21, 2007 IP
  3. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #3
    be more specific, plugin that would do what for what and where ?
     
    krakjoe, Apr 21, 2007 IP
  4. Triexa

    Triexa Active Member

    Messages:
    580
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    Well, I really like the way vBulletin's works... and I'm pretty sure Wordpress is VERY similar...

    The ability to remotely insert sections of code without having to manually edit the file...

    vBulletin calls them hook locations...
     
    Triexa, Apr 21, 2007 IP
  5. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #5
    right okay but you still didnt say what the plugins would be for ? like a cart, forum, social script, something you plan to build or what ?

    so far though, wordpress is a much simpler system to vbulletins, vb uses xml files a lot like the pecl repository does for php extensions that can build automatically, while wordpress just have a pretty simple text editor and upload system along with access to it's standard functions
     
    krakjoe, Apr 21, 2007 IP
  6. Triexa

    Triexa Active Member

    Messages:
    580
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #6
    It will be for something I am making.

    vbulletin basically loads all hook locations, then has lines throughout the code to eval() the code at that spot..

    What does wordpress do?
     
    Triexa, Apr 21, 2007 IP
  7. krakjoe

    krakjoe Well-Known Member

    Messages:
    1,795
    Likes Received:
    141
    Best Answers:
    0
    Trophy Points:
    135
    #7
    krakjoe, Apr 21, 2007 IP