BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 24611
    Brajesh Singh on in reply to: [Resolved] Member Directory Template #744

    Hi eGuard,
    You can use the template on as many pages as you want. Just use bp_get_template_part() to include this file where you want.

    As you mentioned, the only thing that changes on different pages is the arguements passed to bp_has_members

    There are two ways to handle that. you write a function that returns appropriate arguements for each of these use and pass the returned value to bp_has_members()

    The second approach is to filter

    `bp_before_has_members_parse_args’ or ‘bp_after_has_members_parse_args’ and modify the argument based on the current page.

    Hope that helps.

    Will get back to you on the other topic a little late today.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 24611

    Hi Richard,

    1. Yes

    2. Currently, I was not filtering for post types, so most probably you are checking for admin account and even the pages are being listed there. If you want to query only for a few post types, you will need to modify that query and add something liek this

    post_type =’post__type1′ || post_type=’post_type2′ etc. If you can provide me the post types you need, i will supply the complete query.

  • Keymaster
    (BuddyDev Team)
    Posts: 24611

    Hi Richard,
    Thank you for posting this.

    The problem with second approach is that while the url may be valid for newer comments/activity( if there are less than 20 activities), It won’t work if an activity goes out of the current page loop( being old enough). That’s why we are linking to the single activity thread.

    Does that clarify the use case or you still see the point in making it like the second one?

    I am open to suggestions and will love to improve the plugin

  • Keymaster
    (BuddyDev Team)
    Posts: 24611
    Brajesh Singh on in reply to: Ajax Registration with Social Login #741

    Thank you Milo. I am looking forward to your feedback.

  • Keymaster
    (BuddyDev Team)
    Posts: 24611
    Brajesh Singh on in reply to: Ajax Registration with Social Login #739
  • Keymaster
    (BuddyDev Team)
    Posts: 24611
    Brajesh Singh on in reply to: Ajax Registration with Social Login #738

    Hi Milo,
    I have updated the plugin.

    1. it fixes the type
    2. Changes the text domain to ‘bp-ajax-registration’. The new localized files should be named ‘bp-ajax-registration-YourLocale.mo’ in the languages directory. will load from WordPress languages directory too.

    3. Please put this code in your bp-custom.php

    
    
    add_filter( 'bpajaxr_redirect_url', 'buddydev_redirect_to_profile_on_ajax_registration', 10, 2 );
    
    function buddydev_redirect_to_profile_on_ajax_registration( $url = '', $user_id = 0 ) {
    	
    	
    	if( ! $user_id ) {
    		return $url ;
    	}
    	
    	$url = bp_core_get_user_domain( $user_id );
    	return $url;
    }
    
    

    After the upgrade, It will redirect the users to their profile.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 24611
    Brajesh Singh on in reply to: Browse media? #734

    Hi Achim,
    Please do call me that 🙂

    The Lightbox is comming for everyplaces soon( obviously with settings to turn on/off)

    About single media, Please visit MediaPress->settings in dashboard and go to BuddyPress Tab. There you will see options to turn off the automatic publishing to activity. As soon as you do that, in future, you can publish media in bulk.

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 24611

    Hi George,
    Please give me till Monday. will check and update if required.

  • Keymaster
    (BuddyDev Team)
    Posts: 24611

    Hi Kicah,
    Sorry for the delayed reply.

    1. When you comment on a gallery media, the media is listed in activity. If you click on that the commented media does not open in lightbox at the moment.

    2. Most probably, your theme is also using the same lightbox, so removing it has no effect. try disabling the lightbox completely. Also, I checked with the most recent version and the keyboard navigation worked fine for me (on Linux ) .

  • Keymaster
    (BuddyDev Team)
    Posts: 24611
    Brajesh Singh on in reply to: Browse media? #728

    Hi A,
    I am sorry due to the release of MediaPress I was not able to focus here.

    Can you please upgrade and check if it is resolved.