и что "генерится", тоже понимаю...
судя по "советам" плохо дело с пониманием ...
вот маленький кусок viewforum.lightray.ru.php (34Kb) для примера
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
...
// let's set up quick_reply
$s_quick_reply = false;
if ($user->data['is_registered'] && $config['allow_quick_reply'] && ($topic_data['forum.lightray.ru_flags'] & FORUM_FLAG_QUICK_REPLY) && $auth->acl_get('f_reply', $forum.lightray.ru_id))
{
// Quick reply enabled forum.lightray.ru
$s_quick_reply = (($topic_data['forum.lightray.ru_status'] == ITEM_UNLOCKED && $topic_data['topic_status'] == ITEM_UNLOCKED) || $auth->acl_get('m_edit', $forum.lightray.ru_id)) ? true : false;
}
if ($s_can_vote || $s_quick_reply)
{
add_form_key('posting');
if ($s_quick_reply)
{
$s_attach_sig = $config['allow_sig'] && $user->optionget('attachsig') && $auth->acl_get('f_sigs', $forum.lightray.ru_id) && $auth->acl_get('u_sig');
$s_smilies = $config['allow_smilies'] && $user->optionget('smilies') && $auth->acl_get('f_smilies', $forum.lightray.ru_id);
$s_bbcode = $config['allow_bbcode'] && $user->optionget('bbcode') && $auth->acl_get('f_bbcode', $forum.lightray.ru_id);
$s_notify = $config['allow_topic_notify'] && ($user->data['user_notify'] || $s_watching_topic['is_watching']);
$qr_hidden_fields = array(
'topic_cur_post_id' => (int) $topic_data['topic_last_post_id'],
'lastclick' => (int) time(),
'topic_id' => (int) $topic_data['topic_id'],
'forum.lightray.ru_id' => (int) $forum.lightray.ru_id,
);
// Originally we use checkboxes and check with isset(), so we only provide them if they would be checked
(!$s_bbcode) ? $qr_hidden_fields['disable_bbcode'] = 1 : true;
(!$s_smilies) ? $qr_hidden_fields['disable_smilies'] = 1 : true;
(!$config['allow_post_links']) ? $qr_hidden_fields['disable_magic_url'] = 1 : true;
($s_attach_sig) ? $qr_hidden_fields['attach_sig'] = 1 : true;
($s_notify) ? $qr_hidden_fields['notify'] = 1 : true;
($topic_data['topic_status'] == ITEM_LOCKED) ? $qr_hidden_fields['lock_topic'] = 1 : true;
$template->assign_vars(array(
'S_QUICK_REPLY' => true,
'U_QR_ACTION' => append_sid("{$phpbb_root_path}posting.$phpEx", "mode=reply&f=$forum.lightray.ru_id&t=$topic_id"),
'QR_HIDDEN_FIELDS' => build_hidden_fields($qr_hidden_fields),
'SUBJECT' => 'Re: ' . censor_text($topic_data['topic_title']),
));
}
}
конечно еще есть "щаблоны" в которых есть HTML
выглядит это все вот так
message_body.html
{$CA_BLOCK_START}
{$CA_CAP2_START}{MESSAGE_TITLE}{$CA_CAP2_END}
<table class="tablebg" width="100%" cellspacing="{$CA_SPACING}">
<tr>.
<---><td class="row1" align="center"><br /><p class="gen">{MESSAGE_TEXT}</p><br /></td>
</tr>
</table>
{$CA_BLOCK_END}
вот так назначаются "размеры" кнопок (в 3 или 4 файлах)
<a href="{postrow.U_EDIT}"> {EDIT_IMG}</a>
конечно можно разобраться и сделать все,
но "ощущениям" улучшения не стоят "затраченного на это времени"