Go Back   NiceCoder Community Forums > Nicecoder > Bug Reports
Register Projects FAQ Members List Mark Forums Read

 
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 10-08-2006, 08:09 AM
Registered User
 
Join Date: Jul 2006
Location: Paris, France
Posts: 104
Mickey is on a distinguished road
Default Modification of the date format in new.php

Hello, Dody

I modified the format of some dates in the script, but here, I believe I found a bug.

I tried to modify the "American format" (Friday, October 6 2006) of the date in new.php

I found line 44 in new.php :
$links_obj->date_format = $msg["10032"];

I modified line 117 in msg.php
$msg['10032'] = 'j M Y';

But The date is always in the American format

I scanned all the files of the IndexU script, and I found the only place where we find a "'l, M d Y';" format is in $msg["10031"] (the line just above 10032).
So, I modified it like the 10032.
I also tried to put "10031" instead of "10032" in the new.php file.

But it modified nothing...

The date is always "Friday, October 6 2006" on my web site.

Dody, do you don't think there is something wrong somewhere in the script for this date format ?

Thanks a lot... You are the only one able to give the key of this puzzle
  #2 (permalink)  
Old 10-08-2006, 08:27 AM
dody's Avatar
Nicecoder Team
 
Join Date: Aug 2001
Location: Indonesia
Posts: 3,292
dody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to alldody is a name known to all
Default

Try to change /lib/link.class.php in function DisplayNewListing()
  #3 (permalink)  
Old 10-08-2006, 12:49 PM
Registered User
 
Join Date: Jul 2006
Location: Paris, France
Posts: 104
Mickey is on a distinguished road
Default

Thanks a lot, Dody, it was exactly that !

I don't know why, but I changed d-M-Y into j M Y on line 24.

So, I put back (like in the original script) :
var $date_format = "d-M-Y";

But the date was displayed 06-Oct-2006 on page new.php

So, I modified line 52 like above :
var $new_listing_date_format = "j M Y";

And now I'm happy, everything works like I wanted.

I can read 6 Oct 2006
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
Change Date Format enrico v5.x 13 01-11-2007 09:41 AM
Change Date of Links (date added) brickholius v5.x 5 11-04-2004 07:30 PM
pick format / hot format display templates lewisw v3.2 9 08-15-2003 03:37 PM
date format scheetz v5.x 2 04-28-2003 08:26 PM

HACKER SAFE certified sites prevent over 99.9% of hacker crime.

All times are GMT -5. The time now is 01:06 PM.


Powered by vBulletin®
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO
SSL Certificate