Quote:
Originally Posted by masalaman
We have to do this a bit different in 3.6.0.
1). Open "includes/class_bbcode.php"
2). Find function handle_bbcode_quote
3). Within function "handle_bbcode_quote" find the line below. This line is there at several places so make sure you found the right one.
eval('$html = "' . fetch_template($template) . '";');
4). Add the code below right after the above line.
Code:
//### HACK BEGIN - Turn [img] to [url]
if ($this->contains_bbcode_img_tags($html))
{
$html = preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "\$this->handle_bbcode_url(str_replace('\\\"', '\"', '\\1'), '')", $html);
}
//### HACK END
|
Thanks masalaman, works perfectly.
Now, is there a way to just put a spoiler tag around the images in a quoted post? Not replace the image with the link, just a spoiler tag around it.