MyBB Community Forums

Full Version: html can be done without line breaks.
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hello,

After this thread, i'm here Smile

http://community.mybboard.net/showthread.php?tid=31136

the suggest is : html can be done without line breaks.


thanks Smile.
Yeah it makes sense. Have you posted it at http://ideas.mybboard.net yet? Smile
I think it is a "bug" , not a "new feature" ..............

It's done : http://ideas.mybboard.net/idea/html-can-...ine-breaks

But my english is not enough to explain clearly this idee Sad .

I can read and understand but when i need to write, it is another story.
up !

I solved this problem i think Smile

Now, no breack space and it's possible to read code and edit ....

I post here because i can't edit this one :
->http://community.mybboard.net/showthread.php?tid=31136

The problem was in big tables.

See pic space.jpg

I edit like this to make edition easy ...

But all breack lines in yellow, will be all on the top of the post......

Then i must edit like pic nospace.jpg

But if i want a breack line in table, i can do with  

this problem is not now for me Smile

I'll edit my index post like the pic : nbsp.jpg

It works Wink
Glad to here it works. It isn't a bug by the way. Without nl2br I wouldn't be able to do this:





Line breaks.
My future old board is IPB and there is a tag [dothtml].



i can do that too

But between html tag like <table > It works like real html..

I tried recently aef and it works like fine too beetwen [parsehml]

But the most important, is no blank lines but &nbsp; instead on mybb and it rocks Wink
If you want a fix, edit inc/class_parser.php

Find:
if($options['nl2br'] != "no")
Replace with
if($options['nl2br'] != "no" && ($options['allow_html'] != "yes" || $options['allow_mycode'] != "no"))
I'm not too sure about it being a standard feature, but see how things go...
Hello ZiNgA BuRgA,

Sorry for late, a little busy.

I tried your tip and nothing changed.

To be sure :

-I deleted firefox cache.
-I rebuilded all caches it was possible in admincp->maintenance.

I see no differences before and after.

i tried to post my big html index and i tried little post with bbcode.

thanks for your work Big Grin
If you have both HTML and MyCode enabled, it specifically won't work.
Oups sorry,

I disabled mybb code on the forum and it works.

But i can't do that, because html index is a little part of board, and all the other post too, don't have line break.

members won't be happy .


But the problem is not line break but blank line.

If the html code is done with an automatic software, it works fine.

But i have to make careful when editing manually.

replace a blank line with &nbps; don't work very fine.

The best would be to edit like real html beetwen html tag ...

<table>
.....
......
real html
.....
....
</table>

Anyway i found how to post with no problem....

Thanks for your help Wink