Показать сообщение отдельно
Старый 19.07.2013, 00:58 Вверх   #4
Новичок
 
Аватар для Pigwidgeon
Pigwidgeon вне форума
Доп. информация
По умолчанию

Вопрос снят, если кому-то будет полезно:

1. Открываем в админке шаблон FORUMHOME и оттуда тырим (то бишь копируем в буфер и удаляем из шаблона) следующий код:
PHP код:
<thead>
    <
tr align="center">
      <
td class="thead">&nbsp;</td>
      <
td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <
td class="thead">$vbphrase[last_post]</td>
      <
td class="thead">$vbphrase[threads]</td>
      <
td class="thead">$vbphrase[posts]</td>
      <if 
condition="$vboptions['showmoderatorcolumn']">
      <
td class="thead">$vbphrase[moderator]</td>
      </if>
    </
tr>
</
thead
Сохраняем изменения.

2. Открываем шаблон forumhome_forumbit_level1_nopost и находим там следующую строку:
PHP код:
<tbody id="collapseobj_forumbit_$forumidstyle="{$collapseobj_forumid}"
После нее вставляем наш заветный кусок, сняв с него thead, т.к. в противном случае он со своего "законного" места ни на йоту не сдвинется.
В итоге должен получиться код примерно такой сути:
PHP код:
<if condition="!$show['collapsable_forums']">
<
tbody>
</if>
    <
tr>
        <
td class="tcat" colspan="<if condition="$vboptions[showmoderatorcolumn]">6<else />5</if>">
            <if 
condition="$childforumbits">
            <
a style="float:$stylevar[right]href="#top" onclick="return toggle_collapse('forumbit_$forumid')"><img id="collapseimg_forumbit_$forumidsrc="$stylevar[imgdir_button]/collapse_tcat{$collapseimg_forumid}.gif" alt="" border="0" /></a>
            </if>
            <
a href="forumdisplay.php?$session[sessionurl]f=$forum[forumid]">$forum[title]</a>
            <if 
condition="$show['forumdescription']"><div class="smallfont">$forum[description]</div></if>
            <if 
condition="$show['subforums']"><div class="smallfont"><strong>$vbphrase[subforums]</strong>: $forum[subforums]</div></if>
        </
td>
    </
tr>
<if 
condition="!$show['collapsable_forums']">
</
tbody>
</if>
<if 
condition="$childforumbits">
<if 
condition="!$show['collapsable_forums']">
<
tbody id="collapseobj_forumbit_$forumidstyle="{$collapseobj_forumid}">
    <
tr align="center">
      <
td class="thead">&nbsp;</td>
      <
td class="thead" width="100%" align="$stylevar[left]">$vbphrase[forum]</td>
      <
td class="thead">$vbphrase[last_post]</td>
      <
td class="thead">$vbphrase[threads]</td>
      <
td class="thead">$vbphrase[posts]</td>
      <if 
condition="$vboptions['showmoderatorcolumn']">
      <
td class="thead">$vbphrase[moderator]</td>
      </if>
    </
tr>
</if>
$childforumbits
<if condition="!$show['collapsable_forums']">
</
tbody>
</if>
</if> 
Сохраняем. В итоге эта служебная строка таблицы прекрасно схлопывается вместе с разделами категории и не мозолит глаза на самом верху форумов.
  Ответить с цитированием
Cказали cпасибо:
 
Время генерации страницы 0.06976 секунды с 9 запросами