Replies
- Brajesh Singh on December 17, 2015 at 9:54 am 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 - Brajesh Singh on December 17, 2015 at 12:04 am in reply to: [Resolved] Limit backend editing in Buddyblog #2059
You are most welcome 🙂
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
BrajeshHi 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
BrajeshHi 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- Brajesh Singh on December 16, 2015 at 3:44 pm 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 tablehttps://codex.wordpress.org/Roles_and_Capabilities#Capability_vs._Role_Table
Hope that helps.
- Brajesh Singh on December 15, 2015 at 9:40 am in reply to: BP MediaPress- not showing galleries in user profiles anymore #2038
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?)
- Brajesh Singh on December 15, 2015 at 9:38 am 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. Hi Peter,
have you had a chance to use the plugin?Thank you
Brajesh- Brajesh Singh on December 15, 2015 at 8:51 am in reply to: [Resolved] BP Force Profile Photo Plugin – Red Notification Bar Not Showing Up Anymore #2035
Hi Vicki,
Here is a screenshot showing the current plugin in action with twenty fifteen. Haven’t checked with twenty fourteen, but since both the themes use template pack, It should be fine.http://i.imgur.com/EwEtS3g.png
PS: I have updated the plugin again with some database issue fixed, Please upgrade to 1.0.3 and see if that fixes the issue.