• Resolved frank-f

    (@frank-f)


    WPPA 5.3.10

    I have reviewed a good many Support questions, but none seem to cover this case. Great support however!

    I have a Photos page where all albums are placed by default, e.g., [wppa][/wppa], as their Parent is –none– (and Owner is –public–). I would like to have a “front end” button or link or shortcode on that same page for non-admin users to “Create Album”, i.e., publicly accessible albums, with the new albums automatically having a Parent of –none–. A bonus would be to have the new albums have an Owner of –public–.

    I saw the suggestion to use [wppa type="upload"][/wppa], but this allows the user to Select the Parent. The Settings option to enable front-end “Create Album” creates child albums of existing albums.

    A powerful/flexible implementation (may not work with WPPA??) would be to have a shortcode something like [wppa type="album" mode="create" parent="--none--" owner="--public--"][/wppa].

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

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

    (@opajaap)

    I saw the suggestion to use [wppa type=”upload”][/wppa], but this allows the user to Select the Parent. The Settings option to enable front-end “Create Album” creates child albums of existing albums.

    I will expand the capabilities of the upload widget and shortcode to include your wish to create public top-level albums.
    Maybe next version ( 5.3.11 ) end of the week.

    Thread Starter frank-f

    (@frank-f)

    Excellent! Thanks!

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    This shortcode: [wppa type="upload" album="0"][/wppa] in combination with a new setting in 5.3.11 that all frontend created albums can have their owner set to — public — should do it.
    It turnes out to be required that the ‘Grant parent’ (IX-D11) must be set to — none —, but that should not be a problem for you, i guess.

    Thread Starter frank-f

    (@frank-f)

    Thanks, sounds perfect!

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Fixed 5.3.11

    Thread Starter frank-f

    (@frank-f)

    Making the Settings change mentioned above and in the change.log plus checking the Settings box to allow FE album creation and using the wppa type=”upload” shortcode above displays:

    a Create Album button
    and an Upload Photos button just below it.

    and also adds a Create Album button in each Photo Album.

    The Create Album button (with Settings) created by the shortcode seems to perform the desired action (public, no parent). However it places an Upload button immediately below, which seems it should be optional or maybe separate, e.g., an upload shortcode will cause an Upload Photos button, a createAlbum shortcode will cause a Create Album button, with the user deciding whether to place both or just one of them.

    I would like to also avoid the Create Album link/button being placed in each album, as that link sets the parent to that album. At least in my case, I want all albums created by users to be placed as Owner: public, Parent: none and to have the Create Album button in only one place (where the shortcode is placed), e.g., in the white space above where the albums are displayed, and not also in each album, unless a separate setting specifies to do so.

    It seems the FE Create Album must be enabled to see/use the new Create Album feature, but the FE Create Album setting also enables it in the albums themselves.

    Is there a way to have a “createAlbum” shortcode that places only a Create Album button (public, none) at the location where the shortcode is placed (with no Upload Photos button) and not placed in each of the Albums (unless some other Setting says to do so)? Thanks!

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    You must have Table VII-D1: Owners only ticked.

    Thread Starter frank-f

    (@frank-f)

    Thanks.

    I ticked that setting.

    i then enabled FE album creation and used the above shortcode. It adds a Create Album button (desired) and an Upload Photos button where I placed the shortcode. Those are fine and have the correct public parentage.

    But Create Album is also displayed in each Album cover (undesired behavior). When clicking the Create Album link in an existing album’s cover and naming/creating the new album, it creates it within that album and with that existing album as the parent. (undesired behavior for my case)

    Does that not happen for you?

    I can make do without the desired behavior. You have already done way more than most other developers would. Thanks again.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    I felt a bit pity for you so i did the following: i added a class that enables you to hide the upload and/or the create links on the album covers.

    Do the following:

    – de-activate and delete the plugin
    – install the plugin again on the plugins page, so you get a new copy (same version number but updated).
    – If you want to hide the create link on covers, add in Table IV-A10: Custom style:

    .wppa-create-cover {
    display:none;
    }

    If you want to hide the upload link, add:

    .wppa-upload-cover {
    display:none;
    }

    This will do.

    Thread Starter frank-f

    (@frank-f)

    Thanks. I’ll give that a try.

    Thread Starter frank-f

    (@frank-f)

    Thanks! That works well. I used CSS to hide the Create Album link from the album covers. I left the Upload Photo link in the album covers, but I added this CSS rule to the IV-A10: Custom Style:

    .wppa-upload-uploadbox {
    display:none;
    }

    to hide the Upload Photo button that is added just below the new Create Album button (both created by the new shortcode).

    Thanks again.

    This was exactly what I was looking for. But there’s still a link ‘Bewerk Album’ which I want to get rid off. (I think it’s Edit Album) in english. Do you have a CSS code for that?

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Untick Table VIIB-1.1: User edit album on the Photo Albums -> Settings admin page.

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Front-end Create Album Button/Link with Parent = –none–’ is closed to new replies.