Gossamer Forum
Home : Products : Links 2.0 : Customization :

Here's a BETTER working image upload mod!!

Quote Reply
Here's a BETTER working image upload mod!!
At last, for us die-hard Links 2 users, the Image Upload Mod we've always wanted:

  • Upload options from both add and modify.
  • Images are renamed to the link ID number.
  • Users can modify their info and not have to re-upload the image, or they can choose to delete it, and it will be removed from the .db file, too.
  • If they upload a new image, the old one is deleted.
  • Link owner will see their current image in the modify form.
  • Admin can limit file size and extensions (file types) accepted.
  • The admin can see the upload (old and new images) prior to validation, for both add and modify.
  • If admin deletes a link, the image is removed, too.
This is an advanced mod, not for the newbie coder, due to changes in many places. The code is in the attached text file.

A few things I would still like to do with it:

  • Better display in admin (so there's no red 'X' if no image)
  • Let admin know if image is to be deleted (currently deletes image prior to validation)
  • Multiple file uploads (currently only allows one)
So if anyone wants to work on refining these issues, or any other they encounter, please do so! If you have any questions, ask!


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Here's a BETTER working image upload mod!! In reply to
Attached to this post is code for a Multiple-Image Upload Mod, currently at version 0.1. Smile
If you use it, please let me know if you encounter any problems.


Leonard
aka PerlFlunkie
Quote Reply
Re: [PerlFlunkie] Here's a BETTER working image upload mod!! In reply to
Hi,

Not that I need this mod - but thought I'd let you know there was no attachement with the above post Whistle

Cheers

Andy (mod)
andy@ultranerds.co.uk
Want to give me something back for my help? Please see my Amazon Wish List
GLinks ULTRA Package | GLinks ULTRA Package PRO
Links SQL Plugins | Website Design and SEO | UltraNerds | ULTRAGLobals Plugin | Pre-Made Template Sets | FREE GLinks Plugins!
Quote Reply
Re: [Andy] Here's a BETTER working image upload mod!! In reply to
Guess I browsed it OK, but didn't hit the upload button... Blush


Leonard
aka PerlFlunkie

Last edited by:

PerlFlunkie: Dec 10, 2009, 11:05 AM