parser.php:
Find:
'#\[img\]\s*(.*?)\s*\[/img\]#is',
Add after:
'#\[imgrs\]\s*(.*?)\s*\[/imgrs\]#is',
Find:
Add after:
Find (2 palces):
$text = preg_replace('#\[img\]((ht|f)tps?://)([^\s<"]*?)\[/img\]#e', 'handle_img_tag(\'$1$3\')', $text);
Add after:
$text = preg_replace('#\[imgrs\]((ht|f)tps?://)([^\s<"]*?)\[/imgrs\]#e', 'handle_img_tag_res(\'$1$3\')', $text);
Find:
Add after:
function handle_img_tag_rs($url, $is_signature = false)
{
global $lang_common, $pun_config, $pun_user;
$img_tag = '<a href="'.$url.'" onclick="window.open(this.href); return false;"><'.$lang_common['Image link'].'></a>';
if ($is_signature && $pun_user['show_img_sig'] != '0')
$img_tag = '<img class="sigimage" src="'.$url.'" alt="'.htmlspecialchars($url).'" />';
else if (!$is_signature && $pun_user['show_img'] != '0')
$img_tag = '<img width="500" class="postimg" src="'.$url.'" alt="'.htmlspecialchars($url).'" /> <br> This image has been resized, click <a href="'.htmlspecialchars($url).'">here</a> to view the full-sized image.';
return $img_tag;
}
Save and upload
Hope that was everything, long time since I added it
Now you have a new image tag called
Post hoc ergo propter hoc