News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

Users Logged In Today como mudar

Started by tonnybarros, April 19, 2007, 11:16:24 AM

Previous topic - Next topic

tonnybarros

Eu já tenho esse mod instalado mas queria saber onde eu posso trocar os diseres Users Logged In Today.
Para eu colocar o que eu quizer.

Apllicmz

Nao sei se percebo quer trocar a língua para Pt
ou quer mesmo trocar esse tutulo



margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

tonnybarros

Ola, eu ja tentei mas não consegui achar "Users Logged In Today" para poder traduzir, ja tentei em
Modifications.portuguese.php
Modifications.ingles.php
Modifications.brazilian.php

margarett

Anexa aí o Modifications.portuguese.php
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

tonnybarros


margarett

Esquece...

Carregando o mod no Package parser, vemos que o MOD faz a seguinte modificação:

QuoteNo ficheiro $languagedir/Modifications.english.php
Adicione ao fim do ficheiro:

$txt['uot_users_online_today']='Users Logged In Today';
$txt['uot_yesterday']='Yesterday at ';
$txt['uot_total']='Total';
$txt['uot_visible']='Visible';
$txt['uot_hidden']='Hidden';

Para adaptar o MOD ao nosso tema e à nossa linguagem como expliquei no meu guia, estas linhas devem também ser adicionadas ao "Modifications.portuguese.php" (ou outras linguagens conforme o caso). Se não as tens lá, devias ter.

Depois basta modificar o texto da primeira linha. Que é o que queres fazer...

Já agora, também tens de
QuoteNo ficheiro $languagedir/Stats.english.php
Encontrar:

$txt['users_online_today'] = 'Online Today';
$txt['num_hits'] = 'Total page views';
$txt['average_hits'] = 'Average page views per day';




Substituir por:

$txt['users_online_today'] = 'Most Online Today';
$txt['num_hits'] = 'Total page views';
$txt['average_hits'] = 'Average page views per day';
No Stats.portuguese.php como é natural.

Realmente acho que valeu de pouco o tempo que perdi de volta daquele guia...  ::)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

tonnybarros

Peço até desculpa, e o seu guia ficou muito bom, mas quando eu li o guia o link para Package parser não estava funcionando, por isso eu não entendi, mas agora ficou tudo claro.


De uma olhada no seu guia.

tonnybarros

Onde eu acho o Stats.portuguese.php

tonnybarros


margarett

Themes/default/languages/Stats.portuguese.php
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair


tonnybarros


margarett

A mim aparece "Usuários que entraram hoje" (e por baixo 4). Parece-me bem
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

tonnybarros

Ué, não entendi, vou entrar como visitante

tonnybarros

Como visitante aparece traduzido, mas como administrador aparece em ingles. Já viu isso?

tonnybarros

Mais uma pergunta e desculpe o incomodo.
Tem como acrescentar um botão na barra de menu, tipo:
Home            Ajuda       Pesquisa       Admin       Perfil       Minhas Mensagens       Membros       Sair

Para ficar assim:

Home            Ajuda       Pesquisa       Admin       Perfil       Minhas Mensagens       Membros       SITE      Sair

tonnybarros

Mais uma pergunta e desculpe o incomodo.
Tem como acrescentar um botão na barra de menu, tipo:
Home            Ajuda       Pesquisa       Admin       Perfil       Minhas Mensagens       Membros       Sair

Para ficar assim:

Home            Ajuda       Pesquisa       Admin       Perfil       Minhas Mensagens       Membros       SITE      Sair

margarett

#18
Tem, e isso é simples ;)

index.template.php

Encontras:

// If the user is a guest, also show [register] button.
if ($context['user']['is_guest'])
echo ($current_action == 'register' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
<td valign="top" class="maintab_' , $current_action == 'register' ? 'active_back' : 'back' , '">
<a href="', $scripturl, '?action=register">' , $txt[97] , '</a>
</td>' , $current_action == 'register' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';

E a seguir adicionas:

echo'
<td class="maintab_active">&nbsp;</td>
<td valign="top" class="maintab_back">
<a href="http://www.tectonny.com">SITE</a></td>
<td class="maintab_active">&nbsp;</td>';


Deve ser assim, não esquecer os backups da ordem :)
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

tonnybarros

Ficou legal mas tem como colocar no final depois do Sair

tonnybarros

Ficou legal mas tem como colocar no final depois do Sair

Porque ficou estranho deu espaço entre o menu Ajuda e Pesquisa

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

tonnybarros

Continua mesma coisa veja. Tem um espaço a mais no menu e o botão ainda não é o ultimo

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

tonnybarros


margarett

Hummm... Não queres voltar a tentar?
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

tonnybarros

Sim, com a sua ajuda.

Mas agora o meu forum ficou ruim veja a mensagem:

Sorry, SMF was unable to connect to the database. This may be caused by the server being busy. Please try again later.

margarett

Respondi no tópico em questão.

Em relação a isto, quando voltares a ter o fórum a correr, coloca novamente o código no index.template.php
Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

domipedro

#28
Quote from: tonnybarros on April 20, 2007, 10:21:54 AM
Como visitante aparece traduzido, mas como administrador aparece em ingles. Já viu isso?
No teu perfil, que tems como lingua escolhida?

tonnybarros

margarett agora está aparecendo assim.
Usu�rios que entraram hoje

Como eu conserto esse "?" não achei ele em lugar nenhum, para modificar.
Minha lingua padrão é brazilian

margarett

Se forem conduzir, não bebam. Se forem beber... CHAMEM-ME!!!! :D

QuoteOver 90% of all computer problems can be traced back to the interface between the keyboard and the chair

tonnybarros

o problema é que eu não achei la no modification.brazilan

Advertisement: