Skocz do zawartości
"Idzie nowe..." - o zmianach i nie tylko ×
Przeniesienie zakupów z IPS Marketplace / Moving bought items from IPS Marketplace ×

Nick w widoku tematu v2


Gość betka1993

Rekomendowane odpowiedzi

Witam, to znowu ja. Robiłem tak jak było napisane w poradniku, ale jak coś zmieniam to całe forum się psuje.

 

Bardzo bym prosił aby ktoś mi przerobił ten kod, tak aby nick był w tabelce w widoku tematu, a nie na górze.

 

Kod:

	<span class='post_id right ipsType_small desc blend_links'><if test="hasPages:|:$this->request['st']"><a itemprop="replyToUrl" href='{parse url="showtopic={$post['post']['topic_id']}&st={$this->request['st']}#entry{$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' rel='bookmark' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}'>
                    <else />
                        <a itemprop="replyToUrl" href='{parse url="showtopic={$post['post']['topic_id']}entry{$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' rel='bookmark' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}'>
                    </if>
                    #{$post['post']['post_count']}
                    </a>
                </span>
				<div class='post_username'>

				<if test="$post['author']['_online']"><img src="{style_images_url}/post_online.png" alt="" class='post_online' data-tooltip="Online" /><else /><img src="{style_images_url}/post_offline.png" alt="" class='post_online' data-tooltip="Offline" /></if>
                                   
				<if test="postpostMember:|:$post['author']['member_id']">
					<span itemprop="creator name" class="author vcard">{parse template="userHoverCard" group="global" params="$post['author']"}</span>
				<else />
					{$post['author']['members_display_name']}
				</if></div>

				<div class='post_date'>
					{$this->lang->words['posted']} <abbr class="published" itemprop="commentTime" title="{parse expression="date( 'c', $post['post']['post_date'] )"}">{parse date="$post['post']['post_date']" format="long"}</abbr>
				</div>
			
				<if test="postIp:|:$post['post']['_show_ip']">
					<span class='ip right ipsType_small'>({$this->lang->words['ip']}:
					<if test="postAdmin:|:$post['author']['g_access_cp']">
						<em>{$this->lang->words['ip_private']}</em>
					<else />
						<if test="accessModCP:|:$this->memberData['g_is_supmod']"><a href="{parse url="app=core&module=modcp&fromapp=members&tab=iplookup&ip={$post['post']['ip_address']}" base="public"}" title='{$this->lang->words['info_about_this_ip']}'>{$post['post']['ip_address']}</a><else />{$post['post']['ip_address']}</if>
					</if>)
					</span>
				</if>
			</h3>

Z góry bardzo dziękuję.

Odnośnik do komentarza
Udostępnij na innych stronach


<!--post:{$post['post']['pid']}-->

<if test="sDeleted:|:$post['post']['_isDeleted'] AND $post['post']['_softDeleteSee']">

{parse template="softDeletedPostBit" group="topic" params="$post, $displayData['sdData'], $topic"}

</if>

<if test="sDeletedNot:|:! $post['post']['_isDeleted']">

<div class='post_block hentry clear clearfix column_view <if test="postQueued:|:$post['post']['_isHidden']">moderated</if>' id='post_id_{$post['post']['pid']}'>

<a id='entry{$post['post']['pid']}'></a>

<if test="repIgnored:|:!empty( $post['post']['_repignored'] ) AND $post['post']['_repignored'] == 1 && $post['post']['_ignored'] != 1">

<div class='post_ignore'>

<if test="noRep:|:$post['post']['rep_points'] == 0">

<span class='reputation zero' title='{$this->lang->words['top_rep']}'>

</if>

<if test="posRep:|:$post['post']['rep_points'] > 0">

<span class='reputation positive' title='{$this->lang->words['top_rep']}'>

</if>

<if test="negRep:|:$post['post']['rep_points'] < 0">

<span class='reputation negative' title='{$this->lang->words['top_rep']}' >

</if>

{$post['post']['rep_points']}</span> {$this->lang->words['top_this_post_by']} <a href='{parse url="showuser={$post['author']['member_id']}" base="public"}'>{$post['author']['members_display_name']}</a> {$this->lang->words['top_below_thresh']}. <a href='#' title='{$this->lang->words['ignore_view_post']}' id='unhide_post_{$post['post']['pid']}'>{$this->lang->words['rep_view_anyway']}</a>

</div>

</if>

<if test="userIgnored:|:$post['post']['_repignored'] == 1 || $post['post']['_ignored']">

<div class='post_ignore'>

<if test="userIgnoredLang:|:$post['post']['_repignored'] == 1">{$this->lang->words['post_ignored_rep']}<else />{$this->lang->words['post_ignored']}</if> <a href='{parse url="showuser={$post['author']['member_id']}" base="public" template="showuser" seotitle="{$post['author']['members_seo_name']}"}'>{$post['author']['members_display_name']}</a>. <a href='#entry{$post['post']['pid']}' title='{$this->lang->words['ignore_view_post']}' style='display: none' id='unhide_post_{$post['post']['pid']}'>{$this->lang->words['rep_view_anyway']}</a>

<if test="userIgnoredLangTwo:|:$this->settings['reputation_enabled'] AND $post['post']['_repignored'] == 1"><div><a href="{parse url="showtopic={$post['post']['topic_id']}&st={$this->request['st']}&rep_filter_set=*&rep_filter=update&secure_key={$this->member->form_hash}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}">{$this->lang->words['post_ignore_reset_rep']}</a></div></if>

</div>

</if>

<div itemscope itemtype="http://schema.org/UserComments" class='post_wrap' <if test="isNotIgnoring:|:$post['post']['_ignored'] == 1 || $post['post']['_repignored'] == 1">style='display: none'</if>>

<if test="postMid:|:$post['author']['member_id']">

<h3>

<else />

<h3>

</if>

<if test="postModCheckbox:|:$this->memberData['is_mod'] && ! $topic['_isArchived']">

<span class='right'>

<label for='checkbox_{$post['post']['pid']}' class='post_mod hide'>{$this->lang->words['mod_select_post']}</label><input type='checkbox' id='checkbox_{$post['post']['pid']}' name='selectedpids[]' value='{$post['post']['pid']}' class='post_mod right'<if test="postModSelected:|:!empty( $post['post']['_pid_selected'] )"> checked='checked'</if> data-status='{$post['post']['queued']}' />

</span>

</if>

<span class='post_id right ipsType_small desc blend_links'><if test="hasPages:|:$this->request['st']"><a itemprop="replyToUrl" href='{parse url="showtopic={$post['post']['topic_id']}&st={$this->request['st']}#entry{$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' rel='bookmark' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}'>

<else />

<a itemprop="replyToUrl" href='{parse url="showtopic={$post['post']['topic_id']}entry{$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' rel='bookmark' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}'>

</if>

#{$post['post']['post_count']}

