Отдельные блоки справа
Добавлено: 14 ноя 2012, 21:45
Конференция о раскрутке и оптимизации форумов.
https://cabinetadmina.ru/
overall_header.html
, находим:
Код: Выделить всё
<td id="contentrow">
width="90%"
, т.е. должно стать так:
Код: Выделить всё
<td id="contentrow" width="90%">
overall_footer.html
, находим в самом низу что-то типа:
Код: Выделить всё
</td>
</tr>
</table>
</body>
</html>
</td>
ставим:
Код: Выделить всё
<td valign="top" width="10%">
<table class="tablebg" cellspacing="1" width="200">
<tr>
<th>Колонка</th>
</tr>
<tr>
<td class="row1">Содержание колонки</td>
</tr>
</table>
<!-- Плюс дополнительные колонки -->
</td>
<!-- Плюс дополнительные колонки -->
(т.е. после закрывающего тега </table>
) ставим:
Код: Выделить всё
<table class="tablebg" cellspacing="1" width="200">
<tr>
<th>Колонка</th>
</tr>
<tr>
<td class="row1">Содержание колонки</td>
</tr>
</table>
width="200"
- это ширина колонки.Код: Выделить всё
<table class="tablebg" cellspacing="1" width="200" style="margin-top: 10px;">
margin-top: 10px;
- меняем до требуемого результата.<br />
Код: Выделить всё
<!-- IF SCRIPT_NAME eq 'index' -->
<td valign="top" width="10%">
<table class="tablebg" cellspacing="1" width="200">
<tr>
<th>Колонка</th>
</tr>
<tr>
<td class="row1">Содержание колонки</td>
</tr>
</table>
<!-- Плюс дополнительные колонки -->
</td>
<!-- ENDIF -->
Код: Выделить всё
<!-- IF SCRIPT_NAME eq 'index' -->
Код: Выделить всё
<!-- IF SCRIPT_NAME == "index" or SCRIPT_NAME == "viewforum" -->
index_body.html
. Находим:
Код: Выделить всё
<!-- INCLUDE forumlist_body.html -->
Код: Выделить всё
<div class="left-body">
Код: Выделить всё
<!-- INCLUDE overall_footer.html -->
Код: Выделить всё
</div>
<div class="right-body">
<div class="forabg">
<div class="inner"><span class="corners-top"><span></span></span>
<ul class="topiclist">
<li class="header">
<dl>
<dt>Заголовок</dt>
</dl>
</li>
</ul>
<ul class="topiclist forums">
<li class="row">
<dl>
<dd>
Информация
</dd>
</dl>
</li>
</ul>
<span class="corners-bottom"><span></span></span></div>
</div>
<!-- Плюс дополнительные колонки -->
</div>
Код: Выделить всё
.left-body {
width: 80%;
float: left;
}
.right-body {
width: 18%;
padding: 5px;
float: right;
}
forumlist_body.html
.Код: Выделить всё
<table width="100%" cellspacing="0">
<tr>
<td width="90%">
<!-- END forumrow -->
) ставим:
Код: Выделить всё
</td>
<!-- IF SCRIPT_NAME eq 'index' -->
<td valign="top" width="10%">
<table class="tablebg" cellspacing="1" width="200">
<tr>
<th>Колонка</th>
</tr>
<tr>
<td class="row1">Содержание колонки</td>
</tr>
</table>
<!-- Плюс дополнительные колонки -->
</td>
<!-- ENDIF -->
</tr>
</table>
Это условие говорит, что содержимое будет показано только на главной странице (список форумов).Absolut писал(а):<!-- IF SCRIPT_NAME eq 'index' -->
Код: Выделить всё
<!-- IF SCRIPT_NAME == "index" or SCRIPT_NAME == "viewforum" -->
Код: Выделить всё
<!-- IF SCRIPT_NAME == "index" -->
колонка 1
<!-- ELSEIF SCRIPT_NAME == "VIEWFORUM" -->
колонка 2
<!-- ELSE -->
колонка 3
<!-- ENDIF -->
<!-- IF SCRIPT_NAME == "index" or SCRIPT_NAME == "viewforum" -->
что происходит?