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]

RE: MyAlerts color based!

BebeGFX
Junior Member
Level:
0
Reputation:
0
Posts:
72
Likes:
11
Credits:
48
02-05-2016, 11:55 PM
#2
nice man, thanks bro
CONTACT:
YAHOO: Bebe.MDFK
STEAM: yo_yonutzy2010

RE: MyAlerts color based!

kidtizzu
Banned
Level:
0
Reputation:
-3
Posts:
8
Likes:
0
Credits:
0
02-08-2016, 04:18 AM
#3
This is pretty cool im definitely going to use this thanks for sharing.

RE: MyAlerts color based!

Penny
????????
Level:
0
Reputation:
43
Posts:
361
Likes:
91
Credits:
1.05K
07-08-2016, 03:39 PM
#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)