</a>

</span>

<div class='post_username'>

<if test="$post['author']['_online']"><img src="{style_images_url}/post_online.png" alt="" class='post_online' data-tooltip="Online" /><else /><img src="{style_images_url}/post_offline.png" alt="" class='post_online' data-tooltip="Offline" /></if>

<if test="postpostMember:|:$post['author']['member_id']">

<span itemprop="creator name" class="author vcard">{parse template="userHoverCard" group="global" params="$post['author']"}</span>

<else />

{$post['author']['members_display_name']}

</if></div>

<div class='post_date'>

{$this->lang->words['posted']} <abbr class="published" itemprop="commentTime" title="{parse expression="date( 'c', $post['post']['post_date'] )"}">{parse date="$post['post']['post_date']" format="long"}</abbr>

</div>

<if test="postIp:|:$post['post']['_show_ip']">

<span class='ip right ipsType_small'>({$this->lang->words['ip']}:

<if test="postAdmin:|:$post['author']['g_access_cp']">

<em>{$this->lang->words['ip_private']}</em>

<else />

<if test="accessModCP:|:$this->memberData['g_is_supmod']"><a href="{parse url="app=core&module=modcp&fromapp=members&tab=iplookup&ip={$post['post']['ip_address']}" base="public"}" title='{$this->lang->words['info_about_this_ip']}'>{$post['post']['ip_address']}</a><else />{$post['post']['ip_address']}</if>

</if>)

</span>

</if>

</h3>

<div class='author_info'>

{parse template="userInfoPane" group="global" params="$post['author'], $post['post']['pid'], array( 'isTopicView' => true, 'wl_id' => $post['post']['wl_id'] )"}

</div>

<div class='post_body'>

<if test="repHighlight:|:$this->settings['reputation_highlight'] AND $post['post']['rep_points'] >= $this->settings['reputation_highlight']">

<p class='rep_highlight'>{parse replacement="popular_post"}<br />{$this->lang->words['popular_post']}</p>

</if>

<div itemprop="commentText" class='post entry-content <if test="$post['post']['_repignored'] == 1">imgsize_ignore</if>'>

{$post['post']['post']}

{$post['post']['attachmentHtml']}

<br />

<if test="postEditBy:|:$post['post']['edit_by']">

<p class='edit'>

{$post['post']['edit_by']}

<if test="postEditByReason:|:$post['post']['post_edit_reason'] != ''">

<br />

<span class='reason'>{$post['post']['post_edit_reason']}</span>

</if>

</p>

</if>

</div>

<if test="repButtonsLike:|: ! $topic['_isArchived']">{parse template="repButtons" group="global_other" params="$post['author'], array_merge( array( 'primaryId' => $post['post']['pid'], 'domLikeStripId' => 'like_post_' . $post['post']['pid'], 'domCountId' => 'rep_post_' . $post['post']['pid'], 'app' => 'forums', 'type' => 'pid', 'likeFormatted' => $post['post']['like']['formatted'] ), $post['post'] )"}</if>

<if test="postSignature:|:$post['post']['signature']">

{$post['post']['signature']}

</if>

<if test="controlsForUnapprovedPost:|:$this->memberData['is_mod'] && ! $topic['_isArchived'] && $post['post']['queued']">

<ul id='postControlsUnapproved_{$post['post']['pid']}' class='post_controls clear clearfix'>

<if test="canDelete:|:$post['post']['_can_delete'] === TRUE && ! $topic['_isArchived']">

<li class='post_del'>

<a href='{parse url="module=moderate&section=moderate&do=postchoice&tact=deletedo&f={$topic['forum_id']}&t={$topic['tid']}&selectedpids[]={$post['post']['pid']}&st={$this->request['st']}&auth_key={$this->member->form_hash}" base="publicWithApp"}' title='{$this->lang->words['post_delete_title']}' onclick='if( !confirm("{$this->lang->words['post_delete_confirm']}") ){ return false; }' >{$this->lang->words['post_delete']}</a>

</li>

</if>

<li class='post_toggle toggle_post' id='toggle_post_{$post['post']['pid']}' style='display: none'>

<a href='{parse url="app=forums&module=moderate&section=moderate&do=postchoice&tact=<if test="!$post['post']['queued']">unapprove<else />approve</if>&selectedpids[{$post['post']['pid']}]={$post['post']['pid']}&t={$topic['tid']}&f={$forum['id']}&auth_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['post_toggle_visible']}'><span id='toggletext_post_{$post['post']['pid']}'><if test="approveUnapprove:|:$post['post']['queued']==1">{$this->lang->words['post_approve']}<else />{$this->lang->words['post_unapprove']}</if></span></a>

</li>

<if test="canEdit:|:$post['post']['_can_edit'] === TRUE">

<li class='post_edit'><a href='{parse url="module=post&section=post&do=edit_post&f={$topic['forum_id']}&t={$topic['tid']}&p={$post['post']['pid']}&st={$this->request['st']}" base="publicWithApp"}' title='{$this->lang->words['post_edit_title']}' class='edit_post' id='edit_post_{$post['post']['pid']}'>{$this->lang->words['post_edit']}</a></li>

</if>

</ul>

</if>

<ul id='postControlsNormal_{$post['post']['pid']}' class='post_controls clear clearfix' <if test="hideNormalControlsForUnapprovedPost:|:$this->memberData['is_mod'] && ! $topic['_isArchived'] && $post['post']['queued']">style='display:none'</if>>

<li class='top'><a href='#ipboard_body' class='top' title='{$this->lang->words['back_top']}'><img src="{style_images_url}/post_top.png" alt="" /> {$this->lang->words['back_top']}</a></li>

<if test="replyButton:|:$post['post']['_canReply']">

<li><a href="{parse url="module=post&section=post&do=reply_post&f={$this->request['f']}&t={$this->request['t']}&qpid={$post['post']['pid']}" base="publicWithApp"}" class='_ips_trigger_quote' pid="{$post['post']['pid']}" title="{$this->lang->words['tt_reply_to_post']}"><img src="{style_images_url}/comment_new.png" alt="" /> {$this->lang->words['post_reply']}</a></li>

<if test="multiquote:|:!empty( $post['post']['_mq_selected'] )">

<li class='selected multiquote' id='multiq_{$post['post']['pid']}' style='display: none'>

<else />

<li class='multiquote' id='multiq_{$post['post']['pid']}' style='display: none'>

</if>

<a href="{parse url="module=post&section=post&do=reply_post&f={$this->request['f']}&t={$this->request['t']}&qpid={$post['post']['pid']}" base="publicWithApp"}" title="{$this->lang->words['quote_with_mq']}"><img src="{style_images_url}/mq_post.png" alt="" /> {$this->lang->words['mq']}</a>

</li>

</if>

<if test="canDelete:|:$post['post']['_can_delete'] === TRUE && ! $topic['_isArchived']">

