tl;dr
Replace: $lang->messagemore
With: <img src="/res/gif/bullet_info_sq.gif" alt="" />
When you replace your PHP variable with the img
tag, the HTML must still remain within the quotes of the PHP string, and thus the actual quotes for your img
tag must be escaped, just as you've done for your a
tag. You may also opt to use single quotes, to avoid having to escape. This should result any one of the following equivalent code snippets (I've added whitespace for readability):
Double quotes (with escaping):
$message = $message . "...<br />
<a href=\"" . $mybb->settings['bburl'] . "/" . $announcement['threadlink'] . "\">
<img src=\"/res/gif/bullet_info_sq.gif\" alt=\"\" />
</a>";
Single quotes for HTML attributes:
$message = $message . "...<br />
<a href='" . $mybb->settings['bburl'] . "/" . $announcement['threadlink'] . "'>
<img src='/res/gif/bullet_info_sq.gif' alt='' />
</a>";
Single quotes for PHP string:
$message = $message . '...<br />
<a href="' . $mybb->settings['bburl'] . '/' . $announcement['threadlink'] . '">
<img src="/res/gif/bullet_info_sq.gif" alt="" />
</a>';