<? if ($tpl['comment']['if-user']){ ?>
<font color="red"><?=$tpl['comment']['author']; ?></font>
<? } else { ?>
<?=$tpl['comment']['author']; ?>
<? } ?>FI-DD wrote:
- Code: Select all
<? if ($tpl['comment']['if-user']){ ?>
<font color="red"><?=$tpl['comment']['author']; ?></font>
<? } else { ?>
<?=$tpl['comment']['author']; ?>
<? } ?>
oh well damm ... i thought of doin it that way but wasnt sure
sy_ wrote:if i had two admins and wanted both to have a separate color what would i add ??
if($tpl['comment']['author'] == "admin1"){
echo '<font style="color:red">'.$tpl['comment']['author'].'</font>';
}
elseif($tpl['comment']['author'] == "admin2"){
echo '<font style="color:blue">'.$tpl['comment']['author'].'</font>';
}
else {
echo $tpl['comment']['author'];
}Return to Strawberry Suggestions
Users browsing this forum: No registered users and 0 guests