они делаютGrenky писал(а):но что означают (что делают) эти addon-ы
VVVas писал(а):изменения необходимые для нормальной работы если у вас установлены соответствующие моды
 
														

Ничего не нужно. Любое отступление от инструкции к моду вызовет ошибку. Вроде ведь ясно написано, сначала текст в кавычках, потом без. Или вы тоже считаете, что я при составлении инструкции ошибся и не заметил этого? Как раз таки я все очень даже заметил.lolik писал(а):Наверное нужно поменять в архиве мода!
 
														Код: Выделить всё
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewforum_body.tpl
#
#-----[ FIND ]------------------------------------------
#
	<!-- BEGIN topicrow -->
	<tr> 
	  <td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="19" height="18" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
	  <td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
		{topicrow.GOTO_PAGE}</span></td>
	  <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
	  <td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
	  <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
	  <td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
	</tr>
	<!-- END topicrow -->
	
#
#-----[ REPLACE WITH ]------------------------------------------
#
	<!-- 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 -->
#Код: Выделить всё
<div class="right"><h2 class="centered"><a href="{U_POST_NEW_TOPIC}">{L_POST_NEW_TOPIC}</a></h2></div>
<div class="right">{L_MODERATOR}: {MODERATORS}<br />{LOGGED_IN_USER_LIST}</div>
<div class="right">{S_AUTH_LIST}</div>
<div class="right">{JUMPBOX}</div>
<div class="left">
	<p class="info"><a href="{U_INDEX}">{L_INDEX}</a> - {FORUM_NAME}</p>
	<div class="topics">
		<p class="alignedright">{PAGINATION}</p>
		<!-- BEGIN topicrow -->
		<table class="topics" cellspacing="0" cellpadding="0"><tr><td style="width:40%">{topicrow.NEWEST_POST_IMG} {topicrow.TOPIC_TYPE} <a href="{topicrow.U_VIEW_TOPIC}">{topicrow.TOPIC_TITLE}</a> {topicrow.GOTO_PAGE}</td><td style="width:15%" align="right"><acronym title="{L_AUTHOR}">{topicrow.TOPIC_AUTHOR}</acronym></td><td style="width:10%" align="center"><acronym title="{L_REPLIES}">{topicrow.REPLIES}</acronym> / <acronym title="{L_VIEWS}">{topicrow.VIEWS}</acronym></td><td style="width:35%"><acronym title="{L_LASTPOST}">{topicrow.LAST_POST_TIME} {topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</acronym></td></tr></table>
		<!-- END topicrow -->
		<!-- BEGIN switch_no_topics -->
		<table class="topics"><tr><td align="center">{L_NO_TOPICS}</td></tr></table>
		<!-- END switch_no_topics -->
		<p class="alignedright">{PAGINATION}</p>
	</div>
	<p class="info"><a href="{U_INDEX}">{L_INDEX}</a> - {FORUM_NAME}</p>
	<p class="alignedright"><a href="{U_MARK_READ}">{L_MARK_TOPICS_READ}</a></p>
</div> 
														Код: Выделить всё
#
#-----[ OPEN ]------------------------------------------
#
viewforum.php
#
#-----[ FIND ]------------------------------------------
#
//
// Total topics ...
//
#
#-----[ BEFORE, ADD ]------------------------------------------
#
// [begin] Topics Sorted By Type At Forum View
$anno_cnt = $total_announcements;
$normal_cnt = $total_topics; // notice that number of sticky topics is also included
// [end] Topics Sorted By Type At Forum View
#
#-----[ FIND ]------------------------------------------
#
		if( $topic_type == POST_ANNOUNCE )
		{
			$topic_type = $lang['Topic_Announcement'] . ' ';
		}
		else if( $topic_type == POST_STICKY )
		{
			$topic_type = $lang['Topic_Sticky'] . ' ';
		}
		else
		{
			$topic_type = '';		
		}
#
#-----[ REPLACE WITH ]------------------------------------------
#
		// [begin] Topics Sorted By Type At Forum View
		if( $topic_type == POST_ANNOUNCE )
		{
			$topic_type = $lang['Topic_Announcement'] . ' ';
			$topic_block = 'anno_row';
		}
		else if( $topic_type == POST_STICKY )
		{
			$topic_type = $lang['Topic_Sticky'] . ' ';
			$topic_block = 'topicrow';			
		}
		else
		{
			$topic_type = '';
			$topic_block = 'topicrow';		
		}
		// [end] Topics Sorted By Type At Forum View
#
#-----[ FIND ]------------------------------------------
#
		$template->assign_block_vars('topicrow', array(
#
#-----[ IN-LINE FIND ]------------------------------------------
#
'topicrow'
#
#-----[ IN-LINE REPLACE WITH ]------------------------------------------
#
$topic_block
#
#-----[ FIND ]------------------------------------------
#
	$topics_count -= $total_announcements;
#
#-----[ BEFORE, ADD ]------------------------------------------
#
	// [begin] Topics Sorted By Type At Forum View
	if ($anno_cnt)
	{
			$template->assign_block_vars('switch_anno', array());
	}
	// [end] Topics Sorted By Type At Forum View
	
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewforum_body.tpl
#
#-----[ FIND ]------------------------------------------
#
	<!-- BEGIN topicrow -->
	<tr> 
	  <td class="row1" align="center" valign="middle" width="20"><img src="{topicrow.TOPIC_FOLDER_IMG}" width="19" height="18" alt="{topicrow.L_TOPIC_FOLDER_ALT}" title="{topicrow.L_TOPIC_FOLDER_ALT}" /></td>
	  <td class="row1" width="100%"><span class="topictitle">{topicrow.NEWEST_POST_IMG}{topicrow.TOPIC_TYPE}<a href="{topicrow.U_VIEW_TOPIC}" class="topictitle">{topicrow.TOPIC_TITLE}</a></span><span class="gensmall"><br />
		{topicrow.GOTO_PAGE}</span></td>
	  <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.REPLIES}</span></td>
	  <td class="row3" align="center" valign="middle"><span class="name">{topicrow.TOPIC_AUTHOR}</span></td>
	  <td class="row2" align="center" valign="middle"><span class="postdetails">{topicrow.VIEWS}</span></td>
	  <td class="row3Right" align="center" valign="middle" nowrap="nowrap"><span class="postdetails">{topicrow.LAST_POST_TIME}<br />{topicrow.LAST_POST_AUTHOR} {topicrow.LAST_POST_IMG}</span></td>
	</tr>
	<!-- END topicrow -->
	
#
#-----[ BEFORE, ADD ]------------------------------------------
#
	<!-- 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_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 switch_anno -->
<!-- END switch_anno --> 
														 
														 
														Код: Выделить всё
#
#-----[ OPEN ]------------------------------------------
#
templates/subSilver/viewforum_body.tpl
#
#-----[ FIND AND DELETE]------------------------------------------
#
	<!-- 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 -->
#
#-----[ DELETE]------------------------------------------
#
	<!-- 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 -->
#
#-----[ FIND ]------------------------------------------
#
	<!-- 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 -->
#
#-----[ REPLACE WITH ]------------------------------------------
#
	<!-- BEGIN switch_anno -->
	<tr>
		<td class="spaceRow" colspan="2" height="1"><img src="templates/subSilver/images/spacer.gif" alt="" width="1" height="1" /></td>
	</tr>
	<!-- END switch_anno -->
#
#-----[ FIND ]------------------------------------------
#
	<!-- 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 -->
#
#-----[ DELETE]------------------------------------------
#
	<!-- 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 -->
# 
#-----[ SAVE/CLOSE ALL FILES ]------------------------------------------ 
# 
# EoM 
														 
														 
														