Replies
- Brajesh Singh on November 22, 2018 at 5:49 pm in reply to: [Resolved] Uncaught ReferenceError: tinymce is not defined #18926
Please try clearing browser cache.
Yes, BuddyBlog enables the tinyMCE that you see in the dashboard while editing post. In other words, It does allow changing text style etc.
Regards
Brajesh - This reply has been marked as private.
- Brajesh Singh on November 22, 2018 at 4:43 pm in reply to: [Resolved] Media Press gallery images disappear when deleting junk member requests to join #18921This reply has been marked as private.
- Brajesh Singh on November 22, 2018 at 4:40 pm in reply to: [Resolved] Remove the subject line requirement in messages? #18920
Hi Carsten,
If you ceate a js file, you will need the code to load it too.Since it is just 2 lines of code, My suggestion will be to put it in one of the js file provided by theme. Look for a file named buddypress.js and you can put the code inside the dom ready section there. If you are using a custom theme, you may ask there(or check their documents) to see if there is any custom js file supported.
Regards
Brajesh - Brajesh Singh on November 22, 2018 at 4:36 pm in reply to: [Resolved] buddypress Deactivate Account Plugin #18919
Hi Jeff,
Please remove the code from p-deactivate-functions.php and put it in wp-content/plugins/bp-custom.php
If there is no bp-custom.php, please create a php file named bp-custom.php
Regards
Brajesh - Brajesh Singh on November 22, 2018 at 4:34 pm in reply to: [Resolved] Uncaught ReferenceError: tinymce is not defined #18918
Hi Irina,
on 4.9.8 it is part of the core.My guess is it is either Youzer or the theme. Try disabling Youzer and then checking it.
If that does not work and if the site is still in development, please try switching theme and checking again.
Let me know what you find there.
Regards
Brajesh Hi Irina,
The Form supports dropdown but BuddyBlog does not uses it currently. If you can tell me the taxonomy(category, tags or custom taxonomy), I can help with some code to make it use selectbox.
I will add it as a setting option in future version of BuddyBlog.
Thank you
Brajesh- Brajesh Singh on November 22, 2018 at 4:29 pm in reply to: Setting Member Types (with Members Types Pro) on user-new.php form #18916
Sure, Here is the functiona updated again.
function mktbn_user_register( $user_id ) { if ( function_exists( 'mikakoo_log' ) ) { mikakoo_log( 'user_register: ' . $user_id ); } if ( ! empty( $_POST['MemberType'] ) && function_exists( 'bp_set_member_type' ) ) { bp_set_member_type( $user_id, $_POST['MemberType'] ); } $user = get_user_by( 'id', $user_id ); // if member type submitted and valid user and the person adding user is super admin // then set role too. if ( $user && ! empty( $_POST['MemberType'] ) && is_super_admin() ) { $user->set_role($_POST['MemberType'] ); } }Regards
Brajesh - Brajesh Singh on November 22, 2018 at 2:31 pm in reply to: Setting Member Types (with Members Types Pro) on user-new.php form #18912
HI Jeff,
Thank you. Your code is correct. If it is giving 500 error, It means one of the used function does not exist.I have slightly modified the function, Please change the function with this one and then let me know if it works or not?
function mktbn_user_register( $user_id ) { if ( function_exists( 'mikakoo_log' ) ) { mikakoo_log( 'user_register: ' . $user_id ); } if ( ! empty( $_POST['MemberType'] ) && function_exists( 'bp_set_member_type' ) ) { bp_set_member_type( $user_id, $_POST['MemberType'] ); } }Regards
Brajesh - Brajesh Singh on November 22, 2018 at 2:09 pm in reply to: Setting Member Types (with Members Types Pro) on user-new.php form #18909
Hi Jeff,
Please share the complete code for function mktbn_user_register()Most probably there is some syntaxt error causing it.
Regards
Brajesh