1
tedsmith
CBB 3.01 - Changing Date Format of 'Last Post' value?
  • 2006/4/16 0:19

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


I've struggled with this for a while..

The 'Last Post' date format in the 'recent topics' block shows as Month\Day (e.g. 04\31). I want to change it to the UK style of Day/Month/Year (e.g. 01 Feb 2006).

I've already changed the values at lines 160-12 in the ..\language\english\global.php file to :

define("_DATESTRING","d/M/Y G:i:s");
define("_MEDIUMDATESTRING","d/M/Y G:i");
define("_SHORTDATESTRING","d/M/Y");


which makes all the dates on the site look fine, except fro the CBB dates I'm talking about. They still show as '4/15' for example which I don't want.

Does anyone know how to fix?

Xoops 2.0.13.2

Thanks

Ted

2
tedsmith
Re: CBB 3.01 - Changing Date Format of 'Last Post' value?
  • 2006/4/16 19:51

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


bump

3
maru1
Re: CBB 3.01 - Changing Date Format of 'Last Post' value?
  • 2006/4/17 10:00

  • maru1

  • Just popping in

  • Posts: 27

  • Since: 2006/3/28


You need to change the file newbb/language/english/main.php

The display date part starts at line 463. You'll know what to do. But read the info there about special chars!

4
tedsmith
Re: CBB 3.01 - Changing Date Format of 'Last Post' value?
  • 2006/4/17 10:27

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


I forgot to mention that I'd spotted that before and changed the values in there first. I changed it from :

define("_MD_TODAY""Today G:i:s");
define("_MD_YESTERDAY""Yes\te\rday G:i:s");
define("_MD_MONTHDAY""n/j G:i:s");
define("_MD_YEARMONTHDAY""Y/n/j G:i");

to

define("_MD_TODAY""Today G:i:s");
define("_MD_YESTERDAY""Yes\te\rday G:i:s");
define("_MD_MONTHDAY""[b]j/n[/b] G:i:s");
define("_MD_YEARMONTHDAY""[b]d/M/Y[/b] G:i");


but it made no difference. So I kept looking which is when I found the suggestion I started this thread with.

Most odd - it always amazes me how difficult adjustments like these are to make in Xoops. International Date & Time preferences are so varied you'd think there'd be a radio button or they'd work from the settings in System Preferences.

In fact, I just noticed that here at Xoops.org the Last Post date has been changed to something like what I want, allbeit in a different order. So clearly it can be done.

5
maru1
Re: CBB 3.01 - Changing Date Format of 'Last Post' value?
  • 2006/4/17 10:39

  • maru1

  • Just popping in

  • Posts: 27

  • Since: 2006/3/28


Then I don't know what to say. I have similar date settings in my global and forum files (except that I don't use textual names), and it works fine. Maybe you just need to clear templates_c on the server or the cache on your computer?

6
tedsmith
Re: CBB 3.01 - Changing Date Format of 'Last Post' value?
  • 2006/4/17 10:41

  • tedsmith

  • Home away from home

  • Posts: 1151

  • Since: 2004/6/2 1


I sorted it. Not sure how though. I had another look at the files and changed the vlaues further still to :

d/m/Y G:i:s

Re-iploaded it, and it has worked. Thanks a lot for your help.

Ted

Login

Who's Online

241 user(s) are online (107 user(s) are browsing Support Forums)


Members: 0


Guests: 241


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits