Autor Tópico: Substituir texto Split etc por imagens  (Lida 8619 vezes)

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

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5073
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Substituir texto Split etc por imagens
« em: 20 de Novembro de 2010, 07:38 »
Display.template.php

Código: [Seleccione]
// Can they reply? Have they turned on quick reply?
        if ($context['can_reply'] && !empty($options['display_quick_reply']))
            echo '
                                    <li class="quote_button"><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '" onclick="return oQuickReply.quote(', $message['id'], ');">', $txt['quote'], '</li>';

        // So... quick reply is off, but they *can* reply?
        elseif ($context['can_reply'])
            echo '
                                    <li class="quote_button"><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '">', $txt['quote'], '</li>';

        // Can the user modify the contents of this post?
        if ($message['can_modify'])
            echo '
                                    <li class="modify_button"><a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], '">', $txt['modify'], '</li>';

        // How about... even... remove it entirely?!
        if ($message['can_remove'])
            echo '
                                    <li class="remove_button"><a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['remove_message'], '?\');">', $txt['remove'], '</li>';

        // What about splitting it off the rest of the topic?
        if ($context['can_split'] && !empty($context['num_replies']))
            echo '
                                    <li class="split_button"><a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '">', $txt['split'], '</li>';


Código: [Seleccione]
// Can they reply? Have they turned on quick reply?
        if ($context['can_reply'] && !empty($options['display_quick_reply']))
            echo '
                                    <li><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '" onclick="return oQuickReply.quote(', $message['id'], ');"><img border="0" src="Themes/default/images/theme/quote.gif" width="58" height="17"></a></li>';

        // So... quick reply is off, but they *can* reply?
        elseif ($context['can_reply'])
            echo '
                                    <li><a href="', $scripturl, '?action=post;quote=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], ';num_replies=', $context['num_replies'], '">', $txt['quote'], '</a></li>';

        // Can the user modify the contents of this post?
        if ($message['can_modify'])
            echo '
                                    <li><a href="', $scripturl, '?action=post;msg=', $message['id'], ';topic=', $context['current_topic'], '.', $context['start'], '"  > <img border="0" src="Themes/default/images/theme/modify.gif" width="58" height="17"></a></li>';

        // How about... even... remove it entirely?!
        if ($message['can_remove'])
            echo '
                                    <li><a href="', $scripturl, '?action=deletemsg;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '" onclick="return confirm(\'', $txt['remove_message'], '?\');"><img border="0" src="Themes/default/images/theme/delete.gif" width="58" height="17"></a></li>';

        // What about splitting it off the rest of the topic?
        if ($context['can_split'] && !empty($context['num_replies']))
            echo '
                                    <li><a href="', $scripturl, '?action=splittopics;topic=', $context['current_topic'], '.0;at=', $message['id'], '"><img border="0" src="Themes/default/images/theme/split.gif" width="58" height="17"></a></li>';




As imagens estao no anexo tem que colocar na pastas daas imagens do teu tema

Offline candidosa2

  • Suporte Tecnico
  • Fundador
  • *
  • Mensagens: 5073
  • Rank: 1658
  • Sexo: Masculino
  • Suporte
    • Hosting Moçambique
Re: Substituir texto Split etc por imagens
« Responder #1 em: 20 de Novembro de 2010, 07:49 »
Adicionar link para facebook

Display.template.php

Código: [Seleccione]
// Maybe we can approve it, maybe we should?
        if ($message['can_approve'])
            echo '
                                    <li class="approve_button"><a href="', $scripturl, '?action=moderate;area=postmod;sa=approve;topic=', $context['current_topic'], '.', $context['start'], ';msg=', $message['id'], ';', $context['session_var'], '=', $context['session_id'], '">', $txt['approve'], '</a></li>';





Código: [Seleccione]
if ($message['id'] == $context['first_message'])  echo '
                                 <li>  <script>function fbs_click() {u=location.href;t=document.title;window.open("http://www.facebook.com/sharer.php?u="+encodeURIComponent(u)+"&t="+encodeURIComponent(t),"sharer","toolbar=0,status=0,width=626,height=436");return false;}</script>
<style> html .fb_share_link </style>
<a rel="nofollow" href="http://www.facebook.com/share.php?u=<url>" onclick="return fbs_click()" target="_blank" class="fb_share_link">
    <img src="Themes/default/images/theme/sbfacebuton.png" align="right"></a> </li>';


Themes/default/images/theme/sbfacebuton.png

Esta no anexo