Username:    Password:        Click Here To Signup     Forgotten Password
Main Menu
Online
Members: 0

Guests: 32

46.229.x.x forum
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
54.158.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x user
54.36.x.x dilbertplus
54.36.x.x lgsl
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x lgsl
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
66.249.x.x user
91.242.x.x forum

Last Seen

Wussie Wed 01:56
suzain lian Fri 07:52
85filip58 Wed 12:37
mmotony Sat 04:27
Dodgeitorelse Fri 12:48

Newest Members

Forums
Date display mod
dgodfather
Thu Jan 10 2008, 12:51PM
Posts: 4
Joined: Sat Jan 05 2008, 07:52PM
Registered Member #3569
I'm used to seeing the date format as m-d-y.

I know that their is an option for displaying the results this way, but my mod allows you to change the format for when others are challenging or you are editing.

In rwar_manage.php:

In this part of the code:

//------------------------------------------------------------------------------------------------------------+
$text .= "<select class='tbox' name='rwar_day'>";
for ($i=1; $i<= 31; $i++)
{
if ($i < 10) { $ii = "0".$i; } else { $ii = $i; }
unset($selected); if ($ii == date("d",$form[timestamp])) { $selected="selected='selected'"; }
$text .= "<option $selected value='$ii'>$ii</option>";
}
$text .= "</select>";
//------------------------------------------------------------------------------------------------------------+
$text .= "<select class='tbox' name='rwar_month'>";
for ($i=1; $i<= 12; $i++)
{
if ($i < 10) { $ii = "0".$i; } else { $ii = $i; }
unset($selected); if ($ii == date("m",$form[timestamp])) { $selected="selected='selected'"; }
$text .= "<option $selected value='$ii'>$ii</option>";
}
$text .= "</select>";
//------------------------------------------------------------------------------------------------------------+

move this code:

//------------------------------------------------------------------------------------------------------------+
$text .= "<select class='tbox' name='rwar_month'>";
for ($i=1; $i<= 12; $i++)
{
if ($i < 10) { $ii = "0".$i; } else { $ii = $i; }
unset($selected); if ($ii == date("m",$form[timestamp])) { $selected="selected='selected'"; }
$text .= "<option $selected value='$ii'>$ii</option>";
}
$text .= "</select>";

on top of:

//------------------------------------------------------------------------------------------------------------+
$text .= "<select class='tbox' name='rwar_day'>";
for ($i=1; $i<= 31; $i++)
{
if ($i < 10) { $ii = "0".$i; } else { $ii = $i; }
unset($selected); if ($ii == date("d",$form[timestamp])) { $selected="selected='selected'"; }
$text .= "<option $selected value='$ii'>$ii</option>";
}
$text .= "</select>";

Enjoy!

I suggest that an option for this be made.
Website
Hobbz
Mon Jan 21 2008, 10:13PM

Posts: 29
Joined: Sat Feb 18 2006, 06:47PM
Registered Member #1065
Nice.... I'll have to try this out when I get back home. I figured out how to change the display date for all the pages but couldn't figure out how to change the admin pages.





Website
 

Jump:     Back to top


You are not logged in - Click Here To Signup

Username:    Password:   

Mini Buttons

.... © GreyCube.com - Richard Perry - Powered by e107.org