MyBB Tutorials

MyAlerts color based!

Submitted by AAA, , Thread ID: 18239

Thread Closed
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]

RE: MyAlerts color based!

#2
nice man, thanks bro
CONTACT:
YAHOO: Bebe.MDFK
STEAM: yo_yonutzy2010

RE: MyAlerts color based!

#3
This is pretty cool im definitely going to use this thanks for sharing.

RE: MyAlerts color based!

#4
pretty good bro!
thans for share
I will be your website dev - PM

Upgraded by Deleted_44 Heart Eyes
Write if you need some link

Never argue with an idiot. They will only bring you down to their level and beat you with experience


Users browsing this thread: 1 Guest(s)