Kunena 6.2.6 released

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

This category is for the plugin developed, endorsed, maintained and supported by the Kunena project team. The topics in this category only relate to the plugin developed for K 1.6 and later versions.

Question large whitespace

More
12 years 7 months ago #1 by John
large whitespace was created by John
I would like to use Kunena Discuss plugin but I ran into a small problem. The plugin works fine, only the post on the forum starts with a big white space? How do I solve this problem?

Example on my testserver: www.pickyourfish.com/forum/ideeenbus/391...ia-afra-chewere#3911

This message contains confidential information

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

Legacy mode: Disabled | Joomla! SEF: Enabled | Joomla! SEF rewrite: Enabled | FTP layer: Disabled |

This message contains confidential information
htaccess: Exists | PHP environment: Max execution time: 60 seconds | Max execution memory: 32M | Max file upload: 10M

This message contains confidential information

Joomla default template details : yoo_expo | author: YOOtheme | version: 5.5.2 | creationdate: December 2010

Kunena default template details : Blue Eagle (default) | author: Kunena Team | version: 1.7.0 | creationdate: 2011-08-29

Kunena version detailled: Installed version: 1.7.0 | Build: 5135 | Version name: Tale | Kunena detailled configuration:

Warning: Spoiler!

Third-party components: Jomsocial 2.2.4

Third-party SEF components: None

Plugins: System - Mootools Upgrade: Enabled | System - Mootools12: Disabled | Kunena Discuss 1.7.0 | My Kunena Forum Posts 1.6.0-RC1

Modules: Kunena Latest 1.7.0

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

More
12 years 7 months ago #2 by Matias
Replied by Matias on topic Re: large whitespace
Here is a fix to it:

components/com_kunena/lib/kunena.parser.php line 744:

Replace this
Code:
$tag_new = '<div class="kmsgtext-article">'.$html.'</div>'.$link;
with this
Code:
$html = str_replace(array("\r\n","\n","\r"),"__KRN__",$html); $tag_new = '<div class="kmsgtext-article">'.$html.'</div>'.$link;

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

More
12 years 7 months ago #3 by John
Replied by John on topic Re: large whitespace
Thank you very much!

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

More
12 years 7 months ago #4 by John
Replied by John on topic Re: large whitespace
Unfortunatly the changes don't work: www.pickyourfish.com/forum/ideeenbus/3916-pseudotropheus-acei

Pages starting with a table give the white space above the article. Pages without a table work just fine: www.pickyourfish.com/forum/ideeenbus/391...tropheus-fuelleborni

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

More
12 years 7 months ago - 12 years 7 months ago #5 by John
Replied by John on topic Re: Large whitespace
No other ideas? I would really like to use Kunena Discuss to boost my forum B)
Last edit: 12 years 7 months ago by John.

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

More
12 years 7 months ago #6 by Matias
Replied by Matias on topic Re: Large whitespace
I was away from the forum a few days.

There's still some <br> in that page. Can you provide source code for example article (show html from the editor) and echo it into here, so I can run some tests with it.

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

