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.

Solved H1 Titles in Kunena!

More
10 years 5 months ago #176355 by sozzled
Replied by sozzled on topic H1 Titles in Kunena!

romagromov wrote: This is a BUG in stable version.

I agree with you and so, too, do others who have contributed to this discussion. The developers, on the other hand, seem to have as different view about K 4.0 as indicated in msg #24 above. Apparently (unless I have misunderstood what was written in msg #24 above) there will be no bugfixes for K 4.0. But, we can wait to see if there's been a change of heart. As I understand the message, if you use K 4.0—the current stable version—you have to live with it as it is. Sorry.

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

More
10 years 5 months ago - 10 years 5 months ago #176462 by romagromov
Replied by romagromov on topic H1 Titles in Kunena!
Ok, I trying to fix it.
But Kunena have very tangled code.

I found, that Blue Eagle template generates Meta Description and Keywords from this file:

/components/com_kunena/views/topic/view.html.php


Crypsis get Meta Description and Keywords from here

/components/com_kunena/controller/topic/item/display.php

Line 149

code
Code:
$this->headerText = JText::_('COM_KUNENA_TOPIC') . ' ' . html_entity_decode($this->topic->displayField('subject'));

UPD.

I got it!

I need some time to fix it.

Download Free Software for Windows absolutly free.
Last edit: 10 years 5 months ago by romagromov.

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

More
10 years 5 months ago - 10 years 5 months ago #176466 by romagromov
Replied by romagromov on topic H1 Titles in Kunena!
Fix of Meta Description and Meta Keywords for Crypsis template

Open file /components/com_kunena/controller/topic/item/display.php

Found code in line 374
Code:
$this->setKeywords($headerText);

replace with
Code:
$this->setKeywords($this->topic->subject.', '.$this->category->name.', '.$this->category->getParent()->name.', '.$this->config->board_title);


Found code in line 384
Code:
$this->setDescription($description);

replace with
Code:
$description = KunenaHtmlParser::stripBBCode($this->topic->first_post_message, 182); $description = preg_replace('/\s+/', ' ', $description); // remove newlines $description = trim($description); // Remove trailing spaces and beginning $page = $this->pagination->pagesCurrent; $total = $this->pagination->pagesTotal; $page = ($total > 1 ? " ({$page}/{$total})" : ''); $this->setDescription($description.$page);

File in attachment. File renamed in .txt - this forum do not able to upload php files.
Rename it with display.php

Meta tags will displays as in Blue Eagle template. Of course after update changes will be lost.

Also I fixed H1, H2 headers in Crypsis.

Now Topic, Category and Forum Title use H1.
Topics in Category use H2.
Also removed link from H1.

Attached too.

Download Free Software for Windows absolutly free.
Last edit: 10 years 5 months ago by romagromov.

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

More
10 years 5 months ago #176467 by 810
Replied by 810 on topic H1 Titles in Kunena!
@romagromov
you not allowed to use H1 H2 ect in tables.


Thats why it isn't easy to change the code.

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

More
10 years 5 months ago - 10 years 5 months ago #176472 by romagromov
Replied by romagromov on topic H1 Titles in Kunena!
H1 is not inside tables.
Who forbids the use of H2 in tables?

Let us assume that this is so.
Why you use tables???
It's too old layout method.
Now we should use divs or ul lists.

Anyway, I fixed meta tags. Hope you'll add it in package.

Download Free Software for Windows absolutly free.
Last edit: 10 years 5 months ago by romagromov.

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

More
10 years 5 months ago #176475 by 810
Replied by 810 on topic H1 Titles in Kunena!
when you will do a W3C Validation check, then you will be warned to change this code.

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

Time to create page: 0.141 seconds