GoBieN wrote:Quick question.
I have the slight problem that some users use the [ IMG ] tag with an imageshack thumbnail that links to the big image.
The BBcode is then something like this:
....Code: Select all
[URL=http://img84.imageshack.us/img84/7637/caminodesantiago461il8.jpg][IMG]https://camo.phpbb.com/0f80cff94d897870dacc97098a4c16459134436d/687474703a2f2f696d6738342e696d616765736861636b2e75732f696d6738342f373633372f63616d696e6f646573616e746961676f343631696c382e74682e6a7067[/IMG][/URL]
I got it to work
The imageshack thumbnails work now, the highslide takes the big version for pop-up
Here is how:
In includes/bbcode.php
FIND:
Code: Select all
if (!defined('IN_PHPBB'))
{
exit;
}
Code: Select all
// HIGHSLIDE IMAGE MOD Function to convert strings with .th.jpg inside to .jpg
function highstan($var1)
{
if (strpos($var1,".th.jpg") === false)
{
//do nothing
}
else
{
$var1 = str_replace(".th.jpg",".jpg",$var1);
}
return $var1;
}
Code: Select all
$message = preg_replace($preg['search'], $preg['replace'], $message);
Code: Select all
$message= highstan($message);