<li id='del_post_{$post['post']['pid']}' class='post_del'>

<a href='{parse url="module=moderate&section=moderate&do=postchoice&tact=deletedo&f={$topic['forum_id']}&t={$topic['tid']}&selectedpids[]={$post['post']['pid']}&st={$this->request['st']}&auth_key={$this->member->form_hash}" base="publicWithApp"}' title='{$this->lang->words['post_delete_title']}' class='delete_post' onclick='return false;' ><img src="{style_images_url}/comment_delete.png" alt="" /> {$this->lang->words['post_delete']}</a>

</li>

</if>

<if test="canHide:|:$post['post']['_softDelete'] && ! $topic['_isArchived']">

<li id='hide_post_{$post['post']['pid']}'>

<a href='{parse url="module=moderate&section=moderate&do=postchoice&tact=delete&f={$topic['forum_id']}&t={$topic['tid']}&selectedpids[]={$post['post']['pid']}&st={$this->request['st']}&auth_key={$this->member->form_hash}" base="publicWithApp"}' class='hide_post'><img src="{style_images_url}/delete.png" alt="" /> {$this->lang->words['post_hide']}</a>

</li>

</if>

<if test="canEdit:|:$post['post']['_can_edit'] === TRUE">

<li class='post_edit'><a href='{parse url="module=post&section=post&do=edit_post&f={$topic['forum_id']}&t={$topic['tid']}&p={$post['post']['pid']}&st={$this->request['st']}" base="publicWithApp"}' title='{$this->lang->words['post_edit_title']}' class='edit_post' id='edit_post_{$post['post']['pid']}'><img src="{style_images_url}/comment_edit.png" alt="" /> {$this->lang->words['post_edit']}</a></li>

</if>

<if test="hasblog:|:$this->settings['blog_allow_bthis'] AND $this->memberData['has_blog'] AND IPSLib::appIsInstalled( 'blog' ) AND $post['post']['_canReply']">

<li>

<a href='{parse url="app=blog&blog_this=forums&id1={$this->request['t']}&id2={$post['post']['pid']}" base="public"}'><img src="{style_images_url}/book_add.png" alt="" /> {$this->lang->words['blog_this']}</a>

</li>

</if>

<if test="canReportPost:|:$topic['_canReport'] and ( $this->memberData['member_id'] ) && ! $topic['_isArchived']">

<li class='report'>

<a href='{parse url="app=core&module=reports&rcom=post&tid={$this->request['t']}&pid={$post['post']['pid']}&st={$this->request['st']}" base="public"}'><img src="{style_images_url}/report.png" alt="" /> {$this->lang->words['report']}</a>

</li>

<if test="postIsReported:|:$this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['gfx'] > 0">

<li class='report'>

<a href="{$this->settings['base_url']}app=core&module=reports&section=reports&do=show_report&rid={$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']}" id='post-report-{$post['post']['pid']}' class='ipbmenu'> <span id="rstat-{$this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['info']['id']}"><img src="{$this->settings['img_url']}/reports/post_alert_{$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['gfx']}.png" style='margin-right: 0;' alt="" /></span> </a>

</li>

</if>

</if>

</ul>

<if test="reportedPostData:|:! $topic['_isArchived'] AND $this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['gfx'] > 0">

<ul id='post-report-{$post['post']['pid']}_menucontent' class='ipbmenu_content report_menu'>

<li><a href="{parse url="app=core&module=reports&do=show_report&rid={$this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['info']['id']}" base="public"}" id='report_mark_{$post['post']['pid']}'><img src='{$this->settings['img_url']}/reports/mark_complete.png' alt='' /> {$this->lang->words['report_menu_mark_complete']}</a></li>

<li><a href="{$this->settings['base_url']}app=core&module=reports&section=reports&do=show_report&rid={$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']}"><img src='{$this->settings['img_url']}/reports/view_report.png' alt='' /> {$this->lang->words['report_menu_view_report']}</a></li>

</ul>

<script type="text/javascript">

$('report_mark_{$post['post']['pid']}').observe('click',

ipb.global.updateReportStatus.bindAsEventListener(

this, {$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']},2,2

)

);

</script>

</if>

</div>

</div>

</div>

</if>

<if test="initIgnoredPost:|:$post['post']['_repignored'] == 1 || $post['post']['_ignored']">

<script type='text/javascript'>

ipb.topic.setPostHidden( {$post['post']['pid']} );

$('unhide_post_{$post['post']['pid']}').show();

</script>

</if>

<hr />

<if test="adCodeCheck:|:$post['post']['_adCode']">

{$post['post']['_adCode']}

</if>

<script type="text/javascript">

var pid = parseInt({$post['post']['pid']});

if ( pid > ipb.topic.topPid ){

ipb.topic.topPid = pid;

}

<if test="sDeletedNotMQ:|:! $post['post']['_isDeleted']">

// Show multiquote for JS browsers

if ( $('multiq_{$post['post']['pid']}') )

{

$('multiq_{$post['post']['pid']}').show();

}

if( $('toggle_post_{$post['post']['pid']}') )

{

$('toggle_post_{$post['post']['pid']}').show();

}

// Add perm data

ipb.topic.deletePerms[{$post['post']['pid']}] = { 'canDelete' : {parse expression="intval($post['post']['_can_delete'])"}, 'canSoftDelete' : {parse expression="intval($post['post']['_softDelete'])"} };

</if>

</script>

Edytowane przez betka1993
Odnośnik do komentarza
Udostępnij na innych stronach

A próbowałeś wyciąć to:

<div class='post_username'>

				<if test="$post['author']['_online']"><img src="{style_images_url}/post_online.png" alt="" class='post_online' data-tooltip="Online" /><else /><img src="{style_images_url}/post_offline.png" alt="" class='post_online' data-tooltip="Offline" /></if>
                                   
				<if test="postpostMember:|:$post['author']['member_id']">
					<span itemprop="creator name" class="author vcard">{parse template="userHoverCard" group="global" params="$post['author']"}</span>
				<else />
					{$post['author']['members_display_name']}
				</if></div>

I wkleić pod tym:

<div class='author_info'>

?

Odnośnik do komentarza
Udostępnij na innych stronach

To wstaw sobie to:

<div>
<if test="postMember:|:$post['author']['member_id']">
					<span itemprop="creator name" class="author vcard">{parse template="userHoverCard" group="global" params="$post['author']"}</span>
				<else />
					{parse template="userHoverCard" group="global" params="$post['author']"}
				</if>
</div>

Pod:

</h3>

a nad:

<div class='author_info'>

Przetestowałem na localu i działa :)

Edytowane przez Jurij
Odnośnik do komentarza
Udostępnij na innych stronach


<!--post:{$post['post']['pid']}-->

<if test="sDeleted:|:$post['post']['_isDeleted'] AND $post['post']['_softDeleteSee']">

