News:

Wondering if this will always be free?  See why free is better.

Main Menu

Retirar o "Re:..."

Started by jscorrea, May 09, 2007, 09:26:31 AM

Previous topic - Next topic

jscorrea

Olá pessoal,

Quando criamos um novo tópico este tem seu título, pois bem quando uma pessoa responde aparece sempre um "Re: balalala".
Há como retirar este Assunto de cada mensagem?
Ou melhor há como deixar como opcional ?

Obrigado

domipedro

para retirar podes modificar o Display.template.php
procuras:
<input type="hidden" name="subject" value="' . $context['response_prefix'] . $context['subject'] . '" />

e modificas com esta:
<input type="hidden" name="subject" value="' . $context['subject'] . '" />

Ou então podes tambem retirar a tal palavra que esta no index.portuguese.php
$txt['response_prefix'] = 'Re: ';

por
$txt['response_prefix'] = '';

jscorrea

Obrigado pela resposta, mas eu gostaria que nada aparecesse.

Gostaria que a exemplo deste tópico não aparecesse:
   
" Re: Retirar o "Re:..." "

Se eu apago o subject o SMF me pede para colocar.

João

margarett

Bem, podem haver formas mais "eruditas" de fazer a coisa, mas assim também deve dar...

Sources/Post.php

Encontras:
// Add 'Re: ' to the front of the quoted subject.
if (trim($context['response_prefix']) != '' && $func['strpos']($form_subject, trim($context['response_prefix'])) !== 0)
$form_subject = $context['response_prefix'] . $form_subject;


E  substituis por:
// Add 'Re: ' to the front of the quoted subject.
if (trim($context['response_prefix']) != '' && $func['strpos']($form_subject, trim($context['response_prefix'])) !== 0)
$form_subject = '';
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

jscorrea

Ainda não funcionou, qual o arquivo responsável pela visualização do post?

Sources/Post.php?

João

margarett

Na visualização do post vai aparecer. Mas ao postar deve enviar o "subject" vazio.

É nesse ficheiro que é tratado todo o post (novo, quotes, replies, etc)
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

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

Advertisement: