<li><a href="<?php echo bp_loggedin_user_domain() ?><?php echo BP_MESSAGES_SLUG ?>">Inbox (<?php echo messages_get_unread_count(); ?>)</a></li>