{parse template="softDeletedPostBit" group="topic" params="$post, $displayData['sdData'], $topic"}

</if>

<if test="sDeletedNot:|:! $post['post']['_isDeleted']">

<div class='post_block hentry clear clearfix column_view <if test="postQueued:|:$post['post']['_isHidden']">moderated</if>' id='post_id_{$post['post']['pid']}'>

<a id='entry{$post['post']['pid']}'></a>

<if test="repIgnored:|:!empty( $post['post']['_repignored'] ) AND $post['post']['_repignored'] == 1 && $post['post']['_ignored'] != 1">

<div class='post_ignore'>

<if test="noRep:|:$post['post']['rep_points'] == 0">

<span class='reputation zero' title='{$this->lang->words['top_rep']}'>

</if>

<if test="posRep:|:$post['post']['rep_points'] > 0">

<span class='reputation positive' title='{$this->lang->words['top_rep']}'>

</if>

<if test="negRep:|:$post['post']['rep_points'] < 0">

<span class='reputation negative' title='{$this->lang->words['top_rep']}' >

</if>

{$post['post']['rep_points']}</span> {$this->lang->words['top_this_post_by']} <a href='{parse url="showuser={$post['author']['member_id']}" base="public"}'>{$post['author']['members_display_name']}</a> {$this->lang->words['top_below_thresh']}. <a href='#' title='{$this->lang->words['ignore_view_post']}' id='unhide_post_{$post['post']['pid']}'>{$this->lang->words['rep_view_anyway']}</a>

</div>

</if>

<if test="userIgnored:|:$post['post']['_repignored'] == 1 || $post['post']['_ignored']">

<div class='post_ignore'>

<if test="userIgnoredLang:|:$post['post']['_repignored'] == 1">{$this->lang->words['post_ignored_rep']}<else />{$this->lang->words['post_ignored']}</if> <a href='{parse url="showuser={$post['author']['member_id']}" base="public" template="showuser" seotitle="{$post['author']['members_seo_name']}"}'>{$post['author']['members_display_name']}</a>. <a href='#entry{$post['post']['pid']}' title='{$this->lang->words['ignore_view_post']}' style='display: none' id='unhide_post_{$post['post']['pid']}'>{$this->lang->words['rep_view_anyway']}</a>

<if test="userIgnoredLangTwo:|:$this->settings['reputation_enabled'] AND $post['post']['_repignored'] == 1"><div><a href="{parse url="showtopic={$post['post']['topic_id']}&st={$this->request['st']}&rep_filter_set=*&rep_filter=update&secure_key={$this->member->form_hash}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}">{$this->lang->words['post_ignore_reset_rep']}</a></div></if>

</div>

</if>

<div itemscope itemtype="http://schema.org/UserComments" class='post_wrap' <if test="isNotIgnoring:|:$post['post']['_ignored'] == 1 || $post['post']['_repignored'] == 1">style='display: none'</if>>

<if test="postMid:|:$post['author']['member_id']">

<h3>

<else />

<h3>

</if>

<if test="postModCheckbox:|:$this->memberData['is_mod'] && ! $topic['_isArchived']">

<span class='right'>

<label for='checkbox_{$post['post']['pid']}' class='post_mod hide'>{$this->lang->words['mod_select_post']}</label><input type='checkbox' id='checkbox_{$post['post']['pid']}' name='selectedpids[]' value='{$post['post']['pid']}' class='post_mod right'<if test="postModSelected:|:!empty( $post['post']['_pid_selected'] )"> checked='checked'</if> data-status='{$post['post']['queued']}' />

</span>

</if>

<span class='post_id right ipsType_small desc blend_links'><if test="hasPages:|:$this->request['st']"><a itemprop="replyToUrl" href='{parse url="showtopic={$post['post']['topic_id']}&st={$this->request['st']}#entry{$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' rel='bookmark' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}'>

<else />

<a itemprop="replyToUrl" href='{parse url="showtopic={$post['post']['topic_id']}entry{$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' rel='bookmark' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}'>

</if>

#{$post['post']['post_count']}

</a>

</span>

<if test="$post['author']['_online']"><img src="{style_images_url}/post_online.png" alt="" class='post_online' data-tooltip="Online" /><else /><img src="{style_images_url}/post_offline.png" alt="" class='post_online' data-tooltip="Offline" /></if>

<div class='post_username'>

<if test="postpostMember:|:$post['author']['member_id']">

<span itemprop="creator name" class="author vcard">{parse template="userHoverCard" group="global" params="$post['author']"}</span>

<else />

{$post['author']['members_display_name']}

</if></div>

<div class='post_date'>

{$this->lang->words['posted']} <abbr class="published" itemprop="commentTime" title="{parse expression="date( 'c', $post['post']['post_date'] )"}">{parse date="$post['post']['post_date']" format="long"}</abbr>

</div>

<if test="postIp:|:$post['post']['_show_ip']">

<span class='ip right ipsType_small'>({$this->lang->words['ip']}:

<if test="postAdmin:|:$post['author']['g_access_cp']">

<em>{$this->lang->words['ip_private']}</em>

<else />

<if test="accessModCP:|:$this->memberData['g_is_supmod']"><a href="{parse url="app=core&module=modcp&fromapp=members&tab=iplookup&ip={$post['post']['ip_address']}" base="public"}" title='{$this->lang->words['info_about_this_ip']}'>{$post['post']['ip_address']}</a><else />{$post['post']['ip_address']}</if>

</if>)

</span>

</if>

</h3>

<div class='author_info'>

{parse template="userInfoPane" group="global" params="$post['author'], $post['post']['pid'], array( 'isTopicView' => true, 'wl_id' => $post['post']['wl_id'] )"}

</div>

<div class='post_body'>

<if test="repHighlight:|:$this->settings['reputation_highlight'] AND $post['post']['rep_points'] >= $this->settings['reputation_highlight']">

<p class='rep_highlight'>{parse replacement="popular_post"}<br />{$this->lang->words['popular_post']}</p>

</if>

<div itemprop="commentText" class='post entry-content <if test="$post['post']['_repignored'] == 1">imgsize_ignore</if>'>

{$post['post']['post']}

{$post['post']['attachmentHtml']}

<br />

<if test="postEditBy:|:$post['post']['edit_by']">

<p class='edit'>

{$post['post']['edit_by']}

<if test="postEditByReason:|:$post['post']['post_edit_reason'] != ''">

<br />

<span class='reason'>{$post['post']['post_edit_reason']}</span>

</if>

</p>

</if>

</div>

<if test="repButtonsLike:|: ! $topic['_isArchived']">{parse template="repButtons" group="global_other" params="$post['author'], array_merge( array( 'primaryId' => $post['post']['pid'], 'domLikeStripId' => 'like_post_' . $post['post']['pid'], 'domCountId' => 'rep_post_' . $post['post']['pid'], 'app' => 'forums', 'type' => 'pid', 'likeFormatted' => $post['post']['like']['formatted'] ), $post['post'] )"}</if>

