×
Kunena 6.0.6 & Kunena 5.2.13 & blue eagle5 1.6.8 released as security release (28 Nov 2022)

The Kunena team has announce the arrival of Kunena 6.0.6 [K 6.0.6] which is now available for download as a native Joomla extension for J! 4.2.x. This is a security release.

× Topics that are moved into this category are generally considered to be closed. Users may want to add additional information but these topics should not be resurrected in order to discuss new problems or unrelated matters.

Merged Meta description tag

More
10 years 3 months ago #1 by milstanyu
Kunena 2.0.2 makes description meta tag for posts like this:

Global meta description + Content of the first topic

This makes pages with duplicate meta descriptions. Is it possible to get rid of the "Global meta description"?

Try our Joomla templates and WordPress themes www.hotjoomlatemplates.com

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

More
10 years 3 months ago #2 by sozzled
Replied by sozzled on topic Meta description tag
What version of Kunena are you using? Have you searched the forum for "meta description tag" for other topics about your problems?

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

More
10 years 3 months ago - 10 years 3 months ago #3 by milstanyu
Replied by milstanyu on topic Meta description tag
No, I couldn't find any solution. I can see meta description is created in file /components/com_kunena/views/topic/view.html.php in this part:
// Create Meta Description form the content of the first message
			// better for search results display but NOT for search ranking!
			$description = KunenaHtmlParser::stripBBCode($this->topic->first_post_message, 182);
			$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
			$this->setDescription ( $description );

However, I don't understand why it adds the global site meta description BEFORE? I think it's not needed and has negative impact on SEO. If you look any Kunena site with Google Webmaster Tools > HTML Improvements, it will show warnings about pages with duplicate meta descriptions.

Try our Joomla templates and WordPress themes www.hotjoomlatemplates.com
Last edit: 10 years 3 months ago by milstanyu.

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

More
10 years 3 months ago #4 by ChaosHead
Replied by ChaosHead on topic Meta description tag
Look at this file. I modified keywords and title. Edited it. Look at the end.
/administrator/components/com_kunena/libraries/view.php
The following user(s) said Thank You: milstanyu, ariaji86, Jazzvox

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

More
10 years 3 months ago #5 by milstanyu
Replied by milstanyu on topic Meta description tag
Thank you for this!

I changed in /administrator/components/com_kunena/libraries/view.php this line
$this->document->setMetadata ( 'description', $this->document->get ( 'description' ) . '. ' . $description );
to this
$this->document->setMetadata ( 'description',  $description );
and now descriptions tags are perfect. However, this is a hack, I must remember to change it again whenever I upgrade Kunena. I think Kunena team should consider this modification because adding global description tag to the post's tags is not good.

Try our Joomla templates and WordPress themes www.hotjoomlatemplates.com
The following user(s) said Thank You: brentwilliams

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

More
10 years 1 week ago #6 by Jazzvox
Replied by Jazzvox on topic Meta description tag
..not perfect (mostly too short), but at least no duplicates - Thanks!
..this doesn't take effect for content pages (rules, help)

Meta keywords and description in Joomla Menu/Article settings should be used instead - that's what they're made for. Well, other extensions have the same behaviour...

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

More
9 years 11 months ago #7 by ariaji86
Is Meta Duplicate Already Fixed? it seems ok if that for created topic, but for auto generated topics from article by discuss plugin? :( :(

is it still ok??

Thanks for all the hard works

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

More
9 years 11 months ago #8 by sozzled
I'm sorry but I don't understand the question. Can you point us to a topic that discusses this issue of "Meta Duplicate", please? Thank you.

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

More
9 years 11 months ago #9 by ariaji86
ok.. here is the example from www.kunena.org
you can check it
in this topic:
www.kunena.org/forum/184-Discuss-Article...0-3-security-release
the meta description is...
Kunena! - To Speak! Next Generation Forum Component for Joomla. article] - 1/1

and in this topic:
www.kunena.org/forum/184-Discuss-Article...unena-2-0-2-released
the meta description is...
Kunena! - To Speak! Next Generation Forum Component for Joomla. article] - 1/1

Same meta Description in two different topic right? Correct me if i'm wrong

Thanks for all the hard works

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

More
9 years 11 months ago #10 by ariaji86
is it possibly to get some character from article content, or something else just for different between each auto generated topics from article?

Thanks for all the hard works

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to edit your message.
Time to create page: 0.102 seconds