MyBB Community Forums

Full Version: Html in AdminCP
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hey,

I'm trying to put some HTML in the AdminCP for a plugin, but I cant get it working somehow.

I use this:

$userBanned = ($row['banned'] == "1" ? '<a class="tooltip">Yes<span class="banned"><b>Ban details</b><br />Authority: '.$bannedByAuthX.'<br />Date: '.$bannedDate.'<br />Expiry: '.$bannedExpiry.'<br />Reason: '.$bannedReason.'</span>' : 'No');

and then this:

$table->construct_cell(htmlspecialchars_uni($userBanned));

But this is the output:
<a class="tooltip">Yes<span class="banned"><b>Ban details</b><br />Authority: <font color="">|</font><font color="">DC*</font><font color="">little</font><font color="">-</font><font color="">wouter</font><font color="">|</font><font color="">AAT</font><br />Date: 20-6-2010 13:51:13 +0200<br />Expiry: <i>Permanent</i><br />Reason: <font color="">HACKS</font></span>

Anyone an idea how to put html on that place to make it smoother? thanks.

Tankey
That's because you're using htmlspechialchars_uni(). It converts HTML characters into their HTML entities.
Argh fck ur right. Thanks for the explaining though ;3