However for security reasons other users CAN'T use it as it would be a severe security risk.
[img]http://www.example.net/image.jpg[/img]
? ;)
[url=http://www.the_site_that_image_open.net][img]http://www.example.net/image.jpg[/img]
[/url]
img width=90 height=32]http://img.xxxxxxxxx.com/488x160/1.jpg[/imgcomes out the size of a postage stamp. Unreadable. Thought using html would help. Not found of things not working the way they should. Know what I mean? Just makes you wonder what's wrong. LOL
$closable_tags = array('b', 'u', 'i', 's', 'em', 'ins', 'del', 'pre', 'blockquote', 'p', 'ul', 'li', 'strong');
Solution for adding more tags:
in Sources/Subs.php around line 1724Code: [Select]$closable_tags = array('b', 'u', 'i', 's', 'em', 'ins', 'del', 'pre', 'blockquote', 'p', 'ul', 'li', 'strong');
basically it can't because table/tr/td are protected against missing tags which will break when you add those other things in
03:12:00 06-10-10 | TODAY | This cell contains some text |
03:12:00 06-10-10 | TODAY | This is an example of a longer text, which will continue on the next line and will case the first cell (time/date) to break up; the date will move to the next line, and that's just what I don't want :( let's make it just a bit longer, for those with a wide screen or just a high resolution |
you could, i suppose, modify subs.php where it converts the table to <table> and add a class there for your tables but that's about it - certainly nothing in the bbcode side without a serious amount of rewriting
array(
'tag' => 'table',
'type' => 'unparsed_equals',
'before' => '<table class="$1">',
'after' => '</table>',
'require_children' => array('tr'),
'block_level' => true,
),
array(
'tag' => 'td',
'type' => 'unparsed_equals',
'before' => '<td id="$1">',
'after' => '</td>',
'require_parents' => array('tr'),
'trim' => 'outside',
'block_level' => true,
'disabled_before' => '',
'disabled_after' => '',
),
// Find [tr]s not followed by [td].
// '~\[tr\](?![\s' . $non_breaking_space . ']*\[td\])~s' . ($context['utf8'] ? 'u' : '') => '[tr][td]',
// Find [/td]s not followed by something valid.
// '~\[/td\](?![\s' . $non_breaking_space . ']*(?:\[td\]|\[/tr\]|\[/table\]))~s' . ($context['utf8'] ? 'u' : '') => '[/td][/tr]',
// Any remaining [tr]s should have a [table] before them.
// '~\[tr\]~s' => '[table][tr]',
see this is the part i was telling you would be trouble especially now since if users dont get the tags right it'll break the layout too and im not strong enough with regular expressions to fix this
<span class="imdbRatingPlugin" data-user="ur37096939" data-title="tt2188749" data-style="p5"><a href="http://www.imdb.com/title/tt2188749/?ref_=plg_rt_1">IMDb </a></span><script>(function(d,s,id){var js,stags=d.getElementsByTagName(s)[0];if(d.getElementById(id)){return;}js=d.createElement(s);js.id=id;js.src="http://g-ec2.images-amazon.com/images/G/01/imdb/plugins/rating/js/rating.min.js";stags.parentNode.insertBefore(js,stags);})(document,'script','imdb-rating-api');</script>