Jump to content


Date Formatting in MKP 1.1


  • You cannot reply to this topic
No replies to this topic

#1 visiblesoul

  • Administrators
  • 551 posts
  • Location:Earth
  • Texas

Posted 15 November 2004 - 01:39 PM

To format the date in MKportal 1.1...

Find and edit the following code in /mkportal/lang/*/lang_global.php
$langmk['time_format_LONG'] = "l, M d, Y h:i a";

$langmk['time_format_SHORT'] = "F d, Y";

$langmk['time_format_JOINED'] = "F d, Y";

or..

Go to Portal CP > Language

Choose your language from the dropdown box. Click "Edit this language".

Choose "lang_global" from the dropdown box. Click "Edit this language file".

Near the bottom of the page you will find the fields to format your portal date.

Quote

time_format_LONG     
time_format_SHORT   
time_format_JOINED


Formatting options may be found in the php manual.
http://us2.php.net/date

-----------------------------------------------------------------------------------------


To format the date in the forum...

Find and edit the following code in /forums/lang/*/mod_customize_date_lang.php (at the bottom).
$lang['time_format_LONG'] = "l, M d, Y h:i a";

$lang['time_format_SHORT'] = "F d, Y";

$lang['time_format_JOINED'] = "F d, Y";

Formatting options may be found in the php manual.
http://us2.php.net/date


Please note that I offer free support on this forum in my free time. Depending on how much work I have backlogged it may take me a week or more to answer questions. I am not ignoring you. I answer everyone but please be patient. Thanks.

Disclaimer: All forum posts, including code examples, on this forum are offered for free in the hope that they will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Use code examples at your own risk.

"If at first you don't succeed, keep on suckin' til you do succeed." -Curly Howard





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users