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: 25239
    Brajesh Singh on in reply to: [Resolved] buddypress multisite not working #2067

    Hi Sanjiv,
    Thank you. Can you please confirm if a user registering from a subdomain is getting added to that site ?

    The default configuration of Multi network allows users to be visible in the members directory of the main site(network) and the sites which they have joined.

    If a User has registered on subdomain1 and wants to join another subdomain(network), you will need to install the widget like Add User to blog widget or similar.

    If you want to disable the default listing on the main site, I can provide the code to disable that.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25239
    Brajesh Singh on in reply to: Deactivating BuddyBlog breaking all post links #2065

    Hi Kurosei,
    Welcome to BuddyDev forums.

    BuddyBlog on its own can not break the url after deactivation. Is there a chance that you are using some custom code related to BuddyBlog which is still there in your bp-custom.php or functions.php?

    Also, Can you post the example url of single post, that will give me a definite idea of the thing.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25239
    Brajesh Singh on in reply to: [Resolved] buddypress multisite not working #2064

    Hi Sanjiv,
    Welcome to BuddyDev forums.
    Before providing a solution, I need to know a few things.

    1. Is the user added as subscriber on sub domain?(or with any other role)

    2. Do you want users to be restricted to their subdomain.

    This plugin allows creating separate networks but does not redirect on its own. I can supply the code for that but before that I need to know what you are looking to accomplish here.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25239
    Brajesh Singh on in reply to: [Resolved] Limit backend editing in Buddyblog #2059

    You are most welcome 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25239
    Brajesh Singh on in reply to: Disable multi upload #2057

    Hi Neiji,
    Welcome to BuddyDev forums.
    Thank you for using MediaPress.

    To disable the multiple file selection, you can put the following line in your bp-custom.php

    
    
    add_filter( 'mpp_upload_default_settings', 'mpp_allow_single_file_selection_only');
    
    function mpp_allow_single_file_selection_only( $settings ) {
    	
    	$settings['multi_selection'] = false;
    	
    	return $settings;
    }
    
    

    That will limit the selection of one at a time but will not stop users from selecting multiple files. Now, since we don’t want users to upload more than one file at a time, we will take a little help from javascript.

    Please put this js in your theme’s js file

    
    jQuery( document ).ready( function () {
    	
    		
    	if( _mppData == undefined ) {
    		return ;
    	}
    	
    	mpp.guploader.isRestricted = check_file_limit;
    	mpp.activity_uploader.isRestricted = check_file_limit;
    
    		
    	function check_file_limit( uploader, file ) {
    		//clear any error we had earlier
    		jQuery('#message').remove();
    	
    		var size = uploader.files.length;
    		//allow selecting/uploading
    		if(  size <=1 ) {
    			return false;//no restriction
    		}
    		//remove file from queue
    		uploader.removeFile( file );
    		uploader.refresh();
    		//remove the feedback that we added
    		this.removeFileFeedback( file );
    		//notify error message
    		mpp.notify( "Only one file can be uploaded at a time", 1 );
    
    		return true; //yes, this should be restricted
    			
    	}
    
    });
    
    

    That’s all you will need to do. Please try it and let me know if that works for you or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25239
    Brajesh Singh on in reply to: Buddyblog, images/media support. #2055

    Hi Peter,
    Thank you for asking. I do understand that when not using custom post type, It is an issue. Either it is all on profile or none on profile.

    If we can give the option to select allowed terms from the admin, It can be easily done. Please give me 1-2 day and I will do something better about it(giving settings instead of the php filters).

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25239
    Brajesh Singh on in reply to: Buddyblog, images/media support. #2047

    Hi Peter,
    No worries. I was about to reply your old message when I saw the new one.

    It is finally good to know that everything is working. Thank you for your patience with me and helping to move our editor to the next level. I am sure, It is going to be a lot helpful for others.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25239
    Brajesh Singh on in reply to: [Resolved] Limit backend editing in Buddyblog #2045

    Hi Jon,
    Thank you. I am glad that you are liking it.

    You should try “edit_users”. That will only allow site admins to edit in the backend.
    For more fine grained control, you may want to look at this table

    https://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table

    Hope that helps.

  • Keymaster
    (BuddyDev Team)
    Posts: 25239

    Hi,
    I am sorry but I am unable to even produce the thing by editing others gallery. When in admin, if I edit a user’s gallery it remains theirs. I have tried a few combinations but nothing came.

    Can you please post your configuration( Assuming you are looking for a solution that the ownership has changed for the galleries or is the other issue still there?)

  • Keymaster
    (BuddyDev Team)
    Posts: 25239
    Brajesh Singh on in reply to: [Resolved] How to Create a Custom Page for Groups? #2037

    Hi Hans,
    I will add the front end in a day or two. Sorry about delaying that.