Skip to:
Content
Pages
Categories
Search
Top
Bottom

Forum Replies Created

Viewing 10 replies - 1 through 10 (of 10 total)

  • mathieu.urstein
    Participant

    @mojomateo

    @frequeunce thank you so much i’m going to try this


    mathieu.urstein
    Participant

    @mojomateo

    the “name” field is the default one.


    mathieu.urstein
    Participant

    @mojomateo

    I really need to order group activities by “most favorites”


    mathieu.urstein
    Participant

    @mojomateo

    Someone have been able to do it?


    mathieu.urstein
    Participant

    @mojomateo

    @espellcaste
    do you have some news?
    I have been able to take the notifications like this :

    // notifications
    function my_bp_adminbar_notifications_menu() {
    	global $bp;
    
    	if ( !is_user_logged_in() )
    		return false;
    
    	echo '<li id="menu-item-9991" class="menu-item menu-item-type-custom menu-item-object-custom menu-item-9991 parent">';
    //	_e( 'Alerts', 'buddypress' );
    
    	if ( $notifications = bp_core_get_notifications_for_user( $bp->loggedin_user->id ) ) { ?>
    		<a href="#"><span id="notifs_top"><?php echo count( $notifications ) ?></span></a>
    	<?php
    	}
    
    	echo '</a>';
    	echo '<ul class="sub-menu">';
    
    	if ( $notifications ) {
    		$counter = 0;
    		for ( $i = 0; $i < count($notifications); $i++ ) {
    			$alt = ( 0 == $counter % 2 ) ? ' class="alt"' : ''; ?>
    
    			<li<?php echo $alt ?>><?php echo $notifications[$i] ?></li>
    
    			<?php $counter++;
    		}
    	} else { ?>
    
    		<li><a href="<?php echo $bp->loggedin_user->domain ?>"><?php _e( 'You have no new alerts.', 'buddypress' ); ?></a></li>
    
    	<?php
    	}
    
    	echo '</ul>';
    	echo '</li>';
    }

    mathieu.urstein
    Participant

    @mojomateo

    This is directly with buddypress in the components page.
    I’m using the french version so I guess that it’s “extended profile”

    But you can see the <p class="description"></p> In the /register/ page or under the modify profile page.


    mathieu.urstein
    Participant

    @mojomateo

    @modemlooper

    thank you the problem was the quotes 😉


    mathieu.urstein
    Participant

    @mojomateo

    thank you @modemlooper

    I did :

    $userid = bp_loggedin_user_id();
    $avatarurl = bp_core_fetch_avatar( array( ‘item_id’ => $userid, ‘html’ => false ) );

    But the problem is still the same,
    what did I do wrong?

    Thanks.


    mathieu.urstein
    Participant

    @mojomateo

    This is the hook for the admin toolbar:

    		$wp_admin_bar->add_menu( array(
    			'parent'    => 'my-account',
    			'id'        => 'my-account-buddypress',
    			'title'     => __( 'My Account' ),
    			'group'     => true,
    			'meta'      => array(
    				'class' => 'ab-sub-secondary'
    			)
    		) );

    Is there a way to call this for somwhere else than the toolbar?


    mathieu.urstein
    Participant

    @mojomateo

    @bphelp
    Thanks for your answer,
    The top-right menu is already perfect I just need to hook it into my template.

    There is probably something to do 🙂

Viewing 10 replies - 1 through 10 (of 10 total)
Skip to toolbar