You might find some ideas as to how to build a plugin from the one that was built for textpattern a while back...
http://textpattern.org/plugins/137/zemir
Hope it helps
Edit : heck, forgot Textpattern plugins are encoded as base64... Might as well post the code
Don’t know if you can use/port that, but that might be a start...
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Oooops sorry, did a quick copy/paste with the FF BBCode extension it’s so easy and bam, didn’t see that it was SO long indeed... fixed.
.: COO - Commerce Guys - Community Driven Innovation :.
MODx est l'outil id
Adam already has this working on his site, obledesign.com...
Cool so Adam was is it a plugin or the hard way you did this?
-
☆ A M B ☆
- 24,524 Posts
You suggest using
* 1st include the class file in your snippet:
* if (!class_exists('MakeForm')) {
* include "assets/modules/makeform/makeform.class.inc.php";
* }
Why not include_once "assets/... ? From what I’ve read of the php documentation, the class_exists function is to make sure a class does exist before trying to use it, thus making it possible to "catch" the error before it makes an ugly php fatal error.