https://www.icyphoenix.com/viewtopic.php?f=35&t=2153
-----------------------------------
Aexo
Tue 29 May, 2007 15:43

Images In Forum_attach Block
-----------------------------------
hello

I'd like put news in portal. I have forum_attach block in portal but It doesn't see the [img] code. Can I activate it?

You can see in www.elitemoviles.net

Thanks

[color=#ff0019]Webmaster[/color]: [url=http://www.elitemoviles.net]EliteMoviles
Server: Sotem.es
Version: 1.0.1.15


-----------------------------------
Mighty Gorgon
Tue 29 May, 2007 15:54

Re: Images In Forum_attach Block
-----------------------------------
[quote user="Aexo" post="15561"]I'd like put news in portal. I have forum_attach block in portal but It doesn't see the [img] code. Can I activate it?[/quote]
Disable the trim for posts in that block and use IMG in lowercase.


-----------------------------------
Aexo
Tue 29 May, 2007 16:11

Re: Images In Forum_attach Block
-----------------------------------
Thanks, Mg, but I cannot disable the trim because the post is very large. I like the trim because I can see a bit of post.

---

Sorry, but I cannot find this option.

[img]http://i8.tinypic.com/4opwjeo.jpg[/img]


-----------------------------------
Aexo
Tue 29 May, 2007 22:53

Re: Images In Forum_attach Block
-----------------------------------
Why can I see the image in a forum, but in other forum I cannot see it? One news don´t see the image, other news in other forum see the image


-----------------------------------
Zuker
Tue 29 May, 2007 23:03

Re: Images In Forum_attach Block
-----------------------------------
Please do not auto bump posts
wait for an asnwer or edit ;)


-----------------------------------
Aexo
Tue 29 May, 2007 23:10

Re: Images In Forum_attach Block
-----------------------------------
yes, sorry. I edit one and I put --- to separate. The last one was without want to do it.

When I discover something, I come here and write it. So I give more help to solve my problem. I don't want create problem, but help


-----------------------------------
Mighty Gorgon
Thu 31 May, 2007 18:37

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:
[codeblock][b]1234567890[/b][/codeblock]

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][b]12[/b][/quote]

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][b]1234567890[/b][/quote]

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. :sad:


