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.

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.

K 2.0 support will cease on 31 August 2013 and this section of the forum will be closed and archived after that time and no further questions will be answered about this version.

Question Change Meta Descriptions is it harm?

More
14 years 4 months ago #126912 by ariaji86
Hello..
first i wanna say a big thanks for this Great Extensions..
finally Kunena 2.0 is released, and i have upgrade it from 1.7.2
i use the Discuss Plugin 2.0 too.
but what i see here in meta description for thread from joomla article is filled with
(Global Joomla Meta Description + Joomla ID article number only) which i don`t like when everyone share my forum post to facebook, its not showing nice description for the page.

so i change the code at file (component/com_kunena/views/topic/view.html.php)
around line 908 with
Code:
$description = KunenaHtmlParser::stripBBCode($this->topic->first_post_message, 182); $description = strip_tags($description); // Now remove all tags $description = preg_replace('/\s+/', ' ', $description); // remove newlines $description = preg_replace('/^[^\w0-9]+/', '', $description); // remove characters at the beginning that are not letters or numbers $description = trim($description); // Remove trailing spaces and beginning // remove multiple spaces while (strpos($description, ' ') !== false){ $description = str_replace(' ', ' ', $description); } // add by ariaji if ($page > 1 and !filter_var($description, FILTER_VALIDATE_INT)) { $description = ('Page '.$page.' '.$description ); } if (filter_var($description, FILTER_VALIDATE_INT)) { $description =('Auto Generated '.$title ); } // end add by ariaji $this->setDescription ( $description );

I'm not understand yet about php :( , i wrote this code by see kunena 1.7.2 file and by googling (ofcourse :) )

so please, tell me is it wrong? or is it harmful?
what should i do for my purpose but it isn`t contain any bad things.

Sorry for my bad english, i'm still learning english too.. :)

Thanks for all the hard works

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

More
14 years 4 months ago #126957 by Matias
Should work but slows down your site. Also no need to strip tags, it's already done.
The following user(s) said Thank You: ariaji86

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

Time to create page: 0.099 seconds