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 Chage date display of posting?

More
16 years 7 months ago #29823 by wingnut144
Ok, now I'm getting:
Code:
Parse error: syntax error, unexpected '>' in /home/salleboi/public_html/components/com_kunena/template/default_ex/listcat.php on line 235
And on my listcat.php, line 235 to line 237 I have:
Code:
$numreplies = $singlerow->numPosts; $lastPosttime = $singlerow->time_last_msg; $lastptime = strftime(_KUNENA_DT_DATETIME_FMT,$singlerow- >time_last_msg + ($fbConfig- >board_ofset * 3600));

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

More
16 years 7 months ago #29825 by wingnut144
I was trying to change the display date, and was given the info below:
Code:
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));

Now I'm seeing:
Code:
Parse error: syntax error, unexpected '>' in /home/salleboi/public_html/components/com_kunena/template/default_ex/listcat.php on line 235

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

More
16 years 7 months ago #29828 by xillibit
wingnut144 wrote:

Ok, now I'm getting:

Code:
Parse error: syntax error, unexpected '>' in /home/salleboi/public_html/components/com_kunena/template/default_ex/listcat.php on line 235
And on my listcat.php, line 235 to line 237 I have:
Code:
$numreplies = $singlerow->numPosts; $lastPosttime = $singlerow->time_last_msg; $lastptime = strftime(_KUNENA_DT_DATETIME_FMT,$singlerow- >time_last_msg + ($fbConfig- >board_ofset * 3600));

Because, this $singlerow->time_last_msg and this $fbConfig->board_ofset doesn't must have space, if it's the case you have the error that you have gived.

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
16 years 7 months ago #29831 by wingnut144
Ok, that's resolved.

1 more thing. Is there a way to display the time in am/pm ?? Instead of the 24 hour time?

So if I wanted the display to date/time of the posting as:
Mon May 21, 2007 4:03 pm

How would that be formatted??? :)

Thanks again!

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

More
16 years 7 months ago #29832 by xillibit
Yes it's possible, you just need to modify the _KUNENA_DT_DATETIME_FMT in your language file for display what you want.

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
16 years 7 months ago #29836 by wingnut144
Guess I'm not having a good day.....where is the language file??? :(

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

Time to create page: 0.286 seconds