Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 9 of 9
  1. #1
    New Coder
    Join Date
    May 2008
    Posts
    79
    Thanks
    12
    Thanked 0 Times in 0 Posts

    Best Solution to Allow Visitors to Upload Images

    Hi Coding Forums,

    I thought there would be some great scripts for allowing a visitor to upload an image to a site, but I haven't found anything simple.

    What I'm looking to do:

    1) Allow any visitor of the site to upload an image(s)
    2) Have Site Admin approve uploaded picture before it goes live
    3) Auto-Resize Image and place inside a gallery on the same (or different) page

    This sounds pretty simple or am I crazy?

    Thanks in advance for any suggestions!

  • #2
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,371
    Thanks
    8
    Thanked 1,075 Times in 1,066 Posts
    PHP, GD (image library), and MySQL

    You would need to write your own admin section (to view and authorize photos).
    You need to do the PHP upload and resize thing using GD.

    Use some sort of captcha thing, and a timed-limit on quantity using the user's IP.
    You need a way to let people request that a photo be removed because if privacy
    violation, copyright violation, or offensive in some way (more admin stuff to do).

    It is fairly simple.

    Now you either need to code it yourself, or find someone to do it for you.
    Last edited by mlseim; 03-20-2010 at 12:20 AM.

  • #3
    New Coder
    Join Date
    May 2008
    Posts
    79
    Thanks
    12
    Thanked 0 Times in 0 Posts
    Thanks for the reply. I have to believe that someone has already done this and I can just buy a script. Thanks again!

  • #4
    Master Coder mlseim's Avatar
    Join Date
    Jun 2003
    Location
    Cottage Grove, Minnesota
    Posts
    9,371
    Thanks
    8
    Thanked 1,075 Times in 1,066 Posts
    You are absolutely correct ... but it sounded like you wanted to make your own.

  • #5
    New Coder
    Join Date
    May 2008
    Posts
    79
    Thanks
    12
    Thanked 0 Times in 0 Posts
    I'd love to make my own, but I'm not advanced enough in PHP to even know where to begin. Could you point me in the direction of a good script if you know of one?

    Thanks,
    Justin

  • #6
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    I haven't tried it, but this looks promising:

    http://coppermine-gallery.net/

    You would probably need to modify it a bit to allow people to upload without first registering (if that's what you want to do).
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #7
    New Coder
    Join Date
    Mar 2010
    Posts
    12
    Thanks
    4
    Thanked 0 Times in 0 Posts
    i wouldn't really recommend allowing visitors to upload stuff or less they are registered

  • #8
    Senior Coder Rowsdower!'s Avatar
    Join Date
    Oct 2008
    Location
    Some say it's everything.
    Posts
    2,027
    Thanks
    5
    Thanked 397 Times in 390 Posts
    Quote Originally Posted by stevey17 View Post
    i wouldn't really recommend allowing visitors to upload stuff or less they are registered
    Nor would I, but:

    1) Allow any visitor of the site to upload an image(s)
    It's what the OP seems to be asking for.
    The object of opening the mind, as of opening the mouth, is to shut it again on something solid. G.K. Chesterton
    See Mediocrity in its Infancy
    It's usually a good idea to start out with this at the VERY TOP of your CSS: * {border:0;margin:0;padding:0;}
    Seek and you shall find... basically:
    validate your markup | view your page cross-browser/cross-platform | free web tutorials | free hosting

  • #9
    New Coder
    Join Date
    May 2008
    Posts
    79
    Thanks
    12
    Thanked 0 Times in 0 Posts
    Rows, Steve - Thanks for your replies. I took a look at CPG, but I'm not exactly sure how the upload process works. I registered on their forums to get clarification.

    I still would like to assume theres a simpler solution for allowing uploads and managing those uploads. Thanks for everyones help so far!


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •