Replies
- Venutius on January 9, 2018 at 3:08 pm in reply to: [Resolved] Adding a gallery automatically on post creation #12773
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.
- Venutius on January 9, 2018 at 2:46 pm in reply to: [Resolved] Adding a gallery automatically on post creation #12771
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.
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.
- Venutius on January 9, 2018 at 6:06 am in reply to: [Resolved] Adding a gallery automatically on post creation #12766
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); - Venutius on January 8, 2018 at 11:15 pm in reply to: [Resolved] Adding a gallery automatically on post creation #12764
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?
- Venutius on January 7, 2018 at 1:57 am in reply to: [Resolved] Adding a gallery automatically on post creation #12737
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!
- Venutius on January 6, 2018 at 10:56 pm in reply to: [Resolved] Adding a gallery automatically on post creation #12736
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?
- Venutius on January 6, 2018 at 8:45 pm in reply to: [Resolved] Adding a gallery automatically on post creation #12732
Thaks, I’ll work on that and let you know how it goes
- Venutius on January 6, 2018 at 8:25 pm in reply to: [Resolved] Adding a gallery automatically on post creation #12729This reply has been marked as private.
- Venutius on January 6, 2018 at 8:20 pm in reply to: [Resolved] Adding a gallery automatically on post creation #12728
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