Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

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.

Question Errors Kunena 1.6.0 Stable ��

  • lev
  • lev's Avatar Topic Author
  • Offline
  • Senior Member
  • Senior Member
  • Lorem Ipsum...
More
15 years 6 months ago - 15 years 6 months ago #66738 by lev
Hi,

Struggled with this filth! in Kunena 1.6.0
��

components/com_kunena/funcs/view.php

We need to find:
Code:
substr ();
Code:
// limit to 185 characters - google will cut off at ~150 if (strlen($metaDesc) > 185){ $metaDesc = rtrim(substr($metaDesc, 0, 182)).'...'; }

replace
Code:
JString :: substr();

// limit to 185 characters - Google will cut off at ~150
if (strlen($metaDesc) > 185){
$metaDesc = rtrim(JString::substr($metaDesc, 0, 182)).'...';
}


Sorry for my English.
Last edit: 15 years 6 months ago by lev.

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

More
15 years 6 months ago #66756 by xillibit

lev wrote:

// limit to 185 characters - Google will cut off at ~150
if (strlen($metaDesc) > 185){
$metaDesc = rtrim(JString::substr($metaDesc, 0, 182)).'...';
}

Hello,

thanks for this, why do you remove this part of code ?

I don't provide support by PM, because this can be useful for someone else.

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

More
15 years 6 months ago - 15 years 6 months ago #66770 by ChaosHead
This is small bug in meta-description. Appears at the forums which users write in other languages, except English.



To correct it, replace
Code:
$metaDesc = rtrim(substr($metaDesc, 0, 182)).'...';
with
Code:
$metaDesc = rtrim(JString::substr($metaDesc, 0, 182)).'...';
in components/com_kunena/funcs/view.php

Otherwise Google will index these characters.
Last edit: 15 years 6 months ago by ChaosHead.

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

More
15 years 6 months ago #66771 by xillibit
ok, i have understood it, i will fix it

I don't provide support by PM, because this can be useful for someone else.
The following user(s) said Thank You: ChaosHead

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

More
15 years 6 months ago - 15 years 6 months ago #66773 by ChaosHead
Thank You
Last edit: 15 years 6 months ago by ChaosHead.

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

More
15 years 6 months ago - 15 years 6 months ago #66846 by ChaosHead
One user has informed me that he has seen one more bug, when read my message in this post. It uses the last version of Opera browser. And my message in it looks so:



The problem appears, when the tag [code] is published. If in it there is a long code line.
Last edit: 15 years 6 months ago by ChaosHead.
The following user(s) said Thank You: Mihanja

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

Time to create page: 0.241 seconds