I think I just need a fresh pair of eyes because I can't find the problem at all, but here goes:
Why isn't my new template being displayed? The template "UserImages_images" does exist.
EDIT: if I die(str_replace($search, $search . $template->create('UserImages_images', $hookParams)->render(), $contents)), it outputs fine, however when I return it, it doesn't display.
PHP:
public static function templateHook($hookName, &$contents, array $hookParams, XenForo_Template_Abstract $template)
{
if ($hookName == 'message_user_info_text')
{
$search = '<h3 class="userText">';
return str_replace($search, $search . $template->create('UserImages_images', $hookParams)->render(), $contents);
}
}
Why isn't my new template being displayed? The template "UserImages_images" does exist.
EDIT: if I die(str_replace($search, $search . $template->create('UserImages_images', $hookParams)->render(), $contents)), it outputs fine, however when I return it, it doesn't display.