Replies
Hi Brajesh any news on this? So for the shortcode Lightbox currently the image clicks to the users gallery but I am not using the static galleries so would like the image to not link anywhere on the Lightbox pop up is this possible?
You can see an example of what I mean here: http://mycoparenting.org/members/gemspeht/
Thanks for any help!
I could just hide the drop down in the CSS however it is not loading photos automatically to a default gallery it is still asking the user to select a gallery see:
http://coparenting.org.uk/wp-content/uploads/2016/04/Screen-Shot-2016-04-14-at-08.02.25.png
Hi Brajesh, I managed to get the code to have no errors, as you can see in screenshot here:
http://coparenting.org.uk/wp-content/uploads/2016/04/Screen-Shot-2016-04-14-at-07.59.06.png
But it is not working on the profile page here:
http://coparenting.org.uk/wp-content/uploads/2016/04/Screen-Shot-2016-04-14-at-07.58.59.png
It is still showing the drop down and asking to select the gallery instead of automatically adding to the default gallery without showing the drop down..
Thanks for all your help!
It is just showing me an error on two lines.. can i send a screenshot?
Hi Brajesh,
I think I’ve realised do you mean to add that code in the profile loop with the php shortcode?
Where in the code do I put it? Sorry for my lack of knowledge!
<?php
$displayed_user_id = bp_displayed_user_id();
//run the shortcode
echo do_shortcode( “[mpp-media type=’photo’ max=’10’ lightbox=1 gallery_id=” component=’members’ component_id={$displayed_user_id}]” );?>
Hi Brajesh,
Thanks for your help, I tried putting that code in the bp-custom.php file and the shortcode gallery id but there seems to be some errors with the code, can I please send you a screenshot of my code and the error?
Thanks Gemma