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

Guests: 50

106.120.x.x news
151.80.x.x forum
151.80.x.x dilbertplus
151.80.x.x forum
185.179.x.x signup
220.181.x.x dilbertplus
46.229.x.x user
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
46.229.x.x user
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
46.229.x.x forum
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 dilbertplus
46.229.x.x forum
46.229.x.x dilbertplus
46.229.x.x forum
54.163.x.x forum
54.36.x.x comment
54.36.x.x dilbertplus
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 forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x dilbertplus
54.36.x.x forum
54.36.x.x lgsl
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
54.36.x.x forum
78.46.x.x dilbertplus
91.242.x.x forum

Last Seen

Wussie Thu 15:55
Dodgeitorelse Mon 16:49
85filip58 Wed 12:06
Bommel Mon 18:20
Apophis01 Wed 12:35

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