Установил я себе Custom Title MOD, только почему-то переменная
Код: Выделить всё
if ($custom_title_activated == TRUE)
{
$template->assign_block_vars('switch_custom_title', array() );
}
Код: Выделить всё
<!-- BEGIN switch_custom_title -->
<tr>
<td class="row1"><span class="gen">{L_CUSTOM_TITLE}:</span><br /><span class="gensmall">{L_CUSTOM_TITLE_EXPLAIN}</span></td>
<td class="row2">
<input type="text" class="post"style="width: 200px" name="custom_title" size="45" maxlength="{CUSTOM_TITLE_MAXLENGTH}" value="{CUSTOM_TITLE}" />
</td>
</tr>
<!-- END switch_custom_title -->
Код: Выделить всё
if ( $mode != 'register' )
{
if ( $userdata['user_allowavatar'] && ( $board_config['allow_avatar_upload'] || $board_config['allow_avatar_local'] || $board_config['allow_avatar_remote'] ) )
{
// Mod User CP Organize: Added This Code => $cpl_avatar_control .
$template->assign_block_vars($cpl_avatar_control . 'switch_avatar_block', array() );
if ( $board_config['allow_avatar_upload'] && file_exists(@phpbb_realpath('./' . $board_config['avatar_path'])) )
{
if ( $form_enctype != '' )
{
// Mod User CP Organize: Added This Code => $cpl_avatar_control .
$template->assign_block_vars($cpl_avatar_control . 'switch_avatar_block.switch_avatar_local_upload', array() );
}
// Mod User CP Organize: Added This Code => $cpl_avatar_control .
$template->assign_block_vars($cpl_avatar_control . 'switch_avatar_block.switch_avatar_remote_upload', array() );
}
if ( $board_config['allow_avatar_remote'] )
{
// Mod User CP Organize: Added This Code => $cpl_avatar_control .
$template->assign_block_vars($cpl_avatar_control . 'switch_avatar_block.switch_avatar_remote_link', array() );
}
if ( $board_config['allow_avatar_local'] && file_exists(@phpbb_realpath('./' . $board_config['avatar_gallery_path'])) )
{
// Mod User CP Organize: Added This Code => $cpl_avatar_control .
$template->assign_block_vars($cpl_avatar_control . 'switch_avatar_block.switch_avatar_local_gallery', array() );
}
}
}
if ($custom_title_activated == TRUE)
{
$template->assign_block_vars('switch_custom_title', array() );
}
}
include($phpbb_root_path . 'cpl_menu.'.$phpEx);
$template->pparse('body');
include($phpbb_root_path . 'includes/page_tail.'.$phpEx);
Добавлено спустя 2 минуты 30 секунд:
Код: Выделить всё
#
#-----[ FIND ]------------------------------------------
#
}
$template->pparse('body');
#
#-----[ BEFORE, ADD ]------------------------------------------
#
if ($custom_title_activated == TRUE)
{
$template->assign_block_vars('switch_custom_title', array() );
}