[PHP] Re: Suggestions of GPL plugin-system?
Thanks everyone for the useful input. I've looked around a bit using the various links and info that I got. The Gallery2 documentation on the modules is far from transparent to me, and the idea of having a general module class that needs to get extended by the module doesn't appeal to me either. I really like the Drupal system with it's hooks and I like the idea of having my project communicate with various modules through these hooks. The whole system with the API is kinda big though, and right now I don't plan to give modules control over my menu or anything. So I guess, inspired by the Drupal system, I'm going to create a much smaller system that I will implement myself... Thanks again! Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Suggestions of GPL plugin-system?
Hello All (cc Ivo), We have numerous modules in various software titles and these are included by a simple conditional statement. If they exist, then include them. Example: !-- alphabetical - start -- ?php // conditional include to support Lite Edition - start if( file_exists( search_alphabetical_form.php ) ) { include( search_alphabetical_form.php ); } // conditional include to support Lite Edition - end ? !-- alphabetical - end -- ... another example: !-- conditional inclusion -- !-- banip - start -- ?php if(@file_exists( ../modules/banip/banip.php )):? // your code here ?php endif;? !-- banip - end -- This works well for modules because if they don't exist then they aren't used. You can use a constant for the installation absolute url when testing for existence of the file. Also if you always put modules in your /modules folder then you'll know where to look for them in any software title. There's other examples and other code in our free unencrypted phpYellow Lite Edition downloadable at http://www.globalissa.com/downloads.php . You might also notice that the @ character can be used to suppress issues with the conditional call - test that first, and use it sparingly. Sincerely, Rob. http://phpyellow.com ___ Ivo wrote: Hi guys, I've been developing a GPL PHP/MySQL app for some time now and I would like to extend it with a module/plugin system. The idea would be that people could add a directory in a plugin path that would contain a bunch of PHP files extending the functionality of my application. This directory would then be read out, some config file parsed and whatnot, after which the module can be turned on by my application. Now, I could try and figure this out by myself, but that would be reinventing the wheel since I'm betting there is some good GPL modular software around (such as Joomla, PHP-Nuke, PHPbb, etc, etc.) that you have been working with as a coder. Could any of you suggest a certain GPL application that has a great module setup that I could take a look at? Thanks a lot for your time! Ivo -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Suggestions of GPL plugin-system?
Ivo F.A.C. Fokkema wrote: Hi guys, I've been developing a GPL PHP/MySQL app for some time now and I would like to extend it with a module/plugin system. The idea would be that people could add a directory in a plugin path that would contain a bunch of PHP files extending the functionality of my application. This directory would then be read out, some config file parsed and whatnot, after which the module can be turned on by my application. Now, I could try and figure this out by myself, but that would be reinventing the wheel since I'm betting there is some good GPL modular software around (such as Joomla, PHP-Nuke, PHPbb, etc, etc.) that you have been working with as a coder. Could any of you suggest a certain GPL application that has a great module setup that I could take a look at? By far and away the nicest modular installer system I have ever seen is that included in Gallery2 (http://gallery.menalto.com/). It handles nicely fresh installs, upgrades and other such things. I've never coded with it, so don't know what it's like to rip out and use in other applications, but I think I recall reading a while back that they were designing it to be easy to use it in this way. I've used Joomla a lot and while I really like it as a CMS, the current (1.0.x) stable series has a shocking system for modules etc. Quite often there is no easy way to upgrade which is a real PITA. I think the 1.5 beta goes some way to resolve this tho' (I certainly hope so!). So my advice would be to check out Gallery2 and see where that goes. Best of luck Col. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
[PHP] Re: Suggestions of GPL plugin-system?
Hi Ivo, I have been developing and working with a PHP Application Toolkit/ Framework over the last 6 - 7 years and have been actively working on developing a system that is extensible through custom modules while retaining a stable 'core' codebase. The source code is available at: http://dynacore.sourceforge.net http://www.dynacore.org as well as through the sourceforge project website: http://www.sourceforge.net/projects/dynacore There are three factories that inherit from one another to activate modules from each of three subdomains: application } project-specific custom modules dynacore} system core dynapro } proprietary purchased modules I don't know whether this helps, and I'm sure that there are many other ways to do this, but it has worked well on a variety of projects on my end to help use a 'standard' codebase while being able to customize it on a per project or per application basis. Best regards, Mike Weaver -- Michael Weaver Founder/Chief Facilitator Dynamic Insight Enhancing Professional Awareness Communication Tel: 1.814.574.4871 Email: [EMAIL PROTECTED] The information in this email and subsequent attachments may contain confidential information that is intended solely for the attention and use of the named addressee(s). This message or any part thereof must not be disclosed, copied, distributed or retained by any person without authorization from the addressee. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.