Page 1 of 1

Basic question

Posted: Fri Oct 07, 2011 2:44 pm
by afusa
This is a basic question:

I am trying to change this code so that if a team hasnt played "vs." is the separator, but if they have ":" is the separator.

<tr id="score" valign="top">
<th id="match_thome" width="44%" nowrap="nowrap"><?php echo $match->home?>&nbsp;</th>
<th id="match_rhome" align="right" width="6%" nowrap="nowrap"><?php echo ($match->m_played?$match->score1.(($match->bonus1 && $match->bonus1 != '0.00')?"(<font style='font-size:75%;'>".floatval($match->bonus1)."</font>)":""):'').'&nbsp;:'?></th>
<th id="match_raway" width="6%" nowrap="nowrap">&nbsp;<?php echo ($match->m_played?$match->score2.(($match->bonus2 && $match->bonus2 != '0.00')?"(<font style='font-size:75%;'>".floatval($match->bonus2)."</font>)":""):'');?></th>
<th id="match_taway" width="44%" nowrap="nowrap"><?php echo '<div style="float: left; ">&nbsp;'.$match->away.'</div>'; if($this->enbl_extra && $match->is_extra){ echo "<div id='overtime' style='float: left;'> (".JText::_('BL_RES_EXTRA').")</div>";}?></th>

Re: Basic question

Posted: Sun Oct 09, 2011 9:05 am
by social_experiment
It doesn't look like the code you pasted generates the 'vs' value. Can you paste additional code related to this script