pesquisa por localização

Iniciado por candidosa2, 02 de Janeiro de 2009, 21:23

Tópico anterior - Tópico seguinte

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

candidosa2

$sourcedir/Memberlist.php
Pesquisar
'MSN' => array(
'label' => $txt['MSN'],
'width' => '25'
),


Adicionar
'location' => array(
'label' => $txt[227],
),


Pesquisar
'MSN' => array(
'down' => 'LENGTH(mem.MSN) > 0 DESC, ISNULL(mem.MSN) ASC, mem.MSN ASC',
'up' => 'LENGTH(mem.MSN) > 0 ASC, ISNULL(mem.MSN) DESC, mem.MSN DESC'
),


Adicionar
'location' => array(
'down' => 'mem.location ASC',
'up' => 'mem.location DESC'
),


Pesquisar
// Search for groups.
if (in_array('group', $_POST['fields']))
$fields += array(9 => 'IFNULL(groupName, \'\')');


Adicionar
// Search for location.
if (in_array('location', $_POST['fields']))
$fields += array(10 => 'location');



$themedir/Memberlist.template.php

Pesquisar
<tr class="titlebg">
<td colspan="12">'


Trocar por
<tr class="titlebg">
<td colspan="13">'


Pesquisar
<td colspan="12" class="', empty($settings['use_tabs']) ? 'catbg' : 'titlebg', '">';

Alterar por
<td colspan="13" class="', empty($settings['use_tabs']) ? 'catbg' : 'titlebg', '">';

Pesquisar
<td class="windowbg2">', $member['msn']['link'], '</td>

Adicionar
<td class="windowbg2">', $member['location'], '</td>

Pesquisar
<td colspan="12" class="windowbg">', $txt[170], '</td>

Alterar por
<td colspan="13" class="windowbg">', $txt[170], '</td>

Pesquisar
<td class="titlebg" colspan="12">', $txt[139], ': ', $context['page_index'], '</td>

ALTERAR POR
<td class="titlebg" colspan="13">', $txt[139], ': ', $context['page_index'], '</td>

Pesquisar
<label for="fields-website"><input type="checkbox" name="fields[]" id="fields-website" value="website" class="check" /> ', $txt['mlist_search_website'], '</label>

Adicionar
<br />
<label for="fields-location"><input type="checkbox" name="fields[]" id="fields-location" value="location" class="check" /> ', $txt['mlist_search_location'], '</label>


$languagedir/Modifications.portuguese_pt.php

Colocar
$txt['mlist_search_location'] = 'Pesquisa por localização';



Link directo do mod...http://custom.simplemachines.org/mods/index.php?mod=931