News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

Ola!(Modificação num tema)

Started by nunopitbull, October 08, 2009, 04:44:10 AM

Previous topic - Next topic

nunopitbull

Queria perguntar que adaptações poderia eu fazer para editar isto: http://img29.imageshack.us/img29/4241/testepi.jpg

Em isto: http://img42.imageshack.us/img42/6080/teste1y.jpg

Mas gostava que o formato fosse assim:

[3/10] Unread Topics / New replies

Em que o 3 em BOLD, é as mensagens novas, e o 10, são as totais.

P.S:
Hello NunoPitbull
you have 0 messages, 0 are new.
Show unread posts since last visit.
Show new replies to your posts.

Claro que ao editar isso no meu tema, e adicionar os novos textos, queria que ficasse centrado, mas acho que isso já faz automaticamente, não sei!
Desde já obrigado pela ajuda, mesmo sendo impossivel :)
Versão SMF: 1.1.10 / OverView theme.

margarett

Isso depende da codificação feita no tema.

A forma mais fácil é identificares no tema "modelo" como é que isso é feito, e passar para o teu.
Depois as cores, bem é jogar com elas...

Não deve ser muito difícil, mas agora não tenho hipótese nenhuma de mexer nisso :(
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

nunopitbull

Mas eu só quero basicamente alterar o texto...lol:x

margarett

Mais fácil ainda. As variáveis são rigorosamente as mesmas (vá, mais ou menos) e é só moldar como aparece...
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

nunopitbull

Vou esperar pelo costa.... Ele disse que me dava uma maozinha ..

[3/10] Unread Topics / New replies

Costa

Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

nunopitbull

#6
Aqui tá!
Adicionei também o index.english.php do default se for necessário.

Por favor, se puderes, diz o que alteraste, para eu se precissar para o SMF 2.0 saber mais ou menos :x embora seja só daqui a uns bons tempos.

Costa

index.template.php

Code (encontra) Select
                            // Only tell them about their messages if they can read their messages!
                            if ($context['allow_pm'])
                            echo ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' | ', $context['user']['unread_messages'],  '</a> .<br />';

                            echo '
                                <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
                                <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';
                        }

                        // Otherwise they're a guest - this time ask them to either register or login - lazy bums...


Code (substitui por) Select
                            // Only tell them about their messages if they can read their messages!
                            if ($context['allow_pm'])
                            echo ' [<a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' / ', $context['user']['unread_messages'],  '</a>]';
                            echo ' <a href="', $scripturl, '?action=unread">', 'Unread' , '</a>', ' / ' ;
                            echo ' <a href="', $scripturl, '?action=unreadreplies">', 'Replies' , '</a>';
                        }

                        // Otherwise they're a guest - this time ask them to either register or login - lazy bums...


Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

nunopitbull

Não dá por exmple para meter

[1/0] Unread / Replies

E meter o texto centrado?(tá um bocado para cima acho eu)

Costa

Este código é até mais correto...

            // Only tell them about their messages if they can read their messages!
            if ($context['allow_pm'])
               echo '&nbsp;&nbsp;[<a href="', $scripturl, '?action=pm">', $context['user']['messages'], '/<strong>', $context['user']['unread_messages'] , '</strong></a> MP]';




E nuno, nao, não dá para meter bold porque isso vai mexer em todo o teu CSS e modificar isso em todo o fórum
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

nunopitbull

#10
Humm tb... e podes dizer o que fica no codigo? Porque nao sei ate quando vai o copy paste:SS

EDIT: (attach)

Nem ficou com a barrinha branca no meio, e apareceu aquele "MP" :x

Costa

index.template.php

Code (encontra) Select
                            // Only tell them about their messages if they can read their messages!
                            if ($context['allow_pm'])
                            echo ' <a href="', $scripturl, '?action=pm">', $context['user']['messages'], ' | ', $context['user']['unread_messages'],  '</a> .<br />';

                            echo '
                                <a href="', $scripturl, '?action=unread">', $txt['unread_since_visit'], '</a><br />
                                <a href="', $scripturl, '?action=unreadreplies">', $txt['show_unread_replies'], '</a><br />';
                        }

                        // Otherwise they're a guest - this time ask them to either register or login - lazy bums...


Code (substitui por) Select
                            // Only tell them about their messages if they can read their messages!
            if ($context['allow_pm'])
               echo '&nbsp;&nbsp;[<a href="', $scripturl, '?action=pm">', $context['user']['messages'], '/<strong>', $context['user']['unread_messages'] , '</strong></a> MP]';
                            echo ' <a href="', $scripturl, '?action=unread">', 'Unread' , '</a>', ' / ' ;
                            echo ' <a href="', $scripturl, '?action=unreadreplies">', 'Replies' , '</a>';
                        }

                        // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

nunopitbull

#12
Continua como no edit acima.:s ???

EDIT: Ah, o MP é como PM(Personal Message) em inglês?

Se for como posso meter "PM's" ? porque o "'s" ele assume como código!

E também, como consigo puxa-lo um bocado mais para baixo para o centrar?

Costa

#13
Edita aí no paint onde o queres meter

Para o PMs é simples, escreve PM'\s
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

nunopitbull

Quote from: Costa on October 08, 2009, 05:42:01 PM
Edita aí no paint onde o queres meter

Para o PMs é simples, escreve PM'/s

Parse error: syntax error, unexpected ']', expecting ',' or ';' in /home/mirc/public_html/forum/Themes/overview_119/index.template.php on line 189

nunopitbull


Costa

Usa Este Código

                            // Only tell them about their messages if they can read their messages!
            if ($context['allow_pm'])
               echo '&nbsp;&nbsp;<br />[<a href="', $scripturl, '?action=pm">', $context['user']['messages'], '/<strong>', $context['user']['unread_messages'] , '</strong></a> PM\'s]';
                            echo ' <a href="', $scripturl, '?action=unread">', 'Unread' , '</a>', ' / ' ;
                            echo ' <a href="', $scripturl, '?action=unreadreplies">', 'Replies' , '</a>';
                        }

                        // Otherwise they're a guest - this time ask them to either register or login - lazy bums...
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

nunopitbull

E o "hello nunopitbull"? Eu quero que fique as duas partes juntas ^^

mesmo assim, dáme o código que aches que pareça mais profissional :x

Costa

Como, assim?

Hello NunoPitbull [3/10] Unread Topics / New replies
Hugo "Costa" Fernandes - PT SMF
Todas as MP's a pedir ajuda são sujeitas a radioactividade, microondas, queimadas e atiradas borda fora.

"At least someone appreciates the fact that I am doing and not thinking..."
"Laziness is counter-revolutionary."

nunopitbull

Tipo, agora está assim:

Hello NunoPitbull

[0/0 PM's] Unread Topics / New Replies

Eu queria:

Hello NunoPitbull
[0/0 PM's] Unread Topics / New Replies


Ou será que tá bem assim? Dá-me a tua opinião :P

Advertisement: