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

[UPDATE] Logo/Graphics plug in

Quote Reply
[UPDATE] Logo/Graphics plug in
Ok I know I'm behind, but the big hurdles were overcome.

I should have the .30 release out today. Promise!!

I also have a new plan for handling the "modify" of attachments. I'm going to take that "out" of the standard "modify" loop, and have a separate program to do that. I'm also going to set up a separate table to handle it, managed by this extra program.

Hopefully, the same privs you give your users will be able to be used - so you can let users modify their attachments or not.

This will separate out the the "link" data, and standard admin validate from the the "attachments" validate. Except for the first "logo/graphic", which I will _really_ make a very pointed mod, this expanded mod will be part of the 02.01.xx series, and it will allow any sort of attachments.

I really think I overcame the big hurdles recently, and what will happen is on the "add" and "modify" forms you will have the option to attach files. After you enter the "link data" you will submit it, then be taken to a new page that allows you to enter the attachments. This will separate the attachments from the link, and allow separate management features for each.

In the long run, this will be _much_ simpler to administer, since if you have a bad day, you can disable attachments across your system, and your "links" will still function normally.

PLEASE --- any comments???

I think this is finally the best way to handle this, make "attachments" a completely separate set of routines that are accessed by a simple [click] from the add/modify/link screens. You'll be able to yank all the attachments for a link with just the 'ID', and you should be able to search attachments separately from links too (maybe integrated with the "spider").

This new logic should all be in place in a few days with a beta.... but cut me some slack, I still have a major crisis going on here in the real world. I already have all the "parts" I just need to string them to gether like a perl necklace!

Comments!!!

Please!!


PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: [UPDATE] Logo/Graphics plug in In reply to
I think seperating the image modify/upload is a good idea. It makes it much easier to figure out logically how people will be able to change their uploaded graphic.

The way my site works, is that the LinkOwner is free to modify their links without the administrators approval. If I have made them a "Featured" link they also are able to upload a graphic.

The problem I have run into by putting all of this on a single modify form is that if they only want to change their description and NOT change their graphic, they end up uploading nothing at all and breaking their graphic link since they didn't upload an image along with their desciption change. There's probably a way to fix this, but I haven't figured it out yet.

The way it should work would be that when they go to modify their link (which includes their basic info like description URL, etc.) they would also have a radio button that says "I would like to upload a new graphic" or "leave my graphic as it is". Then, their link data is updated regardless of the upload option they chose and they are only presented with an upload image form IF they chose to upload a new graphic.

I think that your idea of seperating out the upload graphic is pretty much in line with how I think it should work.

Bryan


Quote Reply
Re: [UPDATE] Logo/Graphics plug in In reply to
I've got the new code smoothed out (I think).

Right now I'm working on the templates, and the logic there has my head going in circles.

I need to trim down expectations for this release (ie: preserving the uploaded file in the event of an error, and just make the user re-upload), but I'd like to get the error reporting more specific.

This may take me a few more hours. I'm not ready for bed yet, so it should still be finished.

If you want to make sure you get it, if you've registered for it, just send me an email, with "LinkSQL Plugins" in the title and I'll send it out to you. If you haven't registered, there's still time.

You can pay via PayPal and I'll send it out this evening with the rest of the group.


PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: [UPDATE] Logo/Graphics plug in In reply to
Yeah, I think in the version you had there was a logic error that clobbered the file, rather than did a two step.

Tonight's release will fix the upload problems, and I should have the "modify" stuff worked out in a day or two.

Sometimes trying to work out the logic is the hardest part -- not the coding. Trying to figure out all the ways things can go wrong is the big problem here.



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