Shape the future of Social networking with WordPress: Join Project Midnight Sun! The next generation platform for community building with WordPress!

BuddyDev

Search

Replies

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: [Resolved] Conditional Logic Plugin #6742

    Hi Dave,
    Thank you for posting. I just sent a reply to your email.

    You do not need the conditional fields plugin for this project. I will be looking at this plugin at the end of this month for further extension( I am not sure if we will have multiple conditions or not yet).

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: mpp Uploader not working #6741

    Hi George,
    It should be gallery_id not gallery-id.

    Please check the documentation here
    https://buddydev.com/mediapress/topics/getting-started/shortcodes/mediapress-uploader-shortcode/

    Please do let me know if that works for you or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: My Initial Feedback on Community-Builder #6728

    Hi Graham,

    Thank you for the details.
    Since WordPress 4.7 released today and BuddyPress 2.7.3 will be releasing today, I am planning another release on 9th(The theme works with WordPress/BuddyPress, The release is just for making some new enhancements)

    I will be taking care of the 1,5,6(I am looking on 6, if that is the case, I need to investigate it) and the Geo Directory support.

    Can you please clarify me about the ajax registration bit. I had it tested before release but I may be missing something there. Will appreciate any pointing there. By login, do you mean the Right panel login form?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Joshua,
    Can you please give it a try after updating the redirect url/site id

    
    
    function buddydev_signup_page_redirect() {
    	$redirect_to_url = "https://account.artofwargaming.net/signup"; //please change
    	$account_site_id = 3;//please change
    
    	if ( bp_is_register_page() && ! get_current_blog_id() == $account_site_id ) {
    
    		wp_redirect($redirect_to_url, 301);//permanent redirect
    		exit(0);
    	}
    }
    add_action( 'bp_template_redirect', 'buddydev_signup_page_redirect' );
    
    

    Please do let me know if it works or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Joshua,
    I am posting the code today. If you can get the site id of the accounts sites( you can from Network ASdmin->Sites screen), Our implementation will be super easy. I will post here with a dummy id for now.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Video Thumbnails? #6724

    Hi Daryl,
    Welcome to BuddyDev.

    Thank you for posting the question. At the moment, MediaPress does not support generating thumbnails from Video. In future, we do have plans to add a free or paid plugin that allows converting videos/extracting thumbnails.

    The problem is, to extract thumbnail you need executable like FFMPEG and a way to maintain a queue. This is going to need significant time and is low on our priority.

    Here is a solution though. Any plugin that works with WordPress uploaded videos and extract thumbnails will work with MediaPress out of the box.

    I had a look at the list but none of the current plugins have proper support for queuing and that’s why I am not making any suggestion here.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Missing some traductions in BuddyBlog #6722

    Hi Herve,
    Have you had the chance to look at the translation?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: Hide profile administrator #6721

    Hi Julien,
    Please add the following code to your bp-custom.php too

    
    
    function buddydev_redirect_from_admin_profile() {
    	//not a profile page or viewing own profile page,  no redirect
    	if ( ! bp_is_user() || bp_is_my_profile() ) {
    		return;
    	}
    
    	//check if the user is admin?
    	//there are multiple ways to do it, I will show for Super admin
    	//You can use user_can(bp_displayed_user_id(), 'cap_name' ) too, Make sure to change cap name to appropriate cap
    
    	$redirect_url = site_url('/why-did-i-get-redirected');//or any url
    
    	if ( is_super_admin( bp_displayed_user_id() ) ) {
    		bp_core_redirect( $redirect_url );
    	}
    
    }
    
    add_action( 'bp_template_redirect', 'buddydev_redirect_from_admin_profile' );
    
    

    Change the redirect url as you please.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273

    Hi Ian,
    Welcome to BuddyDev.

    Please put this in your bp-custom.php

    
    /**
     * Set default redirect to profile group id of your choice on the Edit Profile
     *  instead of teh profile group 1 when someone opens members/name/profile/edit page
     *
     */
    function buddydev_custom_default_redirect_profile_group () {
    
    	if ( ! bp_is_my_profile() && ! bp_current_user_can( 'bp_moderate' ) ) {
    		return false;
    	}
    
    	$profile_group_id = 2;//change it to whatever
    
    	// Make sure a group is set.
    	if ( ! bp_action_variable( 1 ) ) {
    		bp_core_redirect( trailingslashit( bp_displayed_user_domain() . bp_get_profile_slug() . '/edit/group/'. $profile_group_id ) );
    	}
    }
    add_action( 'bp_screens', 'buddydev_custom_default_redirect_profile_group', 2 );
    
    

    You can change the profile_group_id to the id of the default group you want to be visible.

    Hope that helps.

    Regards
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25273
    Brajesh Singh on in reply to: No Featured Image Option #6719

    Hi Justin,
    Sure. I won’t update today on your site though. Will do that early tomorrow.

    Thank you
    Brajesh