Autor Tópico: Lista de Membro Xrevolution  (Lida 2835 vezes)

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

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5072
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Lista de Membro Xrevolution
« em: 03 de Janeiro de 2009, 04:46 »
$themedir/Memberlist.template.php
Pesquisar
Código: [Seleccione]
function template_main()
Alterar por
Código: [Seleccione]
function template_standard()
Pesquisar
Código: [Seleccione]
?>
Adicionar
Código: [Seleccione]
// Displays a custom memberlist made by Memberlist Xrevolution mod
function template_main()
{
global $context, $settings, $options, $scripturl, $txt;
 
// Display that link tree...
echo '
<div style="padding: 3px;">', theme_linktree(), '</div>';
 
// Display links to view all/search.
if (!empty($settings['use_tabs']))
{
echo '
<table cellpadding="0" cellspacing="0" border="0" style="margin-left: 10px;">
<tr>
<td class="mirrortab_first"> </td>';
 
foreach ($context['sort_links'] as $link)
{
if ($link['selected'])
echo '
<td class="mirrortab_active_first"> </td>
<td valign="top" class="mirrortab_active_back">
<a href="' . $scripturl . '?action=mlist' . (!empty($link['action']) ? ';sa=' . $link['action'] : '') . '">', $link['label'], '</a>
</td>
<td class="mirrortab_active_last"> </td>';
else
echo '
<td valign="top" class="mirrortab_back">
<a href="' . $scripturl . '?action=mlist' . (!empty($link['action']) ? ';sa=' . $link['action'] : '') . '">', $link['label'], '</a>
</td>';
}
 
echo '
<td class="mirrortab_last"> </td>
</tr>
</table>
<div class="tborder">';
}
else
{
echo '
<div class="bordercolor" style="padding: 1px;">
<div class="titlebg" style="padding: 4px 4px 4px 10px;">';
$links = array();
foreach ($context['sort_links'] as $link)
$links[] = ($link['selected'] ? '<img src="' . $settings['images_url'] . '/selected.gif" alt=">" /> ' : '') . '<a href="' . $scripturl . '?action=mlist' . (!empty($link['action']) ? ';sa=' . $link['action'] : '') . '">' . $link['label'] . '</a>';
 
echo '
', implode(' | ', $links), '
</div>
</div>
<div class="bordercolor" style="padding: 1px">';
}
 
echo '
 
<div class="windowbg" align="center" style="padding-bottom: 1ex;">
<table width="440" border="0" cellpadding="0" cellspacing="0"> <tr><td>';
 
// Display page numbers and the a-z links for sorting by name if not a result of a search.
if (!isset($context['old_search']))
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>', $txt[139], ': ', $context['page_index'], '</td>
<td align="right">', $context['letter_links'] . '</td>
</tr>
</table>';
// If this is a result of a search then just show the page numbers.
else
echo '
', $txt[139], ': ', $context['page_index'];
 
// Assuming there are members loop through each one displaying their data.
if (!empty($context['members']))
{
echo'
<table cellpadding="3" cellspacing="2" align="center"><tr>';
 
$c = 0;
 
foreach ($context['members'] as $member)
                {
if ($c != 0 && ($c % 5) == 0)
            echo '</tr><tr>';

$c++;

            echo '
<td><table width="200" border="0" class="bordercolor">
<tr>';
// Box header containing the usename and current status.
echo'
<td class="catbg">', ($member['link'] < 20) ? $member['link'] : 20, ' ', $context['can_send_pm'] ? '<a href="' . $member['online']['href'] . '" title="' . $member['online']['text'] . '">' : '', $settings['use_image_buttons'] ? '<img src="' . $member['online']['image_href'] . '" alt="' . $member['online']['text'] . '" align="middle" />' : $member['online']['label'], $context['can_send_pm'] ? '</a>' : '', '</td>
</tr>
<tr class="windowbg2">
<td height="200" class="smalltext" style="line-height: 1.3; padding-bottom: 3ex;" align="center">';
 
// The avatar
echo'
', $member['avatar']['image'], '<br />';
// Membergroup(s)
if (isset($member['group']) && $member['group'] != '')
echo '
<b>', $member['group'],' <br/></b>';
 
// 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']) || $member['group'] == '') && $member['post_group'] != '')
echo '
', $member['post_group'], '<br/>';
echo '
', $member['group_stars'], '<br/>';
 
// Number of posts
if (!isset($context['disabled_fields']['posts']))
echo '
    <b>', $txt[21] ,':</b> <i>', $member['posts'], '</i><br />';
 
// Date registered
echo '
    <b>', $txt[233] ,':</b> <i>', $member['registered_date'], '</i><br />';
 
// Email
echo '
    ', $member['hide_email'] ? '' : '<a href="mailto:' . $member['email'] . '"><img src="' . $settings['images_url'] . '/email_sm.gif" alt="' . $txt[69] . '" title="' . $txt[69] . ' ' . $member['name'] . '" /></a>', '';
 
// Website
echo '
    ', $member['website']['url'] != '' ? '<a href="' . $member['website']['url'] . '" target="_blank"><img src="' . $settings['images_url'] . '/www.gif" alt="' . $member['website']['title'] . '" title="' . $member['website']['title'] . '" /></a>' : '', '';
 
// Aim
echo '
    ', $member['aim']['link'], '';
 
// Yim
echo '
    ', $member['yim']['link'], '';
 
// MSN
echo '
    ', $member['msn']['link'], '';
 
// ICQ
echo '
    ', $member['icq']['link'], '';
 
echo'
 
</td>
</tr>
 
</table></td>';
}
}
echo'
</tr></table>';
 
// Display page numbers again.
if (!isset($context['old_search']))
echo '
<table width="100%" cellpadding="0" cellspacing="0" border="0">
<tr>
<td>', $txt[139], ': ', $context['page_index'], '</td>
</tr>
</table>';

echo'</td></tr>
</table>
</div>
</div>';
}





Link do MOD  http://custom.simplemachines.org/mods/index.php?mod=1503