MyBB Tutorials

MyAlerts color based!

Submitted by AAA, , Thread ID: 18239

Thread Closed
AAA
Offline
Level:
0
Reputation:
73
Posts:
834
Likes:
110
Credits:
582
13-02-2016, 11:05 PM
#1
MyAlerts alert color based on number (something similar to NBB)
In this tutorial I'll teach you how to get alerts similar to NBB alerts as in when you have no alerts there is no number, and when you have an alert there is a green number.

For this tutorial you'll need the following plugins:

MyAlerts
PHP and Template Conditionals

What we're making:

[Image: hUuNtZh.png]

In your active theme template find MyAlerts -> myalerts_headericon

Replace all the code with the following:

Content locked
This content has been locked. Please login or register in order to unlock it.

To change the color simply replace #4CC417 with a color of your choosing, though you must use hexadecimal formatting. (Just look up HTML colors on Google)
To make it exactly same like NBB you can play with some basic HTML/CSS/JS

:zzz:
[Image: XhhKTdF.png]

Users browsing this thread: 1 Guest(s)