Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'wordpress'

Viewing 25 results - 7,451 through 7,475 (of 32,678 total)
  • Author
    Search Results
  • #246918
    tonydjukic
    Participant

    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.

    #246912

    In reply to: How to fix Activations

    r-a-y
    Keymaster

    – Make sure email is working from WordPress.
    – Tell users to check their spam folder.

    If that doesn’t work, some have had success with the following plugin(s):
    – Mail From: https://wordpress.org/plugins/search.php?type=term&q=mail+from
    – A plugin that sends email via SMTP instead of PHP: https://wordpress.org/plugins/tags/smtp

    #246908
    froster2
    Participant

    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; ?>
    #246905
    asabetyyy
    Participant

    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?

    #246899
    danbp
    Participant
    #246881
    Juljan.By
    Participant

    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:36

    It 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.

    #246859
    ITGH
    Participant

    BuddyPress version: 2.4.0
    WordPress version: 4.3

    Hi,

    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

    #246857
    r-a-y
    Keymaster

    Thanks @joost-abrhahams.

    I’ve filed a ticket here:
    https://buddypress.trac.wordpress.org/ticket/6738

    We’ll get this fixed for v2.4.1.

    #246853

    In reply to: Membership Plugin

    jscmal
    Participant

    Hi, I use Simple WordPress Membership Plugin. It works.

    #246848
    DerAphelion
    Participant

    Great work!

    I´m REALY new in WordPress/Buddypress.
    Now i have a question:

    How can i do it in another language now (Buddypress), in this case german needed?

    greetings

    Aphelion

    #246838
    r-a-y
    Keymaster

    We have deprecated support for the bp-default theme since v1.9:
    The future of the bp-default theme

    That being said, we can look into supporting this feature in bp-default for BP v2.5.0.

    #246834
    r-a-y
    Keymaster

    You might have to do a fresh install because BuddyPress 2.4.0 uses new code for the /groups/single/home.php template:
    https://buddypress.trac.wordpress.org/browser/tags/2.4.0/src/bp-templates/bp-legacy/buddypress/groups/single/home.php#L75

    The code you listed above is older code.

    If you already have those changes, then I’m guessing you are using a custom theme with BuddyPress support that has overriden the groups/single/home.php template. If that is the case, you’ll have to change the group home template to use these new lines.

    #246831
    PriR
    Participant

    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!

    #246827
    r-a-y
    Keymaster

    Since you modified the home.php template, you have to make some adjustments so the new changes will work.

    Read the bpdevel post on this:
    Get Ready! 2.4.0 will introduce important changes in Groups homes

    Especially the last section – Changes in 2 templates.

    #246826
    Michael Kracke
    Participant

    This is a theme I have hand built, so there may be something that I don’t have correct.

    I am using WordPress: 4.3.1 and BuddyPress 2.4.0

    I have gone through and tried deactivating plugins and still no luck. All plugins are up-to-date. Problem seemed to occur when i would create a new field group and delete it. It almost seems like if I had a field then deleted it, it would show up again but as the Name field which is not deletable.

    #246823
    ml413
    Participant

    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!

    #246818
    shanebp
    Moderator

    Please use the code button when sharing code.
    For long pieces of code, please use a service like gist.

    You can submit an enhancement ticket here. Please search the existing tickets first for entries that already make the same request.

    #246814
    Dono12
    Participant

    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:

    BP Posts On Profile

    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] = &quot;http://....com/wp-content/uploads/2015/10/userpost.jpg&quot;;
    endif;
    
    echo '<li class=&quot;sidebar mostpop post-' . $post->ID . '&quot;><span id=&quot;postimage&quot;><a>ID) . '&quot;><img src=&quot;' . $image[0] . '&quot; /></a></span><div id=&quot;postinfo&quot;><a>ID) . '&quot;>' . get_the_title($post->ID) . '</a></div></li>';
    }
    echo '</ul>';
    wp_reset_postdata();
    } else { ?>
    <div class=&quot;info&quot; id=&quot;message&quot;>
    <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( &quot;SELECT COUNT(*) FROM $wpdb->posts $where&quot; );
    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.

    #246808
    josephz94
    Participant

    I haven’t uploaded anything to cloud services no, should I?

    The following is displayed in my JS console during page load:
    calling a builtin Map constructor without new is deprecated and will be forbidden in ES6 GsqdpfQrJbQ.js:332:580
    calling a builtin Set constructor without new is deprecated and will be forbidden in ES6 GsqdpfQrJbQ.js:332:580
    The content did not change when I pressed the button or when I tried refreshing after the button.

    I have tested it without and it behaves the same

    To enable multi-network on WordPress we have used the plugin WP Multi Network. We have not done anything to BuddyPress? Should we have done something to it? As a school we have multiple networks to support the different populations, general sites, faculty sites, and student sites.

    #246789
    UgoDimma
    Participant

    Hey @webgirl

    Thanks for your response.

    Just as I said, am running buddypress v2.3.4 with wordpress 4.3.1

    Am using WPLMS theme by Mr. Vibe It is deeply integrated with buddypress for maximum compatibility, but I don’t know to what extend.

    Some plugins am using includes but not limited to;

    • Vibe course module
    • Vibe custom type
    • WooCommerce
    • BBPress
    • WPLMS Assignment
    • WPLMS Dashboard
    • WPLMS Events
    • and some other ones.

    The plugins am using, has nothing to do with the sidebar other than to add their own widget if need be. But in the theme files, there are a lot of buddypress instances there.

    #246776
    Charla
    Participant

    What plugins are you using?
    Version of Buddypress and WordPress Installation?
    Are you using custom sidebars?

    These answers will help others better help you.

    If you are using a custom theme, make sure that you’re using the correct Template Hierarchy explained here. https://codex.buddypress.org/themes/theme-compatibility-1-7/template-hierarchy/

    UgoDimma
    Participant

    Hey Buddies

    Am running buddypress v2.3.4 with wordpress 4.3.1.

    Sidebar does not appear at the user’s profile, unless am on capability slug, which is accessible only by the admin, but in every other page of the user profile, no sidebar at all. you can have a look at the images bellow.

    The first is with sidebar, which is the way I want it to appear in every other page of the user profile ranging from the activity, but it only appear when viewing capability slug and no other place.
    profile page with sidebar

    The other images are profile pages without sidebar, you can have a look at them as well for better understanding of what i want.

    profile page without sidebar. Wrong partern.

    Wrong partern. No sidebar

    Please, I want to enforce the sidebar to appear in ALL profile page and slug by all users.

    NOTE: The first with sidebar is a page accessible by the admin only, as you can see, which mean, sidebar is not included anywhere for other user rol/level.

    I would have provided a link, but the site is still under development.

    #246769
    d1.psy
    Participant

    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

    #246766
    BobSD99
    Participant

    I think you may want the funtion wp_extract_urls().

    So for example:

    $url = wp_extract_urls( xprofile_get_field_data( '23', $user->ID ) );
    echo "URL: $url[0]";

    New to WP coding but this worked for me…

    #246765
    Sweeny
    Participant

    Hello,

    I have the same problem installing the WOFFICE-theme (http://themeforest.net/item/woffice-intranetextranet-wordpress-theme/11671924).

    Warning: Creating default object from empty value in C:\xampp\htdocs\home\wp-content\plugins\buddypress\bp-xprofile\bp-xprofile-functions.php on line 258
    Fatal error: Call to undefined method stdClass::save() in C:\xampp\htdocs\home\wp-content\plugins\buddypress\bp-xprofile\bp-xprofile-functions.php on line 275

    Sweeny

Viewing 25 results - 7,451 through 7,475 (of 32,678 total)
Skip to toolbar