dev. extensions/libraries

Use GitHub to post feature requests for phpwcms.
Locked
david
Posts: 3
Joined: Tue 6. Apr 2004, 01:26

dev. extensions/libraries

Post 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
frold
Posts: 2151
Joined: Tue 25. Nov 2003, 22:42

Post by frold »

sounds like a good idea
http://www.studmed.dk Portal for doctors and medical students in Denmark
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post 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?
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post 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
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
Jérôme
Posts: 481
Joined: Tue 16. Mar 2004, 10:33
Location: Cologne, Germany
Contact:

Post by Jérôme »

Don't say such things, man. I do not more than you or others here, okay? :oops:
Jan212
Posts: 859
Joined: Wed 28. Jan 2004, 21:38
Location: Solingen
Contact:

Post 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.
Regards/ Grüsse/ Groetjes - JAN212
------------------------------------------------
null212 - Büro für Kommunikation und Design
------------------------------------------------
Lyrikfetzen des Tages
1. Ist der Quelltext auch valide fragt Herr Müller ganz perfide.
2. Wat is dat een lekker ding.
3. Wer Vision hat soll zum Arzt gehen.
------------------------------------------------
Locked