Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6
Author Message
manunkind
Client



Joined: Apr 26, 2004
Posts: 368
Location: Albuquerque, NM

PostPosted: Wed Jul 19, 2006 10:05 pm Reply with quote

Ok, if you look at everybody's home page, you will see that the year does not display. Here's what you normally see:

Quote:
Wednesday, July 19 @ 22:39:31


How do you make the Year display? I think I see the function in mainfile.php but I do not know how to change that to display the year also.

I would like to see:

Quote:
Wednesday, July 19, 2006 @ 22:39:31


Or even just mm/dd/yy format would be cool.

Any help with this?

_________________
PC Sympathy 
View user's profile Send private message Visit poster's website
Guardian2003
Site Admin



Joined: Aug 28, 2003
Posts: 6799
Location: Ha Noi, Viet Nam

PostPosted: Wed Jul 19, 2006 10:09 pm Reply with quote

It displays on this site so I guess it might be theme related. The full date should be available but it would depend on whether the whole variable was echo'd to the page
 
View user's profile Send private message Send e-mail
manunkind







PostPosted: Wed Jul 19, 2006 10:23 pm Reply with quote

It displays on this site??

I just copied the below from Raven's newest article on the home page:

Quote:
Posted by Raven on Wednesday, July 19 @ 09:45:51 EDT (21 reads)


No year.
 
manunkind







PostPosted: Wed Jul 19, 2006 10:24 pm Reply with quote

And this is copied from your site:

Quote:
Posted by Guardian on Wednesday, July 19 @ 06:54:41 BST (1 reads)


No year.
 
gregexp
The Mouse Is Extension Of Arm



Joined: Feb 21, 2006
Posts: 1497
Location: In front of a screen....HELP! lol

PostPosted: Wed Jul 19, 2006 11:45 pm Reply with quote

In language/lang-english.php

Find:
define("_DATESTRING","%A, %B %d @ %T %Z");

Change to:
define("_DATESTRING","%A, %B %d, %Y @ %T %Z");

Just a simple syntax check was necessary, all that looking Laughing

The function is called from index.php of the News module.

Function formatTimestamp()
Its defined in mainfile.php

And its format is linked to a language definition, for anyone who could improve or would simply like to know.

_________________
For those who stand shall NEVER fall and those who fall shall RISE once more!! 
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger ICQ Number
manunkind







PostPosted: Thu Jul 20, 2006 5:48 am Reply with quote

Thanks darklord! I never thought to simply check a language file. Rolling Eyes Laughing
 
Display posts from previous:       
This forum is locked: you cannot post, reply to, or edit topics.   This topic is locked: you cannot edit posts or make replies.    Ravens PHP Scripts And Web Hosting Forum Index -> phpnuke 7.6

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©