WordPress.org

Ready to get started?Download WordPress

Forums

WP Photo Album Plus
[resolved] User gallery? (78 posts)

  1. steilenhang
    Member
    Posted 1 year ago #

    Hi, and thank you for a great plugin!

    I got an idea I wanted to talk to you about. I would like to let all users create their own photoalbum (only one) with a limited number of photos, separated from my albums so that I can display my albums like before. Then you would have another gallerypage that includes all user-galleries.

    Would it be a lot of work to make something like that happen?

    http://wordpress.org/extend/plugins/wp-photo-album-plus/

  2. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    We have that already.

    • Create a 'container' album.
    • Check Table IX-B6: Grant an album
    • Select your container album in Table IX-B7: Grant parent
    • Create a WP page with content: [wppa type="album" album="13" ...][/wppa] (assuming the container album is #13)
    • Further required settings: Table VII-B 0,1 and 2 checked. May be more in that subtable, that is up to you. In the next version you can additionally give them the possibility to edit the photo information
    • Set the (default) upload limit on Table IX-B5

    As soon as the user logs in, his album will be created if he does not have one, and he can upload to his own album only, the max you specified.

  3. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    There is an explanation and demo here
    You may make an account and login and go to the Members page.

  4. steilenhang
    Member
    Posted 1 year ago #

    Thank you! I will give it a try!

  5. steilenhang
    Member
    Posted 1 year ago #

    I almost made it work, but I have some questions:

    Where can I change the default album description? "Default photo album for .."

    The albums are created when a user logges in, but I have to approve all the uploaded pictures. Anyway to allow the users to publish their own pictures?

    And I am also struggling a bit with a front-end "Edit your gallery" page. I don't want users at the adminpanel.

  6. steilenhang
    Member
    Posted 1 year ago #

    I found out the first one. It was in the translations, I just missed it last time I looked.

  7. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    Uncheck Table VII-B4 will skip upload moderation.

    Uncheck Table VII-B5 will remove uploader edit functionality

  8. steilenhang
    Member
    Posted 1 year ago #

    I got VII-B4 unchecked and VII-B5 checked, but images are still "Pending" when a user uploads.

  9. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    Existing photos will stay the same status. Just checked it, should work correctly.

  10. steilenhang
    Member
    Posted 1 year ago #

    Sadly it does not work.

  11. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    A link please...

  12. steilenhang
    Member
    Posted 1 year ago #

    I got a testsite at steilenhang.com. The same thing happenes there. I tried deactivating all of my plugins and even switching to a standard theme. Still no luck.

    I can make you a testuser there if you want to have a look?

  13. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    Yes, pls send email with link to site and login data for admin account to: opajaap at opajaap dot nl

  14. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    Thanx, i have seen the issue, am working on it.

  15. steilenhang
    Member
    Posted 1 year ago #

    Great :)

  16. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    I have a patch for you, not tested but it should work.

    wppa-upload.php line 844,855 reads:

    // Add photo to db
    $status = ( $wppa_opt['wppa_upload_moderate'] && !current_user_can('wppa_admin') ) ? 'pending' : 'publish';

    Change to:

    // Add photo to db
    $status = ( $wppa_opt['wppa_upload_moderate'] == 'yes' && !current_user_can('wppa_admin') ) ? 'pending' : 'publish';

    Please try and tell me if it works.

  17. steilenhang
    Member
    Posted 1 year ago #

    That worked! Thank you! I look forward to start using this plugin now :)

    A little something you might want to change: When a user is about to upload images, there is a box and a text that says "After upload: Go to the Edit Album page" or "After upload: Go to the Import Photos page.". The only problem is that they are not allowed to go there. Perhaps that box and text only should be visible to those who are allowed to Edit Album and Import Photos.

  18. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    This is what i realized during breakfast just now. I will change it as you indicated. Also, i will build in an alertbox in case you did not select an album.

    All for next version ( 4.9.12 )

  19. steilenhang
    Member
    Posted 1 year ago #

    Very good :)

    I can't seem to find a way to adjust the default settings that a user album gets when it is first generated. Is there a way to do that? I would like to adjust the upload limit.

  20. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    4.9.12 is under test, but the weekend i'm offline most likely.

    Table IX-B5 sets the default upload limit on album creation time

  21. steilenhang
    Member
    Posted 1 year ago #

    Looking forward to it :)

    Instead of Edit Album page, perhaps users can be forwarded to Edit Photos page. If they are allowed to edit photos.

    "After upload: Go to the Edit Photos page"

  22. steilenhang
    Member
    Posted 1 year ago #

    By the way, is there a shortcode or script that lets you list the album like this:

    - Last updated sub-album first. (Not last created, but last updated)
    - Empty-sub albums are hidden from view.

    The reason I want this is because every user gets an album upon login, but not that many are using them yet. Like it is now, the galleries containing pictures are somewhat burried by the empty ones. Hiding the empty ones and viewing the last updated first would make it neater.

    Just a thought. Have a nice weekend :)

  23. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    "After upload: Go to the Edit Photos page"

    Touché

    - Last updated sub-album first. (Not last created, but last updated)

    Sadly, but no

    - Empty-sub albums are hidden from view.

    Could be done, but i assumed ( therefor i did not realize the status problem from the patch ) that we were talking about front-end upload.
    This would mean that the granted album could not get its first photo from the frontend.

    I suffer from this same dilemma on the members page on the docs and demos site.

    Any suggestion is welcome...

  24. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    In 4.9.12:

    The covers of empty albums will only be displayed for administrators and for the owner of the album.

  25. steilenhang
    Member
    Posted 1 year ago #

    Goodie, this is getting even better :) So you solved your dilemma? When you display the albums, empty ones are hidden except for the author of the album and admins. Sounds perfect to me.

    I'll set it to display the albums randomly instead of last updated since that is not possible. Hiding the empty albums is the main thing.

    About front-end upload, is that possible? That would be my ultimate request before I open this gallery to my users.

  26. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    Sorry that you did not yet discover the front-end upload. This greatly beloved feature can be configured in Table VII-B1..7

  27. steilenhang
    Member
    Posted 1 year ago #

    Hmm. I don't understand how to set up a front-end upload page. Is there a shortcode I am missing?

  28. steilenhang
    Member
    Posted 1 year ago #

    I installed 4.9.12 today and it works perfect! The only thing I am missing is that front-end upload that I simply cannot find.

  29. Jacob N. Breetvelt
    Member
    Plugin Author

    Posted 1 year ago #

    Check Table VII-B1,2,3,4,5,6 and view album covers and/or thumbnail displays while logged in as someone who has created an album or as admin

  30. steilenhang
    Member
    Posted 1 year ago #

    VII-B2 was not checked. It works now!

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags

No tags yet.