More
12 years 7 months ago - 12 years 7 months ago #7 by John
Replied by John on topic Re: Large whitespace
:blush: sorry, didn't want to be impatient...
Code:
<table border="0"> <tbody> <tr> <td><strong>Maximale Lengte Man</strong></td> <td>15 Centimeter</td> </tr> <tr> <td><strong>Maximale Lengte Vrouw </strong></td> <td>13 Centimeter</td> </tr> <tr> <td><strong>Familie</strong></td> <td>Cichlidae</td> </tr> <tr> <td><strong>Herkomst</strong></td> <td>Malawi</td> </tr> <tr> <td><strong>Dieet</strong></td> <td>Herbivoor</td> </tr> <tr> <td><strong>Broed Gedrag</strong></td> <td>Muilbroeder</td> </tr> <tr> <td><strong>Temperament</strong></td> <td>Vredelievend</td> </tr> <tr> <td><strong>Onderling</strong> <strong>Temperament </strong></td> <td>Mild Agressief</td> </tr> <tr> <td><strong>Temperatuur</strong></td> <td>22 - 26</td> </tr> <tr> <td><strong>pH</strong></td> <td>7.5 - 8.5</td> </tr> <tr> <td><strong>GH</strong></td> <td>12 - 16</td> </tr> </tbody> </table> <div align="left"></div> <div align="left">Het dieet van de pseudotropheus acei is eigenlijk erg ongewoon.&nbsp;Hij voedt zich namelijk met algen die groeit op hout.&nbsp;Hierdoor houdt hij zich op rond plaatsen&nbsp;waar takken en wortels in het water hangen of waar deze in het water zijn gevallen.</div> <div align="left"></div> <div align="left">Voor een malawi is deze soort opmerkelijk vredelievend en hierdoor zeer geschikt&nbsp;als aanvulling op vrijwel elke&nbsp;Mbuna bak, ook voor pas&nbsp;beginnende Malawi&nbsp;houders.</div> <div align="left"><img src="images/stories/malawi_mbuna/pseudotropheus-acei.jpg" alt="pseudotropheus-acei" style="margin: 5px;" width="660" /></div> <div align="left"><img src="images/stories/malawi_mbuna/pseudotropheus-acei-2.jpg" alt="pseudotropheus-acei-2" style="margin: 5px;" width="660" /></div> <div align="left">[youtube:http://www.youtube.com/watch?v=yY1fbt8TxpY]</div> <div align="left"></div> <div align="left">Foto's: <a target="_blank" href="index.php?option=com_weblinks&amp;view=weblink&amp;id=52&amp;catid=113">J. de Lange</a></div>


A second page:
Code:
<table border="0"> <tbody> <tr> <td><strong>Maximale Lengte Man</strong></td> <td>15 Centimeter</td> </tr> <tr> <td><strong>Maximale Lengte Vrouw </strong></td> <td>15 Centimeter</td> </tr> <tr> <td><strong>Familie</strong></td> <td>Cichlidae</td> </tr> <tr> <td><strong>Herkomst</strong></td> <td>Malawi</td> </tr> <tr> <td><strong>Dieet</strong></td> <td>Omnivoor</td> </tr> <tr> <td><strong>Broed Gedrag</strong></td> <td>Muilbroeder</td> </tr> <tr> <td><strong>Temperament</strong></td> <td>Agressief</td> </tr> <tr> <td><strong>Onderling</strong> <strong>Temperament </strong></td> <td>Agressief</td> </tr> <tr> <td><strong>Temperatuur</strong></td> <td>22 - 26</td> </tr> <tr> <td><strong>pH</strong></td> <td>7.5 - 8.5</td> </tr> <tr> <td><strong>GH</strong></td> <td>12 - 16</td> </tr> </tbody> </table> <p><strong>Synoniemen</strong>: Pseudotropheus Chameleo, Melanochromis Crabro.</p> <p><strong>Herkomst</strong>:<br />Komt bijna in heel het Malawimeer voor.</p> <p><strong>Uiterlijk</strong>:<br />Lengte 10-12 cm., in het aquarium kunnen ze wel tussen de 15 en 20 cm. worden. Ze kunnen heel snel van kleur veranderen, als een "kameleon". Ze zijn geel met bruine strepen maar kunnen ook heel snel donkerbruin van kleur worden.</p> <p><strong>Inrichting</strong>: <br />Voor deze vissen is een aquarium nodig van minimaal 1.50 meter. De bak inrichten met grote stenen zodat er holen ontstaan, de bodem moet bestaan uit zand. De planten worden met rust gelaten. Het is aan te raden regelmatig water te verversen.</p> <p><strong>Water</strong>: <br />Temperatuur: 24-26 graden.<br />PH: 8<br />GH: 12-16</p> <p><strong>Voeding</strong>:<br />Als voedsel kan zowel levend voer als diepvriesvoer gegeven worden zoals witte muggelarven, watervlooien, krill, cyclops, garnalen en mosselen. Ook droogvoer, cichlidensticks en spirulina lusten ze graag. Hou er rekening mee dat het grote eters zijn, een vette regenworm gaat er ook wel in.</p> <p><strong>Karakter</strong>:<br />Het is een rustige cichlide en nauwelijks territoriaal. In het meer is de Crabro een "poetsvis" voor de meerval Bagrus meridionalis, daarvan pikt hij de parasieten van zijn lijf. Ze doen zich ook tegoed aan de eitjes van deze meervallen.</p> <p><strong>Kweek</strong>:<br />De kweek is vrij makkelijk, er worden 20 tot 60 eitjes afgezet en bevrucht, en daarna door het vrouwtje in de bek genomen. Na ongeveer 3 weken worden de jongen losgelaten, ze kunnen opgekweekt worden met artemia-naupliën, opfokvoer of fijngewreven droogvoer.</p> <p><img src="images/stories/malawi_mbuna/Pseudotropheus_crabro_vrouw.jpg" alt="Pseudotropheus_crabro_vrouw" style="margin: 5px;" height="427" width="640" /></p> <p>[youtube:www.youtube.com/watch?v=VTfqfNwWLq4]</p> <p>Auteur: <a href="index.php?option=com_content&amp;view=article&amp;id=400:coby-malawi-sprundel&amp;catid=53&amp;Itemid=121">Coby. © Copyright Parelsuitmalawi.nl</a><br />Foto: <a href="index.php?option=com_content&amp;view=article&amp;id=400:coby-malawi-sprundel&amp;catid=53&amp;Itemid=121">Coby. © Copyright Parelsuitmalawi.nl</a><br />Video: <a target="_blank" rel="nofollow" href="http://www.cichlids4ever.com">www.cichlids4ever.com</a></p>

They are both starting with a table.
Last edit: 12 years 7 months ago by John.

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

More
12 years 7 months ago #8 by Matias
Replied by Matias on topic Re: Large whitespace
Both are looking good in my test site. It looks like that you have missed something what I've changed...
Hmm..

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

More
12 years 7 months ago - 12 years 7 months ago #9 by John
Replied by John on topic Re: Large whitespace
This is the code around line 744 you gave me:
Code:
if (!empty($article->text)) { $params = clone($kunena_app->getParams('com_content')); $aparams = new JParameter($article->attribs); $params->merge($aparams); // Identify the source of the event to be Kunena itself // this is important to avoid recursive event behaviour with our own plugins $params->set('ksource', 'kunena'); JPluginHelper::importPlugin('content'); $results = $dispatcher->trigger('onPrepareContent', array (& $article, & $params, 0)); $html = $article->text; } } $html = str_replace(array("\r\n","\n","\r")," ",$html); $tag_new = '<div class="kmsgtext-article">'.$html.'</div>'.$link; return TAGPARSER_RET_REPLACED; } return TAGPARSER_RET_NOTHING; break;
Last edit: 12 years 7 months ago by John.

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

More
12 years 6 months ago #10 by Matias
Replied by Matias on topic Re: Large whitespace
Sorry for delay, I missed your post. Your code should remove extra <br /> inside article html source (check that). It may not solve all layout issues -- those need to be looked at by modifying CSS.

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

Time to create page: 0.524 seconds