07-01-2019, 04:35 AM
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 :-
Hope this tutorial helps you to add PM count in GoDark MyBB theme.
This tutorial is added on request of yafin
Regards
WallBB
To add the PM count, follow the below steps :-
- Go To Admin CP > Templates And Styles > Templates > Select GoDark Theme Template
- Go to Header Templates > header_welcomeblock_member
- Replace this line
Code:<li ><a class="pm_anchor" href="{$mybb->settings['bburl']}/private.php"><i class="fa fa-envelope-open"></i></a></li>
- with below code
Code:<li><a href="{$mybb->settings['bburl']}/private.php"><i class="fas fa-envelope"></i> <span class="pmbg">{$mybb->user['pms_unread']}</a></li>
- Now go to Admin CP > Templates And Styles > GoDark Theme > css3.css > Edit Advanced Mode and add this at the bottom
Code:.pmbg {
background: #f1654c none repeat scroll 0 0;
border-radius: 0;
display: inline;
font-size: 10px;
height: 15px;
padding-left: 2px;
padding-right: 2px;
}
Hope this tutorial helps you to add PM count in GoDark MyBB theme.
This tutorial is added on request of yafin
Regards
WallBB