Quantcast
Channel: MyBB Community Forums - Tutorials
Viewing all articles
Browse latest Browse all 690

MyAlert Notification like Facebook with simple Css

$
0
0
hi 

first of all i would like to say thanks to Euan T for his great plugin and he also help me to make this happend , thank you so much 


here is tutorial 

You need to look at the template in ACP > Templates & Style > Templates (left bar) > *YOUR THEME* > MyAlerts Templates > myalerts_headericon. 

replace content by this 

PHP Code:
<li class="alerts {$newAlertsIndicator}">
 
   <a href="{$mybb->settings['bburl']}/alerts.php" class="myalerts open_modal"
 
      data-selector="#myalerts_alerts_modal" rel="modal:open">{$lang->myalerts_alerts}
        <
span class ="alert_counter">{$mybb->user['unreadAlerts']} </span></a>
</
li



and add css into ACP > Templates & Style > Theme (left bar) > *YOUR THEME* > alert.css

add this css code and save and refresh your index page with so unread notification 

PHP Code:
.alert_counter {
    
positionrelative;
 
   top: -7px;
 
   background-colorrgba(21219131);
 
   color#fff;
 
   border-radius3px;
 
   padding1px 3px;
 
   font9px Verdana;



Preview Picture 

[Image: I6m6CbI.png]

Viewing all articles
Browse latest Browse all 690

Trending Articles