Subject:*
<
Name/Email:*
<
Message Icon:*
<
Select*
<
Message:*
<



Click the Preview to see the content in action.
Options:*
<
Confirmation Code*
<
8 - 7 = ?  
Input the result from the expression
Maximum attempts you can try: 10
*
<
     

Re: Date format in CBB - old problem recurring!
by ghia on 2009/4/5 17:36:02

Quote:
XOOPS_ROOT/modules/newbb/language/english/main.php
-- logical location to change for CBB but it does nothing for date format
-- obsolete code?

There is a patch that reactivates some unreachable code, causing using the date formats from /modules/newbb/language/english/main.php again.
Re: Date format in CBB - old problem recurring!
by Speed on 2009/3/4 18:55:56

Just to catch people up with this files to look into to solve this problem in case others are still struggling.... And a huge thank you to the person that found the date codes in the locale.php file!!!

I don't understand why one definition is strewn across so many files.

XOOPS_ROOT/modules/newbb/language/english/main.php
-- logical location to change for CBB but it does nothing for date format
-- obsolete code?

XOOPS_ROOT/language/english/global.php
-- does not affect CBB, might have worked for SmartSection and xlhd
-- THIS IS ONE OF THE FILES TO CHANGE FOR non-CBB MODULES

XOOPS_ROOT/language/english/locale.php
-- changes CBB
-- THIS IS ONE OF THE FILES TO CHANGE

XOOPS_ROOT/Frameworks/xoops22/language/english/user.php
-- does not exist in my 2.3.3 installation

XOOPS_ROOT/Frameworks/compat
-- no php files, only 3 gifs, nothing to edit for time
Re: Date format in CBB - old problem recurring!
by Anonymous on 2008/12/11 21:00:57

Quote:
allnewtome wrote:

JAV, Thanks once again! I never needed to alter that file before - don't understand why but just pleased it works now.


It looks to be the current filename/location of one that used to be in Frameworks in a sub-folder called /compat

Glad you're sorted

Re: Date format in CBB - old problem recurring!
by allnewtome on 2008/12/10 23:05:08

Ghia, I reckon there are more than 4 date formats in xoops, but something there definitely are 4 of are files I had to alter to get it working!

JAV, Thanks once again! I never needed to alter that file before - don't understand why but just pleased it works now.
Re: Date format in CBB - old problem recurring!
by ghia on 2008/12/10 0:40:12

Quote:
It's all OK again except for CBB/newbb.
The forum has its own date format routines and the formats for it are located in:
XOOPS_ROOT/modules/newbb/language/english/main.php
I doubt that the upgrade has something to do with it.
Quote:
All are as suggested, but still it shows the shorter date format, 11/11 etc.
In fact there are four formats used depending on which day it is. One for today, one for yesterday, one for dates from past year (12 months) and one for the other dates. Your example is the one for past year which is shown as day/month and time.
If you want always the general format, you have to set the four formats to eg "Y/n/j G:i".

Who's Online

135 user(s) are online (112 user(s) are browsing Support Forums)


Members: 0


Guests: 135


more...

Donat-O-Meter

Stats
Goal: $15.00
Due Date: Jul 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $15.00
Make donations with PayPal!

Latest GitHub Commits