• Resolved njones7

    (@njones7)


    Im using buddypress in conjunction with WP Photo Album Plus, ive got it so that users can create their own albums but the albums are only showing to the users who created them.

    How can i make it so that the albums that they create can be viewed by the public, but the public cannot edit them.

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

    (@opajaap)

    I assume you have read this ducumentation page about showing the users photos on their profile page.

    Make sure you keep Table VII-D1.1 and Table VII-D1.2 ticked (owners only) to prevent other users from uploading and/or editing photos.

    To show the users albums/photos to everybody, just create a page where you display the albums.
    If the users albums are sub-albums of the same parent album (strongly recommended, see this ducumentation page on how to make this) you can simply put this shortcode on a page: [wppa type="album" album="13"][/wppa] (assuming album id 13 is the parent album).
    If the user albums are all top-level albums, use shortcode [wppa][/wppa] This shows the covers of all top-level albums (i.e. not having their parent set to — separate —).

    Thread Starter njones7

    (@njones7)

    This works for auto creating albums for users (which is great), but unfortunately does not achieve my main goal.

    Right now when viewing a persons profile it will show their album that was created for them, but it also shows every other album created for other users. I need it so that when you view a persons profile you can only see the album that was created for them and not anyone elses.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    On this ducumentation page is explained that you should use shortcode:
    '[wppa type="thumbs" album="#upldr,' . $owner . '"][/wppa]' in the template (the php file), where $owner is the variable in php that holds the user login name of the current profilepage, i.e. the photo owner.

    Thread Starter njones7

    (@njones7)

    Not having any luck with that, ive got my code like so;

    function gallery_screen_content() { 
    global $bp;
    $owner = $bp->displayed_user->userdata->user_login;
    echo do_shortcode("[wppa type='thumbs' album='#upldr,' . $owner . ''][/wppa]");
    }

    But that is just outputting the error:

    [WPPA+ dbg msg: Missing owner in #upldr album spec: #upldr,]

    (the album exists in the settings under a parent album as you suggested)

    • This reply was modified 6 years, 8 months ago by njones7.
    Thread Starter njones7

    (@njones7)

    Ok i think i fixed this, just a couple quick questions though;

    1. Is it possible to load the picture up in a lightbox (like you do on the member photos widget on your website on the right hand side) so it doesnt have to load it in a new page. Im checking the settings as I ask this so if its there I might be able to find it first.

    2. The code youve supplied only shows the pictures for that buddypress user, if i want the user (logged in on their profile) to be able to upload to their gallery do I have to supply the upload shortcode to achieve this?

    3. How to remove owner in parenthesis from the photo name/description, i see this is added automatically and there is options to add it for each photo type, but no checkbox to remove it.

    • This reply was modified 6 years, 8 months ago by njones7.
    • This reply was modified 6 years, 8 months ago by njones7.
    • This reply was modified 6 years, 8 months ago by njones7.
    Thread Starter njones7

    (@njones7)

    Fixed #3, i was looking at the wrong setting.

    Im not sure if this is supposed to happen or not, but on mobile when there is more than one picture the descriptions overlap or something. Can upload a picture if you need.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    1. In Table VI (Links), select lightbox as Link type wherever you want this to happen.

    2. You must enable user frontend upload (At least tick Table II-H1), and select anything other than none in Table II-D19. This places the upload dialog on the thumbnail area if the current user has the rights to upload to the album.

    Thread Starter njones7

    (@njones7)

    #1 is fixed now thanks ??

    Unfortunately ive done what you said for #2 but there is no upload link.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Try this: add an upload shortcode to the page:
    [wppa type="upload"][/wppa]

    Thread Starter njones7

    (@njones7)

    Ok yeah thats what i had originally, ill just chuck it back in there, the only problem i had with this was that people could upload to the parent album, only wanted them to upload there own, im sure you have a setting for that though haha. You have done amazing on this plugin.. so many ways to customise it.

    Plugin Author Jacob N. Breetvelt

    (@opajaap)

    Try one of the following:

    – Set the owner of the parent album to yourself (admin)
    – Upload at least one photo to the parent album and set the upload limits on that album to 1 forever

    Thread Starter njones7

    (@njones7)

    Yeah i got it fixed, just set the parent album owner to the admin.

    Thanks for all your help Jacob.

Viewing 12 replies - 1 through 12 (of 12 total)
  • The topic ‘Display buddypress users albums to public’ is closed to new replies.