BuddyDev

Search

Replies

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

    Hi Sanjiv,
    My apologies for delayed reply due to weekend.

    Can you please clarify me what the plugin is doing and what you want? This plugin does not restrict users and It works as it is mentioned on the plugin page. It does add users to the site they register(or subdomain ). I have mentioned that the users are visible on main site and the site they register on.

    I am happy to provide support for your specific need here but please read my prequestions and let me know so that I can help quickly.

  • Keymaster
    (BuddyDev Team)
    Posts: 25130
    Brajesh Singh on in reply to: Change Menu (Gallery) #2079

    Hi Nestro,
    Thank you for using MediaPress.

    1. You will need to localize the strings for these labels. Since you have downloaded the plugin from github, It is named “mediapress-master”. To make the translation work please rename the folder to “mediapress” and then reactivate and translate the plugin.

    More details on translations here
    https://buddydev.com/mediapress/topics/getting-started/translating/translating-mediapress-into-your-local-language/

    Hope that helps.

    Regards
    Brajesh

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

    Hi Hans,
    Sure. We will have it tonight or latest by day tomorrow(Indian time ).

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25130

    Hi Leo,
    I am sorry but I could not understand your goal here.

    If you are looking for a way to filter out all MediaPress activity please use the activity type as

    “mpp_media_upload”

    Also, to post the code please use backtick in the forum(`). That will make your code readable.

    Please do let me know if the activity type worked for you or not?

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25130
    Brajesh Singh on in reply to: [Resolved] testimonials #2076

    Hi Jan,
    Thank you for asking.

    Can you work with localization? Please look into languages directory inside the plugin and you will see the po file. Translate it that will work.

    Please do let me know if you can work with that otherwise, you may provide me the translation strings and I can translate and provide it back to you if you are not familiar with localization.

    Thank you
    Brajesh

  • Keymaster
    (BuddyDev Team)
    Posts: 25130
    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: 25130
    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: 25130
    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: 25130
    Brajesh Singh on in reply to: [Resolved] Limit backend editing in Buddyblog #2059

    You are most welcome 🙂

  • Keymaster
    (BuddyDev Team)
    Posts: 25130
    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