Kunena 6.3.0 released

The Kunena team has announce the arrival of Kunena 6.3.0 [K 6.3.0] in stable which is now available for download as a native Joomla extension for J! 4.4.x/5.0.x/5.1.x. This version addresses most of the issues that were discovered in K 6.2 and issues discovered during the last development stages of K 6.3

If you are having problems then, for your own benefit, it would save us all a lot of time if you would kindly post your configuration report when you ask for help from this forum. If you do not post your configuration report we will not ask you for it but you will probably not get your problem solved, either.

Bug Why use BR tag instead of P tag to make new line in message text?

More
10 years 11 months ago #1 by baijianpeng
Though I think this problem has nothing to do with my Kunena settings, I will post my settings here to show my resprect to your forum rules:

This message contains confidential information

Database collation check: The collation of your table fields are correct

Joomla! SEF: Disabled | Joomla! SEF rewrite: Disabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 600 seconds | Max execution memory: 512M | Max file upload: 1280M

Kunena menu details:

Warning: Spoiler!

Joomla default template details : beez_20 | author: Angie Radtke | version: 2.5.0 | creationdate: Unknown

Kunena default template details : Blue Eagle 2.0 | author: Kunena Team | version: 3.0.0-RC1 | creationdate: 2013-05-01

Kunena version detailed: Kunena 3.0.0-RC1 | 2013-05-01 [ Wanga ]
| Kunena detailed configuration:

Warning: Spoiler!
| Kunena integration settings:
Warning: Spoiler!
| Joomla! detailed language files installed:
Warning: Spoiler!

Third-party components: None

Third-party SEF components: None

Plugins: None

Modules: None


Well, now is my problem:

I noticed that Kunena uses BR tag ( <br> ) to make new lines in the message text. It seems that when user writing message and hit the Enter key, then Kunena's BBcode paser will use BR element to generate this new line.

You know, BR tag is very special, it can not being styled via CSS. For example, in Chinese language, we usually want to show text-indention in the first line of EACH paragraph. But, if Kunena uses BR instead of P tag, then this can NOT be achieved by CSS. We have to hack the code of Kunena php file.

I hate hacking php , I think you also don't want people do this.

So, why not use P element to generate new line (in fact, new paragraph) ?

Thanks.

www.joomlagate.com/

Chinese Joomla Users' Portal

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #2 by Matias
I think it's the limitation in the BBCode parser we're using.

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #3 by baijianpeng
Yes, it seems that the BBcode parser will replace line break with BR tag, instead of P tag.

Well, we know the reason now, can you fix this by modify the BBcode parser ? For example, let it replace the line break with P tag?

Thanks.

www.joomlagate.com/

Chinese Joomla Users' Portal

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago - 10 years 11 months ago #4 by sozzled
This is the issue: when you create a topic, new lines are created with a CR-LF

Therefore it's possible ...
to break ...
a line ...
by using ...
a CR-LF.

CR-LF is "translated" by the parser as <BR />

Obviously, if you translated CR-LF as <P> this is what would happen:

Every time you pressed CR-LF ...

you would have double line spaces ...

between each line.

So this is going to be complicated, isn't it?

What if you only want one line space? In your case, you want (in effect) two?
Last edit: 10 years 11 months ago by sozzled.

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #5 by baijianpeng
At least, we can control the empty space between two P tags with CSS, right? But we can not make CSS work with BR tag.

So, I prefer P tags.

Otherwise, how can you solve my former problem: define text-indention for the first line of EACH paragraph in post message text?

www.joomlagate.com/

Chinese Joomla Users' Portal

Please Log in or Create an account to join the conversation.

More
10 years 11 months ago #6 by sozzled
You can make some CSS work with the <br> tag. For example
Code:
#Kunena div.kmsgtext > br { line-height: 2.5em; }
You are right. You cannot use text-indent unless you are using <P> tags.

Sorry, but we can't help you with that one.

Please Log in or Create an account to join the conversation.

Time to create page: 0.595 seconds