Currently busy with transforming a leaderboard to work inside vbulletin but is it possible to execute PHP directly from the Template files? or do i need to do this on a different way.
Kinda stuck on this now.
for example:
PHP Code:
</a></td>
<?php }
echo '<td class="result" style="border-left:'.$style['result_border'].'" height="20px">'.LANG_INDEX_ALL_STATS.'</td>';
if ($row['progress'] == 1){ echo '<td class="result" style="border-left:'.$style['result_border'].'">--</td>'; }
if($row['time'] == 1 ){ echo '<td class="result" style="border-left:'.$style['result_border'].'" height="20px">'.$EoT->timeIndex($gTime).'</td>';}
if($row['kills'] == 1 ){ echo '<td class="result" style="border-left:'.$style['result_border'].'" height="20px">'.$EoT->points($gKills).'</td>'; }
if($row['deaths'] == 1 ){echo '<td class="result" style="border-left:'.$style['result_border'].'" height="20px">'.$EoT->points($gDeaths).'</td>'; }
if($row['round'] == 1 ){ echo '<td class="result" style="border-left:'.$style['result_border'].'" height="20px">'.$EoT->points($gRounds).'</td>';}
if($row['dogtags'] == 1 ){echo '<td class="result" style="border-left:'.$style['result_border'].'" height="20px">'.$EoT->points($gDogtags).'</td>'; }
if($row['kd'] == 1 ){echo '<td class="result" style="border-left:'.$style['result_border'].'" height="20px">'.$EoT->kd($gKills,$gDeaths).'</td>'; }
if($row['team'] == 1 ){echo '<td class="result" style="border-left:'.$style['result_border'].'" height="20px">'.$EoT->points($gTeam).'</td>'; }
if($row['points'] == 1 ){echo '<td class="result" style="border-left:'.$style['result_border'].'" height="20px">'.$EoT->points($gPoints).'</td>'; }
echo '<td class="result" style="border-left:'.$style['result_border'].'" height="20px">--</td>';
?>
is this possible or do i need to add this as a registered variable like lynn has explained in how to make a vbulletin powered page?