Info Utilizador

Iniciado por rui13, 20 de Agosto de 2007, 13:31

Tópico anterior - Tópico seguinte

0 Membros e 12 Visitantes estão a ver este tópico.

rui13

boas a todos.

joomlamz gostei muito da barra lateral do utilizador aquela em que mostra todo a info nos topicos respondidos . se podesses disponibilizar o codigo agradecia.

PORTALTEK

www.portaltek.net          -> Loja On-Line
www.portaltek.net/forum -> Suporte e Outros

Joomlamz

igual a esta ou tens a outra ideia...
se quer igual a esta vou preparar o código depois coloco aqui...
Apllic   Alojamentos Profissionais de Moçambique!

rui13

a que tem aqui achei interessante apesar de ocupar um pouco de espaço a mais...
mas depois de ter esse código faço a minha maneira

obrigado

PORTALTEK

www.portaltek.net          -> Loja On-Line
www.portaltek.net/forum -> Suporte e Outros

Joomlamz

Vou colocar ainda Hoje..
ta bom pra poder ver....
Apllic   Alojamentos Profissionais de Moçambique!

Joomlamz


Shot at 2007-08-20

Abrir teu style.css do tema actual
Colocar ese codigo

.profil
{
border: 1px dashed #999999;
background-image: url('images/profil.gif');
background-repeat:repeat-x;
background-color:#E2E2E2;
padding: 3px;
margin: 3px;

}


Abre o teu display.template.php

pesquisar por esta linha
- // Show information about the poster of this message.

e outra linha

- // Done with the information about the poster... on to the post itself.

Dentro dessas duas linhas coloque o codigo abaixo....

// profil baslangici translate By Candidosa2
// Show information about the poster of this message.
echo '
<table width="100%" cellpadding="5" cellspacing="0" style="table-layout: fixed;">
<tr>
<td class="windowbg" valign="top" width="16%" rowspan="2" style="overflow: hidden;">
<div class="profil" align="center">

<a href="', $message['member']['href'], '"><b>', $message['member']['renk'], '</b></a></div>



<div class="smalltext">';

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

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

// 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 '
<div class="profil" align="center">', $message['member']['post_group'], '</div>';
echo '
<div class="profil" align="center">', $message['member']['group_stars'], '</div>';





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


// mesaj sayisaina göre madalya sistemi

$madalya = '<img src="' . $settings['images_url'] . '/madalya.gif" border="0" />';

if ($message['member']['posts'] <= 150) {
echo'';
}
elseif ($message['member']['posts'] <= 300) {
echo '<div class="profil" align="center">' , $madalya , '' , $madalya , '</div>';
}
elseif ($message['member']['posts'] <= 750) {
echo'<div class="profil" align="center">' , $madalya , '' , $madalya , '' , $madalya , '</div>';
}
elseif ($message['member']['posts'] <= 1200) {
echo'<div class="profil" align="center">' , $madalya , '' , $madalya , '' , $madalya , '' , $madalya , '</div>';
}
elseif ($message['member']['posts'] <= 1800) {
echo'<div class="profil" align="center">' , $madalya , '' , $madalya , '' , $madalya , '' , $madalya , '' , $madalya , '</div>';
}
elseif ($message['member']['posts'] >= 1800) {
echo'<div class="profil" align="center">' , $madalya , '' , $madalya , '' , $madalya , '' , $madalya , '' , $madalya , '' , $madalya , '</div>';
}  

   // üye nosunu göster
echo '
<div class="profil" align="left"><b>Membro No:</b> ', $message['member']['id'], '</div>
'; 


// Show the member's gender icon?
if (!empty($settings['show_gender']) && $message['member']['gender']['image'] != '')
echo '
<div class="profil" align="left"><b>', $txt[231], ':</b> ', $message['member']['gender']['image'], '</div>';


