BuddyDev

Search

Replies

  • Participant
    Level: Enlightened
    Posts: 23
    wingflap on in reply to: Member Gallery Names #51175

    Making the change made it so that in the Profile Gallery tab, the gallery names for Wall Gallery are being changed to include the member’s name.

    My Gallery page for the sitewide gallery is a page with the shortcode [mpp-list-gallery]

    Should I be using something else for my Gallery directory page?

  • Participant
    Level: Enlightened
    Posts: 23
    wingflap on in reply to: Trying to integrate WP ULike with MediaPress #51174

    I added the code to functions.php in my theme folder and still don’t see the ‘Like’ button appearing. I’m wondering if it has anything to do with the settings in WP ULike. In the settings, there is a tab for Post Type. I can toggle the display of the Like buttons in Posts, BuddyPress Activity, and bbPress. I’m wondering if WP ULike is even aware of the Single Media page and the Lightbox?

    Is the code to display the Like button that you’ve provided going to even register within WP ULike? Is this even possible without having to mess with thw WP ULike plugin itself?

  • Participant
    Level: Enlightened
    Posts: 23
    wingflap on in reply to: Trying to integrate WP ULike with MediaPress #51167

    I tried it in Twenty-Twenty-Four and it still doesn’t work.

  • Participant
    Level: Enlightened
    Posts: 23
    wingflap on in reply to: Member Gallery Names #51166

    I created the file’bp-custom.php’ in /wp-content/plugins.

    It now reads:

    <?php
    // your php custom code goes below this line.
    
    add_action( 'mpp_before_gallery_entry', 'buddydev_modify_gallery_title' );
    remove_action( 'mpp_after_gallery_entry', 'buddydev_modify_gallery_title', 10 );
    
    function buddydev_modify_gallery_title() {
    	add_filter( 'mpp_get_gallery_title', function ( $title, $gallery_id ) {
    
    		if ( mpp_is_gallery_directory() && mpp_is_wall_gallery( $gallery_id ) ) {
    			$gallery = mpp_get_gallery( $gallery_id );
    
    			if ( 'groups' === $gallery->component ) {
    				$title = sprintf( '%s wall gallery', bp_get_group_name( $gallery->component_id ) );
    			} else {
    				$title = sprintf( '%s wall gallery', bp_core_get_user_displayname( $gallery->user_id ) );
    			}
    		}
    
    		return $title;
    	}, 10, 2 );
    }
    

    Both the Sitewide Gallery and the gallery in the member profile still just shows “Wall photo Gallery”.

  • Participant
    Level: Enlightened
    Posts: 23
    wingflap on in reply to: Member Gallery Names #51161

    Thanks

  • Participant
    Level: Enlightened
    Posts: 23
    wingflap on in reply to: Request to add Lightbox for single page view in Mediapress #51152

    Looks pretty good. I wonder if maybe a link could be added to the lightbox which says “View Original” or something similar which would be the same link as the one behind the date link. It just doesn’t seem intuitive for a user to be able to know to click the date link to get to the original picture.

    Also, I’d like the ability to click the original picture and have it open a lightbox.

  • Participant
    Level: Enlightened
    Posts: 23
    wingflap on in reply to: Request to add Lightbox for single page view in Mediapress #50976

    I’ll try it out tonight or tomorrow and then give feedback. Thanks so much for your time and effort. This is a great plugin!

  • Participant
    Level: Enlightened
    Posts: 23

    Great! I can’t wait to test it out.

  • Participant
    Level: Enlightened
    Posts: 23

    Any progress yet?

  • Participant
    Level: Enlightened
    Posts: 23
    wingflap on in reply to: Request to add Lightbox for single page view in Mediapress #50862

    Hi,

    Just checking in to see if there is any update on this?