Advertisement:

Author Topic: Member Awards debajo de las firmas en smf 2.0 rc3  (Read 6066 times)

Offline pcnova

  • Jr. Member
  • **
  • Posts: 105
Member Awards debajo de las firmas en smf 2.0 rc3
« on: August 27, 2010, 08:54:00 PM »
mirando mirando aquí os lo dejo

./Themes/default/Display.template.php

Buscamos
Code: [Select]
// Show the member's signature?
if (!empty($message['member']['signature']) && empty($options['show_no_signatures']) && $context['signature_enabled'])
echo '
<div class="signature" id="msg_', $message['id'], '_signature">', $message['member']['signature'], '</div>';

echo '
</div>
</div>
<span class="botslice"><span></span></span>
</div>


pegamos luego esto

Code: [Select]

// Show their awards?
if (!empty($message['member']['awards']) && $modSettings['awards_in_post'] > 0){
echo '
<li>
<fieldset style="border: 1px solid black; padding: 5px;">
<legend>', $txt['awards'], '</legend>';

// 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 '
</fieldset>
</li>';
}


buscamos esto

Code: [Select]

// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<li><a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']) . '" border="0" />' : ($message['member']['online']['is_online'] ? $txt['pm_online'] : $txt['pm_offline']), '</a></li>';


pegamos luego esto

Code: [Select]

// Awards!
echo '
<li><a href="', $scripturl, '?action=profile;area=showAwards;u=', $message['member']['id'], '" title="', $txt['awards'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/award.gif" alt="' . $txt['awards'] . '" title="' . $txt['awards'] . '" border="0" />' : $txt['awards']), '</a></li>';


y listo ya tenemos nuestro award debajo de la firma tal que asi

« Last Edit: August 27, 2010, 09:27:44 PM by pcnova »

Offline robertoiui

  • Jr. Member
  • **
  • Posts: 236
Re: Member Awards debajo de las firmas en smf 2.0 rc3
« Reply #1 on: August 28, 2010, 06:24:10 AM »
esta bien pero no se podria poner con diseño como aqui?


EDIT: el cod ees este

 //Emepezamos el mostraje de premios     
               $resulty = db_query("SELECT it.gameName, it.filename, it.ID_AWARD FROM {$db_prefix}awards_members AS adw, {$db_prefix}awards AS it WHERE adw.ID_MEMBER = {$message['member']['id']} AND adw.ID_AWARD = it.ID_AWARD LIMIT 24", __FILE__, __LINE__);
               if(mysql_num_rows($resulty) > 0){
               $miramoss = mysql_query("SELECT * FROM {$db_prefix}awards_members WHERE ID_MEMBER='".$message['member']['id']."'");
               $total_premios = mysql_num_rows($miramoss);
               echo'
               <table border="0" cellpadding="0" cellspacing="0" width="100%">
                 <tbody>
                  <tr>
                    <td width="8"><img src="http://solotrades.com/foro/Themes/musica/panel/img_pn/bbleft.gif" alt="left" width="8" height="18" /></td>
                    <td style="background: rgb(116, 169, 192) none repeat scroll 0%; -moz-background-clip: -moz-initial; -moz-background-origin: -moz-initial; -moz-background-inline-policy: -moz-initial; color: rgb(255, 255, 255); font-size: 11px; font-weight: bold;"><div align="center">Mi colecci&oacute;n de premios - Actualmente tengo '.$total_premios.' premio(s)</div></td>
                    <td width="8"><img src="http://solotrades.com/foro/Themes/musica/panel/img_pn/bbright.gif" width="8" height="18" /></td>
                  </tr>
                 </tbody>
               </table>';
               while ($roww = mysql_fetch_assoc($resulty)){
               echo "<center><img src='{$boardurl}/awards/{$roww['filename']}'title='{$roww['gameName']}'></center>";
               }
               }
               //Fin del mostraje de premios.
pero es para 1.x aver si lo podeis transformar a rc3 :B
« Last Edit: August 28, 2010, 07:22:07 AM by robertoiui »

Offline Wolfy

  • Jr. Member
  • **
  • Posts: 136
  • Gender: Male
  • http://www.narutodattebayo.site40.net/foro/
    • Team One Piece
Re: Member Awards debajo de las firmas en smf 2.0 rc3
« Reply #2 on: December 12, 2010, 10:40:13 AM »
Hola,

A ver, que me pierdo...

Para dejar las medallas del modo que están en Inmortal, (la imagen de robertoiui) ¿Qué tengo que editar y cómo?

Muchas Gracias
Nombre del foro: Team One Piece
Enlace: http://www.teamonepiece.is-best.net
Versión: 2.02
Hosting: arredemo.org (gratuito)