MyBB Community Forums

Full Version: my alert
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hello friends.

how do I remove the numbers contained in parentheses myalert and replace it with style number next to them.

as shown below.
[attachment=29649]
navigate to MyAlerts Templates >> myalerts_headericon template and find code like below
<a href="{$mybb->settings['bburl']}/usercp.php?action=alerts" class="unreadAlerts myalerts_popup_hook" id="unreadAlerts_menu">{$lang->myalerts_alerts} ({$mybb->user['unreadAlerts']})</a>

({$mybb->user['unreadAlerts']}) <-- this gives the alerts number in parenthesis.
you can add a span element for it in the template & style it through alerts.css (advanced edit)
hello .m.

Can you give me a little code css button like that. because it has no direct button on that theme.

or I will give you the theme that I have but do not install it on your website.

because I only have 1 license.

see pm .m.
^ simple method is to use <button>{$mybb->user['unreadAlerts']}</button>
The code works.

good job.