Page 1 of 1

dev. extensions/libraries

Posted: Tue 6. Apr 2004, 22:20
by david
I'm sorry if this has been mentioned before, or the functionality may even exist, but I am going to request it anyway.

what i would LOVE to see is some sort of universal area where we could dump functions that override the defaults, without touching the original. not really plugins, but more like an OO extension.

say you want to make your own version of imagetable(). right now, you have to overwrite the one in /include/inc_front/front.func.inc.php

it would be great to have a line at the end of front.func.inc.php (and all of the incs really) that would include user defined libraries, if any.

I know this is kind of weird, but I really like phpwcms and don't want to go around hacking all the includes() to fit my needs and have to rewrite them everytime it's updated. This sort of method would allow extensions and not interfere with anything else.

All it really takes is one line at the end of each included library and a defined location for the extensions/overriding files.

What does everyone think?

David

Posted: Tue 6. Apr 2004, 22:47
by frold
sounds like a good idea

Posted: Tue 6. Apr 2004, 23:03
by Jérôme
Yes, it does sound like a good idea. If you have a look at the company MOD, you will see that it is done like this there. The front.inc.php includes an additional file that has special functions/attributes.

I think it is not a too big step to make this universal or do I see that wrong?

Posted: Tue 6. Apr 2004, 23:07
by Jan212
Yes - Jérôme said it... look at wcmsrocker page to be up to date.

this is a good topic to say thanks to Jérôme from my side for all his help and addon releasement on wcmsrockt.null212.de - thank you

Posted: Tue 6. Apr 2004, 23:42
by Jérôme
Don't say such things, man. I do not more than you or others here, okay? :oops:

Posted: Tue 6. Apr 2004, 23:52
by Jan212
hmm, ok. i didn't see anybody releasing two-three mods a week. :wink:
but the others do a very good job here, too.