<if test="postSignature:|:$post['post']['signature']">

{$post['post']['signature']}

</if>

<if test="controlsForUnapprovedPost:|:$this->memberData['is_mod'] && ! $topic['_isArchived'] && $post['post']['queued']">

<ul id='postControlsUnapproved_{$post['post']['pid']}' class='post_controls clear clearfix'>

<if test="canDelete:|:$post['post']['_can_delete'] === TRUE && ! $topic['_isArchived']">

<li class='post_del'>

<a href='{parse url="module=moderate&section=moderate&do=postchoice&tact=deletedo&f={$topic['forum_id']}&t={$topic['tid']}&selectedpids[]={$post['post']['pid']}&st={$this->request['st']}&auth_key={$this->member->form_hash}" base="publicWithApp"}' title='{$this->lang->words['post_delete_title']}' onclick='if( !confirm("{$this->lang->words['post_delete_confirm']}") ){ return false; }' >{$this->lang->words['post_delete']}</a>

</li>

</if>

<li class='post_toggle toggle_post' id='toggle_post_{$post['post']['pid']}' style='display: none'>

<a href='{parse url="app=forums&module=moderate&section=moderate&do=postchoice&tact=<if test="!$post['post']['queued']">unapprove<else />approve</if>&selectedpids[{$post['post']['pid']}]={$post['post']['pid']}&t={$topic['tid']}&f={$forum['id']}&auth_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['post_toggle_visible']}'><span id='toggletext_post_{$post['post']['pid']}'><if test="approveUnapprove:|:$post['post']['queued']==1">{$this->lang->words['post_approve']}<else />{$this->lang->words['post_unapprove']}</if></span></a>

</li>

<if test="canEdit:|:$post['post']['_can_edit'] === TRUE">

<li class='post_edit'><a href='{parse url="module=post&section=post&do=edit_post&f={$topic['forum_id']}&t={$topic['tid']}&p={$post['post']['pid']}&st={$this->request['st']}" base="publicWithApp"}' title='{$this->lang->words['post_edit_title']}' class='edit_post' id='edit_post_{$post['post']['pid']}'>{$this->lang->words['post_edit']}</a></li>

</if>

</ul>

</if>

<ul id='postControlsNormal_{$post['post']['pid']}' class='post_controls clear clearfix' <if test="hideNormalControlsForUnapprovedPost:|:$this->memberData['is_mod'] && ! $topic['_isArchived'] && $post['post']['queued']">style='display:none'</if>>

<li class='top'><a href='#ipboard_body' class='top' title='{$this->lang->words['back_top']}'><img src="{style_images_url}/post_top.png" alt="" /> {$this->lang->words['back_top']}</a></li>

<if test="replyButton:|:$post['post']['_canReply']">

<li><a href="{parse url="module=post&section=post&do=reply_post&f={$this->request['f']}&t={$this->request['t']}&qpid={$post['post']['pid']}" base="publicWithApp"}" class='_ips_trigger_quote' pid="{$post['post']['pid']}" title="{$this->lang->words['tt_reply_to_post']}"><img src="{style_images_url}/comment_new.png" alt="" /> {$this->lang->words['post_reply']}</a></li>

<if test="multiquote:|:!empty( $post['post']['_mq_selected'] )">

<li class='selected multiquote' id='multiq_{$post['post']['pid']}' style='display: none'>

<else />

<li class='multiquote' id='multiq_{$post['post']['pid']}' style='display: none'>

</if>

<a href="{parse url="module=post&section=post&do=reply_post&f={$this->request['f']}&t={$this->request['t']}&qpid={$post['post']['pid']}" base="publicWithApp"}" title="{$this->lang->words['quote_with_mq']}"><img src="{style_images_url}/mq_post.png" alt="" /> {$this->lang->words['mq']}</a>

</li>

</if>

<if test="canDelete:|:$post['post']['_can_delete'] === TRUE && ! $topic['_isArchived']">

<li id='del_post_{$post['post']['pid']}' class='post_del'>

<a href='{parse url="module=moderate&section=moderate&do=postchoice&tact=deletedo&f={$topic['forum_id']}&t={$topic['tid']}&selectedpids[]={$post['post']['pid']}&st={$this->request['st']}&auth_key={$this->member->form_hash}" base="publicWithApp"}' title='{$this->lang->words['post_delete_title']}' class='delete_post' onclick='return false;' ><img src="{style_images_url}/comment_delete.png" alt="" /> {$this->lang->words['post_delete']}</a>

</li>

</if>

<if test="canHide:|:$post['post']['_softDelete'] && ! $topic['_isArchived']">

<li id='hide_post_{$post['post']['pid']}'>

<a href='{parse url="module=moderate&section=moderate&do=postchoice&tact=delete&f={$topic['forum_id']}&t={$topic['tid']}&selectedpids[]={$post['post']['pid']}&st={$this->request['st']}&auth_key={$this->member->form_hash}" base="publicWithApp"}' class='hide_post'><img src="{style_images_url}/delete.png" alt="" /> {$this->lang->words['post_hide']}</a>

</li>

</if>

<if test="canEdit:|:$post['post']['_can_edit'] === TRUE">

<li class='post_edit'><a href='{parse url="module=post&section=post&do=edit_post&f={$topic['forum_id']}&t={$topic['tid']}&p={$post['post']['pid']}&st={$this->request['st']}" base="publicWithApp"}' title='{$this->lang->words['post_edit_title']}' class='edit_post' id='edit_post_{$post['post']['pid']}'><img src="{style_images_url}/comment_edit.png" alt="" /> {$this->lang->words['post_edit']}</a></li>

</if>

<if test="hasblog:|:$this->settings['blog_allow_bthis'] AND $this->memberData['has_blog'] AND IPSLib::appIsInstalled( 'blog' ) AND $post['post']['_canReply']">

<li>

<a href='{parse url="app=blog&blog_this=forums&id1={$this->request['t']}&id2={$post['post']['pid']}" base="public"}'><img src="{style_images_url}/book_add.png" alt="" /> {$this->lang->words['blog_this']}</a>

</li>

</if>

<if test="canReportPost:|:$topic['_canReport'] and ( $this->memberData['member_id'] ) && ! $topic['_isArchived']">

<li class='report'>

<a href='{parse url="app=core&module=reports&rcom=post&tid={$this->request['t']}&pid={$post['post']['pid']}&st={$this->request['st']}" base="public"}'><img src="{style_images_url}/report.png" alt="" /> {$this->lang->words['report']}</a>

</li>

<if test="postIsReported:|:$this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['gfx'] > 0">

<li class='report'>

