Autor Tópico: Perfil Webmastermz  (Lida 4467 vezes)

0 Membros e 1 Visitante estão a ver este tópico.

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5061
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Perfil Webmastermz
« em: 05 de Maio de 2009, 06:38 »

Display.template.php
Pesquisar
Código: [Seleccione]
// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<b>', $message['member']['link'], '</b>
<div class="smalltext">';

// Show the member's custom title, if they have one.
if (isset($message['member']['title']) && $message['member']['title'] != '')
echo '
', $message['member']['title'], '<br />';

// Show the member's primary group (like 'Administrator') if they have one.
if (isset($message['member']['group']) && $message['member']['group'] != '')
echo '
', $message['member']['group'], '<br />';

// Don't show these things for guests.
if (!$message['member']['is_guest'])
{
// Show the post group if and only if they have no other group or the option is on, and they are in a post group.
if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
echo '
', $message['member']['post_group'], '<br />';
echo '
', $message['member']['group_stars'], '<br />';

// Is karma display enabled?  Total or +/-?
if ($modSettings['karmaMode'] == '1')
echo '
<br />
', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
elseif ($modSettings['karmaMode'] == '2')
echo '
<br />
', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';

// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
<a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a><br />';

// Show online and offline buttons?
if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
echo '
', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br /><br />';

// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
', $txt[231], ': ', $message['member']['gender']['image'], '<br />';

// Show how many posts they have made.
echo '
', $txt[26], ': ', $message['member']['posts'], '<br />
<br />';

// Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']) && !empty($message['member']['avatar']['image']))
echo '
<div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'], '</div><br />';

// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
', $message['member']['blurb'], '<br />
<br />';

// This shows the popular messaging icons.
echo '
', $message['member']['icq']['link'], '
', $message['member']['msn']['link'], '
', $message['member']['aim']['link'], '
', $message['member']['yim']['link'], '<br />';

// Show the profile, website, email address, and personal message buttons.
if ($settings['show_profile_buttons'])
{
// Don't show the profile button if you're not allowed to view the profile.
if ($message['member']['can_view_profile'])
echo '
<a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';

// Don't show an icon if they haven't specified a website.
if ($message['member']['website']['url'] != '')
echo '
<a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';

// Don't show the email address if they want it hidden.
if (empty($message['member']['hide_email']))
echo '
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

// Since we know this person isn't a guest, you *can* message them.
if ($context['can_send_pm'])
echo '
<a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a>';
}
}
// Otherwise, show the guest's email.
elseif (empty($message['member']['hide_email']))
echo '
<br />
<br />
<a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

// Done with the information about the poster... on to the post itself.
echo '
</div>
</td>
<td valign="top" width="85%" height="100%">
<table width="100%" border="0"><tr>
<td valign="middle"><a href="', $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a></td>
<td valign="middle">
<div style="font-weight: bold;" id="subject_', $message['id'], '">
<a href="', $message['href'], '">', $message['subject'], '</a>
</div>';

Alterar por
Código: [Seleccione]
//BrKn* Profil Alani Baslangici Update translate candidosa2 Suporte smfpt.net
// Show information about the poster of this message.
      echo '
            <table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
               <tr>
                  <td class="', $message['alternate'] == 0 ? 'windowbg' : 'windowbg', '" valign="top" width="16%" rowspan="2">
                
   <div class="profil-ust-sol">
         <div class="profil-ust-sag">
            <div class="profil-ust-orta">
               &nbsp;
            </div>
         </div>
      </div>
      <div class="profil-border-sol">
         <div class="profil-border-sag">
            <div class="profil-border">

                     <div align="center">
                     <b>', $message['member']['link'], '</b>
                     </div>
                     <div class="smalltext">';

      // Show the member's custom title, if they have one.
      if (isset($message['member']['title']) && $message['member']['title'] != '')
         echo '
                         <div align="center">', $message['member']['title'], '<br /></div>';

      // Show the member's primary group (like 'Administrator') if they have one.
      if (isset($message['member']['group']) && $message['member']['group'] != '')
         echo '
                         <div align="center">', $message['member']['group'], '<br /></div>';

      // Don't show these things for guests.
      if (!$message['member']['is_guest'])
      {
         // Show the post group stars
         if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
    
         echo '
                        <div align="center">', $message['member']['group_stars'], '<br /></div><hr />';

         // Show avatars, images, etc.?
if (!empty($settings['show_user_images']) && empty($options['show_no_avatars']))
            if (empty($message['member']['avatar']['image']))
            echo '
            <div align="center"><div style="overflow: auto; width: 100%;"><img src="' . $settings['images_url'] . '/profil/autoavatar.jpg" alt="Avatar Yok" title="Avatar Yok" border="0" /></div></div><hr />';
            else
            echo '
            <div align="center"><div style="overflow: auto; width: 100%;">', $message['member']['avatar']['image'],'</div></div><hr />';

  
                  // Show the post group if and only if they have no other group or the option is on, and they are in a post group.
         if ((empty($settings['hide_post_group']) || $message['member']['group'] == '') && $message['member']['post_group'] != '')
            echo '
      <img src="', $settings['images_url'], '/profil/arrow.gif" alt="" />&nbsp;<font color="black"><b>', $txt['uye_grubu'], '</b></font>', $message['member']['post_group'], '<br />';
        
   // Calculate their age! Hopefully they are not too old
   if (!empty($message['member']['birth_date']))
   {
      if ($message['member']['birth_date'] != '0000-00-00')
      {
         list ($birth_year, $birth_month, $birth_day) = sscanf($message['member']['birth_date'], '%d-%d-%d');
         $datearray = getdate(forum_time());
         $message['member'] += array(
            'age' => empty($birth_year) ? $txt[470] : $datearray['year'] - $birth_year - (($datearray['mon'] > $birth_month || ($datearray['mon'] == $birth_month && $datearray['mday'] >= $birth_day)) ? 0 : 1),
            'today_is_birthday' => $datearray['mon'] == $birth_month && $datearray['mday'] == $birth_day
         );
      }
   }

   // Yas
   if (!empty($message['member']['age']))
   echo '

<img src="', $settings['images_url'], '/profil/arrow.gif" alt="" />&nbsp;<font color="black"><b>', $txt['uye_yas'], '</b></font> ', $message['member']['age'], '<br />';    
        
        
// Show the member's gender icon?
         if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
            echo '
         <img src="', $settings['images_url'], '/profil/arrow.gif" alt="" />&nbsp;<font color="black"><b>', $txt['uye_cinsiyet'], '</b></font>', $message['member']['gender']['image'], '<br />';

          
// Uye nereden
echo '
         <img src="', $settings['images_url'], '/profil/arrow.gif" alt="" />&nbsp;<font color="black"><b>', $txt['uye_nerden'], '</b></font> ', $message['member']['location'], '<br />';
    
    
// Show how many posts they have made.
         echo '
            <img src="', $settings['images_url'], '/profil/arrow.gif" alt="" />&nbsp;<font color="black"><b>', $txt['uye_mesaj'], '</b></font>', $message['member']['posts'], '<br />
                  ';                      
                      
                      
//Konu Sayisi

$data=mysql_query("SELECT count(`ID_TOPIC`) konu FROM `smf_topics` WHERE `ID_MEMBER_STARTED` = ".$message['member']['id']);
while($d=mysql_fetch_object($data))
{
echo '<img src="', $settings['images_url'], '/profil/arrow.gif" alt="" />&nbsp;<font color="black"><b>', $txt['uye_konu'], '</b></font> ',$d->konu;
}
mysql_free_result($data);
unset($data,$d);    
    
    
   // Uye  ID
echo '<br />
      <img src="', $settings['images_url'], '/profil/arrow.gif" alt="" />&nbsp;<font color="black"><b>', $txt['uye_no'], '</b></font>', $message['member']['id'], '<br />';



         // Is karma display enabled?  Total or +/-?
         if ($modSettings['karmaMode'] == '1')
            echo '
               <img src="', $settings['images_url'], '/profil/arrow.gif" alt="" />&nbsp;<font color="black"><b>', $txt['uye_rep'], '</b></font>', $modSettings['karmaLabel'], ' ', $message['member']['karma']['good'] - $message['member']['karma']['bad'], '<br />';
         elseif ($modSettings['karmaMode'] == '2')
            echo '
                    
                        <img src="', $settings['images_url'], '/profil/arrow.gif" alt="" />&nbsp;<font color="black"><b>', $txt['uye_rep'], '</b></font>', $modSettings['karmaLabel'], ' +', $message['member']['karma']['good'], '/-', $message['member']['karma']['bad'], '<br />';

         // Is this user allowed to modify this member's karma?
         if ($message['member']['karma']['allow'])
            echo '<div align="center">
                        <a href="', $scripturl, '?action=modifykarma;sa=applaud;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.' . $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaApplaudLabel'], '</a>
                        <a href="', $scripturl, '?action=modifykarma;sa=smite;uid=', $message['member']['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';m=', $message['id'], ';sesc=', $context['session_id'], '">', $modSettings['karmaSmiteLabel'], '</a><br /></div>';



         // Show their personal text?
         if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
            echo '
                  <img src="', $settings['images_url'], '/profil/arrow.gif" alt="" />&nbsp;<font color="black"><b>', $txt['uye_kisisel_mesaj'], '</b></font>', $message['member']['blurb'], '<br />
                        ';
echo'<hr />';
      // Show online and offline buttons?
         if (!empty($modSettings['onlineEnable']) && !$message['member']['is_guest'])
            echo '
                        <div align="center">', $context['can_send_pm'] ? '<a href="' . $message['member']['online']['href'] . '" title="' . $message['member']['online']['label'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $message['member']['online']['image_href'] . '" alt="' . $message['member']['online']['text'] . '" border="0" style="margin-top: 2px;" />' : $message['member']['online']['text'], $context['can_send_pm'] ? '</a>' : '', $settings['use_image_buttons'] ? '<span class="smalltext"> ' . $message['member']['online']['text'] . '</span>' : '', '<br /></div>';                
                      
  //OS & Browser Detection
if ($message['ua_os'] || $message['ua_browser']){ //Do not display if both are unknown

if ($message['ua_os']) {
echo '
<b>', $txt['OS_Browser_OS'], ':</b>
<br /><img src="', $settings['images_url'], '/os_browser_detection/icon_', $message['ua_os_icon'], '.png" align="top" alt="', $message['ua_os'], '" /> ', $message['ua_os'], '<br />';
} else {
echo '
<b>', $txt['OS_Browser_OS'], ':</b>
<br /><img src="', $settings['images_url'], '/os_browser_detection/icon_unknown.png" align="top" alt="', $txt['OS_Browser_Unknown'], '" /> ', $txt['OS_Browser_Unknown'], '<br />';
}

if ($message['ua_browser']) {
echo '
<b>', $txt['OS_Browser_Browser'], ':</b>
<br /><img src="', $settings['images_url'], '/os_browser_detection/icon_', $message['ua_browser_icon'], '.png" align="top" alt="', $message['ua_browser'], '" /> ', $message['ua_browser'], '<br />';
} else {
echo '
<b>', $txt['OS_Browser_Browser'], ':</b>
<br /><img src="', $settings['images_url'], '/os_browser_detection/icon_unknown.png" align="top" alt="', $txt['OS_Browser_Unknown'], '" /> ', $txt['OS_Browser_Unknown'], '<br />';
}

}

  
         // This shows the popular messaging icons.
         echo '<div align="center">
                        ', $message['member']['icq']['link'], '
                        ', $message['member']['msn']['link'], '
                        ', $message['member']['aim']['link'], '
                        ', $message['member']['yim']['link'], '<br />';

         // Show the profile, website, email address, and personal message buttons.
         if ($settings['show_profile_buttons'])
         {
            // Don't show the profile button if you're not allowed to view the profile.
            if ($message['member']['can_view_profile'])
               echo '
                        <a href="', $message['member']['href'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/icons/profile_sm.gif" alt="' . $txt[27] . '" title="' . $txt[27] . '" border="0" />' : $txt[27]), '</a>';

            // Don't show an icon if they haven't specified a website.
            if ($message['member']['website']['url'] != '')
               echo '
                        <a href="', $message['member']['website']['url'], '" title="' . $message['member']['website']['title'] . '" target="_blank">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/www_sm.gif" alt="' . $txt[515] . '" border="0" />' : $txt[515]), '</a>';

            // Don't show the email address if they want it hidden.
            if (empty($message['member']['hide_email']))
               echo '
                        <a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';

                        // Show the report.
               if ($context['can_report_moderator'])
         echo '
                           <a href="', $scripturl, '?action=reporttm;topic=', $context['current_topic'], '.', $message['counter'], ';msg=', $message['id'], '"><img src="' . $settings['images_url'] . '/profil/report.gif" alt="' . $txt['rtm1'] . '" border="0" /></a>';          
                      
                      
            // Since we know this person isn't a guest, you *can* message them.
            if ($context['can_send_pm'])
               echo '
                        <a href="', $scripturl, '?action=pm;sa=send;u=', $message['member']['id'], '" title="', $message['member']['online']['label'], '">', $settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/im_' . ($message['member']['online']['is_online'] ? 'on' : 'off') . '.gif" alt="' . $message['member']['online']['label'] . '" border="0" />' : $message['member']['online']['label'], '</a></div>';
         }
      }
    

    
      // Otherwise, show the guest's email.
      elseif (empty($message['member']['hide_email']))
         echo '
                        <br />
                        <br />
                        <a href="mailto:', $message['member']['email'], '">', ($settings['use_image_buttons'] ? '<img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . '" border="0" />' : $txt[69]), '</a>';
                      
                        echo'   </div>
         </div>
      </div>
    
    
         <div class="profil-alt-sol">
         <div class="profil-alt-sag">
            <div class="profil-alt-orta">
               &nbsp;
            </div>
         </div>
      </div>';

      // Done with the information about the poster... on to the post itself.
      echo '
                     </div>
                  </td>
                  <td valign="top" width="75%" height="100%">
                     <table width="100%" border="0"><tr>
                        <td valign="middle"><a href="', $message['href'], '"><img src="', $message['icon_url'] . '" alt="" border="0" /></a></td>
                        <td valign="middle">
                           <div style="font-weight: bold;" id="subject_', $message['id'], '">
                              <a href="', $message['href'], '">', $message['subject'], '</a>
                           </div>';
                          
                          
                              //BrKn* Profil Alani Bitisi   Suporte smfpt.net Translate Candidosa2


