@ananwebman
Not recently active
Forum Replies Created
Viewing 6 replies - 1 through 6 (of 6 total)
-
Bump
Hi chouf1
Thank for your comment, I found this fucntion at the end of the code:public function add_jquery_cropper() { wp_enqueue_style( 'jcrop' ); wp_enqueue_script( 'jcrop', array( 'jquery' ) ); add_action( 'wp_head', 'bp_core_add_cropper_inline_js' ); add_action( 'wp_head', 'bp_core_add_cropper_inline_css' ); }
If I use default buddypress theme, user can upload avatar but If I use my comtom them, user can’t upload avatar. It seem missing some code.
hi @disent
you can use :
if( strlen( $user_name ) >= 13 ) $errors->add( 'user_name', __( 'Username must be 12 characters maximum', 'buddypress' ) );
in /plugins/buddypress/bp-members/bp-members-functions.php
inside function bp_core_validate_user_signup ()hi @raphadko
you can use :
if( strlen( $user_name ) >= 13 ) $errors->add( 'user_name', __( 'Username must be 12 characters maximum', 'buddypress' ) );
in /plugins/buddypress/bp-members/bp-members-functions.php
inside function bp_core_validate_user_signup ()I’m can fix by myself now.
/*** RECENTLY ACTIVE WIDGET *****************/ class BP_Core_Recently_Active_Widget extends WP_Widget { function __construct() { $widget_ops = array( 'description' => __( 'Avatars of recently active members', 'buddypress' ), 'classname' => 'widget_bp_core_recently_active_widget buddypress widget', ); parent::__construct( false, $name = _x( '(BuddyPress) Recently Active Members', 'widget name', 'buddypress' ), $widget_ops ); } function widget( $args, $instance ) { extract( $args ); $title = apply_filters( 'widget_title', $instance['title'] ); echo $before_widget; echo $before_title . $title . $after_title; ?> <?php if ( bp_has_members( 'user_id=0&type=active&per_page=' . $instance['max_members'] . '&max=' . $instance['max_members'] . '&populate_extras=1' ) ) : ?> <div class="avatar-block"> <?php while ( bp_members() ) : bp_the_member(); ?> <div class="item-avatar"> <a href="<?php bp_member_permalink() ?>" title="<?php bp_member_name() ?>"><?php bp_member_avatar() ?></a> </div> <?php endwhile; ?> </div> <?php else: ?> <div class="widget-error"> <?php _e( 'There are no recently active members', 'buddypress' ) ?> </div> <?php endif; ?>
Can I change from Member Id to group ID around here please?
Viewing 6 replies - 1 through 6 (of 6 total)