Skip to:
Content
Pages
Categories
Search
Top
Bottom

Menu mobile


  • jennifersanchez
    Participant

    @jennifersanchez

    Hi!

    I added a menu at the bottom of the page when I open the web with a cell phone.
    How can I add the number of unread messages with the volume bubbles as it is classic?? For example in Messages (1)
    Any suggestions? with css ?

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

  • jennifersanchez
    Participant

    @jennifersanchez

    I tried with this and it dont works

    global $bp;

    $hmag_inbox_count = messages_get_unread_count();

    echo ‘<span class=”mobile-menu-builder–links mobile-menu-builder–link-2 “>’.$hmag_inbox_count.'</span>’;


    Venutius
    Moderator

    @venutius

    messages_get_unread_count() needs a user_id, so something like message_get_unread_count( get_current_user_id() ) should return the unread count for the user.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar