Quote:
Originally Posted by uglyduck
Extra brackets [like these] around the 1/4mi column header.
|
The brackets just show what the list is sorted by. If you change the sort to 1/8 mile or 60 foot time, the brackets will move to that column.
Quote:
Originally Posted by uglyduck
I can now see what's going on with my 1/8mi guys. The conditional check in timeslips.php is only looking for values greater than 0 to produce the list....and the list currently sorts by 1/4mi ET by default.
else if ($_REQUEST['do'] == 'quarter')
{
$cond.=" WHERE userfield.field55>0";
$condition.=" AND userfield.field55>0";
$orderby="userfield.field55";
$direction=ASC;
$bracket3="<b>[</b>";
$bracket4="<b>]</b>";
I could change the list to default the sort by 1/8mi but I would rather default to 'username'. Unfortunately the 'username' sort also requires field55 to be greater than 0. Field55 is 1/4mi ET.
else if ($_REQUEST['do'] == 'username')
{
$cond.=" WHERE userfield.field55>0";
$condition.=" AND userfield.field55>0";
$orderby="user.username";
$direction=ASC;
$bracket11="<b>[</b>";
$bracket12="<b>]</b>";
|
The reason that it always requires 1/4 mile ET to be greater than 0 is because all members have a default entry of 0.00 for all of their times on the list. You could change it so that 1/8 mile ET would have to be greater than 0, but then you would have to go through your entire list and make sure that all the users with 1/4 mile times also included their 1/8 mile times, or else they won't be listed.
- Justin