Replies
- Ravi on June 23, 2016 at 2:09 pm in reply to: [Resolved] Custom BuddyPress/Blog fields and Blog submenu #4365
Hi Skryfnet,
This might be a case of code copy and pasting. Please try again copy and paste the code in your bp-custom.php file. If still you got this error send me the complete code of your bp-custom.php file.
Thank You
Ravi Hi Christian,
Thank You for your acknowledgement.
Hi Webg,
Welcome to BuddyDev. Which version of WordPress and BuddyPress you are using. Also let me know are you dealing with WordPress Multisite.
Thank You
Ravi- Ravi on June 18, 2016 at 6:05 pm in reply to: [Resolved] Custom BuddyPress/Blog fields and Blog submenu #4308
Hi Skryfnet,
Welcome to Buddydev. If You are familiar with translation you can modify it from the .po file and use the following code in you bp-custom.php file to list the site categories
function buddydev_site_categories_tab() { $bp = buddypress(); $user_url = bp_loggedin_user_domain(); bp_core_new_subnav_item( array( 'name' => __('Site Categories'), 'slug' => 'categories', 'parent_url' => trailingslashit( $user_url . $bp->buddyblog->slug ), 'parent_slug' => $bp->buddyblog->slug, 'screen_function' => 'buddydev_screen_site_categories', 'position' => 30, ) ); } add_action( 'bp_setup_nav', 'buddydev_site_categories_tab', 100 ); function buddydev_screen_site_categories() { add_action( 'bp_template_content', 'buddydev_render_site_categories_content' ); bp_core_load_template( array( 'members/single/plugins' ) ); } function buddydev_render_site_categories_content() { wp_list_categories(array( 'hide_empty' => false )); }Thank You
Ravi - Ravi on June 18, 2016 at 4:28 am in reply to: [Resolved] BP Force Profile Photo – red notification message remains #4306
Hi Petra,
Thank You for this acknowledgement. I am glad that I could help.
- Ravi on June 17, 2016 at 10:45 pm in reply to: [Resolved] Required fields and Conditional Profile Fields for BuddyPress #4299
- Ravi on June 17, 2016 at 10:41 pm in reply to: [Resolved] BP Force Profile Photo – red notification message remains #4298
Hi Petra,
Thank You for posting. Please use the following code in your current theme ‘functions.php’
function buddydev_remove_upload_avatar_error_message() { if( ! function_exists( 'buddypress' ) || ! bp_is_user_change_avatar() ) { return ; } ?> <script type="text/javascript"> jQuery(document).ready( function() { if( typeof bp == 'undefined' || typeof bp.Avatar =='undefined' ) { return; } bp.Avatar.Attachment.on("change:url", function (data) { jQuery("#message").remove(); }); }); </script> <?php } add_action( 'wp_footer', 'buddydev_remove_upload_avatar_error_message' );Let me know. If it works or not.
Thank You
Ravi - Ravi on June 17, 2016 at 9:26 pm in reply to: [Resolved] Required fields and Conditional Profile Fields for BuddyPress #4296
Hi Petra,
Welcome to BuddyDev. Can you please provide me the screen-shot of your fields settings in backend. It will be good to look into this issue.
Thank You
Ravi - Ravi on June 15, 2016 at 9:38 pm in reply to: Extended Friendship Request Plugin – add radio buttons #4259
Hi Steven,
Thank You for your acknowledgement. Yes it can be easily. Please modify the following code of file name “bp-extended-friendship-request.php” on line no. 336
for message content replace this line$message = $_POST['friendship_request_message'];with
$message = '<div class="class-for-message-content">'. $_POST['friendship_request_message'] .'</div>';and for selected radio button
$message = $message.__(' "Know you from - ', 'bp-ext-friends-request' ).$info[$additional_info].'"';replace with
$info = '<div class="class-for-selected-radio">'.__(' Know you from - ', 'bp-ext-friends-request' ).$info[$additional_info].'</div>'; $message = $message.$info;Thank You
Ravi- This reply was modified 10 years, 4 months ago by
Ravi.
- This reply was modified 10 years, 4 months ago by
Hi Jemma,
Thank You for your acknowledgement. I am glad that I could help.
Thank You
Ravi