
Re: Images In Forum_attach Block
It is not possible to have full control on BBCode while trim is enabled because some tags may be cut not properly by the trim function.
Example:
Consider that 10 chars between the bold tag... let's suppose you set the trim to 5 chars...
Well, the tag for bold will be opened and then only the first two chars will be parsed... then a link to read the full post will be inserted and the tag will remain open!!!
This will be the output:
Quote:
12
With the <b> tag open and the page is not valid...
The only way to prevent this is to disable bbcodes... that's why bbcodes are disabled in that block when trimming.
Trim for news works in a different way: even if a trim chars is set, then bbcode tags won't remain open because the trim stops only when the tag is closed. So, in the news block, if you set a trim after 5 chars, the above text will be shown in this way:
Quote:
1234567890
As you can see the text won't be trimmed at all, because the tag is closed only at the end of the post.
Sorry, but there is no easy way to threat this.