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 Stats & Announcement Time
16 years 9 months ago #23912
by irradiate
Stats & Announcement Time was created by irradiate
Hi All,
Is there a way to make the Stats section and the Announcements use the board time offset instead of the server time?
Cheers
Is there a way to make the Stats section and the Announcements use the board time offset instead of the server time?
Cheers
Please Log in or Create an account to join the conversation.
16 years 9 months ago #24227
by irradiate
Replied by irradiate on topic Re: Stats & Announcement Time
Bump
Please Log in or Create an account to join the conversation.
16 years 9 months ago #24233
by sozzled
Blue Eagle vs. Crypsis reference guide
Read my blog and
Replied by sozzled on topic Re:Stats & Announcement Time
Yeah, it's a good question, mate, but I don't know the answer.
Blue Eagle vs. Crypsis reference guide
Read my blog and
Please Log in or Create an account to join the conversation.
16 years 9 months ago #24263
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Re:Stats & Announcement Time
Hello,
I had done a modification for announcements, but can you please precise what you want modified the time for stats ?
Open the file components/com_kunena/template/default/plugin/announcement/announcementbox.php and replace at line 60 this :
by this :
I had done a modification for announcements, but can you please precise what you want modified the time for stats ?
Open the file components/com_kunena/template/default/plugin/announcement/announcementbox.php and replace at line 60 this :
Code:
$anncreated = KUNENA_timeformat(strtotime($ann->created));
by this :
Code:
$_split_datehour = explode(' ',$ann->created);
$_split_data = explode("-", $_split_datehour[0]);
$_split_hour = explode(":", $_split_datehour[1]);
$timestampcreated = mktime ($_split_hour[0], $_split_hour[1], $_split_hour[2], $_split_data[1], $_split_data[2], $_split_data[0]);
$timestampcreated=$timestampcreated + ($fbConfig->board_ofset * 3600);
$anncreated = strftime(_KUNENA_DT_DATETIME_FMT,$timestampcreated);
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.
16 years 9 months ago #24270
by irradiate
Replied by irradiate on topic Re:Stats & Announcement Time
Cheers for that!
With the Stats I mean 'Today Total Answer' 'Yesterday Total Answer' are running off the server time, not the time offset like the announcements
With the Stats I mean 'Today Total Answer' 'Yesterday Total Answer' are running off the server time, not the time offset like the announcements
Please Log in or Create an account to join the conversation.
16 years 9 months ago #24274
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Re:Stats & Announcement Time
open the file components/com_kunena/template/default/plugin/stats/stats.class.php and at line 52 replace this :
by this :
Code:
$todaystart = strtotime(date('Y-m-d'));
by this :
Code:
$todaystart = strtotime(date('Y-m-d')) + ($fbConfig->board_ofset * 3600);
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.
Time to create page: 0.270 seconds