Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'buddypress'

Viewing 25 results - 19,551 through 19,575 (of 94,540 total)
  • Author
    Search Results
  • danbp
    Participant

    @tstrickland415, do you use trunk version ?
    BuddyPress 2.3 introduces the member-type-specific directories. But at this time, we are still under BP 2.2.3.1 and my code is for 2.2.x only

    You have to find your own solution. I have no trunk install under hand at the moment, sorry.

    tstrickland415
    Participant

    Ok now everything works as you mentioned, but there’s just one caveat. The xprofile gets updated fine, but it’s not updating the actual Members Type field in the Extended Profile section of the Users panel in the backend.

    To clarify, when we make the xprofile field it’s a completely separate field than the Members Type field that Buddypress introduced recently. So in the Users->Extended Profile section there’s two fields for Member Types, the one we created and the one Buddypress introduced. Your code is only affecting the one we created and not the real Buddypress Member Type field. Is there a way to have the BP Member Type field get updated with the corresponding member type from the xprofile field?

    almase
    Participant

    dont really understand.
    this code?

    	function bp_get_activity_comment_date_recorded() {
    		global $activities_template;
    
    		if ( empty( $activities_template->activity->current_comment->date_recorded ) )
    			return false;
    
    		$date_recorded = bp_core_time_since( $activities_template->activity->current_comment->date_recorded );
    
    		/**
    		 * Filters the recorded date of the activity comment currently being displayed.
    		 *
    		 * @since BuddyPress (1.5.0)
    		 *
    		 * @param string|bool Date for the activity comment currently being displayed.
    		 */
    		return apply_filters( 'bp_activity_comment_date_recorded', $date_recorded );
    	}

    and add to function.php?

    Mickey
    Participant

    I find it very odd that when I send an email from no-reply@mysite from that inbox, messages make it to junk folder in MSN emails. However, when buddypress sends that email, having same address, with some kind of notification, it does not show up anywhere.

    Is this a problem with shared hosting, godaddy? but then again when a regular test email is sent from that inbox it does make it to junk.

    anyone, please?

    #239583
    danbp
    Participant

    Do you want to
    1) show a picture in place of a radio button ?
    2) show a picture related to the radio button (if yes, show pic 1, if no show pic2) ?

    If option 1, see here, see also selectbox, etc
    If option 2, see here, at least for inspiration

    almase
    Participant

    Ok i found here an other code:
    https://buddypress.org/support/topic/activity-time-is-gmt-activity-stream-posted-an-update-time-is-incorrect/

    
    function format_activity_date() {
      $activityDate=bp_get_activity_date_recorded();
      // Get GMT offset from root blog
      $root_blog_offset = get_blog_option( BP_ROOT_BLOG, 'gmt_offset' );
      // Calculate offset time
      $time_offset = $time + ( $root_blog_offset * 3600 );
      // Format the time using the offset and return it; date-i18n retrieves the date in localized format
      return '' . date_i18n("l, M j, Y, g:ia T", strtotime($activityDate) + $time_offset) . '';
    }
    add_filter('bp_activity_time_since', 'format_activity_date');

    The timezone is now the right one for the first posting in stream, but the comments in stream have now the wrong timezone…. 🙁

    Glenn
    Participant

    i’m getting a popup upon first visit to new users profile that i’ve traced to bp-messages-template, namely this code:

    
    if ( is_array( $closed_notices ) ) {
    		if ( !in_array( $notice->id, $closed_notices ) && $notice->id ) {
    			?>
    			<div id="message" class="info notice" rel="n-<?php echo esc_attr( $notice->id ); ?>">
    				<p>
    					<strong><?php echo stripslashes( wp_filter_kses( $notice->subject ) ) ?></strong><br />
    					<?php echo stripslashes( wp_filter_kses( $notice->message) ) ?>
    					<a href="#" id="close-notice"><?php _e( 'Close', 'buddypress' ) ?></a>
    				</p>
    			</div>
    			<?php
    		}
    	}
    

    wherein, SOMEWHERE, i’ve written the word “test” for the subject and message – problem is, i have no idea where to find this to either create a more appropriate message or preferably cancel this popup altogether.

    can someone point me to where I will find the proper way to control this thing?

    danbp
    Participant

    Please have a look to this ticket
    https://buddypress.trac.wordpress.org/ticket/6421

    Don’t hesitate to give more details or information to the devs. Login is using same credentials as on this forum.

    #239563
    danbp
    Participant

    Tutorial is here:

    2.2 Member Types – Setting user member types during registration (xProfile)

    Closing this topic as duplicate.

    #239562

    In reply to: To get help.

    danbp
    Participant

    That’s normal: page can’t walk, as they have no feet ! 🙂
    ça ne marche pas n’a pas le même sens en anglais. Ils disent ça ne travaille pas (does not work).

    You have to create these page manually. This is explained in Getting started guide, configuration section.

    Configure BuddyPress

    If you feel better in french, visit bp-fr.net

    danbp
    Participant

    Yes indeed, there is a way.

    Step by step tutorial with example code which you add to bp-custom.
    Note: use this code as is and follow the instruction. Once you understood what it does and how it works, you will be able to modify it to your needs.

    First, create a new xprofile field in the first group field (aka Base Group and containing Name as default field). Only fields created in that group are visible on the register page. Call it Type, enter description and choose multiselectbox as field type. Add operator, vendor, coach as select option.

    That’s all for the register part handled by BuddyPress.

    Now we need to declare the whole thing to get it work on front-end.
    Member-type is an additionnal functiony to select members by… type ! Not by role, not by latest, mst popular or anything else. Just (for the moment) by a custom type of your choice.

    We have to built a member directory for our types. We have 3 types and they will be shown on 3 new tabs on that directory.

    1) we formally declare the member types
    2) we count members by type (to stay correctly informative on the directory)
    3) we display the tabs

    function using_mt_register_member_types() {
    	bp_register_member_type( 'operator', array(
    		'labels' => array(
    			'name'          => __( 'Operators', 'using-mt' ),
    			'singular_name' => __( 'Operator', 'using-mt' ),
    		),
    	) );
    
    	bp_register_member_type( 'vendor', array(
    		'labels' => array(
    			'name'          => __( 'Vendors', 'using-mt' ),
    			'singular_name' => __( 'Vendor', 'using-mt' ),
    		),
    	) );
    
    	bp_register_member_type( 'coach', array(
    		'labels' => array(
    			'name'          => __( 'Coaches', 'using-mt' ),
    			'singular_name' => __( 'Coach', 'using-mt' ),
    		),
    	) );
    }
    add_action( 'bp_init', 'using_mt_register_member_types' );
    
    function using_mt_count_member_types( $member_type = '', $taxonomy = 'bp_member_type' ) {
    	global $wpdb;
    	$member_types = bp_get_member_types();
    
    	if ( empty( $member_type ) || empty( $member_types[ $member_type ] ) ) {
    		return false;
    	}
    
    	$count_types = wp_cache_get( 'using_mt_count_member_types', 'using_mt_bp_member_type' );
    
    	if ( ! $count_types ) {
    		if ( ! bp_is_root_blog() ) {
    			switch_to_blog( bp_get_root_blog_id() );
    		}
    
    		$sql = array(
    			'select' => "SELECT t.slug, tt.count FROM {$wpdb->term_taxonomy} tt LEFT JOIN {$wpdb->terms} t",
    			'on'     => 'ON tt.term_id = t.term_id',
    			'where'  => $wpdb->prepare( 'WHERE tt.taxonomy = %s', $taxonomy ),
    		);
    
    		$count_types = $wpdb->get_results( join( ' ', $sql ) );
    		wp_cache_set( 'using_mt_count_member_types', $count_types, 'using_mt_bp_member_type' );
    
    		restore_current_blog();
    	}
    
    	$type_count = wp_filter_object_list( $count_types, array( 'slug' => $member_type ), 'and', 'count' );
    	$type_count = array_values( $type_count );
    
    	if ( empty( $type_count ) ) {
    		return 0;
    	}
    
    	return (int) $type_count[0];
    }
    
    function using_mt_display_directory_tabs() {
    	$member_types = bp_get_member_types( array(), 'objects' );
    
    	// Loop in member types to build the tabs
    	foreach ( $member_types as $member_type ) : ?>
    
    	<li id="members-<?php echo esc_attr( $member_type->name ) ;?>">
    		<a href="<?php bp_members_directory_permalink(); ?>"><?php printf( '%s <span>%d</span>', $member_type->labels['name'], using_mt_count_member_types( $member_type->name ) ); ?></a>
    	</li>
    
    	<?php endforeach;
    }
    add_action( 'bp_members_directory_member_types', 'using_mt_display_directory_tabs' );

    We also need to sort the members list on each type tab using the loop scope.

    function using_mt_set_has_members_type_arg( $args = array() ) {
    	// Get member types to check scope
    	$member_types = bp_get_member_types();
    
    	// Set the member type arg if scope match one of the registered member type
    	if ( ! empty( $args['scope'] ) && ! empty( $member_types[ $args['scope'] ] ) ) {
    		$args['member_type'] = $args['scope'];
    	}
    
    	return $args;
    }
    add_filter( 'bp_before_has_members_parse_args', 'using_mt_set_has_members_type_arg', 10, 1 );

    And we finally clean the cache to stay up to date with the output

    function using_mt_clean_count_cache( $term = 0, $taxonomy = null ) {
    	if ( empty( $term ) || empty( $taxonomy->name ) || 'bp_member_type' != $taxonomy->name )  {
    		return;
    	}
    
    	wp_cache_delete( 'using_mt_count_member_types', 'using_mt_bp_member_type' );
    }
    add_action( 'edited_term_taxonomy', 'using_mt_clean_count_cache', 10, 2 );

    That’s all for a members directory page showing All Members and tabed Members by type.

    If you want to show the type of a member on his profile header, use this:

    function using_mt_member_header_display() {
    	$member_type = bp_get_member_type( bp_displayed_user_id() );
    
    	if ( empty( $member_type ) ) {
    		return;
    	}
    
    	$member_type_object = bp_get_member_type_object( $member_type );
    	?>
    	<p class="member_type"><?php echo esc_html( $member_type_object->labels['singular_name'] ); ?></p>
    
    	<?php
    }
    add_action( 'bp_before_member_header_meta', 'using_mt_member_header_display' );

    Or if you want to display the type under each user avatar on the member directory, you can use this snippet. Note: was originally made to add a geoloc shortcode below the member type. I let it as is, so you can see how it’s done.

    function who_are_you_directory() { // by member_type name + geoloc (wpgeo me)
    $user = bp_get_member_user_id();
    $terms = bp_get_object_terms( $user,  'bp_member_type' );
    
    	if ( ! empty( $terms ) ) {
    		if ( ! is_wp_error( $terms ) ) {		
    				foreach( $terms as $term ) {
    					echo '<p>' . $term->name . '</p>'; 					
    					echo do_shortcode('[gmw_member_info]');
    				}		
    		}
    	} 
    
    }
    add_filter ( 'bp_directory_members_item', 'who_are_you_directory' );

    Anything inspired by Codex and heavy topics reading.

    Member Types

    Members Loop

    May this help.

    #239560

    Topic: To get help.

    in group forum Installing BuddyPress
    patebou
    Participant

    Hello,
    To get help.
    I buddypress download, the page Activate and Register does not walk.
    how puige for activers.
    Thank you.

    #239558
    maelga
    Participant
    #239553
    hmglv
    Participant

    I am working on a site in staging that is using Buddypress and Woocommerce to create a subscription service. Currently, all users other than my admin login are experiencing login failed. I am looking for any assistance that will help me resolve this.

    The staging url is http://216.115.71.242/
    Theme is Genesis parent, Centric child theme
    Woocommerce 2.3.9
    Buddypress 2.2.3.1
    WooCommerce BuddyPress Integration 2.2.3

    Error message
    Login Failed

    #239549
    danbp
    Participant

    You can remove the creation option from the template. You have to do this from within a child theme by using a template overload.

    Concerned file is bp-templates/bp-legacy/buddypress/groups/create.php

    Part to remove for the “hidden” option is

    <label>
    	<input type="radio" name="group-status" value="hidden"<?php if ( 'hidden' == bp_get_new_group_status() ) { ?> checked="checked"<?php } ?> /> 
    	<strong><?php _e('This is a hidden group', 'buddypress' ); ?></strong>
    </label>
    	<ul>
    		<li><?php _e( 'Only users who are invited can join the group.', 'buddypress' ); ?></li>
    		<li><?php _e( 'This group will not be listed in the groups directory or search results.', 'buddypress' ); ?></li>
    		<li><?php _e( 'Group content and activity will only be visible to members of the group.', 'buddypress' ); ?></li>
    	</ul>
    KeithMon
    Participant

    I’m experiencing the same issue. After I visit BuddyPress pages and then navigate to any standard or template page, except the homepage, but including the blog, I get a 404. Sometimes a simple refresh will work. Sometimes navigating to a new page will work. Sometimes the issue will not be fixed unless I refresh Permalinks or log-out and log-in again.

    WordPress 4.2.2
    BuddyPress 2.2.3.1
    bbPress 2.5.7 (though, the issue continues even when bbPress is deactivated)

    This issue was asked on another post that was closed before an answer was provided:
    https://buddypress.org/support/topic/buddypress-iis-and-randomreoccurring-404-errors/

    This post had a resolution:
    https://buddypress.org/support/topic/page-not-found-error-on-static-pages/

    I have checked and Mod_Rewrite is enabled through htaccess as defined here:

    # BEGIN WordPress
    <IfModule mod_rewrite.c>
    RewriteEngine On
    RewriteBase /higher/
    RewriteRule ^index\.php$ - [L]
    RewriteCond %{REQUEST_FILENAME} !-f
    RewriteCond %{REQUEST_FILENAME} !-d
    RewriteRule . /higher/index.php [L]
    </IfModule>
    # END WordPress

    Am I missing anything here? This appears to be an issue with BuddyPress. Does anyone have a resolution?

    #239546
    Dule95D
    Participant

    Hello,

    I found one topic here about that, but it didn’t have any changes for me.

    And here is my code in bp-custom.php:

    <?php
    function my_filter_group_stati( $stati ) {
    if( $key = array_search( ‘hidden’, $stati ) ) {
    unset( $stati[$key] );
    }

    return $stati;
    }
    add_filter( ‘groups_valid_status’, ‘my_filter_group_stati’ );
    ?>

    Any suggestion? And i would like to have only private group.

    #239537
    shauney3
    Participant

    Hey guys.

    I want to change the Main titles and subtitles of the Members, Activities and Groups page – mainly the Groups page. This is what i am getting by default: http://tinypic.com/r/1z3qatd/8

    I have been searching extensively and one person suggested changing the language files: https://codex.buddypress.org/getting-started/customizing/customizing-labels-messages-and-urls/

    I followed this but it didn’t work for me, and as it was a very old post I thought it might be redundant now?

    FYI I have latest WordPress and Buddypress installed, also using the X-theme.
    Thanks!

    #239532
    Henry Wright
    Moderator

    This comment was kind of on the right track but as most of the people pointed out in that topic, editing core files is a very bad idea.

    Instead, you should take a look at this article to familiarise yourself with the Template Hierarchy. That way, you can remove the ‘reply’ link and be sure your modifications will remain after you upgrade BuddyPress.

    #239531
    alpha2
    Participant

    Hello Buddypress community

    I want to hide the sub replies button, i found old thread about it (https://buddypress.org/support/topic/how-to-remove-sub-reply-button/), but i guess 4 years after the code has change a bit 😉

    If someone could be able to give me the code to modify into the template or a function? That could be really nice.

    Thank you

    #239527
    patebou
    Participant

    Hello,
    Versez l’aide une, de BuddyPress.
    You can tell me how we make to activate both pages recording.
    – registration(inscription) and to Activate because she(it) does not appear
    Thank you

    Cordially

    #239526
    jookkoo
    Participant

    Hello.

    Now my site have the issue happened after i am installed Polylang plugins. (But on Localhost it work fine)
    – I am delete wordpress on hosting and upload the fresh one. after activate Buddypress, it always display – 502 or 504 Bad Gateway nginx/1.4.4

    I contact with Dreamhost admin (My Hosting) and many time they checking and their answer as below:

    After downgrading and upgrading your Buddypress install you are no longer works correctly? Have tried using different plugins with your site to see if that might allow you to see better performance?

    Please help
    Thank you

    #239518
    @mercime
    Participant

    @ashket That could be related to a theme or a plugin issue because that’s not normal at all. What are your WP/BP versions for that installation? If you change to Twenty Fifteen theme and deactivate all plugins except BuddyPress, is the issue you reported resolved?

Viewing 25 results - 19,551 through 19,575 (of 94,540 total)
Skip to toolbar