<!-- swich_on_new_topic -->
и
<!-- swich_off_new_topic -->
и при просмотре ваще не было никакого "заголовок сообщения"
Заранее спасибо, господа... Если нет времени намекните как делать
Я не силен в английском - но что делает эта модификация кроме запроса?This hack can activate an extra button next to the "quote" button in view topic that will allow users to reply to the post with the posters username or post subject as the subject of this new post.
This allows other users to see which post someone is replying to, without the whole message being quoted.
As an alternative option, the administrator can also completely disable the subject line for all normal replies when a post subject is not specified.
Код: Выделить всё
#
#----- [ Open ] -------------------
#
posting_body.tpl
#
#----- [ FIND ] -------------------
#
<input type="text" name="subject"
#
#----- [ IN LINE, FIND ] -------------------
#
name="subject"
#
#----- [ AFTER, ADD ] -------------------
#
disabled="disabled"
Код: Выделить всё
#
#-----[ OPEN ]------------------------------------------
#
posting.php
#
#-----[ FIND ]------------------------------------------
#
if ( $mode == 'newtopic' || ( $mode == 'editpost' && $post_data['first_post'] ) )
{
$template->assign_block_vars('switch_type_toggle', array());
#
#-----[ AFTER, ADD ]------------------------------------------
#
// [start] Hide subject field on reply
$template->assign_block_vars('switch_allow_subject_on', array());
// [end] Hide subject field on reply
#
#-----[ OPEN ]------------------------------------------
#
templates/xxx/posting_body.tpl
#
#-----[ FIND ]------------------------------------------
#
<tr>
<td class="row1" width="22%"><span class="gen"><b>{L_SUBJECT}</b></span></td>
#
#-----[ BEFORE, ADD ]------------------------------------------
#
<!-- BEGIN switch_allow_subject_on -->
#
#-----[ FIND ]------------------------------------------
#
<input type="text" name="subject" size="45" maxlength="120" style="width:450px" tabindex="2" class="post" value="{SUBJECT}" />
</span> </td>
</tr>
#
#-----[ AFTER, ADD ]------------------------------------------
#
<!-- END switch_allow_subject_on -->
#
#-----[ OPEN ]------------------------------------------
#
privmsg.php
#
#-----[ FIND ]------------------------------------------
#
$template->assign_block_vars('switch_privmsg', array());
#
#-----[ AFTER, ADD ]------------------------------------------
#
// [start] Hide subject field on reply
$template->assign_block_vars('switch_allow_subject_on', array());
// [end] Hide subject field on replyНу собсно так и планировалось. Идея кода "Subject only for new topic".MXM писал(а):А пишет Б, Б открывает и все равно при ответе у Б есть возможность изменить тему, и еще есть возможность выбрать кому отправит