Skip to:
Content
Pages
Categories
Search
Top
Bottom

Search Results for 'BP_Core_Members_Widget'

Viewing 9 results - 1 through 9 (of 9 total)
  • Author
    Search Results
  • Anonymous User 18187419
    Inactive

    This quick css solution was kindly supplied by Brajesh at Buddydev.com
    Thanks!

    
    .widget_bp_core_members_widget .bp-separator:nth-child(4){
    	display:none;
    }
    .widget_bp_core_members_widget  #popular-members {
    	display:none;
    }
    
    #269814
    Antipole
    Participant

    @leog371 – thanks for trying to help. That did not do it, however. I am copying below the html presently generated in the hope this might help.
    My issue is that the two user names in the list of recent members (John – Paris & Mile Peregrine) are linked to their profiles, but the links only colour when hovering over the links. I need them to be coloured all the time, as my site uses the colouring as visual clue that it is clickable.

    The colour required is: color: #05a9c5;

    thanks

    <aside id="bp_core_members_widget-4" class="widget widget_bp_core_members_widget buddypress widget"><h3 class="widget-title"><a href="http://testsite.xxx.org.uk/members/">Welcome to our new members</a></h3>
    		
    			<div class="item-options" id="members-list-options">
    				<a href="http://testsite.xxx.org.uk/members/" id="newest-members" class="selected">Newest</a>
    				<span class="bp-separator" role="separator">|</span>
    				<a href="http://testsite.xxx.org.uk/members/" id="recently-active-members" >Active</a>
    
    				
    			</div>
    
    			<ul id="members-list" class="item-list" aria-live="polite" aria-relevant="all" aria-atomic="true">
    
    				
    					<li class="vcard">
    						<div class="item-avatar">
    							<a href="http://testsite.xxx.org.uk/members/paris/" class="bp-tooltip" data-bp-tooltip="John - Paris"><img src="//www.gravatar.com/avatar/69299ce42f215930a2181c49f1eb4bef?s=50&r=g&d=mm" class="avatar user-119-avatar avatar-50 photo" width="50" height="50" alt="Profile picture of John - Paris" /></a>
    						</div>
    
    						<div class="item">
    							<div class="item-title fn"><a href="http://testsite.xxx.org.uk/members/paris/">John - Paris</a></div>
    							<div class="item-meta">
    																	<span class="activity" data-livestamp="2017-12-17T23:51:09+0000">registered 1 week, 3 days ago</span>
    															</div>
    						</div>
    					</li>
    
    				
    					<li class="vcard">
    						<div class="item-avatar">
    							<a href="http://testsite.xxx.org.uk/members/peregrin/" class="bp-tooltip" data-bp-tooltip="Mike - Peregrine"><img src="//www.gravatar.com/avatar/0e516af4e69f0befa893934cbd29d023?s=50&r=g&d=mm" class="avatar user-118-avatar avatar-50 photo" width="50" height="50" alt="Profile picture of Mike - Peregrine" /></a>
    						</div>
    
    						<div class="item">
    							<div class="item-title fn"><a href="http://testsite.xxx.org.uk/members/peregrin/">Mike - Peregrine</a></div>
    							<div class="item-meta">
    																	<span class="activity" data-livestamp="2017-12-02T18:55:20+0000">registered 3 weeks, 4 days ago</span>
    															</div>
    						</div>
    					</li>
    
    				
    			</ul>
    
    			<input type="hidden" id="_wpnonce-members" name="_wpnonce-members" value="ab1b45abd0" />
    			<input type="hidden" name="members_widget_max" id="members_widget_max" value="2" />
    </aside>
    
    #184098
    shanebp
    Moderator

    Is your sidebar in a BuddyPress page ?

    Take a look at the BP_Core_Members_Widget

    #146735
    Nahum
    Participant

    I finally decided to ask for support on this even though I’ve been sleeping on it since 1.6 came out.

    After I updated to 1.6, my bp widgets starting rendering as :

    `<li id=”bp_core_members_widget-2″ class=”widget widget_bp_core_members_widget”>

    <h2 class=”widgettitle”>Members</h2> …`

    instead of

    `<div id=”bp_core_members_widget-2″ class=”widget widget_bp_core_members_widget”>

    <h2 class=”widgettitle”>Members</h2>…`

    like it used to.

    I can’t figure out why this is happening.

    Any ideas? Is it BP Compatiblity plugin doing this?

     

    #22670
    DoctorDR
    Member

    I set about modifying the default ‘Members’ widget renaming a copy of the widget placed in my functions.php file. All The changes are within the ul#members-list container. My revised widget displays fine on page load, but when the ajax calls are made when selecting ‘Newest | Active | Popular’ it reverts the layout and content to the original ‘Members’ widget.

    I’ve carried over the `/bp-core/js/widget-members.js` included via the ‘wp_enqueue_script’ statement, but I don’t see anything in this script which leads a different html layout.

    Does anyone familiar with the function know what’s being called?

    #85149
    Paul Wong-Gibbs
    Keymaster

    Hi Jonathan
    That’s a bit of a big question. To get the current user’s friend list, you can use: bp_has_members( ‘populate_extras=0&user_id=’ . $bp->loggedin_user->id ) ) and then iterate through with the rest of the members’ member tags. Take a look at bp-core/bp-core-widgets.php at all of the ‘BP_Core_Members_Widget’ class.

    If you copy-and-paste that into your plugin or into your theme’s functions.php, and also the appropriate add_action call from bp_core_register_widgets(), rename the class, it ought to work.

    #10990
    Greig Chambers
    Participant

    Hi There,

    I have tried to install buddypress but I’m getting nowhere. I tried installing via the add new plugin but it stalled and never done anything so I manually copied the contents of the zip file. After doing this it appears as an unactivated plugin and when I try to activate it I get the following fatal error:

    Fatal error: Class bp_core_members_widget: Cannot inherit from undefined class wp_widget in /homepages/18/d281354426/htdocs/Group/Congrex.org.uk/biddemo/wp-content/plugins/buddypress/bp-core/bp-core-widgets.php on line 13

    I’m new to WordPress and buddypress so its probably something stupis I’m doing….please help!!!

    4467657
    Inactive

    I created the Trac item http://trac.buddypress.org/ticket/1116 for this and copying the issue description here as well.

    Setup: WPMU 2.8.4a

    BP: 1.1-rc (upgraded from 1.0.3)

    Main Blog Theme: Atahualpa 3.4.3 (the blog installed in root)

    Buddypress: is installed on a separate blog (i changed BP_ROOT_BLOG in plugins/bp-custom.php) and I use the new theme architecture. Active blog theme: bp-default

    I placed the BP core member widget and BP core group widget in my main Atahualpa-themed blog.

    Problem #1:

    It seems that the style declaration is missing from 1.1-rc (it used to be in 1.0.3 and made these widgets look fine)

    .widget_bp_core_members_widget ul#members-list li {

    min-height: 60px;

    }

    Without this style, the 1.1rc widgets look broken (text overlaps with images)

    Problem #2:

    The Newest/ Active / Popular links in the member and group widget point to <domain>/members (etc) instead of <domain>/<bp_root_blog>/members. When I click on them, the requests time out because of max redirects.

    #51292
    Robert
    Participant

    I had the same problem and here’s what worked for me.

    Open the file with the widgets in this example bp-core-widgets.php

    At the top of the page where the widgets are registered it looks like this:

    /* Register widgets for the core component */
    function bp_core_register_widgets() {
    add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Welcome_Widget");') );
    add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Members_Widget");') );
    add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Whos_Online_Widget");') );
    add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Recently_Active_Widget");') );
    }
    add_action( 'plugins_loaded', 'bp_core_register_widgets' );

    replace it with:

    * Register widgets for the core component */
    function bp_core_register_widgets() {
    //global $wpdb, $supporters_widget_main_blog_only;
    global $current_blog, $wpdb, $all_bp_widgets_main_blog_only;

    //---Config
    //
    $all_bp_widgets_main_blog_only = 'yes'; //Either 'yes' or 'no'
    //
    //

    if ( $all_bp_widgets_main_blog_only == 'yes' ) {
    if ( $wpdb->blogid == 1 ) {
    add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Welcome_Widget");') );
    add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Members_Widget");') );
    add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Whos_Online_Widget");') );
    add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Recently_Active_Widget");') );
    }
    }else{
    add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Welcome_Widget");') );
    add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Members_Widget");') );
    add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Whos_Online_Widget");') );
    add_action('widgets_init', create_function('', 'return register_widget("BP_Core_Recently_Active_Widget");') );
    }
    }
    add_action( 'plugins_loaded', 'bp_core_register_widgets' );

    And that’s it.

    Again as I said it seems to work for me but I don’t know if there are any side effects. I recommend testing it before using on live website. Also remember doing the same for the other widgets under blogs, activity etc.I think you will also need to create a different variable than $all_bp_widgets_main_blog_only in the other widget files (blogs, activities etc.)

    Maybe some of the gurus here could comment on this approach.

Viewing 9 results - 1 through 9 (of 9 total)
Skip to toolbar