I've noticed that people usually create separate IMG tag, to have an option uploading image with size.
Well I prefer making the default tag work correctly. Sooo... this was the easy part making adjustments in bbcode.php:
Line 475:
Code: Select all
'img' => '<img src="$1" style="width:$2px; height:$3px;" class="postimage" alt="' . $user->lang['IMAGE'] . '" />',
Code: Select all
'img' => array('{URL}' => '$1', '{NUMBER1}' => '$2', '{NUMBER2}'=> '$3'),
I am having trouble adjusting this line 271:
Code: Select all
'#\[img:$uid\](.*?)\[/img:$uid\]#s' => $this->bbcode_tpl('img', $bbcode_id),
How should I specify two optional numbers there?
Something like:
[img=([\-\+]?\d+):$uid\]
?