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

[UPDATE] Graphic/Logo upload

Quote Reply
[UPDATE] Graphic/Logo upload
I just did a clean install of Links SQL 2.0.3, into a clean database.

I installed the 01.01.29 version of this plugin, and it worked "out of the box" so to speak. Modify is still quirky, but that will be fixed with the move to the complete override of the "modify.cgi" file. It will also make it possible to do somewhat more customization.

But uploading and adding images works well. You can control size of the upload, and other such things.

I will be cleaning this up, and the 01.01.30 version should be available tonight. I'll send it out to anyone who is on the list, and/or who registers via PayPal today.

Price is $35, and it includes all updates through the 01.xx.xx series.

The big changes will be error reporting on uploads that don't fit the criteria (this will be improved by use of the modified .cgi files as well!), and more flexibility in how you handle the requests to "modify" a file/logo on-line.

Again, I'm concentrating on the administrators approving this, since the liability for distributing porno, viruses, etc is so high, allowing "free" un-checked uploads is really not a good idea any more.

Expect the release late tonight, Eastern time.

Thanks!!




PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: [UPDATE] Graphic/Logo upload In reply to
Pugdog!

I don't know where you get all the time to do these things ...

I take it that this plugin achieves the following: -

1. A user can upload a graphic (banner or whatever)
2. Through the template system you can add a <%Image%> or whatever tag and display that image alongside the description.
3. It is possible for the LinkOwner to overwrite, change the image (via Modify.cgi?).

If this is what the plugin offers then you've got another customer!

Regards,


Clint.

--------------------------
http://www.AffiliatesDirectory.com - Affiliate Programs Directory
Quote Reply
Re: [UPDATE] Graphic/Logo upload In reply to
Yes.

That is what the plug-in does. It allows one attachment to the link record. I've made some significant logic changes, and really made this graphic specific. I don't think anyone was using just the file-upload portion. (I will still release that seprately once this is fixed up, since the file-upload is only getting rid of the code to check for graphics).

User-modify should really require the admin to approve it, but what I'm doing is _hopefully_ supporting the 3 options Alex has added into the admin -- Verify, UserDirectMod and NoVerify -- so the behaviour will follow the admin defaults.

As always, I started tweaking the code, and ended up rewriting it. Modify is still a bit quirky, but that is being worked on, and as stated will follow the updated 'add' release by a few days.

The "add" portion now has really good error checking and reporting. It only adds a link/file _IF_ there were no errors in any portion of the record. It can generate the add_error page whenever enough errors hit (meaning it tries to pick up as many errors as it can on each pass, not one error at a time), and if any errors exists before an 'add', so the user can fix them, and it tries to preserve the uploaded file if the file uploaded OK, but the input data didn't match.

Whew.... Complete rewrite of the add routine (and integration of add.cgi into the plug-in itself).

I also made the install.pm smarter, with better error checking and reporting.


I've got to clean up the changes I made, make sure the "preserve" codes work, and then I can release this. I figure about 2-3 more hours of work, so I'll get it out later today or tonight.

I fell asleep last night, and didn't get it finished, but I needed it. Been rough and crazy here in the real world the past few weeks.

Also, it looks like I'm going to go to the 01.01.30+ version, not .29 version as I had planned. If can can redo any of the "modify" code I'll release a .32 version.

But, for anyone who installs this, I'll be working the next 2-4 days on this mod alone, as it's the last key base feature for the other 2 graphics mods left, so I'll be on-line to fix any problems as they occur. I have ICQ support as well as support here and in the FAQ forum for any of the mods.

I'll have a demo site set up for this when done, but it will most likely be on an "adult" site I'm spiffing up for sale. This is a "clean" site and "virgin" to all my hacking, so it's a good ginea pig. [Once this is out, I'll update the FAQ so you can add your logo/photo to your submissions, and see how this works at the same time].

Thanks for your interest!

.... I know I was probably unclear with all this, but I was just woken up, and haven't had any caffiene yet.... I get like this when I start to program (I forget how to make full sentences, or use '.'s).

PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: [UPDATE] Graphic/Logo upload In reply to
I never should give a date for release, things always fall apart!

I had to delay finishing the mod until today. So, anyone who is interested, get your orders in, and I'll mail it out about 9pm Eastern time. I'll be up most of the night after that working on the rest of it, and this is my #1 priority the next 2-3 days (hospital visits aside).

It compiles, and I have new templates done, and now I just need to do some cleaning up and getting rid of some debugging hacks.

I'll have a demo site you can play with hopefully as well as as putting a 140x90 size-restricted version on the FAQ site.

The postcards.cgi mod will follow this, then then the 02 versio of the upload mod is next on the release, with additional file upload options and post-upload image processing -- such as thumbnailing, borders, shadows and rotations. ImageMagick _not_ required, but I have no way to test if it works on Windows based machines, or just Unix.

This 01.xx mod requires Image::Size to be installed, and the 02.xx version will also require Net::PBM to be installed. These are CPAN modules, and are what actually do the low-level graphics processing.





PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: [UPDATE] Graphic/Logo upload In reply to
I've had to hold off the release until some problems with error reporting in the plug-ins are solved. It's too "dangerous" to release the new features, unless the program can be sure that what it thinks is happening, is really happening.

Sorry for the delays... it will be soon :)

PUGDOGŪ Enterprises, Inc.
FAQ:http://LinkSQL.com/FAQ
Forum:http://LinkSQL.com/forum
Quote Reply
Re: [UPDATE] Graphic/Logo upload In reply to
Thanks for keeping us updated. It sounds like it's well worth the effort to wait until the error reporting is working before releasing it.

It sounds like it will be a great update.

Good luck!

Bryan