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

Upload Graphic replacement

Quote Reply
Upload Graphic replacement
Sorry, if this is repetitive, but I posted this question the other day at the FAQ forum and the traffic there seems, umm..... pretty light.

Great plug-in by the way. It installs so easily and I got it up and running with no problem.

Maybe I'm misunderstanding how the plug-in works but this is what I want to do:

I have allowed specific users to be able to upload a graphic that can be displayed next to their link. Now, I also want them to be able to modify their link and upload a new graphic at the same time, replacing the old one. I only want one graphic per person/ per link.
I added the tags to the modify form and it uploads the graphic fine, but it doesn't replace or delete the old graphic like I want it to. Also, it doesn't update their database record with the new uploaded graphic name or dimensions, so the link still displays the old uploaded graphic.

I could probably go in and manually change their link record to point to the new graphic, but that defeats the whole purpose of automating the uploading process.
Is this possible to do, and if so what is the best way to go about implementing it to work this way? Also, what is the reason for having the upload form on the Modify template if it doesn't replace/modify their existing image?
I think one thing I probably need to do is add hidden fields that would get the name of the new upload, but I'm unsure how to do that, since I would also need the image/dimensions which have yet to be supplied.

Thanks for your help,
Bryan



Quote Reply
Re: Upload Graphic replacement In reply to
Sorry,

I've been playing both mom and dad for the past few days, and haven't had much time to do anything but my email. I'll answer in detail over the other forum, Ok.

You might have an older (hybrid version, before I split out the code) or, it's modifying the record, and you need to validate the new record. The code is supposed to handle a 'new' graphic as if the entire record was changed, so the admin can approve it, so a user can't do something pornographic, or against the rules.

I did have a backups problem last week, and lost a few minor versions, but I'll be back up to speed very soon, with the .32 relase that should have come out Monday.



PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: Upload Graphic replacement In reply to
Yeah, I think I'm a couple of versions behind. I'm using VERSION: 01.01.27 and it uploads the graphic, but it doesn't send it to me for validation.

I'll check in with the other forum,

Bryan

Quote Reply
Re: Upload Graphic replacement In reply to
I hope to have an automatic distribution system set up so you can get your downloads automatically.

Maybe Alex will share the download system with plugin authors so we can do it in an integrated way, and you can download a small plug-in that will add the authors site to the download list in the plug-in manager for registered programs.

Once Alex clears his head for awhile, maybe some of these plug-in features will become available.

I know the past week I've been running on fumes, and am a week behind where I was a week ago. (not just a week behind....).

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