MyBB Tutorials

MyAlert Notification like Facebook with simple Css

Submitted by xdahelpers, , Thread ID: 216669

Thread Closed
19-08-2021, 08:33 PM
This post was last modified: 13-09-2021, 06:32 AM by xdahelpers
#1
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" onclick="MyBB.popupWindow('/alerts.php?modal=1&amp;ret_link={$myalerts_return_link}', { fadeDuration: 250, zIndex: (typeof modal_zindex !== 'undefined' ? modal_zindex : 9999) }); return false;">{$lang->myalerts_alerts}
    <
span class ="alert_counter">{$mybb->user['unreadAlerts']} </span></a>
</
li



and add css intoACP > 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]

RE: MyAlert Notification like Facebook with simple Css

#2
Damn bro Thanks Smile Really helpful <3

RE: MyAlert Notification like Facebook with simple Css

#3
wow thank you bro this is very helpful in modding the forum

RE: MyAlert Notification like Facebook with simple Css

OP
#4
i am glad it does help you , stay tuned for more tutorials

RE: MyAlert Notification like Facebook with simple Css

#5
loving this bro great bro

RE: MyAlert Notification like Facebook with simple Css

#6
19-08-2021, 08:33 PM
xdahelpers Wrote:
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" onclick="MyBB.popupWindow('/alerts.php?modal=1&amp;ret_link={$myalerts_return_link}', { fadeDuration: 250, zIndex: (typeof modal_zindex !== 'undefined' ? modal_zindex : 9999) }); return false;">{$lang->myalerts_alerts}
    <
span class ="alert_counter">{$mybb->user['unreadAlerts']} </span></a>
</
li



and add css intoACP > 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]


Thank you man

Users browsing this thread: 1 Guest(s)