Reply #10 August 10, 2011 - 01:44 13:44
Ok, aqui les dejo el codigo que va en el Display.template.php
// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<div class="aw_head">', $txt['awards'], '</div>
<div class="aw_container">';
// Couldn't limit it in Load.php, so let's do it here.
$awards = 0;
foreach ($message['member']['awards'] as $award){
if($awards < $modSettings['awards_in_post'])
echo '
<a href="', $scripturl, $award['more'], '"><img src="', dirname($scripturl), $award['img'], '" alt="', $award['description'], '" title="', $award['description'], '" /></a> ';
$awards++;
}
echo '
</div>';
}
Y este nuevo que les voy a dejar va en el final de su index.css:
.aw_head
{
margin: 5px;
background: rgb(116, 169, 192) none repeat scroll 0%;
color: #fff;
text-align: center;
font-size: 11px;
font-weight: bold;
border-radius: 10px;
}
.aw_container
{
margin-right: 5px;
margin-left: 5px;
text-align: center;
}
Salu2!