On Sale - Peach MyBB Theme - 10$ For limited time Check here
On Sale - Focus Responsive Theme - 20$ For limited time Check here
Go Dark Theme -  Adding Real time PM Count in MyBB
This tutorial will teach you how to add PM count in header like Facebook in GoDark MyBB theme. (Focus and Orange Already have this inbuilt)

To add the PM count, follow the below steps :-
  1. Go To Admin CP > Templates And Styles > Templates > Select GoDark Theme Template
  2. Go to Header Templates > header_welcomeblock_member
  3. Replace this line
    <li ><a class="pm_anchor" href="{$mybb->settings['bburl']}/private.php"><i class="fa fa-envelope-open"></i></a></li>
  4. with below code
    <li><a href="{$mybb->settings['bburl']}/private.php"><i class="fas fa-envelope"></i> <span class="pmbg">{$mybb->user['pms_unread']}</a></li>
  5. Now go to Admin CP > Templates And Styles > GoDark Theme > css3.css > Edit Advanced Mode and add this at the bottom
    .pmbg {
        background: #f1654c none repeat scroll 0 0;
        border-radius: 0;
        display: inline;
        font-size: 10px;
        height: 15px;
        padding-left: 2px;
        padding-right: 2px;
That's it!

Hope this tutorial helps you to add PM count in GoDark MyBB theme.

This tutorial is added on request of yafin


Users browsing this thread: 1 Guest(s)