// Show how many posts they have made.
echo '
<div class="profil" align="left"><b>', $txt[26], ':</b> ', $message['member']['posts'], '</div>';
                                               
                                                // Show the member's location
if (!empty($message['member']['location']))
echo '
<div class="profil" align="left"><b>Localizaçao:</b> ', $message['member']['location'], '</div>
';
 

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

// Is this user allowed to modify this member's karma?
if ($message['member']['karma']['allow'])
echo '
<div class="profil" 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></div>';


// Show their personal text?
if (!empty($settings['show_blurb']) && $message['member']['blurb'] != '')
echo '
<div class="profil" align="center"><b>texto Pessoal:</b> ',$message['member']['blurb'], '</div>';




// This shows the popular messaging icons.
echo '<div class="profil" 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>';

// 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></br>';
}
}
echo'</div><div class="profil" align="center">';
// Show online and offline buttons? by rallyproco
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"></span>' : '', '';


// Show the report. by rallyproco
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'], '/report.gif" alt="' . $txt['rtm1'] . '" /></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></div>';


// profil Traduzido Por Joomlamz


Se tiver alguma duvida coloque TA BOM




Apllic   Alojamentos Profissionais de Moçambique!

rui13


PORTALTEK

www.portaltek.net          -> Loja On-Line
www.portaltek.net/forum -> Suporte e Outros

Webmaster

O Topico pode ficar fechado ou ainda vai precisar de alguma coisa...
Apllic! WebSuporte

rui13

era so mais uma questao depois poderia encerrar o topico.

como colocar as barras laterais tipo o progresso, o activo etc.....

PORTALTEK

www.portaltek.net          -> Loja On-Line
www.portaltek.net/forum -> Suporte e Outros

Joomlamz

Ta bom vou colocar o codigo aqui
a explicar como colocar... pesquisar2
Apllic   Alojamentos Profissionais de Moçambique!

Joomlamz

Display.template.php

Pesquisar
// Show how many posts they have made.

podes colocar por cima ou doutra forma...

   // Ilerleme Modu M.Uzun Translate By Candidosa2
echo '
<b>Progresso</b><br>';

if ($message['member']['posts'] <= 0) {
echo'';
}
elseif ($message['member']['posts'] <= 50) {
echo'<img src="' . $settings['images_url'] . '/1b.gif" border="0" /><br /><br />';
}
elseif ($message['member']['posts'] <= 150) {
echo'<img src="' . $settings['images_url'] . '/2b.gif" border="0" /><br /><br />';
}
elseif ($message['member']['posts'] <= 750) {
echo'<img src="' . $settings['images_url'] . '/3b.gif" border="0" /><br /><br />';
}
elseif ($message['member']['posts'] <= 950) {
echo'<img src="' . $settings['images_url'] . '/4b.gif" border="0" /><br /><br />';
}
elseif ($message['member']['posts'] <= 1250) {
echo'<img src="' . $settings['images_url'] . '/5b.gif" border="0" /><br /><br />';
}
elseif ($message['member']['posts'] <= 2500) {
echo'<img src="' . $settings['images_url'] . '/6b.gif" border="0" /><br /><br />';
}
elseif ($message['member']['posts'] >= 3500) {
echo'<img src="' . $settings['images_url'] . '/7b.gif" border="0" /><br /><br />';
}


as imagens estão no attach sobre experiência podes copiar do fórum

o codigo esta aqui
//AKTIFLIK by AYESOFT Translate por Candidosa2
$sira = ($message['member']['id'])-1 ;

$sorgu = mysql_query("select * from  smf_members");
$sonuc = mysql_result($sorgu, $sira, 'totalTimeLoggedIn');
$ativo=($sonuc)/5000;
if ($ativo<1) {
$ativo=1;
}
if ($ativo>101){
$ativo=101;
  }
$Nivel=($message['member']['karma']['good'] - $message['member']['karma']['bad'])/15;
if ($Nivel<1) {
$Nivel=1;
             }
