Kunena 7.0.5 & Kunena 6.4.11 – Security Updates Released

The Kunena team has announce the arrival of Kunena 7.0.5 [K 7.0.5] 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.

The Kunena team is also pleased to announce the eleventh version of Kunena 6.4, a native Joomla extension for Joomla! 5.0, 5.1, 5.2, 5.3, 5.4 and 6.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 Chage date display of posting?

More
16 years 8 months ago #29730 by wingnut144
Is there a way to have the date of a posting formatted as October 5, 2009, or Oct. 5, 2009, instead of the standard Kunena format of 18 hours ago..... ??

Where would this be changed? And how?

Thanks! :)

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

More
16 years 8 months ago #29744 by rich
Hi wingnut144,

you need another language file.

Kunena file, that changes the dateformat.

templates.webdesign-welt.de/downloads.ht...viewcategory&catid=8

Regards

Important! Always create a backup before you make any changes to your website!

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

More
16 years 8 months ago #29758 by wingnut144
So I can change the standard listing for the posting time from 18 hours ago to something more like: Sun Sep 27, 2009 2:38 pm ??

How does the language file change that?

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

More
16 years 8 months ago #29820 by wingnut144
Is there any more info on this??

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

More
16 years 8 months ago - 16 years 8 months ago #29821 by xillibit
Hello,

open the file \components\com_kunena\template\default_ex\flat.php and at the line 337 replace this :
Code:
<span class="topic_posted_time"><?php echo _KUNENA_POSTED_AT ?> <?php echo time_since($leaf->time,time() + ($fbConfig->board_ofset * 3600)); ?> <?php echo _KUNENA_AGO ?>

by this :
Code:
<span class="topic_posted_time"><?php echo _KUNENA_POSTED_AT ?> <?php echo strftime(_KUNENA_DT_DATETIME_FMT,$leaf->time + $fbConfig->board_ofset * 3600); ?>

and at line 447 replace this :
Code:
<?php echo time_since($last_reply[$leaf->id]->time , time() + ($fbConfig->board_ofset * 3600)); ?> <?php echo _KUNENA_AGO ?>

by this :
Code:
<?php echo strftime(_KUNENA_DT_DATETIME_FMT,$last_reply[$leaf->id]->time + ($fbConfig->board_ofset * 3600)); ?>

open the file \components\com_kunena\template\default_ex\listcat.php and at the line 235 replace this :
Code:
$lastptime = KUNENA_timeformat(CKunenaTools::fbGetShowTime($singlerow->time_last_msg));

by this :
Code:
$lastptime = strftime(_KUNENA_DT_DATETIME_FMT,$singlerow->time_last_msg + ($fbConfig->board_ofset * 3600));

in the file \components\com_kunena\template\default_ex\message.php at line 69 replace this :
Code:
$msg_time_since = str_replace('%time%', time_since($fmessage->time, CKunenaTools::fbGetInternalTime()), $msg_time_since);

by this :
Code:
$msg_time_since = strftime(_KUNENA_DT_DATETIME_FMT,$fmessage->time + ($fbConfig->board_ofset * 3600));

I don't provide support by PM, because this can be useful for someone else.
Last edit: 16 years 8 months ago by xillibit.
The following user(s) said Thank You: iseca

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

More
16 years 8 months ago #29822 by wingnut144
Thank you for the help.

Is this something that will be easier to change in future versions? The ability to modify how the date is displayed?

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

Time to create page: 0.230 seconds