BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 24741
    Brajesh Singh on in reply to: [Resolved] Show number of pics in album list #1238

    Hi,
    here is the code

    
    add_filter( 'mpp_get_gallery_title', 'mpp_custom_inject_media_count_in_gallery_title', 10, 2 );
    function mpp_custom_inject_media_count_in_gallery_title( $title , $gallery = null ) {
    	
    	
    	
    	//only show it on gallery home
    	if( mpp_is_gallery_home() ) {
    		
    		$gallery = mpp_get_gallery( $gallery );
    		
    		$count = absint( $gallery->media_count );
    		
    		return "({$count}) {$title}";
    	}
    	
    	return $title;
    }
    

    Please put it in your bp-custom.php or your theme’s functions.php and on user gallery page it will show the count.

  • Keymaster
    (BuddyDev Team)
    Posts: 24741
    Brajesh Singh on in reply to: [Resolved] Show number of pics in album list #1233

    Hi Terjemk,
    Thank you for posting the topic.
    It is easily doable. Can you please post me a screenshot and point me where would you like to see the count. I will post the code that will enable it.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24741
    Brajesh Singh on in reply to: [Resolved] Incompatibility found: DJD Site Post #1229

    Thank you 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 24741

    I hope that the other fix should automatically fix it too. Please do check with the update and let me know.

  • Keymaster
    (BuddyDev Team)
    Posts: 24741
    Brajesh Singh on in reply to: [Resolved] Incompatibility found: DJD Site Post #1223

    Have fixed and pushed. It was related to javascript dependency. The dependency I had declared was conflicting with the Media models, so I have moved to even better minimal dependency.

  • Keymaster
    (BuddyDev Team)
    Posts: 24741
    Brajesh Singh on in reply to: [Resolved] Incompatibility found: DJD Site Post #1222

    Hi George,
    Thank you. Just checked and can confirm it. Working on a solution.

  • Keymaster
    (BuddyDev Team)
    Posts: 24741
    Brajesh Singh on in reply to: Lightbox setting not having effect #1219

    Thank you George.
    More is coming soon. Have finished 4 addons for MediaPress and going to work on a few more in next couple of days. Then, we will have it all 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 24741
    Brajesh Singh on in reply to: Description not showing in Activity feed #1217

    Hi George,
    Thank you for posting.

    1. Showing the image details in the activity, I will consider about that for sure and will let you know when we have it. I am not entirely in favor of showing it all the time but for single media uploads, that can be a good thing.

    2. Currently the image is cropped and not resized, that’s why. It is not about responsiveness, It is due to hard crop. I will add an option in the admin panel today to enable hard cropping vs resizing. I have been waiting on this as I wanted to have the options to allow admin decide the media sizes from admin but I will add the cropping/resizing for now without waiting anymore.

  • Keymaster
    (BuddyDev Team)
    Posts: 24741

    Hi Johan,
    Do you want both the version( full name and username only).

    Since I updated the function, It only displays usernames. You can use the old code to display full name in a new function.

    If you need me to write both the code, please let me know, I will update the post.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24741
    Brajesh Singh on in reply to: Ajax Registration plugin #1210

    Hi John,
    Thank you.

    There are a few things I wanted to let you know.
    1. BuddyPress Recaptch 1.2 is available now. After upgrading, make sure to delete your old keys and generate keys for Recaptcha version 2 (Site Key/Private Key). Hardeep forgot to mention it on the plugin, I will advise him on this today.

    2. The new version of BuddyPress recaptch needs PHP 5.3 or above.

    3. Please upgrade to BuddyPress Ajax Registration plugin 1.2.1 . It enables the recaptch plugin js loading on all non logged in pages. I have added a hook in Recaptch plugin, so by default, the Recaptch js is only loaded on Registration pages but other plugins can enable it on any page. We need it on all pages when user is not logged in. The Ajax registration plugin uses that hook.

    Also, BuddyPress Ajax registration version 1.2.1 adds support for the Live Username checking if you have BuddyDev Username Availability checker installed.

    https://buddydev.com/plugins/bp-ajax-registration/

    Please try it and let me know if it works for you or not?

    Thank you
    Brajesh