Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Participant
    Level: Master
    Posts: 485

    That’s great, nice and simple.

    Now there is something that’s come up. As you recall I’ve created a custom post-type with custom fields. The strange thing is that the galleries seem to have adopted some of my custom fields – so when I go to edit a gallery direct, five of my custom fields show up in the custom fields section, two of them ppulated with data from the post. I can’t think why that would happen as the gallery has a different post_id to the custom post. I’ve got some ideas as to why that may be (probably coding errors) but off-hand I can’t see how it’s happening.

  • Participant
    Level: Master
    Posts: 485

    Ah, I see thanks Brajesh! I’ll look at that tonight.

    I’ve got another request – How do I delete a gallery? I’d also like to automatically delete the gallery once the user deletes the page.

  • Participant
    Level: Master
    Posts: 485
    Venutius on in reply to: Display Members Directory as list #12767

    Hi Keith,

    While you are waiting for Brajesh to get back to you, you might like to take a look at my simple page n over-riding the BP template files. hope it helps.

    http://buddyuser.com/buddypress-customisation-tips

  • Participant
    Level: Master
    Posts: 485

    Hi Brajesh,

    Could you confirm the code I need to use to set it back to private uploads?

    I thought the following would work, but it does not:

    mpp_update_gallery_meta( $gallery_id, '_mpp_is_all_upload_allowed', 0);

  • Participant
    Level: Master
    Posts: 485

    Thanks Brajesh, I’ve been a bit busy today so I’ll test it tomorrow.

    How difficult would it be to enhance Global Shared Gallery so that it supported “friends only” as an option?

  • Participant
    Level: Master
    Posts: 485

    Hi Brajesh, I’m going to be using Global Shared Gallery with this plugin. Would you have a code I could add to set each gallery created as shared?

    Thanks!

  • Participant
    Level: Master
    Posts: 485

    Well that took me longer than expected, but that works – thanks!

    Next I want to wrap the code in a check to see if MediaPress is active to prevent errors, what would you suggest as a check?

  • Participant
    Level: Master
    Posts: 485

    Thaks, I’ll work on that and let you know how it goes

  • Participant
    Level: Master
    Posts: 485
    This reply has been marked as private.
  • Participant
    Level: Master
    Posts: 485

    Yep that works great!

    Now I have more to ask of you I’m afraid. I will need to set the privacy options from public to private after the post has been created, to you have a function for that?

    I’m going to include a drop down in the post where the author can change the privacy of the gallery from public to private. I think I can handle most of the code for that, I just need to know te function to use for editing the gallery details.

    Thanks