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
Subject Author Views Date
Thread Here's a BETTER working image upload mod!! PerlFlunkie 8034 Nov 24, 2009, 5:37 PM
Thread Re: [PerlFlunkie] Here's a BETTER working image upload mod!!
PerlFlunkie 7808 Dec 9, 2009, 8:32 PM
Thread Re: [PerlFlunkie] Here's a BETTER working image upload mod!!
Andy 7810 Dec 10, 2009, 12:29 AM
Post Re: [Andy] Here's a BETTER working image upload mod!!
PerlFlunkie 7800 Dec 10, 2009, 11:05 AM