News module date format

  Post new topicReply to topicPrintable Version
<< View previous topic View next topic >>
Share: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
#1   News module date format
p455w0rd
CZ Newbie
p455w0rd has been a member for over 14 year's 14 Year Member
usa.gif indiana.gif
Occupation: Freelance Web Developer
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Aug 30, 2010
0.00 posts per day
Posts: 4
Points: 0
   
Well I've search through the file and searched google a ton and can't find help on this anywhere. When you post, the timestamp is in Y-m-d format. When sifting through the 1000's of lines of code I found that it saves the date using a now() function. This function isn't a default php function and I can't find it anywhere. I'd like to modify this function to a shorter format because it make my site look like crap on lower resolutions (1024x768 and lower)...any ideas where this function is defined?



Back to top Reply with quote
#2   re: News module date format
p455w0rd
CZ Newbie
p455w0rd has been a member for over 14 year's 14 Year Member
usa.gif indiana.gif
Occupation: Freelance Web Developer
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Aug 30, 2010
0.00 posts per day
Posts: 4
Points: 0
   
also since its currently happening...over the years i've noticed the phpnuke at random times doen't process/parse constants...for instance, in my MSA-Info block, instead of saying "Welcome, Guest", it says "_BWEL, Guest"...is there a way to fix this other than manully changing all constants to their English counterparts?



Back to top Reply with quote
#3   
p455w0rd
CZ Newbie
p455w0rd has been a member for over 14 year's 14 Year Member
usa.gif indiana.gif
Occupation: Freelance Web Developer
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Aug 30, 2010
0.00 posts per day
Posts: 4
Points: 0
   
well, since i'm not getting anything here..does anyone know of an active phpnuke site where someone might actually help?



Back to top Reply with quote
#4   
Telli
Site Admin
Occupation: Self Employed
Age: 46
Gender: Male
Fav. Sports Team: Detroit Red Wings
Website:
Status: Offline
Joined: May 26, 2003
1.03 posts per day
Posts: 8089
Points: 494,475
   
I'm sorry you didn't get a reply within 16 hours.

The NOW() function is a MySQL function.

If you want to change the format then I would suggest writing your own wrapper function.

All you have to do is add the constant in your language files.




_________________
The path of the righteous man is beset on all sides by the inequities of the selfish and the tyranny of evil men. Blessed is he, who in the name of charity and good will, shepherds the weak through the valley of darkness, for he is truly his brother's keeper and the finder of lost children. And I will strike down upon thee with great vengeance and furious anger those who would attempt to poison and destroy my brothers. And you will know my name is the Lord when I lay my vengeance upon thee. Ezekiel 25:17
Back to top Reply with quote
#5   
p455w0rd
CZ Newbie
p455w0rd has been a member for over 14 year's 14 Year Member
usa.gif indiana.gif
Occupation: Freelance Web Developer
Age: 38
Gender: Male
Website:
Status: Offline
Joined: Aug 30, 2010
0.00 posts per day
Posts: 4
Points: 0
   
thank you telli



Back to top Reply with quote
Display posts from previous:      
Add To: Del.icio.us  Digg  Google  Spurl  Blink  Furl  Y! MyWeb  
<< View previous topic View next topic >>
Post new topicReply to topic

Jump to 
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 cannot attach files in this forum
You cannot download files in this forum