Het probleem komt door de Limit Image Width MOD.
Ik heb eerst de update gedaan naar 2.0.15
Gevolg was dat de links niet werkten zoals het zou moeten
Vervolgens heb ik onderstaande veranderingen gedaan.
Het werkt nu weer zoals het hoort
Code: Selecteer alles
#
#-----[ OPEN ]------------------------------------------------
#
includes/bbcode.php
#
#-----[ FIND ]------------------------------------------------
#
// [img]image_url_here[/img] code..
// This one gets first-passed..
$patterns[] = "#\[img:$uid\]([^?].*?)\[/img:$uid\]#i";
$replacements[] = $bbcode_tpl['img'];
#
#-----[ REPLACE WITH ]----------------------------------------
#
// [img]image_url_here[/img] code..
// This one gets first-passed..
//$patterns[] = "#\[img:$uid\]([^?].*?)\[/img:$uid\]#i";
//$replacements[] = $bbcode_tpl['img'];
#
#-----[ FIND ]------------------------------------------------
#
// [email]user@domain.tld[/email] code..
$patterns[] = "#\[email\]([a-z0-9&\-_.]+?@[\w\-]+\.([\w\-\.]+\.)?[\w]+)\[/email\]#si";
$replacements[] = $bbcode_tpl['email'];
#
#-----[ AFTER, ADD (haal de oude mod weg) ]------------------------------------------
#
//
// Limit Image Width MOD --- BEGIN
//
global $board_config, $parse_sig, $postrow, $i, $row, $poster_id, $username_from;
$max_image_width = intval($board_config['liw_max_width']);
if ( preg_match_all("#\[img:$uid\]([^?].*?)\[/img:$uid\]#i", $text, $images) )
{
$image_patterns = array();
$image_replacements = array();
if ( $parse_sig )
{
$image_identifier = $poster_id;
}
elseif ( !empty($postrow[$i]['post_id']) )
{
$image_identifier = $row['post_id'];
}
else
{
$image_identifier = $postrow[$i]['post_id'];
}
while ( list($index, $image_source) = each($images[1]) )
{
if ( ( ( $max_image_width != 0 && $board_config['liw_enabled'] == 1 && !$parse_sig ) || ( $parse_sig && $board_config['liw_sig_enabled'] == 1 ) ) && !isset($username_from) )
{
list($image_width, $image_height) = liw_get_dimensions($image_source, $image_identifier);
if ( $image_width && $image_width > $max_image_width || empty($image_width) || empty($image_height) )
{
$image_patterns[] = $images[0][$index];
if ( $parse_sig )
{
$image_replacements[] = '<img src="' . $images[1][$index] . '" alt="" width="' . $max_image_width . '" border="0">';
}
else
{
$image_replacements[] = generate_liw_img_popup($images[1][$index], $image_width, $image_height, $max_image_width);
}
}
else
{
$image_patterns[] = $images[0][$index];
$image_replacements[] = '<img src="' . $images[1][$index] . '" alt="" border="0">';
}
}
else
{
$image_patterns[] = $images[0][$index];
$image_replacements[] = '<img src="' . $images[1][$index] . '" alt="" border="0">';
}
}
$text = str_replace($image_patterns, $image_replacements, $text);
}
//
// Limit Image Width MOD --- END
//