I can't find the hook location "bbcode_img_match", its not listed in the Hook Locations. My vB version is 4.1.4.
However, when I open "class_bbcode.php" in Notepad++, I see this:
Code:
/**
* Handles a match of the [img] tag that will be displayed as an actual image.
*
* @param string The URL to the image.
*
* @return string HTML representation of the tag.
*/
function handle_bbcode_img_match($link, $fullsize = false)
{
$link = $this->strip_smilies(str_replace('\\"', '"', $link));
// remove double spaces -- fixes issues with wordwrap
$link = str_replace(array(' ', '"'), '', $link);
return ($fullsize ? '<div class="size_fullsize">' : '') . '<img src="' . $link . '" border="0" alt="" />'
. ($fullsize ? '</div>' : '');
}
/**
The "handle_bbcode_match" function, what is that? Should the "bbcode_match" hook location be in vB? Or am I missing something?
Edit: I got it working by using this method:
https://vborg.vbsupport.ru/showthrea...75#post2411575 (Thanks to Kh99), and I am on 4.1.4, it works great.
*INSTALLED