• Resolved antonyvk

    (@antonyvk)


    Hello !

    When I call my shortcode [wppa type=”upload” album=”2″] in a post users are able to upload photos and to create sub-albums on frontend. I’d like to just permit them to upload in their auto-created sub-album of the album n°2. I mean, I’d like the creation of their sub-album to be transparent for them, in the way to display users sub-album of my album n°2.
    Then, if I create a new album (for a new post for example), I’d like it create users sub-albums transparently.
    Not sure it’s very clear…
    album 2 —> sub-album titi
    —> sub-album toto
    album 3 —> sub-album titi
    —> sub-album toto
    no visibility of “create album” button, and upload photo directly in user’s sub-album

    I’m quite sure it’s possible with your plugin, but I don’t find exactly how to do this.
    Thanks for your help !

    https://www.ads-software.com/plugins/wp-photo-album-plus/

Viewing 10 replies - 1 through 10 (of 10 total)
  • Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Set owners only in Table VII-D1.1
    Set the owner of album 2 to you, the administrator.
    The ‘granted’ albums will be created anyway, if album 2 is the ‘granted’ parent album in Table XI-D11.

    There is only one ‘grant parent’. If i understand you well, you would like to have both album 2 and album 3 act as ‘granted’ albums.

    If i make it that way – multiple granted parents – the fact that every user will get an album – and many may stay empty – is not an issue, because you can hide empty albums. Hidden empty albums will stay accessable for the owners.

    Do i understand you well that you want multiple granted albums, with upload access for the owners of the albums, and that when you specify an album in the upload box shortcode, the ‘granted’ sub-album should be the user uploads to, without him to bother about the album?

    If so, pls let me know, and i will find a way to implement this; it may take a week or two…

    Thread Starter antonyvk

    (@antonyvk)

    I’m not very good in english but I think you perfectly understand what I’m looking to do.
    In details : I have several posts. In each of them I have to provide a “public” album where users can upload photos (to illustrate the post). But I want to display users photos separated by user sub-album. So it probably needs to grant each “public album” to permit upload in users separated sub-album.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    It turned out that the most complicated function i had to write was aleade there, so, if you like, you can test it now.

    1. Install the newest development version, see https://wppa.nl/nl/docs-by-subject/development-version/

    2. Table IX-D11 is now a multople selection box. Select the parent albums 2 and 3 as granted parents.

    3. In the post you want to use album 2: Change your upload shortcode from

    [wppa type="upload" album="2"]

    to

    [wppa type="upload" parent="2"]

    In the post where you want album 3 as grant parent:

    [wppa type="upload" parent="3"]

    Please test it and tell me if it works as you expected and if you do not see any unwanted side-effects.

    Thread Starter antonyvk

    (@antonyvk)

    First tests looks working fine, I think I will need a couple of days to try it more. Perhaps an unwanted effect could be the automatic creation of user sub-album in unvisited album posts. I mean album 3 contains user sub-albums even if I didn’t visit the page containing it. I suppose the sub-album creation is made when a user visit any of granted albums, and it’s made for all granted albums checked in the multiselect list. It’s quite dangerous with thousands granted albums and probably be safe to create sub-album of current granted only when the upload function is called.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    You have a point although it is no problem to have many empty albums; they can easily be deleted as well in Table VIII-B7.

    I changed the code so only the granted albums are created belonging by the parent, if, and only if, the shortcode specifies the parent.
    The albums are now created at the moment the upload(box/widget) html is composed, no longer at the start of any page loading.

    If there is also an upload widget, or a general upload box without parent specification, all the users granted albums will be created at that moment, like bfore.

    Also, if the user has back-end edit album, upload or import rights, all his albums will be created when he opens the album admin, upload or import page.

    I can not be more selective.

    Pls install the current development version (6.5.03.Beta010) to test these changes.

    Thread Starter antonyvk

    (@antonyvk)

    It looks working fine for the moment when I try with 2 granted albums. Combinated with category filter the result is very good as I’m able to display the complete album created in each post, and then I can re-display it later in the same post in a simpler way with users separated sub-albums to highlight them ??

    Could you say me if it’s possible to override some configurations when I use shortcode ? I’d like to sometimes call a very simple slideshow (with ugly browse buttons, no comment, no breadcrumb, no rating, etc…) and some other times display some of these functions. Is there any shortcode attributes for all of this ? (rating=1, ugly_browse_button=0 etc…)
    If not, I will create a new post for asking you this feature ??

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Please read https://wppa.nl/nl/docs-by-subject/in-line-settings/
    You need to register and login to see this page on my new documentation site. This topic covers your question.

    Thread Starter antonyvk

    (@antonyvk)

    My IP address is blocked, I can’t login :s

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Unlocked

    Thread Starter antonyvk

    (@antonyvk)

    closed ! ??

Viewing 10 replies - 1 through 10 (of 10 total)
  • The topic ‘auto create & go personnal album under defined upload album’ is closed to new replies.