Disable Subject Change 2.0.X

Iniciado por candidosa2, 12 de Dezembro de 2010, 06:30

Tópico anterior - Tópico seguinte

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

candidosa2

Modificação Nome: Disable Subject Change
Auctor: tyty1234
Compatibilidade: 2.0.x
Manual Patch: SmfPt


/Sources/ManagePosts.php

array('check', 'disable_wysiwyg'),

array('check', 'disable_subject_change'),


Themes/default/Post.template.php

', $txt['subject'], ':
</td>
<td>


', $txt['subject'], ':
</td>
<td>';


<input type="text" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" />

// Disable Subject Change Mod.
if(isset($modSettings['disable_subject_change']))
echo '
', $modSettings['disable_subject_change'] ? !isset($context['num_replies']) ? '' : $context['subject'] == '' ? '' : $context['subject'] . '&nbsp;' : '', '<input type="', $modSettings['disable_subject_change'] ? !isset($context['num_replies']) ? 'text' : 'hidden' : 'text', '" name="subject"', $context['subject'] == '' ? '' : ' value="' . $context['subject'] . '"', ' tabindex="', $context['tabindex']++, '" size="80" maxlength="80" />';



</td>
</tr>
<tr>
<td align="right">
<b>', $txt['message_icon'], ':</b>



</td>
</tr>
<tr>
<td align="right">
<b>', $txt['message_icon'], ':</b>





Themes/default/languages/Modifications.teuidioma.php

?>


// Disable Subject Change Mod
$txt['disable_subject_change'] = 'Desativar mudar de assunto quando responder a tópicos?';



db_settings.php

Pode executar o ficheiro em seu servidor enviando.
Na Raiz do diretório home, corra e directamente no seu navegador e depois apagá-lo