Style.css
Adicionar
Código: [Seleccione]
.profil-ust-orta {
height: 20px;
line-height: 20px;
padding: 0;
margin: 0;
background: #1680be url(images/profil/profil-ust-orta.gif) 0 0 repeat-x;
}
.profil-ust-sol {
background: #1680be url(images/profil/profil-ust-sol.gif) 0 0 no-repeat;
padding-left: 10px;
position: relative;
}
.profil-ust-sag {
background: #1680be url(images/profil/profil-ust-sag.gif) 100% 0 no-repeat;
padding-right: 10px;
position: relative;
}

.profil-alt-orta {
height: 20px;
line-height: 20px;
padding: 0;
margin: 0;
background: #1680be url(images/profil/profil-alt-orta.gif) 0 0 repeat-x;
}
.profil-alt-sol {
background: #1680be url(images/profil/profil-alt-sol.gif) 0 0 no-repeat;
padding-left: 10px;
position: relative;
}
.profil-alt-sag {
background: #1680be url(images/profil/profil-alt-sag.gif) 100% 0 no-repeat;
padding-right: 10px;
position: relative;
}

.profil-border {
padding: 0;
margin: 0;
background-color: #fff;
}
.profil-border-sol {
background: #fff url(images/profil/profil-border-sol.gif) 0 0 repeat-y;
padding-left: 5px;
position: relative;
}
.profil-border-sag {
background: #fff url(images/profil/profil-border-sag.gif) 100% 0 repeat-y;
padding-right: 5px;
position: relative;
}



index.portuguese_pt.php ou index.portuguese_brazilian.php


Código: [Seleccione]
?>
Código: [Seleccione]
$txt['uye_grubu'] = 'Membro Groupo : ';
$txt['uye_yas'] = 'Idade : ';
$txt['uye_cinsiyet'] = 'Gênero : ';
$txt['uye_nerden'] = 'Localização : ';
$txt['uye_mesaj'] = 'Postes : ';
$txt['uye_konu'] = 'Tópicos : ';
$txt['uye_no'] = 'Membro Id : ';
$txt['uye_rep'] = 'Rep Power : ';
$txt['uye_kisisel_mesaj'] = 'Messagem Pessoa : ';


o ficheiro da imagem esta no anexo
« Última modificação: 23 de Agosto de 2009, 18:17 por candidosa2 »

Offline pass25

  • Iniciar SmfPt
  • *
  • Mensagens: 64
  • Rank: 5
Re:Perfil Webmastermz
« Responder #1 em: 23 de Agosto de 2009, 16:57 »
Olá amigos,

Este também dá "404 anexo não encontrado"

Um abraço!

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5061
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Re:Perfil Webmastermz
« Responder #2 em: 23 de Agosto de 2009, 18:37 »
Update
Done

Offline elvio

  • Valasoft Brasil Suporte Profissional em Desbloqueio GSM
  • Iniciar SmfPt
  • *
  • Mensagens: 56
  • Rank: 0
  • Sexo: Masculino
    • Valasoft Brasil Suporte Profissional em Desbloqueio GSM.
Re: Perfil Webmastermz
« Responder #3 em: 26 de Janeiro de 2010, 14:20 »
ola! Candido fiz essa mdificação em um forum meu ficou filé, mas quando o membro chega a 100 mesagens simplesmente puf some todo o profile ficando como na imagem abaixo



veja o meu como ainda não tens 100 mensagens ainda continua normal



podes me ajudar com isso com alguma dica.

Desde de ja agradeço a sua colaboração.
..:::sou eu...............o mesmo de sempre:::...


Usuario UFSXHWK, BB5 KING, MX-KEY, Setools Box 3.