Skip to:
Content
Pages
Categories
Search
Top
Bottom

Personal Message Notifications

Viewing 1 replies (of 1 total)
  • Profile photo of prowseed
    prowseed
    Participant

    @prowseed

    I didn’t found one while I was in similar situation, but you can extend my hardcoded php to a plugin that I’ve glued some time ago:

    
    <?php
    //display new massages count along with new massages list
    global $bp;
    $hmag_inbox_count = messages_get_unread_count();
    ?>
    
    <li class="dropdown pr">
    <a data-target=&quot;#wiadomosci_drop&quot; data-toggle=&quot;dropdown&quot; href=&quot;messages/" class="messages  0) ? 'active' : ''); ?> dropdown-toggle">
    <span class="notifications_type">
    Wiadomo?ci
    </span>
    
    <?php
    if ($hmag_inbox_count > 0) {
    $display_unread_count = $hmag_inbox_count;
    if ($hmag_inbox_count > 9) {
    $display_unread_count = '9+';
    }
    echo '<span class="notifications_count br3">'.$display_unread_count.'</span>';
    }
    ?>
    </a>
    <div class="dropdown-menu status_drop_wrap" id="#wiadomosci_drop">
    <em class="before_arrow"></em>
    <div class="status_drop">
    <h5>Nowe wiadomo?ci</h5>
    <a href=";" class="status_drop_close"></a>
    
    <ul class="unstyled clearfix">
    
    <li class="clearfix db pr x40img">
    <a href=&quot;" class="single_status_link clearfix">
    <em class="after_hide"></em>
    <span class="image-wrap db fl">
    
    </span>
    <span class="oh db clearfix">
    <span class="status_title cb"></span>
    <span class="status_text cb">
    
    </span>
    </span>
    </a>
    </li>
    
    </ul>
    <?php } else {
    echo '<p class="empty_info">
    Brak nowych wiadomo?ci
    
    ';
    }?>
    <a href=&quot;messages/" class="db all_updates cb fr">
    Zobacz wszystkie
    </a>
    </div>
    </div>
    </li>
    </ul>
    </div>

    Sorry it’s in Polish and a bit messy, but I belieev you will manage to take a meat out of it : )

Viewing 1 replies (of 1 total)
  • The topic ‘Personal Message Notifications’ is closed to new replies.