Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to re-produce Notifications in a Custom Admin bar?


Gianfranco
Participant

@gian-ava

I’ve put the function right in the ul, like so:

<ul id="user-menu">

<li><a href="<?php echo bp_loggedin_user_domain() ?>/profile/edit/">My profile</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/messages/">My messages</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/groups/">My groups</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/friends/">My friends</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/photos/">My photos</a></li>
<li>| <a href="<?php echo bp_loggedin_user_domain() ?>/settings/">Settings</a></li>
<li>| <a id="logout" href="<?php echo wp_logout_url( get_option('home') ) ?>"><?php _e( 'Log Out', 'buddypress' ) ?></a></li>

<?php bp_adminbar_notifications_menu(); ?>

</ul>

…to see waht it produces. It just breaks my layout. The whole ul disapeears and the layout after that is broken.

In Firebug I can see this error: Call to undefined function bp_adminbar_notifications_menu()

Mmm… I got BP Template Pack installed, if that makes it a hint of any kind.

Skip to toolbar