if ($Nivel>101) {
$Nivel=101;
   }
$experiência=($message['member']['posts'])/30;
if ($experiência<1){
$experiência=4;
       }
if ($experiência>101) {
$experiência=101;
   }

echo '
<TABLE cellSpacing=0 cellPadding=0 width="114" border=0>
<TABLE cellSpacing=0 cellPadding=0 width="114" border=0>
Activo <br>
<tr>
<TD class=nopad width=3 height=13>
<IMG height=13 alt="" src="', $settings['images_url'], '/img_left.gif" width=3>
</TD>
<td colspan="2"  style="BACKGROUND: url(', $settings['images_url'], '/img_backing.gif) repeat-x left top; LINE-HEIGHT: 13px" width=114 height=13>
<IMG height="11" src="', $settings['images_url'], '/bhg.gif" width="', $ativo, '"><IMG height="9" src="', $settings['images_url'], '/exp.gif" width="2">
</td>
<TD class=nopad width=3 height=13>
<IMG height=13 alt="" src="', $settings['images_url'], '/img_right.gif" width=3>
</TD>
</tr>
</table>
<TABLE cellSpacing=0 cellPadding=0 width="114" border=0>
experiência<br>
<tr>
<TD class=nopad width=3 height=13>
<IMG height=13 alt="" src="', $settings['images_url'], '/img_left.gif" width=3>
</TD>
<td colspan="2"  style="BACKGROUND: url(', $settings['images_url'], '/img_backing.gif) repeat-x left top; LINE-HEIGHT: 13px" width=114 height=13>
<IMG height="11" src="', $settings['images_url'], '/bmg.gif" width="', $experiência, '">
<IMG height="9" src="', $settings['images_url'], '/exp.gif" width="2">
</td>
<TD class=nopad width=3 height=13>
<IMG height=13 alt="" src="', $settings['images_url'], '/img_right.gif" width=3>
</TD>
</tr>
</table>
<TABLE cellSpacing=0 cellPadding=0 width="114" border=0>
Nivel<br>
<tr>
<TD class=nopad width=3 height=13>
<IMG height=13 alt="" src="', $settings['images_url'], '/img_left.gif" width=3>
</TD>
<td colspan="2"  style="BACKGROUND: url(', $settings['images_url'], '/img_backing.gif) repeat-x left top; LINE-HEIGHT: 13px" width=114 height=13>
<IMG height="11" src="', $settings['images_url'], '/bxg.gif" width="', $Nivel, '">
<IMG height="9" src="', $settings['images_url'], '/hp.gif" width="2">
</td>
<TD class=nopad width=3 height=13>
<IMG height=13 alt="" src="', $settings['images_url'], '/img_right.gif" width=3>
</TD>
</tr>
</table>
';
//AKTIFLIK MODU SONU



depois confirma para poder ficar fechado o topico
Apllic   Alojamentos Profissionais de Moçambique!

jass

#10
Boas

eu pus esse modificacao e nao me aparece o nome agora dos membros de resto esta tudo bom..

ajuda por favor..

cumps

e eu tenho tambem o mod Agradecer daria para adecionar nesse profié por favor??


rui13

tens a certeza do que copias-te tudo bem?

PORTALTEK

www.portaltek.net          -> Loja On-Line
www.portaltek.net/forum -> Suporte e Outros

candidosa2

e eu tenho tambem o mod Agradecer daria para adecionar nesse profié por favor??


sim mais como esta aqui no fórum ?

isso e Karma tem activar no admin funcionalidades e activar Karma....

jass

boas sim copiei tudo sim mas nao me aparece ainda


olhe do mod agradecer eu nao quero o karma mas sim o mod agradecer activo-..

cumps

Webmaster

Podes colocar o teu Display.template.php aqui assim pode se resolver essa questao Agora..

Sobre o Agradecomento esta a preparar se pra colocar aqui....esta em traducao ainda


Apllic! WebSuporte