A couple more questions I have.
1) Each gallery has its shortcode. For example [mpp-show-gallery id = 1329] and each post has a different shortcode. I just want to show the posts where the user has permission to see the galleries. That is, it is private and only users who belong to groups can see.
2) When I get all the photos of a gallery in a grid, when I click on one of them I do not get a lightbox format. How can I make it go out in lightbox?
For example: 2019 Traingin’s gallery / 2019 Training / photo-01. I do not get in lightbox.
But if I’m in: 2019 Traingin’s gallery / 2019 Training. If I get lightbox.Thanks a lot.
Ah, one more doubt.
I cannot configure MediaPress so that a user who is not an administrator does not have the possibility to create or edit galleries. How is it done?
Thank you.
Hi Javier,
Thank you for the questions.1. I am not sure of the question. What post shortcode you are referring to? and what is a post? Is it activity stream?
2. You can configure this behaviour from Dashboard->MediaPress->Settings->Themes section. Please have a look.
3. We can restrict by role(I will share a snippet), how do you anticipate users to create gallery/upload then?
Regards
BRajeshHi Javier,
Thank you for confirming.Please use the gallery list shortcode.
https://buddydev.com/mediapress/shortcodes/mediapress-gallery-listing-shortcodes/
Regards
BrajeshOn a personalized page where I have inserted short codes so that only the gallery covers can be seen if you are logged in and belong to a group. Because the galleries can only be created by the administrator from within a certain group.
The problem I have is with this short code [mpp-list-gallery id=1355 column=1] there is always the cover of the gallery visible even if you are not logged in.
How can I solve that?
Hi Javier,
You will need some way to restrict visibility of the content.Here is some code to create conditional shortcode
/** * Only show content if user is logged in. * [if-logged] .....[/if-logged] */ add_shortcode( 'if-logged', function ( $atts, $content = '' ) { if ( ! is_user_logged_in() ) { return ''; } return do_shortcode( $content ); } );
Once you have this code, you can wrap other shortcodes/contents inside it to make it only visible to logged in user.
Here is an example
[if-logged] [mpp-list-gallery id=1355 column=1] [/if-logged]
Regards
Brajesh
You must be logged in to reply to this topic.