1. Welcome to DNTrade. If you want to find out about the latest domain name industry news or talk, share, learn, buy, sell, trade or develop domain names - then you've come to the right place. It's a diverse and active community, with domain investors, web developers and online marketers - and it's free! Click here to join now.
    Dismiss Notice

WP User Submitted Galleries?

Discussion in 'Web Development' started by johno69, Feb 26, 2016.

  1. johno69

    johno69 Membership: VIP

    Joined:
    Nov 29, 2008
    Messages:
    2,666
    Likes Received:
    423
    auDA Member:
    Yes
    I'm on a roll now, so might post here to help me find something. Again, suggestions wanted please if you have a solution.
    I am looking for a plugin to allow users to submit photos to albums and add new albums or at least suggest names for new albums.
    I have looked at NextGen Gallery but the Public Uploader has not been updated in over 2 years and is only compatible with an old version, so that's out.
    I also found this: https://pippinsplugins.com/series/user-submitted-image-galleries/
    But even though it's a premium subscription to read it, I not only can't see myself building the plugin he talks about but I can't see me reading all 9 pages to learn it either.
    Does anyone know of a plugin that allows users to add albums and photo's to other albums with admin needing to approve each image as it's added?
    Happy to start basic to begin with.
     
  2. Christopher

    Christopher Membership: Community

    Joined:
    Jun 13, 2014
    Messages:
    468
    Likes Received:
    178
    All though by the looks of the wordpress repository The Nextgen plugin was last updated 2 months ago, and looks active in the support channel, I would suggest reaching out to them in support if you wanted to get that to work properly.

    You could use gravity forms which has an uploader.
    But I think this is exactly what your after!
    https://wordpress.org/plugins/frontend-uploader/

    Now anytime you allow some else to upload to your site, you are open to a malicious attack regardless of the type of uploader used. Images, can still be hidden scripts. So I suggest adding this line of code to your htacess file if you haven't something similar.

    Obviously if you have renamed any of your wordpress' media uploads directory, you will need to change it in the respective code below.
    And you server needs mod rewrite enabled.
    Code:
        
    <IfModule mod_rewrite.c>
            RewriteEngine On
    
            # Disable PHP in Uploads
            RewriteRule ^wp\-content/uploads/.*\.(?:php[1-6]?|pht|phtml?)$ - [NC,F]
    </IfModule>
    
     
    chris and johno69 like this.
  3. johno69

    johno69 Membership: VIP

    Joined:
    Nov 29, 2008
    Messages:
    2,666
    Likes Received:
    423
    auDA Member:
    Yes
    Thanks Christopher.
    I did have a look the frontend uploader but it seemed to create posts for each upload. I'll have another look.
    Also did think about Gravity Forms, if I need to manually move the photo's into a gallery then I may just go with Gravity forms, I can have them choose a destination gallery, or choose a new gallery and then manually create them as needed. Thanks for the help. You got me thinking again :)
     
  4. Christopher

    Christopher Membership: Community

    Joined:
    Jun 13, 2014
    Messages:
    468
    Likes Received:
    178
  5. johno69

    johno69 Membership: VIP

    Joined:
    Nov 29, 2008
    Messages:
    2,666
    Likes Received:
    423
    auDA Member:
    Yes
  6. Christopher

    Christopher Membership: Community

    Joined:
    Jun 13, 2014
    Messages:
    468
    Likes Received:
    178
    Hey Johno, I see what you mean hasn't been updated in a while.

    It doesn't mean that its bad, there are plugins out there that don't need updating ever. Just a couple of lines of code. It possibly means their coding is good, and doesn't need updating. Based on their support responses they are still active on the project, I would create a support ticket asking just that, The plugin hasn't been updated in a while, is it still active, and secure to use as is. But just in case I wouldn't run this plugin on your live site though, test it out on a sub domain, or staging site, to make sure its going to work. Then try a plugin like this one to scan for vulnerabilities. https://wordpress.org/plugins/plugin-vulnerabilities/
     
  7. johno69

    johno69 Membership: VIP

    Joined:
    Nov 29, 2008
    Messages:
    2,666
    Likes Received:
    423
    auDA Member:
    Yes
    First line on the plugin page says "NextGEN Public Uploader does not officially support NextGEN Gallery 2.0.x at present time."
    That was 2 years ago it wasn't compatible with the latest version, so now, i'd say it's a write off.
     
  8. Christopher

    Christopher Membership: Community

    Joined:
    Jun 13, 2014
    Messages:
    468
    Likes Received:
    178
    johno69 likes this.