Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
The FireBoard forum component development is still going on. In order to get better, FireBoard will be moved from the Best of Joomla website.
During this transition period, the forum in Best of Joomla will be closed to new posts.
Welcome, Guest
Please Login or Register.    Lost Password?
FireBoard Manual Latest release discussions Download FireBoard
Re:[Solved] Date format display (1 viewing) (1) Guest
TOPIC: Re:[Solved] Date format display
#11329
Re:Date format display 1 Year, 7 Months ago  
I had the same question, and I think I have found the solution:

There are two independent places to take control of:

1.

Line 90 of components/com_fireboard/sources/fb_timeformat_class.php
controls the format of the 'latest post' date in the lists of forums.
It looks something like this:
$usertime_format = "%m/%d/%Y %H:%M";

I think this is what you called a "front page".


2.

There are three lines in administrator/components/com_fireboard/language/english.php that look relevant. The important one is:

DEFINE('_DATETIME', 'm/d/Y H:i'; // originally DEFINE('_DATETIME', 'Y/m/d H:i';

This seems to control the format of the dates of posts appearing in lists of topics.


(There are two other places in this file where date formats can be changed, but I could not see what effect changing them had. Nevertheless, I changed them all to my preferred format.)
JLW (User)
Junior Boarder
Posts: 24
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/06/11 21:20 By JLW.
 
 
 
#11389
Re:Date format display 1 Year, 7 Months ago  
Thank you, works perfect.
orthanc (User)
Moderator
Posts: 504
graphgraph
User Offline Click here to see the profile of this user
ICQ#: 117461144 Gender: Male VSM 99 Nord Dresden Location: Dresden | Germany
Logged Logged
 
 
#26859
Re:[Solved] Date format display 1 Year, 3 Months ago  
Thx a lot for this post.

It works great. I changed these files for german date&time format:
1.
/administrator/components/com_fireboard/language/german*.php
[code:1]// originally DEFINE('_DATETIME', 'Y/m/d H:i');
DEFINE('_DATETIME', 'd.m.Y H:i');[/code:1]

2.
/components/com_fireboard/sources/fb_timeformat_class.php
translate day & month names and edit
[code:1]// originally $usertime_format = "%m/%d/%Y %H:%M";
$usertime_format = "%d.%m.%Y %H:%M";[/code:1]


3.
/components/com_fireboard/template/default/message.php
find
[code:1]time_since($fmessage->time , time() + ($fbConfig['board_ofset'] * 3600)); ?> ago[/code:1]
replace
[code:1]" " . _POSTED_AT ." " .date(_DATETIME,$fmessage->time); ?>[/code:1]

4.
I also had to set the "Country Locale" to de_DE under Site > Global Configuration > Locale
boehmtho (User)
Fresh Boarder
Posts: 17
graphgraph
User Offline Click here to see the profile of this user
Gender: Male Location: Germany
Logged Logged
 
Last Edit: 2007/10/08 21:16 By boehmtho.
 
 
#28605
Re:[Solved] Date format display 1 Year, 2 Months ago  
Hi. Könnte jemand sein übersetzes timeformat file hier evtl hochalden, dann spar ich mir ein paar minuten
Danke
Fabs
fabs (User)
Junior Boarder
Posts: 63
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#32035
Re:[Solved] Date format display 1 Year, 1 Month ago  
Thank's!




tescojim (User)
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
Last Edit: 2007/12/02 09:51 By tescojim.
 
 
#34828
Re:[Solved] Date format display 1 Year ago  
In addition to all the changes above, I still have to change the date format in english.php of the main joomla language directory in order for it to work.

public_html/language/english.php

Change line 428 and 429

From

DEFINE('_DATE_FORMAT_LC',"%A, %d %B %Y"; //Uses PHP's strftime Command Format
DEFINE('_DATE_FORMAT_LC2',"%A, %d %B %Y %H:%M";

To

DEFINE('_DATE_FORMAT_LC',"%A, %B %d %Y"; //Uses PHP's strftime Command Format
DEFINE('_DATE_FORMAT_LC2',"%A, %B %d %Y %H:%M";


This works for me, just thought someone might have the same problem and might need this.
chasuav (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#47071
Re:[Solved] Date format display 9 Months, 4 Weeks ago  
FWIW - I have been tasked to change the date format (to "day, mm/dd/yyyy" & "day, mmm dd, yyyy" and the time format (from 24-hour to 12-hour) throughout the forum. I was able to get the intended results by making changes to the following files:

[root]/administrator/components/com_fireboard/language/english.php - lines 49-51 (shown with my changes):
DEFINE('_FB_DT_DATE_FMT','%m/%d/%Y';
DEFINE('_FB_DT_TIME_FMT','%r';
DEFINE('_FB_DT_DATETIME_FMT','%m/%d/%Y %I:%M %p';
(NOTE: lines 52-89 appear to define the names of months and days-of-the-week.)

[root]/language/english.php - lines 422-429 (shown with my changes):
DEFINE('_DATE_FORMAT','l, F d, Y'; //Uses PHP's DATE Command Format - Depreciated
/**
* Modify this line to reflect how you want the date to appear in your site
*
*e.g. DEFINE("_DATE_FORMAT_LC","%A, %d %B %Y %H:%M"; //Uses PHP's strftime Command Format
*/
DEFINE('_DATE_FORMAT_LC',"%A, %B %d, %Y"; //Uses PHP's strftime Command Format
DEFINE('_DATE_FORMAT_LC2',"%A, %B %d, %Y %r";

[root]/components/com_fireboard/template/default/view.php - line 1007 (shown with my changes):
/*$msg_date = date(_DATETIME, $fmessage->time);*/
$msg_date = date('l, m/d/Y h:i A', $fmessage->time);
(NOTE: this was suggested previously in this thread)

[root]/components/com_fireboard/template/default/latestx.php - line 168 (shown with my changes):
echo "" . date('l, m/d/Y h:i A', $latestPostTime) . "";

This has worked for my Forum where dates/times are displayed. The last one (latestx.php) affects the display when clicking "Show Latest Posts".
chozyn (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#51604
Re:[Solved] Date format display 7 Months, 1 Week ago  
Unfortunately this doesn't work for me. As soon as I edit the english.php file in fireboard then entire thing goes blank.
jared bonshire (User)
Fresh Boarder
Posts: 15
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#57661
Re:[Solved] Date format display 4 Months ago  
I've read through this thread several times, and searched through others online on this topic. I've made all of the changes mentioned in my attempt to get dates to display mm/dd/yyyy H:M

And it works ... but only on the page that lists all of my Fireboard forums. When you click on any specific forum, all the posts still show as yyyy/mm/dd H:M

I'd really like to change this. And also another thing mentioned in another thread but related, which is the "xx Weeks, x Days ago" thing. I'd rather have the actual time of the post, in mm/dd/yyy H:M format

Any help would be greatly appreciated
bulldogric (User)
Fresh Boarder
Posts: 1
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
#59121
Re:[Solved] Date format display 3 Months, 2 Weeks ago  
To get in the message "posted at" (date and time), instead of "posted xx days and xx minutes ago" go to

/components/com_fireboard/template/default/message.php

find:

$msg_time_since = _FB_TIME_SINCE;


and replace with

$msg_time_since = " " . _POSTED_AT ." " .date(_DATETIME,$fmessage->time);
giupi (User)
Fresh Boarder
Posts: 3
graphgraph
User Offline Click here to see the profile of this user
Logged Logged
 
 
Go to top