<a href="{$this->settings['base_url']}app=core&module=reports&section=reports&do=show_report&rid={$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']}" id='post-report-{$post['post']['pid']}' class='ipbmenu'> <span id="rstat-{$this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['info']['id']}"><img src="{$this->settings['img_url']}/reports/post_alert_{$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['gfx']}.png" style='margin-right: 0;' alt="" /></span> </a>

</li>

</if>

</if>

</ul>

<if test="reportedPostData:|:! $topic['_isArchived'] AND $this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['gfx'] > 0">

<ul id='post-report-{$post['post']['pid']}_menucontent' class='ipbmenu_content report_menu'>

<li><a href="{parse url="app=core&module=reports&do=show_report&rid={$this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['info']['id']}" base="public"}" id='report_mark_{$post['post']['pid']}'><img src='{$this->settings['img_url']}/reports/mark_complete.png' alt='' /> {$this->lang->words['report_menu_mark_complete']}</a></li>

<li><a href="{$this->settings['base_url']}app=core&module=reports&section=reports&do=show_report&rid={$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']}"><img src='{$this->settings['img_url']}/reports/view_report.png' alt='' /> {$this->lang->words['report_menu_view_report']}</a></li>

</ul>

<script type="text/javascript">

$('report_mark_{$post['post']['pid']}').observe('click',

ipb.global.updateReportStatus.bindAsEventListener(

this, {$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']},2,2

)

);

</script>

</if>

</div>

</div>

</div>

</if>

<if test="initIgnoredPost:|:$post['post']['_repignored'] == 1 || $post['post']['_ignored']">

<script type='text/javascript'>

ipb.topic.setPostHidden( {$post['post']['pid']} );

$('unhide_post_{$post['post']['pid']}').show();

</script>

</if>

<hr />

<if test="adCodeCheck:|:$post['post']['_adCode']">

{$post['post']['_adCode']}

</if>

<script type="text/javascript">

var pid = parseInt({$post['post']['pid']});

if ( pid > ipb.topic.topPid ){

ipb.topic.topPid = pid;

}

<if test="sDeletedNotMQ:|:! $post['post']['_isDeleted']">

// Show multiquote for JS browsers

if ( $('multiq_{$post['post']['pid']}') )

{

$('multiq_{$post['post']['pid']}').show();

}

if( $('toggle_post_{$post['post']['pid']}') )

{

$('toggle_post_{$post['post']['pid']}').show();

}

// Add perm data

ipb.topic.deletePerms[{$post['post']['pid']}] = { 'canDelete' : {parse expression="intval($post['post']['_can_delete'])"}, 'canSoftDelete' : {parse expression="intval($post['post']['_softDelete'])"} };

</if>

</script>

Odnośnik do komentarza
Udostępnij na innych stronach

<!--post:{$post['post']['pid']}-->
<if test="sDeleted:|:$post['post']['_isDeleted'] AND $post['post']['_softDeleteSee']">
	{parse template="softDeletedPostBit" group="topic" params="$post, $displayData['sdData'], $topic"}
</if>
<if test="sDeletedNot:|:! $post['post']['_isDeleted']">
	<div class='post_block hentry clear clearfix column_view <if test="postQueued:|:$post['post']['_isHidden']">moderated</if>' id='post_id_{$post['post']['pid']}'>
		<a id='entry{$post['post']['pid']}'></a>
		<if test="repIgnored:|:!empty( $post['post']['_repignored'] ) AND $post['post']['_repignored'] == 1 && $post['post']['_ignored'] != 1">
			<div class='post_ignore'>
				<if test="noRep:|:$post['post']['rep_points'] == 0">
					<span class='reputation zero' title='{$this->lang->words['top_rep']}'>
				</if>
				<if test="posRep:|:$post['post']['rep_points'] > 0">
					<span class='reputation positive' title='{$this->lang->words['top_rep']}'>
				</if>
				<if test="negRep:|:$post['post']['rep_points'] < 0">
					<span class='reputation negative' title='{$this->lang->words['top_rep']}' >
				</if>
						{$post['post']['rep_points']}</span> {$this->lang->words['top_this_post_by']} <a href='{parse url="showuser={$post['author']['member_id']}" base="public"}'>{$post['author']['members_display_name']}</a> {$this->lang->words['top_below_thresh']}. <a href='#' title='{$this->lang->words['ignore_view_post']}' id='unhide_post_{$post['post']['pid']}'>{$this->lang->words['rep_view_anyway']}</a>
			</div>
		</if>
	
		<if test="userIgnored:|:$post['post']['_repignored'] == 1 || $post['post']['_ignored']">
			<div class='post_ignore'>
				<if test="userIgnoredLang:|:$post['post']['_repignored'] == 1">{$this->lang->words['post_ignored_rep']}<else />{$this->lang->words['post_ignored']}</if> <a href='{parse url="showuser={$post['author']['member_id']}" base="public" template="showuser" seotitle="{$post['author']['members_seo_name']}"}'>{$post['author']['members_display_name']}</a>. <a href='#entry{$post['post']['pid']}' title='{$this->lang->words['ignore_view_post']}' style='display: none' id='unhide_post_{$post['post']['pid']}'>{$this->lang->words['rep_view_anyway']}</a>
				<if test="userIgnoredLangTwo:|:$this->settings['reputation_enabled'] AND $post['post']['_repignored'] == 1"><div><a href="{parse url="showtopic={$post['post']['topic_id']}&st={$this->request['st']}&rep_filter_set=*&rep_filter=update&secure_key={$this->member->form_hash}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}">{$this->lang->words['post_ignore_reset_rep']}</a></div></if>
			</div>
		</if>
		<div itemscope itemtype="http://schema.org/UserComments" class='post_wrap' <if test="isNotIgnoring:|:$post['post']['_ignored'] == 1 || $post['post']['_repignored'] == 1">style='display: none'</if>>
			<if test="postMid:|:$post['author']['member_id']">
				<h3>
			<else />
				<h3>
			</if>
				<if test="postModCheckbox:|:$this->memberData['is_mod'] && ! $topic['_isArchived']">
					<span class='right'>
						<label for='checkbox_{$post['post']['pid']}' class='post_mod hide'>{$this->lang->words['mod_select_post']}</label><input type='checkbox' id='checkbox_{$post['post']['pid']}' name='selectedpids[]' value='{$post['post']['pid']}' class='post_mod right'<if test="postModSelected:|:!empty( $post['post']['_pid_selected'] )"> checked='checked'</if> data-status='{$post['post']['queued']}' />
					</span>
				</if>
				<span class='post_id right ipsType_small desc blend_links'><if test="hasPages:|:$this->request['st']"><a itemprop="replyToUrl" href='{parse url="showtopic={$post['post']['topic_id']}&st={$this->request['st']}#entry{$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' rel='bookmark' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}'>
                    <else />
                        <a itemprop="replyToUrl" href='{parse url="showtopic={$post['post']['topic_id']}entry{$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' rel='bookmark' title='{$topic['title']}{$this->lang->words['link_to_post']} #{$post['post']['post_count']}'>
                    </if>
                    #{$post['post']['post_count']}
                    </a>
                </span>
				

				<if test="$post['author']['_online']"><img src="{style_images_url}/post_online.png" alt="" class='post_online' data-tooltip="Online" /><else /><img src="{style_images_url}/post_offline.png" alt="" class='post_online' data-tooltip="Offline" /></if>
                                   
                                <div class='post_username'>
                                                           </div>

				<if test="postpostMember:|:$post['author']['member_id']">
					<span itemprop="creator name" class="author vcard">{parse template="userHoverCard" group="global" params="$post['author']"}</span>
				<else />
					{$post['author']['members_display_name']}
				</if></div>

				<div class='post_date'>
					{$this->lang->words['posted']} <abbr class="published" itemprop="commentTime" title="{parse expression="date( 'c', $post['post']['post_date'] )"}">{parse date="$post['post']['post_date']" format="long"}</abbr>
				</div>
			
				<if test="postIp:|:$post['post']['_show_ip']">
					<span class='ip right ipsType_small'>({$this->lang->words['ip']}:
					<if test="postAdmin:|:$post['author']['g_access_cp']">
						<em>{$this->lang->words['ip_private']}</em>
					<else />
						<if test="accessModCP:|:$this->memberData['g_is_supmod']"><a href="{parse url="app=core&module=modcp&fromapp=members&tab=iplookup&ip={$post['post']['ip_address']}" base="public"}" title='{$this->lang->words['info_about_this_ip']}'>{$post['post']['ip_address']}</a><else />{$post['post']['ip_address']}</if>
					</if>)
					</span>
				</if>
			</h3>
			<div class='author_info'>
				{parse template="userInfoPane" group="global" params="$post['author'], $post['post']['pid'], array( 'isTopicView' => true, 'wl_id' => $post['post']['wl_id'] )"}
			</div>
			<div class='post_body'>
				<if test="repHighlight:|:$this->settings['reputation_highlight'] AND $post['post']['rep_points'] >= $this->settings['reputation_highlight']">
					<p class='rep_highlight'>{parse replacement="popular_post"}<br />{$this->lang->words['popular_post']}</p>
				</if>
				<div itemprop="commentText" class='post entry-content <if test="$post['post']['_repignored'] == 1">imgsize_ignore</if>'>
					{$post['post']['post']}
					{$post['post']['attachmentHtml']}
					<br />
					<if test="postEditBy:|:$post['post']['edit_by']">
						<p class='edit'>
							{$post['post']['edit_by']}
							<if test="postEditByReason:|:$post['post']['post_edit_reason'] != ''">
								<br />
								<span class='reason'>{$post['post']['post_edit_reason']}</span>
							</if>
						</p>
					</if>
				</div>
				<if test="repButtonsLike:|: ! $topic['_isArchived']">{parse template="repButtons" group="global_other" params="$post['author'], array_merge( array( 'primaryId' => $post['post']['pid'], 'domLikeStripId' => 'like_post_' . $post['post']['pid'], 'domCountId' => 'rep_post_' . $post['post']['pid'], 'app' => 'forums', 'type' => 'pid', 'likeFormatted' => $post['post']['like']['formatted'] ), $post['post'] )"}</if>
				<if test="postSignature:|:$post['post']['signature']">
					{$post['post']['signature']}
				</if>
				<if test="controlsForUnapprovedPost:|:$this->memberData['is_mod'] && ! $topic['_isArchived'] && $post['post']['queued']">
					<ul id='postControlsUnapproved_{$post['post']['pid']}' class='post_controls clear clearfix'>
						<if test="canDelete:|:$post['post']['_can_delete'] === TRUE && ! $topic['_isArchived']">
							<li class='post_del'>
								<a href='{parse url="module=moderate&section=moderate&do=postchoice&tact=deletedo&f={$topic['forum_id']}&t={$topic['tid']}&selectedpids[]={$post['post']['pid']}&st={$this->request['st']}&auth_key={$this->member->form_hash}" base="publicWithApp"}' title='{$this->lang->words['post_delete_title']}' onclick='if( !confirm("{$this->lang->words['post_delete_confirm']}") ){ return false; }' >{$this->lang->words['post_delete']}</a>
							</li>
						</if>
						<li class='post_toggle toggle_post' id='toggle_post_{$post['post']['pid']}' style='display: none'>
							<a href='{parse url="app=forums&module=moderate&section=moderate&do=postchoice&tact=<if test="!$post['post']['queued']">unapprove<else />approve</if>&selectedpids[{$post['post']['pid']}]={$post['post']['pid']}&t={$topic['tid']}&f={$forum['id']}&auth_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['post_toggle_visible']}'><span id='toggletext_post_{$post['post']['pid']}'><if test="approveUnapprove:|:$post['post']['queued']==1">{$this->lang->words['post_approve']}<else />{$this->lang->words['post_unapprove']}</if></span></a>
						</li>
						<if test="canEdit:|:$post['post']['_can_edit'] === TRUE">
							<li class='post_edit'><a href='{parse url="module=post&section=post&do=edit_post&f={$topic['forum_id']}&t={$topic['tid']}&p={$post['post']['pid']}&st={$this->request['st']}" base="publicWithApp"}' title='{$this->lang->words['post_edit_title']}' class='edit_post' id='edit_post_{$post['post']['pid']}'>{$this->lang->words['post_edit']}</a></li>
						</if>
					</ul>
				</if>
			
				<ul id='postControlsNormal_{$post['post']['pid']}' class='post_controls clear clearfix' <if test="hideNormalControlsForUnapprovedPost:|:$this->memberData['is_mod'] && ! $topic['_isArchived'] && $post['post']['queued']">style='display:none'</if>>
					<li class='top'><a href='#ipboard_body' class='top' title='{$this->lang->words['back_top']}'><img src="{style_images_url}/post_top.png" alt="" /> {$this->lang->words['back_top']}</a></li>
					<if test="replyButton:|:$post['post']['_canReply']">
						<li><a href="{parse url="module=post&section=post&do=reply_post&f={$this->request['f']}&t={$this->request['t']}&qpid={$post['post']['pid']}" base="publicWithApp"}"  class='_ips_trigger_quote' pid="{$post['post']['pid']}" title="{$this->lang->words['tt_reply_to_post']}"><img src="{style_images_url}/comment_new.png" alt="" /> {$this->lang->words['post_reply']}</a></li>
						<if test="multiquote:|:!empty( $post['post']['_mq_selected'] )">
							<li class='selected multiquote' id='multiq_{$post['post']['pid']}' style='display: none'>
						<else />
							<li class='multiquote' id='multiq_{$post['post']['pid']}' style='display: none'>
						</if>
							<a href="{parse url="module=post&section=post&do=reply_post&f={$this->request['f']}&t={$this->request['t']}&qpid={$post['post']['pid']}" base="publicWithApp"}" title="{$this->lang->words['quote_with_mq']}"><img src="{style_images_url}/mq_post.png" alt="" /> {$this->lang->words['mq']}</a>
						</li>
					</if>
					<if test="canDelete:|:$post['post']['_can_delete'] === TRUE && ! $topic['_isArchived']">
						<li id='del_post_{$post['post']['pid']}' class='post_del'>
							<a href='{parse url="module=moderate&section=moderate&do=postchoice&tact=deletedo&f={$topic['forum_id']}&t={$topic['tid']}&selectedpids[]={$post['post']['pid']}&st={$this->request['st']}&auth_key={$this->member->form_hash}" base="publicWithApp"}' title='{$this->lang->words['post_delete_title']}' class='delete_post' onclick='return false;' ><img src="{style_images_url}/comment_delete.png" alt="" /> {$this->lang->words['post_delete']}</a>
						</li>
					</if>
					<if test="canHide:|:$post['post']['_softDelete'] && ! $topic['_isArchived']">
						<li id='hide_post_{$post['post']['pid']}'>
							<a href='{parse url="module=moderate&section=moderate&do=postchoice&tact=delete&f={$topic['forum_id']}&t={$topic['tid']}&selectedpids[]={$post['post']['pid']}&st={$this->request['st']}&auth_key={$this->member->form_hash}" base="publicWithApp"}' class='hide_post'><img src="{style_images_url}/delete.png" alt="" /> {$this->lang->words['post_hide']}</a>
						</li>
					</if>
					<if test="canEdit:|:$post['post']['_can_edit'] === TRUE">
						<li class='post_edit'><a href='{parse url="module=post&section=post&do=edit_post&f={$topic['forum_id']}&t={$topic['tid']}&p={$post['post']['pid']}&st={$this->request['st']}" base="publicWithApp"}' title='{$this->lang->words['post_edit_title']}' class='edit_post' id='edit_post_{$post['post']['pid']}'><img src="{style_images_url}/comment_edit.png" alt="" /> {$this->lang->words['post_edit']}</a></li>
					</if>
					<if test="hasblog:|:$this->settings['blog_allow_bthis'] AND $this->memberData['has_blog'] AND IPSLib::appIsInstalled( 'blog' ) AND $post['post']['_canReply']">
						<li>
							<a href='{parse url="app=blog&blog_this=forums&id1={$this->request['t']}&id2={$post['post']['pid']}" base="public"}'><img src="{style_images_url}/book_add.png" alt="" /> {$this->lang->words['blog_this']}</a>
						</li>
					</if>
					<if test="canReportPost:|:$topic['_canReport'] and ( $this->memberData['member_id'] ) && ! $topic['_isArchived']">
						<li class='report'>
							<a href='{parse url="app=core&module=reports&rcom=post&tid={$this->request['t']}&pid={$post['post']['pid']}&st={$this->request['st']}" base="public"}'><img src="{style_images_url}/report.png" alt="" /> {$this->lang->words['report']}</a>
						</li>
						<if test="postIsReported:|:$this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['gfx'] > 0">
							<li class='report'>
								<a href="{$this->settings['base_url']}app=core&module=reports&section=reports&do=show_report&rid={$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']}" id='post-report-{$post['post']['pid']}' class='ipbmenu'> <span id="rstat-{$this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['info']['id']}"><img src="{$this->settings['img_url']}/reports/post_alert_{$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['gfx']}.png" style='margin-right: 0;' alt="" /></span> </a>
							</li>
						</if>
					</if>
				</ul>
				<if test="reportedPostData:|:! $topic['_isArchived'] AND $this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['gfx'] > 0">
					<ul id='post-report-{$post['post']['pid']}_menucontent' class='ipbmenu_content report_menu'>
						<li><a href="{parse url="app=core&module=reports&do=show_report&rid={$this->memberData['_cache']['report_temp']['post_marker']['post'][ $post['post']['pid'] ]['info']['id']}" base="public"}" id='report_mark_{$post['post']['pid']}'><img src='{$this->settings['img_url']}/reports/mark_complete.png' alt='' /> {$this->lang->words['report_menu_mark_complete']}</a></li>
						<li><a href="{$this->settings['base_url']}app=core&module=reports&section=reports&do=show_report&rid={$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']}"><img src='{$this->settings['img_url']}/reports/view_report.png' alt='' /> {$this->lang->words['report_menu_view_report']}</a></li>
					</ul>
					<script type="text/javascript">
						$('report_mark_{$post['post']['pid']}').observe('click',
						 	ipb.global.updateReportStatus.bindAsEventListener( 	
								this, {$this->memberData['_cache']['report_temp']['post_marker']['post'][$post['post']['pid']]['info']['id']},2,2
							)
						);
					</script>
				</if>	
			</div>
		</div>
	</div>
