[OBBLM] Proposal and a question
Posted: Sun Feb 09, 2014 12:42 pm
First the question:
where is the code for the color of the headers in the events/standing/leaders tables in the main page?
Should be somewhere here
--------------------------------------------------------------------------------------------------------------------------
case 'latestgames':
if ($box['length'] <= 0) {
break;
}
?>
<div class="boxWide">
<h3 class='boxTitle<?php echo T_HTMLBOX_MATCH;?>'><?php echo $box['title'];?></h3>
<div class='boxBody'>
<table class="boxTable">
<tr>
<td style="text-align: right;" width="50%"><i><?php echo $lng->getTrn('common/home');?></i></td>
<td> </td>
<td style="text-align: left;" width="50%"><i><?php echo $lng->getTrn('common/away');?></i></td>
<td><i><?php echo $lng->getTrn('common/date');?></i></td>
<td> </td>
</tr>
<?php
list($matches,$pages) = Match::getMatches(array(1, $box['length']), $box['type'], $box['id'], false);
foreach ($matches as $m) {
echo "<tr valign='top'>\n";
$t1name = ($settings['fp_links']) ? "<a href='".urlcompile(T_URL_PROFILE,T_OBJ_TEAM,$m->team1_id,false,false)."'>$m->team1_name</a>" : $m->team1_name;
$t2name = ($settings['fp_links']) ? "<a href='".urlcompile(T_URL_PROFILE,T_OBJ_TEAM,$m->team2_id,false,false)."'>$m->team2_name</a>" : $m->team2_name;
echo "<td style='text-align: right;'>$t1name</td>\n";
echo "<td><nobr>$m->team1_score—$m->team2_score</nobr></td>\n";
echo "<td style='text-align: left;'>$t2name</td>\n";
echo "<td>".str_replace(' ', ' ', textdate($m->date_played,true))."</td>";
echo "<td><a href='index.php?section=matches&type=report&mid=$m->match_id'>Show</a></td>";
echo "</tr>";
}
?>
</table>
</div>
</div>
<?php
MTS('Latest matches table generated');
break;
---------------------------------------------------------------------------------------------------------------------------------
While looking for it, an idea came to my mind, why not replacing the "in focus" part of the standing boxes with a slideshow of best players (spp/td/cas/cp/int) for the tournament?
where is the code for the color of the headers in the events/standing/leaders tables in the main page?
Should be somewhere here
--------------------------------------------------------------------------------------------------------------------------
case 'latestgames':
if ($box['length'] <= 0) {
break;
}
?>
<div class="boxWide">
<h3 class='boxTitle<?php echo T_HTMLBOX_MATCH;?>'><?php echo $box['title'];?></h3>
<div class='boxBody'>
<table class="boxTable">
<tr>
<td style="text-align: right;" width="50%"><i><?php echo $lng->getTrn('common/home');?></i></td>
<td> </td>
<td style="text-align: left;" width="50%"><i><?php echo $lng->getTrn('common/away');?></i></td>
<td><i><?php echo $lng->getTrn('common/date');?></i></td>
<td> </td>
</tr>
<?php
list($matches,$pages) = Match::getMatches(array(1, $box['length']), $box['type'], $box['id'], false);
foreach ($matches as $m) {
echo "<tr valign='top'>\n";
$t1name = ($settings['fp_links']) ? "<a href='".urlcompile(T_URL_PROFILE,T_OBJ_TEAM,$m->team1_id,false,false)."'>$m->team1_name</a>" : $m->team1_name;
$t2name = ($settings['fp_links']) ? "<a href='".urlcompile(T_URL_PROFILE,T_OBJ_TEAM,$m->team2_id,false,false)."'>$m->team2_name</a>" : $m->team2_name;
echo "<td style='text-align: right;'>$t1name</td>\n";
echo "<td><nobr>$m->team1_score—$m->team2_score</nobr></td>\n";
echo "<td style='text-align: left;'>$t2name</td>\n";
echo "<td>".str_replace(' ', ' ', textdate($m->date_played,true))."</td>";
echo "<td><a href='index.php?section=matches&type=report&mid=$m->match_id'>Show</a></td>";
echo "</tr>";
}
?>
</table>
</div>
</div>
<?php
MTS('Latest matches table generated');
break;
---------------------------------------------------------------------------------------------------------------------------------
While looking for it, an idea came to my mind, why not replacing the "in focus" part of the standing boxes with a slideshow of best players (spp/td/cas/cp/int) for the tournament?