Search Results for 'wordpress'
-
Search Results
-
I found an old plugin (https://wordpress.org/plugins/bp-edit-group-slug/… over 5 years since last update though) that allows for easy updating of group slugs… …was wondering if there was a more recent option and also wondering why this isn’t an existing option in BP the way it is in WP?
I’m about to hand a site over to a client that, according to the people on my team that have worked with them before, are prone to errors… …so I’m fairly certain their going to name groups incorrectly when they create them and then end up calling me every time they notice the slug doesn’t match the name. I know I can do it in phpMyAdmin (already did earlier today) but would really just rather be able to include a “How to change the url of your group” in the documentation we’re providing them.
This is a quick fix until https://buddypress.trac.wordpress.org/ticket/5373 is resolved and should only be used with caution as it edits core files. Future updates should be changed file by file. Not recommended for everyone!
Remove following code from buddypress/bp-members/bp-members-screens.php Line 129 – 154
// Now we've checked account details, we can check profile information. if ( bp_is_active( 'xprofile' ) ) { // Make sure hidden field is passed and populated. if ( isset( $_POST['signup_profile_field_ids'] ) && !empty( $_POST['signup_profile_field_ids'] ) ) { // Let's compact any profile field info into an array. $profile_field_ids = explode( ',', $_POST['signup_profile_field_ids'] ); // Loop through the posted fields formatting any datebox values then validate the field. foreach ( (array) $profile_field_ids as $field_id ) { if ( !isset( $_POST['field_' . $field_id] ) ) { if ( !empty( $_POST['field_' . $field_id . '_day'] ) && !empty( $_POST['field_' . $field_id . '_month'] ) && !empty( $_POST['field_' . $field_id . '_year'] ) ) $_POST['field_' . $field_id] = date( 'Y-m-d H:i:s', strtotime( $_POST['field_' . $field_id . '_day'] . $_POST['field_' . $field_id . '_month'] . $_POST['field_' . $field_id . '_year'] ) ); } // Create errors for required fields without values. if ( xprofile_check_is_required_field( $field_id ) && empty( $_POST[ 'field_' . $field_id ] ) && ! bp_current_user_can( 'bp_moderate' ) ) $bp->signup->errors['field_' . $field_id] = __( 'This is a required field', 'buddypress' ); } // This situation doesn't naturally occur so bounce to website root. } else { bp_core_redirect( bp_get_root_domain() ); } }Remove following code from buddypress/bp-members/bp-members-screens.php Line 204 – 231
// Make sure the extended profiles module is enabled. if ( bp_is_active( 'xprofile' ) ) { // Let's compact any profile field info into usermeta. $profile_field_ids = explode( ',', $_POST['signup_profile_field_ids'] ); // Loop through the posted fields formatting any datebox values then add to usermeta - @todo This logic should be shared with the same in xprofile_screen_edit_profile(). foreach ( (array) $profile_field_ids as $field_id ) { if ( ! isset( $_POST['field_' . $field_id] ) ) { if ( ! empty( $_POST['field_' . $field_id . '_day'] ) && ! empty( $_POST['field_' . $field_id . '_month'] ) && ! empty( $_POST['field_' . $field_id . '_year'] ) ) { // Concatenate the values. $date_value = $_POST['field_' . $field_id . '_day'] . ' ' . $_POST['field_' . $field_id . '_month'] . ' ' . $_POST['field_' . $field_id . '_year']; // Turn the concatenated value into a timestamp. $_POST['field_' . $field_id] = date( 'Y-m-d H:i:s', strtotime( $date_value ) ); } } if ( !empty( $_POST['field_' . $field_id] ) ) $usermeta['field_' . $field_id] = $_POST['field_' . $field_id]; if ( !empty( $_POST['field_' . $field_id . '_visibility'] ) ) $usermeta['field_' . $field_id . '_visibility'] = $_POST['field_' . $field_id . '_visibility']; } // Store the profile field ID's in usermeta. $usermeta['profile_field_ids'] = $_POST['signup_profile_field_ids']; }Remove following code from buddypress/bp-templates/bp-legacy/buddypress/members/register.php Line 143 – 247
<?php if ( bp_is_active( 'xprofile' ) ) : ?> <?php /** * Fires before the display of member registration xprofile fields. * * @since 1.2.4 */ do_action( 'bp_before_signup_profile_fields' ); ?> <div class="register-section" id="profile-details-section"> <h4><?php _e( 'Profile Details', 'buddypress' ); ?></h4> <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <div<?php bp_field_css_class( 'editfield' ); ?>> <?php $field_type = bp_xprofile_create_field_type( bp_get_the_profile_field_type() ); $field_type->edit_field_html(); /** * Fires before the display of the visibility options for xprofile fields. * * @since 1.7.0 */ do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: %s', 'buddypress' ), '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>' ); ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a> </p> <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> <fieldset> <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend> <?php bp_profile_visibility_radio_buttons() ?> </fieldset> <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a> </div> <?php else : ?> <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: %s', 'buddypress' ), '<span class="current-visibility-level">' . bp_get_the_profile_field_visibility_level_label() . '</span>' ); ?> </p> <?php endif ?> <?php /** * Fires after the display of the visibility options for xprofile fields. * * @since 1.1.0 */ do_action( 'bp_custom_profile_edit_fields' ); ?> <p class="description"><?php bp_the_profile_field_description(); ?></p> </div> <?php endwhile; ?> <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_field_ids(); ?>" /> <?php endwhile; endif; endif; ?> <?php /** * Fires and displays any extra member registration xprofile fields. * * @since 1.9.0 */ do_action( 'bp_signup_profile_fields' ); ?> </div><!-- #profile-details-section --> <?php /** * Fires after the display of member registration xprofile fields. * * @since 1.1.0 */ do_action( 'bp_after_signup_profile_fields' ); ?> <?php endif; ?>Remove following code from buddypress/bp-themes/bp-default/registration/register.php Line 61 – 207
<?php if ( bp_is_active( 'xprofile' ) ) : ?> <?php do_action( 'bp_before_signup_profile_fields' ); ?> <div class="register-section" id="profile-details-section"> <h4><?php _e( 'Profile Details', 'buddypress' ); ?></h4> <?php /* Use the profile field loop to render input fields for the 'base' profile field group */ ?> <?php if ( bp_is_active( 'xprofile' ) ) : if ( bp_has_profile( array( 'profile_group_id' => 1, 'fetch_field_data' => false ) ) ) : while ( bp_profile_groups() ) : bp_the_profile_group(); ?> <?php while ( bp_profile_fields() ) : bp_the_profile_field(); ?> <div class="editfield"> <?php if ( 'textbox' == bp_get_the_profile_field_type() ) : ?> <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> <?php do_action( bp_get_the_profile_field_errors_action() ); ?> <input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" /> <?php endif; ?> <?php if ( 'textarea' == bp_get_the_profile_field_type() ) : ?> <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> <?php do_action( bp_get_the_profile_field_errors_action() ); ?> <textarea rows="5" cols="40" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_edit_value(); ?></textarea> <?php endif; ?> <?php if ( 'selectbox' == bp_get_the_profile_field_type() ) : ?> <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> <?php do_action( bp_get_the_profile_field_errors_action() ); ?> <select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>"> <?php bp_the_profile_field_options(); ?> </select> <?php endif; ?> <?php if ( 'multiselectbox' == bp_get_the_profile_field_type() ) : ?> <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> <?php do_action( bp_get_the_profile_field_errors_action() ); ?> <select name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" multiple="multiple"> <?php bp_the_profile_field_options(); ?> </select> <?php endif; ?> <?php if ( 'radio' == bp_get_the_profile_field_type() ) : ?> <div class="radio"> <span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span> <?php do_action( bp_get_the_profile_field_errors_action() ); ?> <?php bp_the_profile_field_options(); ?> <?php if ( !bp_get_the_profile_field_is_required() ) : ?> <a class="clear-value" href="javascript:clear( '<?php bp_the_profile_field_input_name(); ?>' );"><?php _e( 'Clear', 'buddypress' ); ?></a> <?php endif; ?> </div> <?php endif; ?> <?php if ( 'checkbox' == bp_get_the_profile_field_type() ) : ?> <div class="checkbox"> <span class="label"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></span> <?php do_action( bp_get_the_profile_field_errors_action() ); ?> <?php bp_the_profile_field_options(); ?> </div> <?php endif; ?> <?php if ( 'datebox' == bp_get_the_profile_field_type() ) : ?> <div class="datebox"> <label for="<?php bp_the_profile_field_input_name(); ?>_day"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> <?php do_action( bp_get_the_profile_field_errors_action() ); ?> <select name="<?php bp_the_profile_field_input_name(); ?>_day" id="<?php bp_the_profile_field_input_name(); ?>_day"> <?php bp_the_profile_field_options( 'type=day' ); ?> </select> <select name="<?php bp_the_profile_field_input_name(); ?>_month" id="<?php bp_the_profile_field_input_name(); ?>_month"> <?php bp_the_profile_field_options( 'type=month' ); ?> </select> <select name="<?php bp_the_profile_field_input_name(); ?>_year" id="<?php bp_the_profile_field_input_name(); ?>_year"> <?php bp_the_profile_field_options( 'type=year' ); ?> </select> </div> <?php endif; ?> <?php if ( 'url' == bp_get_the_profile_field_type() ) : ?> <label for="<?php bp_the_profile_field_input_name(); ?>"><?php bp_the_profile_field_name(); ?> <?php if ( bp_get_the_profile_field_is_required() ) : ?><?php _e( '(required)', 'buddypress' ); ?><?php endif; ?></label> <input type="text" name="<?php bp_the_profile_field_input_name(); ?>" id="<?php bp_the_profile_field_input_name(); ?>" value="<?php bp_the_profile_field_edit_value(); ?>" <?php if ( bp_get_the_profile_field_is_required() ) : ?>aria-required="true"<?php endif; ?>/> <?php endif; ?> <?php do_action( 'bp_custom_profile_edit_fields_pre_visibility' ); ?> <?php if ( bp_current_user_can( 'bp_xprofile_change_field_visibility' ) ) : ?> <p class="field-visibility-settings-toggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> <a href="#" class="visibility-toggle-link"><?php _ex( 'Change', 'Change profile field visibility level', 'buddypress' ); ?></a> </p> <div class="field-visibility-settings" id="field-visibility-settings-<?php bp_the_profile_field_id() ?>"> <fieldset> <legend><?php _e( 'Who can see this field?', 'buddypress' ) ?></legend> <?php bp_profile_visibility_radio_buttons() ?> </fieldset> <a class="field-visibility-settings-close" href="#"><?php _e( 'Close', 'buddypress' ) ?></a> </div> <?php else : ?> <p class="field-visibility-settings-notoggle" id="field-visibility-settings-toggle-<?php bp_the_profile_field_id() ?>"> <?php printf( __( 'This field can be seen by: <span class="current-visibility-level">%s</span>', 'buddypress' ), bp_get_the_profile_field_visibility_level_label() ) ?> </p> <?php endif ?> <?php do_action( 'bp_custom_profile_edit_fields' ); ?> <p class="description"><?php bp_the_profile_field_description(); ?></p> </div> <?php endwhile; ?> <input type="hidden" name="signup_profile_field_ids" id="signup_profile_field_ids" value="<?php bp_the_profile_group_field_ids(); ?>" /> <?php endwhile; endif; endif; ?> <?php do_action( 'bp_signup_profile_fields' ); ?> </div><!-- #profile-details-section --> <?php do_action( 'bp_after_signup_profile_fields' ); ?> <?php endif; ?>Topic: How to fix Activations
So I installed Buddypress through the use of theme BlackFyre for wordpress. The issue I’m having is that after installing Buddypress, I had to create a blank Registration and Activate pages for Buddypress to associate those pages and work.
But now, when I test it, when a user creates an account, they do not receive an email with the information to log in, and they cannot activate their accounts. How do I fix this?
Hello. Im using default wp theme (Twenty Fifteen) and default BuddyPress plugin.
I got a warning:
"Notice: bp_setup_current_user was called incorrectly. The current user is being initialised without using $wp->init().
Please see Debugging in WordPress for more information. (This message was added in version 1.7.) in public_html\wp-includes\functions.php on line 3622"
Yep. I have “WP_DEBUG” constant as TRUE (it’s my dev environment).
What is wrong here? Is it bug?The warning disappears when i remove the 36 line from the file “bp-core-actions.php”
add_action( 'set_current_user', 'bp_setup_current_user', 10 );
wp-content/plugins/buddypress/bp-core/bp-core-actions.php:36It seems, that plugin’s authors are using some dirty code.
PS I cannot add a bug report on the page https://buddypress.trac.wordpress.org/. I click “login” link, but the page reloaded without changes. This plugin make me sad unfortunatly.
BuddyPress version: 2.4.0
WordPress version: 4.3Hi,
When exporting user data whether it is a few selected fields or 100 in Excel or CSV format, the download speed of the export is slow (15.5KB/s). I have tried this through Microsoft Edge, Firefox Mozilla and Google Chrome. Speeds at our office are 80 Mbps Down/ 80 Mbps up. Grabbing other files (ex: video) from the site that is hosted comes down at a speed greater than 120KB/s. Is there something that needs to be adjusted in terms of a configuration within BuddyPress?
Thank You
Hi guys!
I’m using Woffice theme in my wordpress website. The problem is when i activate the buddypress, i get a server error 500. When this happens, i can’t access neither my website, nor my wp-admin, so i have to delete the buddypress directly by the ftp tool.
I had read that this could be solved by increasing the memory limit on my php.ini, but it’s already at 128M. I have been trying to solve it for a long time, but i can’t make the buddypress work.
Help me please!
Thanks!
Hi,
I’m new to Buddypress (but not WordPress), so I may be missing something obvious here. Our client wants to have several user profile fields that allow users to type in what are essentially tags, e.g., which instruments they play from possibly hundreds of instruments. WordPress tags are perfect for this. They provide an input field with autocompletion, sorting and indexing, auto-generated pages for tags, and so on. WordPress tags also can be set up so that only admin/editor user types can add new tags (e.g., so a basic user doesn’t accidentally add a ‘paino’ tag instead of ‘piano’ as an instrument).I can get this working on the default WordPress user profile by creating a custom taxonomy. However, the default profile fields don’t show up when a normal user edits their buddypress profile.
So I guess there are two questions:
1.) Is there already a way to incorporate tags/taxonomies in a Buddypress profile? The only thing I’m seeing is a text box, but that probably wouldn’t have autocomplete, loses the searchability and sortability of tags, etc. The checkbox and multi-select options will be tough since they may need to pick 6 items out of a few thousand (one of these will be languages, and there are around 7,000 of them!).
2.) If not, is there any documentation or examples of how to get a standard user profile field to show up in Buddypress’ member profile? I’m definitely willing to try custom coding to get it working.
Thanks in advance for any input or suggestions!
Topic: Post On Buddypress Profile
I wish the developers/contributors would add a post on profile button to show user posts in the next update. It makes sense to have this function as it incorporates WordPress and Buddypress respectively. There is only one plugin that I found which accomplished this feet:
by Huseyin Berberoglu. The plugin is out of date and it takes tons of modifications to get it going with an up to date Buddypress install.
The second method is a block of code placed in functions.php
function importSomething(){ return include_once 'bp-custom.php'; } add_action( 'bp_setup_nav', 'buddyboss_child_bp_nav_adder' ); add_action( 'bp_template_content', 'profile_buddyboss_child_loop' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); function buddyboss_child_bp_nav_adder() { global $bp; $post_count = count_user_posts_by_type( $bp->displayed_user->id ); bp_core_new_nav_item( array( 'name' => sprintf( __( 'Posts <span>%d</span>', 'my-poems' ), $post_count ), 'slug' => 'Articles', 'position' => 250, 'show_for_displayed_user' => true, 'screen_function' => 'buddyboss_child_list', 'item_css_id' => 'articles', 'default_subnav_slug' => 'public' )); } function buddyboss_child_list() { add_action( 'bp_template_content', 'profile_buddyboss_child_loop' ); bp_core_load_template( apply_filters( 'bp_core_template_plugin', 'members/single/plugins' ) ); } /*------- This is end of the code for above function ---------*/ function profile_buddyboss_child_loop() { $myposts = get_posts( array( 'posts_per_page' => -1, 'author' => bp_displayed_user_id(), 'post_type' => 'post' )); if( ! empty($myposts) ) { foreach($myposts as $post) { setup_postdata( $post ); if (has_post_thumbnail( $post->ID ) ): $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'sidebar-smallthumbnew' ); else : $image[0] = "http://....com/wp-content/uploads/2015/10/userpost.jpg"; endif; echo '<li class="sidebar mostpop post-' . $post->ID . '"><span id="postimage"><a>ID) . '"><img src="' . $image[0] . '" /></a></span><div id="postinfo"><a>ID) . '">' . get_the_title($post->ID) . '</a></div></li>'; } echo '</ul>'; wp_reset_postdata(); } else { ?> <div class="info" id="message"> <p><strong><?php bp_displayed_user_fullname(); ?></strong> has No posts.</p> </div> <?php } } /* This is end of the code for above function */ remove_filter('bp_setup_nav',''); function count_user_posts_by_type( $userid, $post_type = 'post' ) { global $wpdb; $where = get_posts_by_author_sql( $post_type, true, $userid, true); $count = $wpdb->get_var( "SELECT COUNT(*) FROM $wpdb->posts $where" ); return apply_filters( 'get_usernumposts', $count, $userid ); }This works fine but it’s quite limited. It also messes with Buddypress updates rendering the two latest Buddypress updates useless (Star message, and Upload Background image).
Guys please get around to integrating this ability in Buddypress so one doesn’t have to spend hours searching and trouble shooting for a function which I believe and others should be an already main component.
Hi. I’m trying to change profile tabs position, so it should. I want it to change from this

To something like this
How do I do this? bp-custom.php doesn’t work for me. Still, as I understand, it would just change order of items. This was my code<?php define(‘BP_DEFAULT_COMPONENT’,’groups’); global $bp; $bp->bp_nav[‘Activity’][‘position’] = 30; $bp->bp_nav[‘profile’][‘position’] = 20; $bp->bp_nav[‘notifications’][‘position’] = 10; $bp->bp_nav[‘messages’][‘position’] = 80; $bp->bp_nav[‘friends’][‘position’] = 70; $bp->bp_nav[‘groups’][‘position’] = 60; $bp->bp_nav[‘media’][‘position’] = 50; $bp->bp_nav[‘settings’][‘position’] = 40; add_action( ‘bp_init’, ‘tricks_change_bp_tag_position’, 999 ); add_action( ‘wp_head’, ‘tricks_change_bp_tag_position’,9 ); ?>I’m, using latest BuddyPress and WordPress versions