</if>
		
		<if test="initIgnoredPost:|:$post['post']['_repignored'] == 1 || $post['post']['_ignored']">
			<script type='text/javascript'>
				ipb.topic.setPostHidden( {$post['post']['pid']} );
				$('unhide_post_{$post['post']['pid']}').show();
			</script>
		</if>
		<hr />
		
		<if test="adCodeCheck:|:$post['post']['_adCode']">
			{$post['post']['_adCode']}
		</if>
<script type="text/javascript">
var pid = parseInt({$post['post']['pid']});
if ( pid > ipb.topic.topPid ){
	ipb.topic.topPid = pid;
}
<if test="sDeletedNotMQ:|:! $post['post']['_isDeleted']">
	// Show multiquote for JS browsers
	if ( $('multiq_{$post['post']['pid']}') )
	{
		$('multiq_{$post['post']['pid']}').show();
	}
	
	if( $('toggle_post_{$post['post']['pid']}') )
	{
		$('toggle_post_{$post['post']['pid']}').show();
	}
	
	// Add perm data
	ipb.topic.deletePerms[{$post['post']['pid']}] = { 'canDelete' : {parse expression="intval($post['post']['_can_delete'])"}, 'canSoftDelete' : {parse expression="intval($post['post']['_softDelete'])"} };
</if>
</script>

Spróbuj tak.

Odnośnik do komentarza
Udostępnij na innych stronach

Jeśli chcesz dodać odpowiedź, zaloguj się lub zarejestruj nowe konto

Jedynie zarejestrowani użytkownicy mogą komentować zawartość tej strony.

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

Posiadasz już konto? Zaloguj się poniżej.

Zaloguj się
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...

Powiadomienie o plikach cookie

Umieściliśmy na Twoim urządzeniu pliki cookie, aby pomóc Ci usprawnić przeglądanie strony. Możesz dostosować ustawienia plików cookie, w przeciwnym wypadku zakładamy, że wyrażasz na to zgodę.