Gossamer Forum
Home : Gossamer Threads Inc. : Custom Modification Jobs :

Logo/Graphic upload Plug-In DONE!!!

Quote Reply
Logo/Graphic upload Plug-In DONE!!!
I think I can call it a success!!

I got it working, installed it twice on my system, and I think it's ready for prime time.

It's now available!!

It's guaranteed to have some bugs -- it's got to. And there is something funny going on with plugin.cfg -- I'd like to see how it goes on other systems. Nothing dangerous, and it shouldn't affect a running system. The only "external" changes you need to make is an "upload file" box on the various templates.

I need to connect a few things, and pretty a few things up, but the program is a bonafide plugin!

Download it, install it, and it works :) Cool!!

http://pugdog.com/...n/UploadTest/add.cgi

is a bare-bones demo.

Check the previous messages for pricing and features.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ


Quote Reply
Re: Logo/Graphic upload Plug-In DONE!!! In reply to
After I upload an img I get...

Image Size: Unknown Tag: 'xTsize' x Unknown Tag: 'yTsize' and Unknown Tag: 'Logo_Size' bytes

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Logo/Graphic upload Plug-In DONE!!! In reply to
Where do we download from?

Paul Wilson. Shocked
(Dont blame me if I'm wrong!)
Quote Reply
Re: Logo/Graphic upload Plug-In DONE!!! In reply to
<G> I'm adding in error checking and such, and in order to do that, I have to uninstall, and re-install the plug-in.

If you try to upload while the plugin is uninstalled, you'll get that message.

Once I'm done, I'll set up another site, that I won't play with -- I guess that will look more professional.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ


Quote Reply
Re: Logo/Graphic upload Plug-In DONE!!! In reply to
I don't have a download site, you have to email.

Alex said he has a way of setting up distribution for plugins, so I'm not going to bother with one, pending the details.

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ


Quote Reply
Re: Logo/Graphic upload Plug-In DONE!!! In reply to
I've been tweaking the install options and such, so if you were getting errors, that was the reason. I'm going toleave it alone now :)

Error reporting is problematic, I can't figure out how to send errors out of the plug-in install, so if you install this, you should accept the defaults on the column names for now.

Also, once installed, for some reason the _pre and _post hooks don't register correctly, so you need to "EDIT" the plug-ins user options, and just "update" them. That ensures they are reset properly. "EDIT" is an option on the plugins menu, that lets you change the user options (in this case, such as maximum allowed size, height and width, and upload directories).

I'm sure Alex will have the answers to these two issues next week.

I've installed, and uninstalled it at least 40 times on the demo site, and it hasn't had any problems due to that (although aborted plug-in installs don't always clean up properly after themselves -- that's not specfic to this plug-in).



PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ


Quote Reply
Re: Logo/Graphic upload Plug-In DONE!!! In reply to
Version 01.01.23 adds additional error tags, and customization of error message. Also allows formatting of returned problems in bytes or Kb.

Code:
o <%errors_found%> -- If errors are found, this is non-null.
o <%max_size%> -- Maximum allowed size of uploaded image.
o <%errors_width%> -- width of image uploaded.
o <%errors_height%> -- height of image uploaded.
o <%errors_size%> -- size of image uploaded.
o <%errors_sizediff%> -- Size Difference of image uploaded to allowed size.
I had an accident of some sort, and can't find the mods I made last night. I'm re-adding them, and they will include:

Code:
o error checking on modifying files
o error checking before unlinking files
o ensuring only one file is attached to a record (this can be easily overridden
if you want to hack it, but it will prevent "lost" files for 99% of the users
who don't want to hack it.)

PUGDOGŪ
PUGDOGŪ Enterprises, Inc.
FAQ: http://pugdog.com/FAQ