Best of joomla gives you news, joomla templates, tutorials and websites about Joomla , FireBoard and FireMessage official page.
| No account yet?   |
Welcome, Guest
Please Login or Register.    Lost Password?
Go to bottom Post Reply Favoured: 9
TOPIC:
#11329
Re:Date format display 1 Year 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
 
Last Edit: 2007/06/11 21:20 By JLW.
 
 
The administrator has disabled public write access.  
#11389
Re:Date format display 1 Year ago  
Thank you, works perfect.
orthanc (User)
Moderator
Posts: 482
graphgraph
User Offline Click here to see the profile of this user
ICQ#: 117461144 Gender: Male VSM 99 Nord Dresden Location: Dresden | Germany
 
The administrator has disabled public write access.  
#26859
Re:[Solved] Date format display 9 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:

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


2.
/components/com_fireboard/sources/fb_timeformat_class.php
translate day & month names and edit
Code:

// originally $usertime_format = "%m/%d/%Y %H:%M";
$usertime_format = "%d.%m.%Y %H:%M";



3.
/components/com_fireboard/template/default/message.php
find
Code:

time_since($fmessage->time , time() + ($fbConfig['board_ofset'] * 3600)); ?> ago

replace
Code:

" " . _POSTED_AT ." " .date(_DATETIME,$fmessage->time); ?>


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
 
Last Edit: 2007/10/08 21:16 By boehmtho.
 
The administrator has disabled public write access.  
#28605
Re:[Solved] Date format display 8 Months, 2 Weeks ago  
Hi. Könnte jemand sein übersetzes timeformat file hier evtl hochalden, dann spar ich mir ein paar minuten
Danke
Fabs
fabs (User)
Senior Boarder
Posts: 63
graphgraph
User Offline Click here to see the profile of this user
 
The administrator has disabled public write access.  
#32035
Re:[Solved] Date format display 7 Months, 1 Week ago  
Thank's!




tescojim (User)
Junior Boarder
Posts: 22
graphgraph
User Offline Click here to see the profile of this user
 
Last Edit: 2007/12/02 09:51 By tescojim.
 
The administrator has disabled public write access.  
#34828
Re:[Solved] Date format display 6 Months, 2 Weeks 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
 
The administrator has disabled public write access.  
#47071
Re:[Solved] Date format display 3 Months, 3 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
 
The administrator has disabled public write access.  
#51604
Re:[Solved] Date format display 1 Month 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
 
The administrator has disabled public write access.  
Go to top Post Reply
Powered by FireBoardget the latest posts directly to your desktop