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.
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.
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!
You must have Table VII-D1: Owners only ticked.
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.
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.
Thanks. I’ll give that a try.
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?
Untick Table VIIB-1.1: User edit album on the Photo Albums -> Settings admin page.