Gossamer Forum
Home : Products : Gossamer Links : Development, Plugins and Globals :

[CHANGE IN LOGIC] Upload Graphic/Logo plug-in

Quote Reply
[CHANGE IN LOGIC] Upload Graphic/Logo plug-in
After wrestling with the plug-ins for way too long, and tring to do a honey bee dance with the pre/post hooks, and really needing a 3rd hook to do it right (as discussed before), I'm changing the way the plug-in will work.

When the plug-in installs, it will replace add.cgi and modify.cgi with new files that contain significant added functionality.

I will _TRY_ to make it so that if you disable the plug-in, you can still continue to use the advanced .cgi scripts (they just won't use any plug-in features). There will also be an option to restore the original scripts when you uninstall.

Of course, without a script registry, knowing if the scripts were modified by another program is not possible, so that house keeping will be up to you.

The problem is, that I need to integrate the file handling into the success/error routines.

Of course, I guess, I could insert add/modify.cgi into the plug-in, then just override them completely..... ??

Let me hear any comments... but I really don't think I have much choice at this point, trying to pass control back to add/modify.cgi is causing significan't problems.



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: [CHANGE IN LOGIC] Upload Graphic/Logo plug-in In reply to
In Reply To:
When the plug-in installs, it will replace add.cgi and modify.cgi with new files that contain significant added functionality.
Will this affect any existing plugins that use these files?

Paul Wilson.
Installations:
http://www.wiredon.net/gt/
Quote Reply
Re: [CHANGE IN LOGIC] Upload Graphic/Logo plug-in In reply to
Only if the plug-in has made changes to them.

I have to consider this a _major_ plug-in, and the changes to the logic are significan't.

Without the ability to do a data check before committ, it's just way too complicated, when just changing those two files does the trick.

It's either change them, or bypass them. Either way, any changes another plug-in has made to those files will not get executed.

But, if I change those two files, then any other plug-in will have access to any uploaded graphic or image ...

There are benefits to doing it this "new" way.



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum