The problem has been solved
Use <p></p> instead of <br /><br /> (http://www.simplemachines.org/community/index.php?topic=344103.0)
Answer please,
Which file should be replaced in SMF 1.1.10 to a new line in the post (when you press "Enter") is not separated:
<br />
well:
</ p><p>
It is necessary to specify the class of the paragraph to the default (interest indented paragraph)
p (text-indent: 40px;)
Welcome to SMF :)
Wait. So when you press enter when making a new post, start typing a new line, it doesn't automatically skip that line?
There should be no need for HTML coding, also, your codes are wrong.
It is just <br> and <p>, no need to end them.
You do not understand me !
SMF shares the line with <br /> in HTML in the browser
And I want to share them with the paragraphs </ p><p>
Where can I find <br /> and replace for </ p><p>?
AutoReplace <br /> on </ p> <p> in file sources/post.php failed.
Where to find this <br /> for messages lines ?
posting message:
line 1
line 2
line 3
SMF create HTML:
line 1<br />line 2<br />line 3
and I want that SMF create this HTML:
line 1</p><p>line 2</p><p>line 3
understand me ?
Quote from: Kill Em All on November 08, 2009, 05:44:17 PM
Welcome to SMF :)
Wait. So when you press enter when making a new post, start typing a new line, it doesn't automatically skip that line?
There should be no need for HTML coding, also, your codes are wrong.
It is just <br> and <p>, no need to end them.
I suggest you brush up on your XHTML. ;) <br /> is correct.
Can't you answer me on MY question ?
Correct or not correct - not important for me.
I want to replace this in PHP-code
so is comfortable for me to put articles in forum.
Quote from: Antechinus on November 08, 2009, 06:05:44 PM
Quote from: Kill Em All on November 08, 2009, 05:44:17 PM
Welcome to SMF :)
Wait. So when you press enter when making a new post, start typing a new line, it doesn't automatically skip that line?
There should be no need for HTML coding, also, your codes are wrong.
It is just <br> and <p>, no need to end them.
I suggest you brush up on your XHTML. ;) <br /> is correct.
I think I might return the book I got for it :( Doesn't seem to be helping.
@ Vveb.ws What are you using to make your articles?
You problem is going to be conflicts with other areas using BBC. Read this: http://www.simplemachines.org/community/index.php?topic=344103.0
Quote@ Vveb.ws What are you using to make your articles?
people - special BB-codes maked from mod "Custom BB-codes"
admin - (html)(/html) and NamoWebEditor
thanks, topic usefull, but it don't answer
1) blank paragraf
need to write
<p> </p>
it's simple !
<br /> - replase with - </p><p>
2) \n
QuoteRight now every single instance of \n becomes <br />.
If you want to have \n\n become <p>, you will have to go through and evaluate every single \n to determine if it's inside a code tag or not
This is I don't no, how do it...
But I think that simle replace (<br /> - replase with - </p><p> ) works here too. Or not ?
Answer, please, short:
is it possible do as I want, or not? simply replace in one file and all?
and most important:
in which file I shall do this replace ?Note, I do not want to rewrite the entire forum and everywhere delete <br />, I only want to
make a normal paragraph for the posts (articles) here
<hr width="100%" size="1" class="hrcolor" />
<div class="post" id="msg_10">...
In other places i don't replace <br />
OK, so you want the following input
This is a long line that wraps around and its paragraph occupies multiple lines when formatted.
This is another line after a carriage return.
Two carriage returns to cause a blank line.
which currently gives you
This is a long line that wraps around and its paragraph occupies multiple lines when formatted.<br />
This is another line after a carriage return.<br />
<br />
Two carriage returns to cause a blank line.<br />
to instead give you
<p>This is a long line that wraps around and its paragraph occupies multiple lines when formatted.</p>
<p>This is another line after a carriage return.</p>
<p> </p>
<p>Two carriage returns to cause a blank line.</p>
because you want the first line of any paragraph is to be indented?
Have you considered how you want to handle manually-entered breaks (two carriage returns together) -- ignore these or format as an empty paragraph? Do want every carriage return to cause the preceding text to be wrapped in paragraph tags? I'm just trying to anticipate things your users might type in that might give odd results.
I'm wondering if you would be better off giving your users more formatting control by letting them explicitly give paragraph tags. I don't think there's one built in, but you could either enable post HTML and add <p> and </p> to the list ($closable_tags) in Sources/Subs.php, or add [p] and [/p] BBCode tags in Sources/Subs.php (parse_bbc function).
If you can't trust your users to properly use paragraph tags, I'm sure it's possible to modify the code to wrap <p> and </p> tags around paragraphs. Just be sure that empty lines (manual blank lines between paragraphs) behave the way you want. If not, you'll need to put in special code to detect and handle such cases, such as dummy empty lines with , or remove such lines completely. It's not as simple as replacing <br /> insertion with </p><p>, because 1) you have to add a <p> at the very beginning of the post, 2) deal with any hanging <p> at the end of the post (depends on whether the user typed a carriage return at the very end), and 3) do something reasonable with empty lines. I can't promise that all browsers handle <p></p> in the same way.
I want mark text so:
This is a long line that wraps around and its paragraph occupies multiple lines when formatted.</p><p>
This is another line after a carriage return.</p><p>
</p><p>
Two carriage returns to cause a blank line.</p><p>
I know, that you marking text with <p> </p> more corectly (such writen in web-editors), but my variant simply to replace and be works to ;D
MrPhil, You think too difficult :o for this simple question :) Be simply !
QuoteJust be sure that empty lines (manual blank lines between paragraphs) behave the way you want. If not, you'll need to put in special code to detect and handle such cases, such as dummy empty lines with , or remove such lines completely.
Quote3) do something reasonable with empty lines. I can't promise that all browsers handle <p></p> in the same way.
insert and no problems
QuoteIt's not as simple as replacing <br /> insertion with </p><p>, because
1) you have to add a <p> at the very beginning of the post,
2) deal with any hanging <p> at the end of the post (depends on whether the user typed a carriage return at the very end),
I can insert beginnig <p> and ending </p> here (in which file this lines are ?)
<hr width="100%" size="1" class="hrcolor" />
<div class="post" id="msg_10">...
or NOT ANY INSERT ! It be work and without beginnig <p> and ending </p>
It's not a problem !!
Dear friends, can't you at last :-\ answer me, where I can it replace ?
You all writing TOO much, but nobody don't answer my questions :(
concrete, please !
People, excuse me!
It turns out that by AutoCorrect can NOT.
I opened all the php-files and replaced by AutoCorrect
<br /> on </p><p>
<br> on </p><p>
everywhere it <br /> disappeared, and in messages left. Obviously, the tag <br /> appears always in PHP with a <textarea> when entering text and line the Enter key
So, I only need to append a special code replacement <br /> to </p><p> , but where - I do not know
The problem has been solved
Use <p></p> instead of <br /><br /> (http://www.simplemachines.org/community/index.php?topic=344103.0)