Добавлено: 05.03.2008 22:00
Хорошо бы еще обновление страницы убрать.. при СОЗДАНИИ опроса.. с добовлением пунктов ответа
скачать русский перевод, моды, скины и стили для phpBB, phpBB3
https://www.phpbbguru.net/community/
Код: Выделить всё
#-----[ FIND ]---------------------------------------------------
#
<th align="center" class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN topicrow -->
<tr>
#
#-----[ REPLACE WITH ]-------------------------------------------
#
<th align="center" class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN topicrow -->
<tr id="t_{topicrow.TOPIC_ID}">
#
#-----[ FIND ]---------------------------------------------------
#
<td class="row1" width="100%"><span class="topictitle"
#
#-----[ IN-LINE FIND ]-------------------------------------------
#
<td class="row1" width="100%">
#
#-----[ IN-LINE AFTER, ADD ]-------------------------------------
#
<div class="topic_modtools">{topicrow.S_TOPIC_ADMIN}</div>
Код: Выделить всё
<th align="center" class="thCornerR" nowrap="nowrap"> {L_LASTPOST} </th>
</tr>
<!-- BEGIN switch_anno -->
<tr>
<td class="catHead" colspan="6" height="20"><span class="gensmall" style="font-weight:bold;">{L_ANNO_TOPICS}</span></td>
</tr>
<!-- END switch_anno -->
<!-- BEGIN anno_row -->
<tr>
<td class="row1" align="center" valign="middle" width="20"><img src="{anno_row.TOPIC_FOLDER_IMG}" width="19" height="18" alt="{anno_row.L_TOPIC_FOLDER_ALT}" title="{anno_row.L_TOPIC_FOLDER_ALT}" /></td>
<td class="row1" width="100%"><span class="topictitle">{anno_row.NEWEST_POST_IMG}{anno_row.TOPIC_TYPE}<a href="{anno_row.U_VIEW_TOPIC}" class="topictitle">{anno_row.TOPIC_TITLE}</a></span><span class="gensmall"><br />
{anno_row.GOTO_PAGE}</span></td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{anno_row.REPLIES}</span></td>
<td class="row3" align="center" valign="middle"><span class="name">{anno_row.TOPIC_AUTHOR}</span></td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{anno_row.VIEWS}</span></td>
<td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{anno_row.LAST_POST_TIME}<br />{anno_row.LAST_POST_AUTHOR} {anno_row.LAST_POST_IMG}</span></td>
</tr>
<!-- END anno_row -->
<!-- BEGIN switch_sticky -->
<tr>
<td class="catHead" colspan="6" height="20"><span class="gensmall" style="font-weight:bold;">{L_STICKY_TOPICS}</span></td>
</tr>
<!-- END switch_sticky -->
<!-- BEGIN sticky_row -->
<tr>
<td class="row1" align="center" valign="middle" width="20"><img src="{sticky_row.TOPIC_FOLDER_IMG}" width="19" height="18" alt="{sticky_row.L_TOPIC_FOLDER_ALT}" title="{sticky_row.L_TOPIC_FOLDER_ALT}" /></td>
<td class="row1" width="100%"><span class="topictitle">{sticky_row.NEWEST_POST_IMG}{sticky_row.TOPIC_TYPE}<a href="{sticky_row.U_VIEW_TOPIC}" class="topictitle">{sticky_row.TOPIC_TITLE}</a></span><span class="gensmall"><br />
{sticky_row.GOTO_PAGE}</span></td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{sticky_row.REPLIES}</span></td>
<td class="row3" align="center" valign="middle"><span class="name">{sticky_row.TOPIC_AUTHOR}</span></td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{sticky_row.VIEWS}</span></td>
<td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{sticky_row.LAST_POST_TIME}<br />{sticky_row.LAST_POST_AUTHOR} {sticky_row.LAST_POST_IMG}</span></td>
</tr>
<!-- END sticky_row -->
<!-- BEGIN switch_normal -->
<tr>
<td class="catHead" colspan="6" height="20"><span class="gensmall" style="font-weight:bold;">{L_NORMAL_TOPICS}</span></td>
</tr>
<!-- END switch_normal -->
<!-- BEGIN normal_row -->
<tr>
<td class="row1" align="center" valign="middle" width="20"><img src="{normal_row.TOPIC_FOLDER_IMG}" width="19" height="18" alt="{normal_row.L_TOPIC_FOLDER_ALT}" title="{normal_row.L_TOPIC_FOLDER_ALT}" /></td>
<td class="row1" width="100%"><span class="topictitle">{normal_row.NEWEST_POST_IMG}{normal_row.TOPIC_TYPE}<a href="{normal_row.U_VIEW_TOPIC}" class="topictitle">{normal_row.TOPIC_TITLE}</a></span><span class="gensmall"><br />
{normal_row.GOTO_PAGE}</span></td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{normal_row.REPLIES}</span></td>
<td class="row3" align="center" valign="middle"><span class="name">{normal_row.TOPIC_AUTHOR}</span></td>
<td class="row2" align="center" valign="middle"><span class="postdetails">{normal_row.VIEWS}</span></td>
<td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{normal_row.LAST_POST_TIME}<br />{normal_row.LAST_POST_AUTHOR} {normal_row.LAST_POST_IMG}</span></td>
</tr>
<!-- END normal_row -->
<!-- BEGIN switch_no_topics -->
<tr>
<td class="row1" colspan="6" height="30" align="center" valign="middle"><span class="gen">{L_NO_TOPICS}</span></td>
</tr>
<!-- END switch_no_topics -->
Код: Выделить всё
]##############################################################
## MOD Title: keep unread flags
##
## MOD Author: Merlin Sythove < N/A > (N/A) N/A
## MOD Author: asinshesq < N/A > (Alan) N/A
## MOD Author: Ptirhiik < N/A > (Pierre) http://rpgnet.clanmckeen.com
Код: Выделить всё
//
// Set a cookie for this topic
//
//START MOD Keep_unread_2 * $topic_last_read is known
//Reached the last post in a topic with unread posts
// (note: the definition in the next line makes sure things work right regardless of whether viewtopic is set to display from oldest to newest or newest to oldest)
$lastpost = $postrow[0]['post_time'] < $postrow[($total_posts-1)]['post_time'] ? $total_posts-1 : 0;
if ($topic_last_post_id == $postrow[$lastpost]['post_id'])
{
//Read up to time of retrieval of this topic
$board_config['tracking_unreads'][$topic_id] = time();
}
//Reading a page, but not the last one, in a topic with new posts
elseif (isset($board_config['tracking_unreads'][$topic_id]))
{
//Set the highest of current topic_last_read and time of last post on page
$board_config['tracking_unreads'][$topic_id] = max($topic_last_read, $postrow[$lastpost]['post_time']);
}
write_cookies($userdata); //Save
//END MOD Keep_unread_2
Код: Выделить всё
#OPEN
ajax.php
#FIND
//
// Define the little post icon
#BEFORE ADD
$board_config['tracking_unreads'][$topic_id] = time();
write_cookies($userdata); //Save