Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 2 of 2
  1. #1
    New Coder
    Join Date
    Dec 2007
    Posts
    68
    Thanks
    25
    Thanked 2 Times in 2 Posts

    I want to implement plugins...please help

    Hi, everyone! I want to implement plugins for my simple cms script and I'm inclined to think naturally of saving plugins into a database and then using "include($programURL)" statement when needed. I wonder if there's a better and simpler way to do it WITHOUT actually touching the core code. Any idea?

  • #2
    Super Moderator Inigoesdr's Avatar
    Join Date
    Mar 2007
    Location
    Florida, USA
    Posts
    3,638
    Thanks
    2
    Thanked 404 Times in 396 Posts
    Have a table for plugins in your database and store the filename along with a field for enabled/disabled, and add code to your script that will attempt to include the enabled plugins in the database and fail gracefully if possible.

  • Users who have thanked Inigoesdr for this post:

    kairog (01-02-2008)


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •