Skip to:
Content
Pages
Categories
Search
Top
Bottom

Private message status widget


  • donburikun
    Participant

    @donburikun

    Are there any plans for release a widget for Buddypress private messages so that users can see from the front page (or anywhere else on the site) whether they have any messages in their pm inbox?

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

  • Datenfresser
    Participant

    @datenfresser

    this feature would be very interesting for me too.
    Are there any plans? Or does any plugin do this job?


    leog371
    Participant

    @leog371

    Just Place this on your template files or header file or where you want to display it

    
    <?php if ( is_user_logged_in() ) : ?>
    
     <a href="<?php echo bp_core_get_user_domain(bp_loggedin_user_id()) ?>messages/" title="Messages" data-toggle="tooltip" >
    
    <i class="fa fa-envelope-open-o" aria-hidden="true"></i> //Font Awesome if you want the envelope icon
    <?php echo bp_get_total_unread_messages_count( bp_loggedin_user_id() ) ?>
    
     </a>
    
    <?php endif ; ?>
    
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar