Можно ли сделать так, чтобы список форумов отображался на всех страницах?
Shock13666 писал(а):Оно поймет теги, которые вставляются в index.tpl, если я их вставлю в overall_header.tpl ?
1. <img src="{POST_IMG}" border="0" alt="{L_POST_NEW_TOPIC}" />
2. post_img.gif" width="100" height=50
3. <a style="display:block; background:{POST_IMG}; width:100px; height:50px" href="#"></a>
4. <!-- If Login -->Блаблабла<!-- End If-->Поймет, если нужные переменные объявите в page_header.php
// Start page proper
//
$sql = "SELECT c.cat_id, c.cat_title, c.cat_order
FROM " . CATEGORIES_TABLE . " c
ORDER BY c.cat_order";
{
message_die(GENERAL_MESSAGE, $lang['No_forums']);
}
//
// Generate the page
//
$template->pparse('body');
216 // Obtain list of moderators of each forum
261 // Find which forums are visible for this user
<table width="100%" cellpadding="2" cellspacing="1" border="0" class="forumline">
<tr>
<th colspan="2" class="thCornerL" height="25" nowrap="nowrap"> {L_FORUM} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_TOPICS} </th>
<th width="50" class="thTop" nowrap="nowrap"> {L_POSTS} </th>
<th class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN catrow -->
<tr>
<td class="catLeft" colspan="2" height="28"><span class="cattitle"><a href="{catrow.U_VIEWCAT}" class="cattitle">{catrow.CAT_DESC}</a></span></td>
<td class="rowpic" colspan="3" align="right"> </td>
</tr>
<!-- BEGIN forumrow -->
<tr>
<td class="row1" align="center" valign="middle" height="50"><img src="{catrow.forumrow.FORUM_FOLDER_IMG}" width="46" height="25" alt="{catrow.forumrow.L_FORUM_FOLDER_ALT}" title="{catrow.forumrow.L_FORUM_FOLDER_ALT}" /></td>
<td class="row1" width="100%" height="50"><span class="forumlink"> <a href="{catrow.forumrow.U_VIEWFORUM}" class="forumlink">{catrow.forumrow.FORUM_NAME}</a><br />
</span> <span class="genmed">{catrow.forumrow.FORUM_DESC}<br />
</span><span class="gensmall">{catrow.forumrow.L_MODERATOR} {catrow.forumrow.MODERATORS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.TOPICS}</span></td>
<td class="row2" align="center" valign="middle" height="50"><span class="gensmall">{catrow.forumrow.POSTS}</span></td>
<td class="row2" align="center" valign="middle" height="50" nowrap="nowrap"> <span class="gensmall">{catrow.forumrow.LAST_POST}</span></td>
</tr>
<!-- END forumrow -->
<!-- END catrow -->
</table>
Warning: mysql_query(): 12 is not a valid MySQL-Link resource in C:\Server\htdocs\phpBB2\db\mysql4.php on line 118
Warning: mysql_error(): 12 is not a valid MySQL-Link resource in C:\Server\htdocs\phpBB2\db\mysql4.php on line 330
Warning: mysql_errno(): 12 is not a valid MySQL-Link resource in C:\Server\htdocs\phpBB2\db\mysql4.php on line 331Could not query categories list
DEBUG MODE
SELECT c.cat_id, c.cat_title, c.cat_order FROM phpbb_categories c ORDER BY c.cat_order
Line : 85
File : page_tail.phpWarning: mysql_close(): 12 is not a valid MySQL-Link resource in C:\Server\htdocs\phpBB2\db\mysql4.php on line 87
Warning: mysql_query(): 12 is not a valid MySQL-Link resource in C:\Server\htdocs\phpBB2\db\mysql4.php on line 118
message_die() was called multiple times. This isn't supposed to happen. Was message_die() used in page_tail.php?Вернуться в Запросы модов для phpBB 2.0.x
Сейчас этот форум просматривают: нет зарегистрированных пользователей и гости: 0