Jump to the post that solved this thread.
Solved: 1 Year, 10 Months, 3 Weeks ago Dynamic PM Alert Class?
#6
Solved: 1 Year, 10 Months, 3 Weeks ago
(2020-10-29, 04:52 AM)tomjay78 Wrote: Just figured out another (possibly cleaner) way of doing this in case anyone is interested.

First install the template conditionals plugin, then just use something like this:

<if $mybb->user['unreadAlerts'] == 0 then><div class="notif-not-found">{$mybb->user['unreadAlerts']}</div><else><div class="notif-found">{$mybb->user['unreadAlerts']}</div></if>

I love template conditionals, I use it too. But downloading a plugin, vs. standard mybb core is never a "better" solution" Core is always better.
Hey man, what's up?
Reply
Jump to the post that solved this thread.


Messages In This Thread
Dynamic PM Alert Class? - by tomjay78 - 2020-10-27, 05:16 AM
RE: Dynamic PM Alert Class? - by Michael2014 - 2020-10-28, 02:07 AM
RE: Dynamic PM Alert Class? - by tomjay78 - 2020-10-28, 02:05 PM
RE: Dynamic PM Alert Class? - by Michael2014 - 2020-10-28, 05:37 PM
RE: Dynamic PM Alert Class? - by tomjay78 - 2020-10-29, 04:52 AM
RE: Dynamic PM Alert Class? - by Michael2014 - 2020-10-30, 10:39 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)