Kunena 7.1.1 & Kunena 6.4.17 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.1.1 [K 7.1.1] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x./6.1.x./6.2.x This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 / K7.0 and issues discovered during the last development stages of K 7.1
Just a reminder: K6.4.17 receives only securities fixes until end of 2026, so it's advised for users to upgrade to K7.1.

Question Multilingual LTR and RTL sites. Load different kunena.forum.css files for each language

More
16 years 3 months ago #56260 by Matias
Replied by Matias on topic Re: kunena.forum.css ?
I didn't check the code, I just corrected the bugs in it.

Yes, $this->language does not exist in Kunena 1.5 context.

I believe that you need to detect language because of RTL? This is how you do it.
Code:
$lang = JFactory::getLanguage(); if ($lang->isRTL()) { $document->addStyleSheet(KUNENA_DIRECTURL . '/template/default_ex/rtl.css'); } else { $document->addStyleSheet(KUNENA_DIRECTURL . '/template/default_ex/ltr.css'); }
The following user(s) said Thank You: OfekA

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

More
16 years 3 months ago #56263 by OfekA
Replied by OfekA on topic Re: kunena.forum.css ?

Matias wrote: I didn't check the code, I just corrected the bugs in it.

Yes, $this->language does not exist in Kunena 1.5 context.

I believe that you need to detect language because of RTL? This is how you do it.

Code:
$lang = JFactory::getLanguage(); if ($lang->isRTL()) { $document->addStyleSheet(KUNENA_DIRECTURL . '/template/default_ex/rtl.css'); } else { $document->addStyleSheet(KUNENA_DIRECTURL . '/template/default_ex/ltr.css'); }

Matias, I can't describe in words how much I thank you!
Works perfectly!

Now hours of css tweaking :D

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

More
16 years 3 months ago #56327 by Matias
Replied by Matias on topic Re: kunena.forum.css ?
For the future: We really need someone to do RTL support for default template in Kunena 1.6.

If someone provides us css file for RTL (preferably containing only changes to default css) I would be glad to add buildin support for RTL languages.
The following user(s) said Thank You: ahmedfouad

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

More
16 years 3 months ago #57542 by iLucato
Replied by iLucato on topic Re: kunena.forum.css ?
Would somebody tell me what does LTR and RTL means?

Matias, if I understood the code above will change the css depending on selected language (joomla), right? But, if I want to use the same css for both, but I just want to call a different forum structure (forum/posts/threads) for each language?

Kunena 2.0.4 | 2013-01-18 [ Pharmacopoeia ], J!1.5.25, rhuk_milkyway, CB 1.8.1, AUP 1.5.13, UddeIM 2.5 and Akeeba Backup 3.3.9

EsferaDoBem.com.br | iLucato.com.br | BemDoado.com.br

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

More
16 years 2 months ago #60876 by ahmedfouad
Replied by ahmedfouad on topic Re: kunena.forum.css ?
We need this feature and I know only miner things about CSS :( but i can help with the translation from English to Arabic:)

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

More
16 years 2 months ago #60878 by Cerberus
Replied by Cerberus on topic Re: kunena.forum.css ?
LTR = left to right

RTL = right to left

LTR and RTL = the direction you read the word in

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

Time to create page: 0.126 seconds