2015-08-05, 06:24 PM
2015-11-28, 03:12 AM
(2015-08-05, 06:24 PM)lookism Wrote: [ -> ]Is it possible to add one?
Actually it is pretty simple.
Edit dvz_shoutbox.php. Find this code:
if ($own) {
$attributes .= ' data-own';
}
And write this after that:
if($mybb->user['ignorelist'] != '')
{
$ignlist = explode(",", $mybb->user['ignorelist']);
if(!empty($ignlist) && in_array($data['uid'], $ignlist, true))
{
$text = '<span style="font-style: italic; font-size: 0.85em;">' . self::parse('This user is on your ignore list.', $data['username']) . '</span>';
}
}
You can simply write "return null;" instead of $text= (...) if you don't want to show any ignored messages.