#-----[ OPEN ]---------------------------------
#
styles/templates/default/posting.tpl
#-----[ FIND ]---------------------------------
#
<tr>
<th colspan="2" class="thHead"><b>{POSTING_TYPE_TITLE}</b></th>
#-----[ BEFORE, ADD ]---------------------------------
#
<!-- IF PARSMOD_ON -->
<tbody class="pad_4">
<tr>
<th colspan="2" class="thHead"><b>{L_PARS_NEW_RELEASE}</b><div class="floatR med bold"><a class="menu-root" style="color:white;" href="#pars-opt">{L_PARS_OPT}</a></div></th>
</tr>
<tr>
<td style="vertical-align:top;">
<div title="{L_PARS_ALLOWED_SOURCES}" style="float: right;vertical-align:top;">
<img src="./styles/templates/default/images/p/rutracker.ico" alt="Rutracker" title="{L_PARS_RUTRACKER_SOURCES}">
<img src="./styles/templates/default/images/p/nnm-club.ico" alt="nnm-club" title="{L_PARS_NNM_SOURCES}">
<img src="./styles/templates/default/images/p/rutor.ico" alt="Rutor" title="{L_PARS_RUTOR_SOURCES}"><br>
</div>
<b>{L_PARS_SOURCE}</b> <br>
</td>
<td>
<input id="release_url" type="url" size=60 placeholder="{l_PARS_PASTE_SOURCE_URL}"> <input type="button" value="{L_SUBMIT}" name="Send" id="pars">
<div id="hida"></div>
</td>
</tr>
<script type="text/javascript">
function checkmeman(e, val){
var ptag = $(e).attr('name');
user.set(ptag, ( $(e).is(":checked") ? val : 0 ), 365, false);
$("input[name="+ptag+"]:checked").attr('checked', false);
$(e).attr('checked', true);
}
$('#pars').click(function(){
var fileid = [0,0];
var gettorrent = (($( "input[name='pars_tor']:checked" ).attr('id')) == 'dwnld_tor') ? 1:0;
var filename = $(".gen:contains('torrent')" ).text();
var mode = $("input[name|=mode]" ).val();
if (filename && gettorrent && mode == 'editpost') gettorrent = confirm("Перезаписать торрент?")? 1:0;
if (filename && gettorrent) {
var attach_url = $("a:contains("+filename+")").attr('href');
if (fileid = attach_url.match(/dl\.php\?id=(\d+)/)) {
var tmp_str = $("input[name|='update_attachment["+fileid[1]+"]']" ).next("input" ).attr("name");
var phys_name = tmp_str.match(/del_attachment\[(.*)\]/);
$( "input[value|='"+fileid[1]+"']" ).remove();
}else{
var phys_name = attach_url.match(/.*\/(.*)/);
var fileid = [0,0];
}
$( "input[value|='"+filename+"']" ).remove();
$( "input[value|='"+phys_name[1]+"']" ).remove();
$("a:contains("+filename+")").attr({href:" "});
$("a:contains("+filename+")").text(' ');
}
ajax.exec({action: 'pars', pars_url: $('#release_url').val(), gettorrent:gettorrent, tor_id:fileid[1]});
ajax.callback.pars = function(data) {
$( "#hida" ).html(data.hid);
$( "input[name='subject']" ).val(data.title);
$('textarea#message').val(data.bbcode)
var p_view = $("input[name='pars_view']:checked").attr('id');
switch (p_view) {
case 'p_view_mess': ajax.exec({ action: 'posts', type: 'view_message', message: $('textarea#message').val()});break
case 'p_preview_mess': $('#post-preview-btn').click();break
case 'p_post_topic': $('#post-submit-btn').click();break
}
};
});
</script>
<!-- ENDIF -->
<div class="clearfix" id="forum_navigation">
<ol id="breadcrumb" class="breadcrumb ipsList_inline left">
<li class="first"><a href="{U_INDEX}"><span>{T_INDEX}</span></a></li>
<!-- IF U_VIEW_FORUM --><li><a href="{U_VIEW_FORUM}"><span>{FORUM_NAME}</span></a></li><!-- ENDIF -->
<!-- IF POSTING_TOPIC_ID --><li><a href="{TOPIC_URL}{POSTING_TOPIC_ID}"><span>{POSTING_TOPIC_TITLE}</span></a></li><!-- ENDIF -->
</ol>
</div>
<div class="menu-sub" id="pars-opt">
<table cellspacing="1" cellpadding="4">
<tr><th>{L_PARS_OPT_TITLE}</th></tr>
<tr><td>
<fieldset id="p_tor">
<legend>{L_PARS_OPT_TOR}</legend>
<div class="pad_4">
<label><input id="dwnld_tor" name="pars_tor" type="checkbox" <!-- IF DOWNLOAD_TORRENT_ON -->{CHECKED}<!-- ENDIF -->
onclick="return checkmeman(this, {DOWNLOAD_TORRENT});" />{L_PARS_OPT_DWNLD}
</label><label>
<input id="not_dwnld_tor" name="pars_tor" type="checkbox" <!-- IF NOT_DOWNLOAD_TORRENT_ON -->{CHECKED}<!-- ENDIF -->
onclick="return checkmeman(this, {NOT_DOWNLOAD_TORRENT});" />{L_PARS_OPT_NO_DWNLD}
</label></div>
</fieldset>
<fieldset id="p_view">
<legend>{L_PARS_OPT_VIEW}</legend>
<div class="pad_4">
<label>
<input id="p_no_view" name="pars_view" type="checkbox" <!-- IF PARS_NO_VIEW_ON -->{CHECKED}<!-- ENDIF -->
onclick="return checkmeman(this, {PARS_NO_VIEW});" />{L_PARS_OPT_NO_VIEW}
</label><label>
<input id="p_view_mess" name="pars_view" type="checkbox" <!-- IF PARS_VIEW_MESSAGE_ON -->{CHECKED}<!-- ENDIF -->
onclick="return checkmeman(this, {PARS_VIEW_MESSAGE});" />{L_PARS_OPT_QVIEW}
</label><label>
<input id="p_preview_mess" name="pars_view" type="checkbox" <!-- IF PARS_PREVIEW_MESSAGE_ON -->{CHECKED}<!-- ENDIF -->
onclick="return checkmeman(this, {PARS_PREVIEW_MESSAGE});" />{L_PARS_OPT_PREVIEW}
</label><label>
<input id="p_post_topic" name="pars_view" type="checkbox" <!-- IF PARS_POST_TOPIC_ON -->{CHECKED}<!-- ENDIF -->
onclick="return checkmeman(this, {PARS_POST_TOPIC});" />{L_PARS_OPT_POST}
</label></div>
</fieldset>
</td></tr>
</table>
</div>
<div class="spacer_12"></div>
<!-- IF TPL_SHOW_NEW_POSTS -->
<!--========================================================================-->
<table class="topic" cellpadding="0" cellspacing="0">
<tr>
<td colspan="2" class="catTitle td2">{L_NEW_POSTS_PREVIEW}</td>
</tr>
<tr>
<th class="thHead td1">{L_AUTHOR}</th>
<th class="thHead td2">{L_MESSAGE}</th>
</tr>
<!-- BEGIN new_posts -->
<tr class="{new_posts.ROW_CLASS}">
<td width="120" class="poster_info td1">
<p class="nick" onclick="bbcode.onclickPoster('{new_posts.POSTER_NAME_JS}');">
<a href="#" onclick="return false;">{new_posts.POSTER}</a>
</p>
<p><img src="{SPACER}" width="120" height="10" alt="" /></p>
</td>
<td class="message td2">
<div class="post_head pad_4">{MINIPOST_IMG_NEW} {new_posts.POST_DATE}</div>
<div class="post_wrap post_body">{new_posts.MESSAGE}</div>
</td>
</tr>
<!-- END new_posts -->
</table>
<div class="spacer_12"></div>
<!--========================================================================-->
<!-- ENDIF / TPL_SHOW_NEW_POSTS -->
<!-- IF TPL_PREVIEW_POST -->
<!--========================================================================-->
<div class="block_topic">
<h3 class="title">{L_PREVIEW}</h3>
<div class="post_wrap post_body">
{PREVIEW_MSG}
</div>
</div>
<div class="spacer_12"></div>
<!--========================================================================-->
<!-- ENDIF / TPL_PREVIEW_POST -->
<form action="{S_POST_ACTION}" method="post" name="post" onsubmit="if(checkForm(this)){ dis_submit_btn(); }else{ return false; }" {S_FORM_ENCTYPE}>
{S_HIDDEN_FORM_FIELDS}
{ADD_ATTACH_HIDDEN_FIELDS}
{POSTED_ATTACHMENTS_HIDDEN_FIELDS}
<div class="block_topic">
<h3 class="title">{POSTING_TYPE_TITLE}</h3>
<table class="bordered">
<col class="row7">
<col class="row8">
<tbody class="pad_4">
<tr id="view_message" class="hidden">
<td colspan="2">
<div class="view-message"></div>
</td>
</tr>
<!-- IF POSTING_USERNAME -->
<tr>
<td><b>{L_USERNAME}</b></td>
<td>
<input type="text" name="username" size="25" maxlength="25" tabindex="1" value="{USERNAME}" />
<input type="submit" name="usersubmit" class="lite" value="{L_FIND_USERNAME}" onclick="window.open('{U_SEARCH_USER}', '_bbsearch', IWP_US);return false;" />
</td>
</tr>
<!-- ENDIF -->
<!-- IF POSTING_SUBJECT -->
<tr>
<td><b>{L_SUBJECT}</b></td>
<td><input type="text" name="subject" size="90" tabindex="2" value="{SUBJECT}" maxlength="250" style="width: 98%;" /></td>
</tr>
<!-- ENDIF -->
</tbody>
<tr>
<td class="vTop pad_4">
<p><b>{L_MESSAGE}</b></p>
<table id="smilies" class="smilies borderless mrg_16">
<!-- BEGIN smilies_row -->
<tr>
<!-- BEGIN smilies_col -->
<td><a href="#" onclick="bbcode && bbcode.emoticon('{smilies_row.smilies_col.SMILEY_CODE}'); return false;"><img src="{smilies_row.smilies_col.SMILEY_IMG}" alt="" title="{smilies_row.smilies_col.SMILEY_DESC}" /></a></td>
<!-- END smilies_col -->
</tr>
<!-- END smilies_row -->
<!-- BEGIN switch_smilies_extra -->
<tr>
<td colspan="{S_SMILIES_COLSPAN}"><a href="{U_MORE_SMILIES}" onclick="window.open('{U_MORE_SMILIES}', '_bbsmilies', IWP_SM); return false;" target="_bbsmilies" class="med">{L_MORE_EMOTICONS}</a></td>
</tr>
<!-- END switch_smilies_extra -->
</table><!--/smilies-->
</td>
<td class="vTop pad_0 w100"><!-- INCLUDE posting_editor.tpl --></td>
</tr>
<!-- IF IN_PM -->
<!-- ELSEIF LOGGED_IN -->
<tr>
<td class="vTop pad_4" valign="top">
<p><b>{L_OPTIONS}</b></p>
</td>
<td>
<div class="floatL">
<table class="borderless inline">
<!-- IF SHOW_UPDATE_POST_TIME -->
<tr>
<td><input type="checkbox" id="update_post_time" name="update_post_time" <!-- IF UPDATE_POST_TIME_CHECKED -->checked="checked"<!-- ENDIF --> /></td>
<td><label for="update_post_time">{L_UPDATE_POST_TIME}</label></td>
</tr>
<!-- ENDIF -->
<!-- IF SHOW_NOTIFY_CHECKBOX -->
<tr>
<td><input type="checkbox" id="notify" name="notify" {S_NOTIFY_CHECKED} /></td>
<td><label for="notify">{L_NOTIFY}</label></td>
</tr>
<!-- ENDIF -->
</table>
</div>
</td>
</tr>
<!-- IF ATTACHBOX -->
<tr>
<td><b>{L_KINOPOISK}</b></td>
<td><input type="text" name="kinopoisk" placeholder="Пример ссылки: http://www.kinopoisk.ru/film/681831/" size="90" tabindex="3" value="{KINOPOISK}" maxlength="250" style="width: 40%;" /></td>
</tr>
<tr>
<td><b>{L_IMDB}</b></td>
<td><input type="text" name="imdb" placeholder="Пример ссылки: http://www.imdb.com/title/tt2112343/" size="90" tabindex="4" value="{IMDB}" maxlength="250" style="width: 40%;" /></td>
</tr>
<!-- IF POSTER_RGROUPS -->
<tr>
<td class="vTop pad_4" valign="top"><b>{L_POST_RELEASE_FROM_GROUP}</b></td>
<td>
<select name="poster_rg">
<option value="-1">{L_CHOOSE_RELEASE_GROUP}</option>
{POSTER_RGROUPS}
</select>
<label><input type="checkbox" name="attach_rg_sig" <!-- IF ATTACH_RG_SIG -->checked<!-- ENDIF -->/> {L_ATTACH_RG_SIG}</label>
</td>
</tr>
<!-- ENDIF / POSTER_RGROUPS -->
<!-- ENDIF / ATTACHBOX -->
<!-- ENDIF / LOGGED_IN -->
<!-- BEGIN switch_type_toggle -->
<tr>
<td colspan="2" class="row8 tCenter pad_6">{S_TYPE_TOGGLE}</td>
</tr>
<!-- END switch_type_toggle -->
<!-- IF ALLOW_META --><!-- INCLUDE posting_meta.tpl --><!-- ENDIF -->
<!-- IF ATTACHBOX --><!-- INCLUDE posting_attach.tpl --><!-- ENDIF -->
</table>
</div>
</form>
<!-- IF TPL_TOPIC_REVIEW -->
<!--========================================================================-->
<div class="spacer_12"></div>
<div class="block_title clearfix tCenter">{L_TOPIC_REVIEW}</div>
<div class="spacer_12"></div>
<!-- BEGIN review -->
<div class="postwrap post_block">
<h3 style="color: #FFFFFF;">Отправлено: {review.POST_DATE}</h3>
<div class="post_b">
<table class="w100">
<tr>
<td width="120" class="poster_info tCenter">
<p class="nick" onclick="bbcode.onclickPoster('{review.POSTER_NAME_JS}');">
<a href="#" onclick="return false;">{review.POSTER}</a>
</p>
<p><img src="{SPACER}" width="120" height="10" alt="" /></p>
</td>
<td class="message">
<div class="post_wrap post_body">{review.MESSAGE}</div>
</td>
</tr>
</table>
</div>
<div class="spacer_12"></div>
<!-- END review -->
</div>
<div class="spacer_12"></div>
<!--========================================================================-->
<!-- ENDIF / TPL_TOPIC_REVIEW -->
<!-- ENDIF -->
а какая версия движка?у меня этот код на 70 строчке
<tr>
<th colspan="2" class="thHead"><b>{POSTING_TYPE_TITLE}</b></th>
2.1.5а какая версия движка?
я использую такую самую но оформление Shift тут таких строк нету. надо вручную добавлятьа у вас какая скажите