Forum Replies Created
-
@frequeunce thank you so much i’m going to try this
the “name” field is the default one.
I really need to order group activities by “most favorites”
Someone have been able to do it?
@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>'; }
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.thank you the problem was the quotes 😉
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.
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?
@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 🙂