Skocz do zawartości

Rekomendowane odpowiedzi

Opublikowano

Tak jak w temacie, potrzebuje wrzucić wyłącznie do 1 postu reklamę Google`a, teraz niech znajdzie się ktoś miły i mi pomoże, szukałem wszędzie i nie znalazłem na to odpowiedzi :)

Opublikowano (edytowane)

Look & Feel > Zarządzaj skinami i szablonami > Zarządzaj szablonami > Widok tematu > topicViewTemplate

Między

<if test="$post['post']['post_count'] == 1">

A

</if>

Dodajesz reklame

Żeby wybrać określoną grupę, wstawiasz reklamę między:

<if test="in_array( $this->memberData['member_group_id'] ,array(2) )"></if>

array(2)to ID grupy która będzie widzieć reklamy.

Tylko tyle moge zaproponować :P

Edytowane przez macsch15
  • Lubię to 1
Opublikowano

No to jest problem :), bo mam niestandardowego skina i bit nie ma tego wpisu co podałeś wyżej:

<if test="allowRating:|:$forum['forum_allow_rating']">
{parse js_module="rating"}
</if>
{parse js_module="topic"}
{parse js_module="editor"}
{parse variable="sqEnabled" default="0"}
{parse variable="sqEnabled" oncondition="$this->settings['sq_enabled'] AND ( !$this->settings['sq_ex_groups'] OR !in_array( $this->memberData['member_group_id'], explode(',' , $this->settings['sq_ex_groups'] ) ) )" value="1"}
<script type="text/javascript">
//<![CDATA[
ipb.topic.inSection = 'topicview';
ipb.topic.topic_id  = {$topic['tid']};
ipb.topic.forum_id  = {$forum['id']};
ipb.topic.start_id  = {parse expression="intval($this->request['st'])"};
// Editor JS: Only needs to be done once per page
{parse template="editorJS" group="editors" params=""}
//Search Setup
ipb.vars['search_type']			= 'forum';
ipb.vars['search_type_id']		= {$forum['id']};
ipb.vars['search_type_2']		= 'topic';
ipb.vars['search_type_id_2']	= {$topic['tid']};

// Delete stuff set up
ipb.topic.deleteUrls['hardDelete'] = new Template("{parse url="module=moderate&section=moderate&do=04&f={$forum['id']}&t={$topic['tid']}&st={$this->request['st']}&auth_key={$this->member->form_hash}&p=#{pid}" base="publicWithApp"}");
ipb.topic.deleteUrls['softDelete'] = new Template("{parse url="app=forums&module=moderate&section=moderate&do=postchoice&tact=sdelete&t={$topic['tid']}&f={$forum['id']}&auth_key={$this->member->form_hash}&selectedpids[#{pid}]=#{pid}&pid=#{pid}" base="public"}");
//]]>
</script>
<if test="disablelightbox:|:!$this->settings['disable_lightbox']">
{parse template="include_lightbox" group="global" params=""}
</if>
<if test="showForumRulesInline:|:$forum['show_rules'] == 2">
<div class='message unspecific'>
<h3>{$forum['rules_title']}</h3>
{$forum['rules_text']}
</div>
</if>
<if test="showForumRulesLink:|:$forum['show_rules'] == 1">
<div class='message unspecific'>
<a href='{parse url="app=forums&module=forums&section=rules&f={$forum['id']}" base="public"}' title='{$this->lang->words['show_forum_rules']}'><strong>{$forum['rules_title']}</strong></a>
</div>
</if>
<if test="topicHasBeenDeleted:|:$topic['_isDeleted']">
<div class='message error'>
<h3>{$this->lang->words['dlp_topic_has_deleted_title']}</h3>
{$this->lang->words['dlp_topic_has_deleted_desc']}
<div>
	<if test="tbdRestore:|:$topic['permissions']['TopicSoftDeleteRestore']">
		<a href='{parse url="app=forums&module=moderate&section=moderate&f={$forum['id']}&t={$topic['tid']}&st={$this->request['st']}&auth_key={$this->member->form_hash}&do=sundelete" base="public"}' title='{$this->lang->words['dl_ths_restore']}'>{$this->lang->words['dl_ths_restore']}</a>
	</if>
	<if test="tbdRestore:|:$this->memberData['g_is_supmod'] == 1 || $this->memberData['forumsModeratorData'][ $forum['id'] ]['delete_topic']">
		· <a href='{parse url="app=forums&module=moderate&section=moderate&f={$forum['id']}&st={$this->request['st']}&t={$topic['tid']}&auth_key={$this->member->form_hash}&do=03" base="public"}' title='{$this->lang->words['dl_ths_delete']}'>{$this->lang->words['dl_ths_delete']}</a>
	</if>
</div>
</div>
<br />
</if>
<if test="isNotThreadedMode:|:$displayData['threaded_mode_enabled'] == 0">
<div class='topic_controls'>
	{$topic['SHOW_PAGES']}
	<ul class='topic_buttons'>
		<if test="newTopicButton:|:$forum['_user_can_post']">
			<li><a href='{parse url="module=post&section=post&do=new_post&f={$forum['id']}" base="publicWithApp"}' title='{$this->lang->words['start_new_topic']}' accesskey='n'>{parse replacement="topic_icon"} {$this->lang->words['start_new_topic']}</a></li>
		<else />
			<li class='disabled'><span>{$this->lang->words['top_cannot_start']}</span></li>
		</if>
		<if test="closedButton:|:$displayData['reply_button']['image'] == 'locked'">
			<li class='closed'>
				<if test="pollOnly:|:$topic['_poll_only']">
					<if test="closedButtonLink:|:$displayData['reply_button']['url']">
						<a href='{$displayData['reply_button']['url']}' accesskey='r'>{parse replacement="lock_icon"} {$this->lang->words['top_poll_only_reply']}</a>
					<else />
						<span>{parse replacement="lock_icon"} {$this->lang->words['top_poll_only']}</span>
					</if>
				<else />
					<if test="closedButtonLink:|:$displayData['reply_button']['url']">
						<a href='{$displayData['reply_button']['url']}' accesskey='r'>{parse replacement="lock_icon"} {$this->lang->words['top_locked_reply']}</a>
					<else />
						<span>{parse replacement="lock_icon"} {$this->lang->words['top_locked']}</span>
					</if>
				</if>
			</li>
		<else />
			<if test="replyButton:|:$displayData['reply_button']['image']">
				<if test="replyButtonLink:|:$displayData['reply_button']['url']">
					<li><a href='{$displayData['reply_button']['url']}' title='{$this->lang->words['topic_add_reply']}' accesskey='r'>{parse replacement="{$displayData['reply_button']['image']}_icon"} {$this->lang->words['topic_add_reply']}</a></li>
				<else />
					<li class='disabled'><span>{$this->lang->words['top_cannot_reply']}</span></li>
				</if>
			</if>
		</if>
		<if test="watchWrapper:|:$this->memberData['member_id']">
			<li>
				<if test="isWatching:|:$this->settings['cpu_watch_update'] AND $topic['trackingTopic']">
					<a href='{parse url="app=core&module=usercp&tab=forums&area=updateWatchTopics&do=saveIt&authKey={$this->member->form_hash}&topicIDs[{$topic['tid']}]=1&trackchoice=unsubscribe&topicReturn={$topic['tid']}&st={$this->request['st']}" base="public"}' title='{$this->lang->words['topic_stop_watching']}'>{parse replacement="watch_topic_off"}  {$this->lang->words['topic_stop_watching']}</a>
				<else />
					<a href='{parse url="app=core&module=usercp&tab=forums&area=watch&watch=topic&do=list&tid={$topic['tid']}" base="public"}' title='{$this->lang->words['tt_title']}'>{parse replacement="watch_topic_on"}  {$this->lang->words['tt_title']}</a>
				</if>
			</li>
		</if>
	</ul>	
</div>
</if>
<div class='topic hfeed'>
<h2 class='maintitle'>
	<span class='main_topic_title'>
		{$topic['title']}
		<if test="topicDescription:|:$topic['description']">
			<span class='desc main_topic_desc'>{$topic['description']}</span>
		</if>
	</span>
	<if test="topicRating:|:$forum['forum_allow_rating']">
		<span class='rating'>{$this->lang->words['js_rate_me']}
			<a href='{parse url="app=forums&module=extras&section=rating&t={$topic['tid']}&rating=1&secure_key={$this->member->form_hash}" base="public"}' id='topic_rate_1' title='{$this->lang->words['top_js_1star']}'><if test="rate1:|:$topic['_rate_int'] >= 1">{parse replacement="rate_on"}<else />{parse replacement="rate_off"}</if></a><a href='{parse url="app=forums&module=extras&section=rating&t={$topic['tid']}&rating=2&secure_key={$this->member->form_hash}" base="public"}' id='topic_rate_2' title='{$this->lang->words['top_js_2star']}'><if test="rate2:|:$topic['_rate_int'] >= 2">{parse replacement="rate_on"}<else />{parse replacement="rate_off"}</if></a><a href='{parse url="app=forums&module=extras&section=rating&t={$topic['tid']}&rating=3&secure_key={$this->member->form_hash}" base="public"}' id='topic_rate_3' title='{$this->lang->words['top_js_3star']}'><if test="rate3:|:$topic['_rate_int'] >= 3">{parse replacement="rate_on"}<else />{parse replacement="rate_off"}</if></a><a href='{parse url="app=forums&module=extras&section=rating&t={$topic['tid']}&rating=4&secure_key={$this->member->form_hash}" base="public"}' id='topic_rate_4' title='{$this->lang->words['top_js_4star']}'><if test="rate4:|:$topic['_rate_int'] >= 4">{parse replacement="rate_on"}<else />{parse replacement="rate_off"}</if></a><a href='{parse url="app=forums&module=extras&section=rating&t={$topic['tid']}&rating=5&secure_key={$this->member->form_hash}" base="public"}' id='topic_rate_5' title='{$this->lang->words['top_js_5star']}'><if test="rate5:|:$topic['_rate_int'] >= 5">{parse replacement="rate_on"}<else />{parse replacement="rate_off"}</if></a>
			<span id='rating_text'>
				<if test="hasRates:|:$topic['topic_rating_hits'] > 0"><span id='rating_hits'>{$topic['topic_rating_hits']}</span> {$this->lang->words['poll_s_votes']}</if>
				<if test="youRated:|:$topic['_rating_value'] != -1"> ({$this->lang->words['topic_poll_your_vote']} <span id='your_rate'>{$topic['_rating_value']}</span>)</if>
			</span>
			<script type='text/javascript'>
			//<![CDATA[
				rating = new ipb.rating( 'topic_rate_', { 
									url: '{parse url="app=forums&module=ajax&section=topics&do=rateTopic&t={$topic['tid']}" base="public"}&md5check=' + ipb.vars['secure_hash'],
									cur_rating: {$topic['_rate_int']},
									rated: <if test="jsHasRates:|:$topic['_rating_value'] != -1">1<else />0</if>,
									allow_rate: {$topic['_allow_rate']},
									multi_rate: 1,
									show_rate_text: true
								  } );
			//]]>
			</script>
		</span>
	</if>
</h2>

{$displayData['poll_data']}

<if test="startModForm:|:$displayData['mod_links']">
	<if test="weAreMod:|:$this->memberData['is_mod'] OR $this->memberData['member_id'] == $topic['starter_id']">
		<form id="modform" method="post" action="{parse url="" base="public"}">
			<fieldset>
 				<input type="hidden" name="app" value="forums" />
	 			<input type="hidden" name="module" value="moderate" />
	 			<input type="hidden" name="section" value="moderate" />
	 			<input type="hidden" name="do" value="postchoice" />
	 			<input type="hidden" name="f" value="{$topic['forum_id']}" />
	 			<input type="hidden" name="t" value="{$topic['tid']}" />
	 			<input type="hidden" name="auth_key" value="{$this->member->form_hash}" />
	 			<input type="hidden" name="st" value="{$this->request['st']}" />
	 			<input type="hidden" value="{$this->request['selectedpids']}" name="selectedpidsJS" id='selectedpidsJS' />
			</fieldset>
	</if>
</if>

<if test="hasPosts:|:is_array( $post_data ) AND count( $post_data )">
<!-- skinnote: Posts by ignored users are not hidden, check _ignored -->
<foreach loop="post_data:$post_data as $post">
	<!--Begin Msg Number {$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 <if test="postQueued:|:$post['post']['_isHidden']">moderated</if> <if test="reputation:|:$this->settings['reputation_enabled']">with_rep</if>' id='post_id_{$post['post']['pid']}'>
		<a id='entry{$post['post']['pid']}'></a>
		<if test="repIgnored:| isset( $post['post']['_repignored'] ) AND isset($post['post']['_ignored']) ) 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> {parse template="user_popup" group="global" params="$post['author']['member_id'], $post['author']['members_seo_name']"} {$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> {parse template="user_popup" group="global" params="$post['author']['member_id'], $post['author']['members_seo_name']"}. <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 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 class='guest'>
			</if>
					<span class='post_id'>{$this->lang->words['posted']} <abbr class="published" title="{parse expression="date( 'c', $post['post']['post_date'] )"}">{parse date="$post['post']['post_date']" format="long"}</abbr> (<a href='{parse url="showtopic={$post['post']['topic_id']}&view=findpost&p={$post['post']['pid']}" template="showtopic" seotitle="{$topic['title_seo']}" base="public"}' rel='bookmark' title='{$this->lang->words['link_to_post']} #{$post['post']['post_count']}'><strong>#{$post['post']['post_count']}</strong></a>)</span>
					<if test="postMember:|:$post['author']['member_id']">
						<if test="postOnline:|:$post['author']['_online']">
							{parse replacement="user_online"}
						<else />
							{parse replacement="user_offline"}
						</if>  
							<span class="author vcard"><a class="url fn" href='{parse url="showuser={$post['author']['member_id']}" base="public" template="showuser" seotitle="{$post['author']['members_seo_name']}"}'>{$post['author']['members_display_name']}</a>{parse template="user_popup" group="global" params="$post['author']['member_id'], $post['author']['members_seo_name']"}</span>
					<else />
						{$post['author']['members_display_name']}
					</if>
					<if test="postIp:|:$post['post']['_show_ip']">
						<span class='ip'>({$this->lang->words['ip']}:
						<if test="postAdmin:|:$post['author']['g_access_cp']">
							<em>{$this->lang->words['ip_private']}</em>
						<else />
							<a href="{parse url="app=core&module=usercp&tab=members&area=mod_ipaddress&do=custom&ip={$post['post']['ip_address']}" base="public"}" title='{$this->lang->words['info_about_this_ip']}'>{$post['post']['ip_address']}</a>
						</if>
						)</span>
					</if>
				</h3>
			<div class='author_info'>
				{parse template="userInfoPane" group="global" params="$post['author'], $post['post']['pid'], array()"}
			</div>
			<div class='post_body'>
				<p class='posted_info'>
					<if test="postModCheckbox:|:$this->memberData['is_mod']">
						<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'<if test="postModSelected:|:isset( $post['post']['_pid_selected'] ) && $post['post']['_pid_selected']"> checked='checked'</if> />
					</if>
					<if test="postIcon:|:$post['post']['icon_id']">
						<img src="{$this->settings['public_dir']}style_extra/post_icons/icon{$post['post']['icon_id']}.gif" alt="{$this->lang->words['post_icon']}" /> 
					</if>
				</p>
				<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 test="repHighlight:|:$this->settings['reputation_highlight'] AND $post['post']['rep_points'] >= $this->settings['reputation_highlight']">rep_highlight</if>  -->
				</if>
				<div 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'>{$this->lang->words['reason_for_edit']} {$post['post']['post_edit_reason']}</span>
							</if>
						</p>
					</if>
				</div>
				<if test="postSignature:|:$post['post']['signature']">
					{$post['post']['signature']}
				</if>
			</div>
		<if test="reputationBox:|:$this->settings['reputation_enabled']">
			<if test="canRep:|:!( $this->settings['reputation_protected_groups'] && in_array( $post['author']['member_group_id'], explode( ',', $this->settings['reputation_protected_groups'] ) ) )">
			<div class='rep_bar clear right' id='rep_post_{$post['post']['pid']}'>

			{parse variable="canViewRep" default="" oncondition="$this->memberData['gbw_view_reps']" value="onclick='ipb.topic.repPopUp( this, {$post['post']['pid']} );'"}
			{parse variable="repClickable" default="" oncondition="$this->memberData['gbw_view_reps']" value=" clickable"}

			<if test="hasNoRep:|:$post['post']['rep_points'] == 0">
				<span class='reputation zero rep_show{parse variable="repClickable"}' title='{$this->lang->words['reputation']}' {parse variable="canViewRep"}>
			</if>
			<if test="hasPosRep:|:$post['post']['rep_points'] > 0">
				<span class='reputation positive rep_show{parse variable="repClickable"}' title='{$this->lang->words['reputation']}' {parse variable="canViewRep"}>
			</if>
			<if test="hasNegRep:|:$post['post']['rep_points'] < 0">
				<span class='reputation negative rep_show{parse variable="repClickable"}' title='{$this->lang->words['reputation']}' {parse variable="canViewRep"}>
			</if>
					{$post['post']['rep_points']}
				</span>
				<if test="hasNotGivenRep:|:$post['post']['has_given_rep'] != 1 AND $post['post']['has_given_rep'] != -1 AND $this->memberData['member_id'] != 0 && ( $this->settings['reputation_can_self_vote'] OR $post['author']['member_id'] != $this->memberData['member_id'] )">
					<ul>
					<if test="giveRepUp:|:$this->settings['reputation_point_types'] == 'positive' || $this->settings['reputation_point_types'] == 'both'">
						<li><a href='{$this->settings['base_url']}app=core&module=global&section=reputation&do=add_rating&app_rate=forums&type=pid&type_id={$post['post']['pid']}&rating=1&secure_key={$this->member->form_hash}&post_return={$post['post']['pid']}' class='rep_up' title='{$this->lang->words['reputation_up']}'>{parse replacement="rep_up"}</a></li>
					</if>
					<if test="giveRepDown:|:$this->settings['reputation_point_types'] == 'negative' || $this->settings['reputation_point_types'] == 'both'">
						<li><a href='{$this->settings['base_url']}app=core&module=global&section=reputation&do=add_rating&app_rate=forums&type=pid&type_id={$post['post']['pid']}&rating=-1&secure_key={$this->member->form_hash}&post_return={$post['post']['pid']}' class='rep_down' title='{$this->lang->words['reputation_down']}'>{parse replacement="rep_down"}</a></li>
					</if>
					</ul>
				</if>
			</div>
			</if>
			<script type='text/javascript'>
				ipb.global.registerReputation( 'rep_post_{$post['post']['pid']}', { app: 'forums', type: 'pid', typeid: '{$post['post']['pid']}' }, parseInt('{$post['post']['rep_points']}') );
			</script>
		</if>
			<ul class='post_controls'>
				<if test="canReportPost:|$this->settings['disable_reportpost'] != 1) and ( $this->memberData['member_id'] )">
					<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"}'>{parse replacement="report_post_icon"} {$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" alt="" /></span> </a>
						</li>
					</if>
				</if>
				<if test="hasblog:|:$this->settings['blog_allow_bthis'] AND $this->memberData['has_blog'] AND IPSLib::appIsInstalled( 'blog' ) AND $displayData['reply_button']['url']">
					<li class='report'>
						<a href='{parse url="app=blog&blog_this=forums&id1={$this->request['t']}&id2={$post['post']['pid']}" base="public"}'>{parse replacement="blog_link"} {$this->lang->words['blog_this']}</a>
					</li>
				</if>
				<li class='top hide'><a href='#top' class='top' title='{$this->lang->words['back_top']}'>{$this->lang->words['back_top']} of the page up there ^</a></li>

				<if test="replyButton:|:$displayData['reply_button']['image'] AND $displayData['reply_button']['url']">
<if test="$this->templateVars['sqEnabled'] && $displayData['fast_reply'] != 'unavailable' && $displayData['reply_button']['url']">
                                               <li id='selq_{$post['post']['pid']}' style='display: none'>
                                                       <a href="#" onClick="ipb.topic.selective_quote(); return false;" title="{$this->lang->words['quote_with_qs']}">{parse replacement="mq_post_icon"} {$this->lang->words['sq']}</a>
                                               </li>
                                       </if>
					<if test="multiquote:|:isset( $post['post']['_mq_selected'] ) && $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']}">{parse replacement="mq_post_icon"} {$this->lang->words['mq']}</a>
					</li>
					<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"}" title="{$this->lang->words['tt_reply_to_post']}">{parse replacement="reply_post_icon"} {$this->lang->words['post_reply']}</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={$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']}'>{parse replacement="edit_post_icon"} {$this->lang->words['post_edit']}</a></li>
				</if>
				<if test="canDelete:|:$post['post']['_can_delete'] === TRUE OR $post['post']['_softDelete']">
					<li class='post_del' id='del_post_{$post['post']['pid']}'>
						<a href='{parse url="module=moderate&section=moderate&do=04&f={$forum['id']}&t={$topic['tid']}&p={$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'>{parse replacement="delete_post_icon"} {$this->lang->words['post_delete']}</a>
					</li>
				</if>
				<!-- Matt: Approve / unapprove post button -->
				<if test="approvePost:|:$this->memberData['is_mod']">
					<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=unapprove&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']}'><if test="approveUnapprove:|:$post['post']['queued']==1">{parse replacement="approve"}<else />{parse replacement="deny"}</if> <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>
			</ul>
			<script type='text/javascript'>
				// Show multiquote for JS browsers
				$('multiq_{$post['post']['pid']}').show();
if ( $('selq_{$post['post']['pid']}') ) { $('selq_{$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'])"} };
			</script>
			<if test="reportedPostData:|:$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>
	</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>
	<if test="endFirstPost:|:$post['post']['_end_first_post']">
		<!-- END OF FIRST POST IN LINEAR+, SHOW BUTTONS AND NEW TITLE -->
		<br />
		<div class='topic_controls'>
			{$topic['SHOW_PAGES']}
			<ul class='topic_buttons'>
				<if test="bottomNewTopic:|:$forum['_user_can_post']">
					<li><a href='{parse url="module=post&section=post&do=new_post&f={$forum['id']}" base="publicWithApp"}' title='{$this->lang->words['start_new_topic']}' accesskey='n'>{parse replacement="topic_icon"} {$this->lang->words['start_new_topic']}</a></li>
				<else />
					<li class='disabled'><span>{$this->lang->words['top_cannot_start']}</span></li>
				</if>
				<if test="bottomIsClosed:|:$displayData['reply_button']['image'] == 'locked'">
					<li class='closed'>
						<if test="pollOnly:|:$topic['_poll_only']">
							<if test="bottomClosedButtonLink:|:$displayData['reply_button']['url']">
								<a href='{$displayData['reply_button']['url']}' accesskey='r'>{parse replacement="lock_icon"} {$this->lang->words['top_poll_only_reply']}</a>
							<else />
								<span>{parse replacement="lock_icon"} {$this->lang->words['top_poll_only']}</span>
							</if>
						<else />
							<if test="bottomClosedButtonLink:|:$displayData['reply_button']['url']">
								<a href='{$displayData['reply_button']['url']}' accesskey='r'>{parse replacement="lock_icon"} {$this->lang->words['top_locked_reply']}</a>
							<else />
								<span>{parse replacement="lock_icon"} {$this->lang->words['top_locked']}</span>
							</if>
						</if>
					</li>
				<else />
					<if test="bottomReplyButton:|:$displayData['reply_button']['image']">
						<if test="bottomReplyButtonLink:|:$displayData['reply_button']['url']">
							<li><a href='{$displayData['reply_button']['url']}' title='{$this->lang->words['topic_add_reply']}' accesskey='r'>{parse replacement="{$displayData['reply_button']['image']}_icon"} {$this->lang->words['topic_add_reply']}</a></li>
						<else />
							<li class='disabled'><span>{$this->lang->words['top_cannot_reply']}</span></li>
						</if>
					</if>
				</if>
			</ul>
		</div>
		<h2 class='maintitle'>{$this->lang->words['topic_other_replies']}</h2>
		<div class='generic_bar'></div>
	</if>
</foreach>
</if>
<!-- MOD LINKS -->
<if test="modOptions:|:$displayData['mod_links']">
<if test="showModOptions:|:$this->memberData['is_mod'] OR $this->memberData['member_id'] == $topic['starter_id']">
		<div id='topic_mod' class='moderation_bar rounded with_action clear'>
		<if test="showModOptionsinner:|:$this->memberData['is_mod']">
			<label for='tact' class='hide'>{$this->lang->words['post_moderation']}</label>
	 		<select name="tact" id='tact' class='input_select'>
				<option value="">{$this->lang->words['post_moderation']}</option>
 				<option value="merge">{$this->lang->words['cpt_merge']}</option>
 				<option value="move">{$this->lang->words['cpt_move']}</option>
 				<option value="delete">{$this->lang->words['cpt_delete']}</option>
 				<if test="$this->registry->class_forums->can_Un_SoftDeletePosts( $forum_data['id'], $topic )"><option value="sundelete">{$this->lang->words['cpt_undelete']}</option></if>
 				<option value="split">{$this->lang->words['cpt_split']}</option>
 				<option value="approve">{$this->lang->words['cpt_approve']}</option>
 				<option value="unapprove">{$this->lang->words['cpt_unapprove']}</option>
 			</select> 
 			<input type="submit" id='mod_submit' name="gobutton" value="{$this->lang->words['f_go']}<if test="modButtonCount:|:$this->request['selectedpidcount']"> ({$this->request['selectedpidcount']})</if>" class="input_submit alt" />
 			</if>
		</div>
	</form>
	<script type='text/javascript'>
		$('modform').observe('submit', ipb.topic.submitPostModeration );
	</script>

	<div id='topic_mod_2' class='moderation_bar rounded'>
		<if test="mmModOptions:|:is_array( $displayData['multi_mod'] ) AND count( $displayData['multi_mod'] )">
			<form action="{parse url="app=forums&module=moderate&section=multimod&t={$topic['tid']}" base="public"}" method="post" id='multimod' class='left'>
				<fieldset>
					<input type="hidden" name="check" value="1" />
					<select name="mm_id" class="input_select">
						<option value="-1">{$this->lang->words['mm_title']}</option>
						<foreach loop="mm:$displayData['multi_mod'] as $mm_data">
							<option value="{$mm_data[0]}">{$mm_data[1]}</option>
						</foreach>
					</select> 
					<input type="submit" value="{$this->lang->words['mm_submit']}" class="input_submit alt" />
				</fieldset>
			</form>
		</if>
		<form method="post" id="modform2" action="{parse url="" base="public"}">
			<fieldset>
				<input type="hidden" name="t" value="{$topic['tid']}" />
				<input type="hidden" name="f" value="{$topic['forum_id']}" />
				<input type="hidden" name="st" value="{$this->request['st']}" />
				<input type="hidden" name="auth_key" value="{$this->member->form_hash}" />
				<input type="hidden" name="app" value="forums" />
				<input type="hidden" name="module" value="moderate" />
				<input type="hidden" name="section" value="moderate" />
				<label for='topic_moderation' class='hide'>{$this->lang->words['topic_moderation']}</label>
				<select name="do" class="input_select" id='topic_moderation'>
					<option value="-1">{$this->lang->words['topic_moderation']}</option>
					<foreach loop="mod_links:$displayData['mod_links'] as $_mod_link">
						<option value="{$_mod_link['option']}">-{$_mod_link['value']}</option>
					</foreach>
					<if test="$topic['topic_queuedposts'] AND $this->registry->class_forums->canQueuePosts( $forum['id'] )">
						<option value="p_approve">{parse expression="sprintf( $this->lang->words['nmo_p_approve'], $topic['topic_queuedposts'])"}</option>
					</if>
					<if test="$topic['topic_queuedposts'] AND $this->registry->class_forums->canHardDeletePosts( $forum['id'], $topic )">
						<option value="p_delete_approve">{parse expression="sprintf( $this->lang->words['nmo_p_delete_approve'], $topic['topic_queuedposts'])"}</option>
					</if>
					<if test="$topic['permissions']['softDeleteRestore'] AND $topic['topic_deleted_posts']">
						<option value="p_restore">{parse expression="sprintf( $this->lang->words['nmo_p_restore'], $topic['topic_deleted_posts'])"}</option>
					</if>
					<if test="$topic['topic_deleted_posts'] AND $this->registry->class_forums->canHardDeletePosts( $forum['id'], $topic )">
						<option value="p_delete_softed">{parse expression="sprintf( $this->lang->words['nmo_p_delete_softed'], $topic['topic_deleted_posts'])"}</option>
					</if>
				</select> 
				<input type="submit" value="{$this->lang->words['jmp_go']}" class="input_submit alt" />
			</fieldset>
		</form>

		<script type='text/javascript'>
			$('modform2').observe('submit', ipb.topic.submitTopicModeration );
		</script>
	</div>
</if>
</if>
<!-- REPUTATION FILTERS -->
<if test="reputationFilter:|:$this->settings['reputation_enabled'] && $this->settings['reputation_show_content'] && $this->memberData['member_id'] != 0 && is_array($this->caches['reputation_levels'])">
<div id='reputation_filter' class='filter_bar rounded'>
	<span id='show_filters' class='clickable' style='display: none'>{$this->lang->words['rep_f_currently']} <if test="repFilterDefault:|:$this->memberData['_members_cache']['rep_filter'] && $this->memberData['_members_cache']['rep_filter'] === '*'">{$this->lang->words['rep_f_viewing_all']} <else />{$this->lang->words['rep_f_hiding']} {$this->memberData['_members_cache']['rep_filter']} {$this->lang->words['rep_f_points']}.</if> {$this->lang->words['rep_f_threshold']}</span>
	<form id='filter_form' method="post" action="{parse url="" base="public"}">
		<fieldset>
 			<input type="hidden" name="app" value="forums" />
	 		<input type="hidden" name="module" value="forums" />
	 		<input type="hidden" name="section" value="topics" />
	 		<input type="hidden" name="rep_filter" value="update" />
	 		<input type="hidden" name="f" value="{$topic['forum_id']}" />
	 		<input type="hidden" name="t" value="{$topic['tid']}" />
	 		<input type="hidden" name="secure_key" value="{$this->member->form_hash}" />
	 		<input type="hidden" name="st" value="{$this->request['st']}" />
	 		<label for='rep_filter_select'>{$this->lang->words['rep_f_hide']}</label>
	 		<select name='rep_filter_set' id='rep_filter_select'>
	 			<option value='*' <if test="optSelectStar:|:isset( $this->memberData['_members_cache']['rep_filter'] ) AND $this->memberData['_members_cache']['rep_filter'] == '*'"> selected='selected'</if>>{$this->lang->words['rep_f_all_posts']}</option>
			<if test="repFilterOptions:|:is_array($this->caches['reputation_levels'])">
				<foreach loop="reputation_levels:$this->caches['reputation_levels'] as $k => $v">
				<option value='{$v['level_points']}'<if test="optRepFilterSelected:|:isset( $this->memberData['_members_cache']['rep_filter'] ) AND $v['level_points'] == $this->memberData['_members_cache']['rep_filter']"> selected='selected'</if>>{$v['level_points']} {$this->lang->words['rep_f_points']}</option>
				</foreach>
			</if>
			</select>

			<input type="submit" name="gobutton" value="{$this->lang->words['rep_f_update']}" class="input_submit alt" />
		</fieldset>
	</form>
</div>
<script type='text/javascript'>
	$('show_filters').show();
</script>
</if>
<if test="forumJump:|:$forum['FORUM_JUMP']">
<div class='moderation_bar rounded' id='topic_search_jump'>
	<if test="forumJumpInner:|:$forum['FORUM_JUMP']">
		{$forum['FORUM_JUMP']}
	</if>
</div>
</if>
<!-- THREADED MODE -->
<if test="threadedEnabled:|:$displayData['threaded_mode_enabled'] == 1">
<br />
<div class='topic_controls'>
	{$topic['threaded_pages']}	
	<ul class='topic_buttons'>
		<if test="threadedNewTopic:|:$forum['_user_can_post']">
			<li><a href='{parse url="module=post&section=post&do=new_post&f={$forum['id']}" base="publicWithApp"}' title='{$this->lang->words['start_new_topic']}'>{parse replacement="topic_icon"} {$this->lang->words['start_new_topic']}</a></li>
		<else />
			<li class='disabled'><span>{$this->lang->words['top_cannot_start']}</span></li>
		</if>
		<if test="threadedClosed:|:$displayData['reply_button']['image'] == 'locked'">
			<li class='closed'>
				<if test="threadedClosedLink:|:$displayData['reply_button']['url']">
					<a href='{$displayData['reply_button']['url']}'>{parse replacement="lock_icon"} {$this->lang->words['top_locked_reply']}</a>
				<else />
					<span>{parse replacement="lock_icon"} {$this->lang->words['top_locked']}</span>
				</if>
			</li>
		<else />
			<if test="threadedReply:|:$displayData['reply_button']['image']">
				<if test="threadedReplyLink:|:$displayData['reply_button']['url']">
					<li><a href='{$displayData['reply_button']['url']}' title='{$this->lang->words['add_a_reply']}'>{parse replacement="reply_icon"} {$this->lang->words['topic_add_reply']}</a></li>
				<else />
					<li class='disabled'><span>{$this->lang->words['top_cannot_reply']}</span></li>
				</if>
			</if>
		</if>
	</ul>
</div>
<h2 class='maintitle'>{$this->lang->words['threads']}</h2>
<div class='generic_bar'></div>
<div class='threaded_view general_box'>
{$topic['_threaded_posts']}
</div>
<br class='clear' />{$topic['threaded_pages']}
</if>
<ul class='topic_jump right clear'>
<li class='previous'><a href='{parse url="showtopic={$topic['tid']}&view=old" seotitle="{$topic['title_seo']}" template="showtopic" base="public"}'>{$this->lang->words['_larr']} {$this->lang->words['previous_topic']}</a></li>
<li><strong><a href='{parse url="showforum={$forum['id']}" base="public" seotitle="{$forum['name_seo']}" template="showforum"}' title='{$this->lang->words['return_to']} {$forum['name']}'>{$forum['name']}</a></strong></li>
<li class='next'><a href='{parse url="showtopic={$topic['tid']}&view=new"  seotitle="{$topic['title_seo']}" template="showtopic" base="public"}'>{$this->lang->words['next_topic']} {$this->lang->words['_rarr']}</a></li>
</ul>
<if test="canShare:|:!$forum['disable_sharelinks'] AND $this->settings['sl_enable']">
<h3 class='topic_share left'>{$this->lang->words['topic_share']}</h3>
{IPSLib::shareLinks( $topic['title'] )}
<br />
</if>
<!-- BOTTOM BUTTONS -->
<div class='topic_controls clear'>
{$topic['SHOW_PAGES']}

<ul class='topic_buttons'>
	<if test="finalNewTopic:|:$forum['_user_can_post']">
		<li><a href='{parse url="module=post&section=post&do=new_post&f={$forum['id']}" base="publicWithApp"}' title='{$this->lang->words['start_new_topic']}'>{parse replacement="topic_icon"} {$this->lang->words['start_new_topic']}</a></li>
	<else />
		<li class='disabled'><span>{$this->lang->words['top_cannot_start']}</span></li>
	</if>

	<if test="finalClosed:|:$displayData['reply_button']['image'] == 'locked'">
		<li class='closed'>
			<if test="pollOnly:|:$topic['_poll_only']">
				<if test="finalClosedLink:|:$displayData['reply_button']['url']">
					<a href='{$displayData['reply_button']['url']}' accesskey='r'>{parse replacement="lock_icon"} {$this->lang->words['top_poll_only_reply']}</a>
				<else />
					<span>{parse replacement="lock_icon"} {$this->lang->words['top_poll_only']}</span>
				</if>
			<else />
				<if test="finalClosedLink:|:$displayData['reply_button']['url']">
					<a href='{$displayData['reply_button']['url']}' accesskey='r'>{parse replacement="lock_icon"} {$this->lang->words['top_locked_reply']}</a>
				<else />
					<span>{parse replacement="lock_icon"} {$this->lang->words['top_locked']}</span>
				</if>
			</if>
		</li>
	<else />
		<if test="finalReply:|:$displayData['reply_button']['image']">
			<if test="finalReplyLink:|:$displayData['reply_button']['url']">
				<li><a href='{$displayData['reply_button']['url']}' title='{$this->lang->words['topic_add_reply']}' accesskey='r'>{parse replacement="{$displayData['reply_button']['image']}_icon"} {$this->lang->words['topic_add_reply']}</a></li>
			<else />
				<li class='disabled'><span>{$this->lang->words['top_cannot_reply']}</span></li>
			</if>
		</if>
	</if>
</ul>
</div>
<hr />
<script type='text/javascript'>
ipb.editor_values.set( 'emoticons', \$H({ {parse expression="IPSLib::fetchEmoticonsAsJson()"} }) );
ipb.vars['emoticon_url'] = "{$this->settings['emoticons_url']}";
</script>
<if test="fastReply:|:$displayData['fast_reply'] != 'unavailable' && $displayData['reply_button']['url']">
<br />
<div id='fast_reply' style='display: {$displayData['fast_reply']}'>
<h3 class='maintitle'>{$this->lang->words['qr_title']}</h3>
<div class='generic_bar'></div>
<div class='general_box alt'>
	<form action="{parse url="" base="public"}" method="post">
		<fieldset>
			<input type="hidden" name="app" value="forums" />
			<input type="hidden" name="module" value="post" />
			<input type="hidden" name="section" value="post" />
			<input type="hidden" name="do" value="reply_post_do" />
			<input type="hidden" name="f" value="{$forum['id']}" />
			<input type="hidden" name="t" value="{$topic['tid']}" />
			<input type="hidden" name="st" value="{$this->request['st']}" />
			<input type="hidden" name="auth_key" value="{$this->member->form_hash}" />
			<input type="hidden" name="fast_reply_used" value="1" />
			<input type="hidden" name="enableemo" value="yes" />
			<input type="hidden" name="enablesig" value="yes" />
			<if test="$this->memberData['auto_track']">
				<input type="hidden" name="enabletrack" value="1" />
			</if>
			<if test="is_array($topic['_fastReplyStatusMessage']) AND count($topic['_fastReplyStatusMessage']) AND strlen($topic['_fastReplyStatusMessage'][0])">
				<div class='message'>{parse expression="implode( '<br />', $topic['_fastReplyStatusMessage'])"}</div>
			</if>
			{parse template="editorShell" group="editors" params="'fast-reply', 'Post', '', 1"}
		</fieldset>
		<fieldset class='submit'>
			<input type='submit' name="submit" class='input_submit' value='{$this->lang->words['qr_post']}' tabindex='0' accesskey='s' id='submit_post' />  <input type='submit' name="preview" class='input_submit alt' value='{$this->lang->words['qr_more_opts']}' tabindex='0' id='full_compose' /> <if test="$this->templateVars['sqEnabled'] && $displayData['fast_reply'] != 'unavailable' && $displayData['reply_button']['url']">  <input type="button" id="selectiveq" tabindex="0" onClick='return ipb.topic.selective_quote();' value="{$this->lang->words['sq']}" class="input_submit alt"/></if>
		</fieldset>
	</form>
</div>
</div>
<script type="text/javascript">
//<![CDATA[
if( $('fast-reply_textarea') ){
	$('fast-reply_textarea').addClassName('unloaded_editor').setStyle('height: 70px');
	$('fast-reply_textarea').value = "{$this->lang->words['editor_unloaded_atm']}";
}

if( $('fast-reply_toolbar_1') ){
	$('fast-reply_toolbar_1').hide();
}
if( $('fast-reply_toolbar_2') ){
	$('fast-reply_toolbar_2').hide();
}

var removeTip = function(e){
	if( $('fast-reply_textarea').hasClassName('unloaded_editor') ){
		$('fast-reply_textarea').value='';
	}
};

$('full_compose').observe( 'click', removeTip );
$('submit_post').observe( 'click', removeTip );

in_use = 0;

$('fast-reply_textarea').observe( 'focus', function(e){
	if( !in_use )
	{
		if( $('fast-reply_toolbar_1') ){
			$('fast-reply_toolbar_1').show();
		}
		if( $('fast-reply_toolbar_2') ){
			$('fast-reply_toolbar_2').show();
		}

		$('fast-reply_textarea').removeClassName('unloaded_editor').value = '';

		ipb.editors[ 'fast-reply' ] = new ipb.editor( 'fast-reply', USE_RTE );
		$( ipb.editors['fast-reply'] ).resize_to( 250 );

		try {
			ipb.editors[ 'fast-reply' ].editor_window.focus();
		} catch(err) { }
		in_use = 1;
	}
});
//]]>
</script>
</if>
<!-- ACTIVE USERS -->
<if test="topicActiveUsers:|:is_array( $displayData['active_users'] ) AND count( $displayData['active_users'] )">
<div id='topic_stats' class='statistics general_box clear clearfix'>
	<div id='topic_active_users' class='active_users'>
		<h2>
			{parse expression="sprintf( $this->lang->words['active_users_title'], ($displayData['active_users']['members'] + $displayData['active_users']['guests'] + $displayData['active_users']['anon'] ) )"}<br />
			<span class='desc'>{parse expression="sprintf( $this->lang->words['active_users_detail'], $displayData['active_users']['members'], $displayData['active_users']['guests'], $displayData['active_users']['anon'] )"}</span>
		</h2>

		<if test="auNames:|:is_array( $displayData['active_users']['names'] ) AND count( $displayData['active_users']['names'] )">
			<ol>
				<foreach loop="active_users:$displayData['active_users']['names'] as $p => $r">
			<li>{$r['p_start']}<if test="auId:|:$r['id']"><a href='{parse url="showuser={$r['id']}" seotitle="{$r['seo']}" template="showuser" base="public"}' title='{$r['p_title']}'></if>{$r['name']}<if test="auEndId:|:$r['id']"></a></if>{$r['p_end']}<if test="lastActiveUser:|:$p + 1 != count( $displayData['active_users']['names'] )">,</if></li>
				</foreach>
			</ol>
		</if>
	</div>
</div>
</if>

<!-- Close topic -->
</div>
<div id='delPopUp' style='display:none'>
<h3 class='bar'>{$this->lang->words['dlp_title']}</h3>
<div class='general_box'>
	<form action='#{removeUrl}' method='POST'>
		<strong>{$this->lang->words['dlp_remove_from_view']}</strong>
		<p class='desc'>{$this->lang->words['dlp_remove_from_view_desc']}</p>
		<p style='padding:4px 0px 4px 0px'>{$this->lang->words['dlp_reason']} <input type='text' name='deleteReason' id='delPop_reason' value='' style='width:65%' /> <input type='submit' class='input_submit' value='{$this->lang->words['dlp_remove']}' /></p>
	</form>
	<div style='#{permaDelete}padding-top:5px'>
		<strong>{$this->lang->words['dlp_delete_from_topic']}</strong>
		<p class='desc'>{$this->lang->words['dlp_delete_from_topic_desc']}</p>
		<p style='padding:4px 0px 4px 0px'><input type='button' class='input_submit' onclick="window.location='#{permaUrl}';" value='{$this->lang->words['dlp_delete_now']}' /></p>
	</div>
</div>
</div>

<if test="scrollToPost:|:$this->request['gopid']">
<script type='text/javascript'>
var gopid = "{$this->request['gopid']}".replace(/&/g, '');
ipb.topic.scrollToPost( parseInt( gopid ) );
</script>
</if>
{parse template="include_highlighter" group="global" params="1"}

Opublikowano

                                        <div 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'>{$this->lang->words['reason_for_edit']} {$post['post']['post_edit_reason']}</span>
                                                               </if>
                                                       </p>
                                               </if>
                                       </div>

Metoda prób i błędów rlz ! tylko zamiast coś usuwać, bierz w komentarz "<!-- -->" żeby potem nie było płaczu.

Opublikowano

Chodziło mi o ten tekst o płaczu :).

Co do tematu, to tak reklama fajnie wygląda i tak jak chciałem dodałem ja po 1 divie, tak to mniej więcej wygląda:

<div class='post entry-content <if test="$post['post']['_repignored'] == 1">imgsize_ignore</if>'><!--Google Start-->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-9975308371338800";
/* Post GBL */
google_ad_slot = "3814242872";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><!--Google End-->
					{$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'>{$this->lang->words['reason_for_edit']} {$post['post']['post_edit_reason']}</span>
							</if>
						</p>
					</if>
				</div>

Teraz napotkałem na problem, w 1 i 2 poście wyświetla się owa reklama, zamiast tylko 1.

post-1961-0-38413800-1292261258_thumb.jp

Natomiast w 3 oraz 4 poście jest puste miejsce 250x250:

post-1961-0-57102600-1292261263_thumb.jp

No i ostatnia kwestia tak jak widać na załączonych obrazkach, tekst postu zaczyna się od lewego dolnego rogu reklamy, zamiast od prawego górnego :)

  • Manager
Opublikowano

Nie zastosowałeś kodu podawanego wyżej. Spróbuj:

<if test="$post['post']['post_count'] == 1">
<!--Google Start-->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-9975308371338800";
/* Post GBL */
google_ad_slot = "3814242872";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><!--Google End-->
</if>

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Opublikowano (edytowane)
<div class='post entry-content <if test="$post['post']['_repignored'] == 1">imgsize_ignore</if>'><if test="$post['post']['post_count'] == 1">
<!--Google Start-->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-9975308371338800";
/* Post GBL */
google_ad_slot = "3814242872";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><!--Google End-->
</if>
					<div class='reklama'>{$post['post']['post']}
					{$post['post']['attachmentHtml']}</div>
					<br />

i tak to wygląda - http://grambolubie.com/topic/2386-nagrywanie-filmow-z-gier/ , a może to źle robię z tą klasą 'reklama'

Edytowane przez esquel
  • Manager
Opublikowano

Ty to widzę kompletnie nie kumasz czaczy. :o

Przecież ten kod jakiś zupełnie jest nie halo.. Tak spróbuj:

<div class='reklama'>
<div class='post entry-content <if test="$post['post']['_repignored'] == 1">imgsize_ignore</if>'><if test="$post['post']['post_count'] == 1">
<!--Google Start-->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-9975308371338800";
/* Post GBL */
google_ad_slot = "3814242872";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><!--Google End-->
</if>
</div>

intermedia - profesjonalne rozwiązania Invision Power Board

---

Chcesz uzyskać szybko i sprawnie pomoc? Uzupełnij wersję i adres w profilu.

Opublikowano (edytowane)

Ty to widzę kompletnie nie kumasz czaczy. :o

Przecież ten kod jakiś zupełnie jest nie halo.. Tak spróbuj:

<div class='reklama'>
<div class='post entry-content <if test="$post['post']['_repignored'] == 1">imgsize_ignore</if>'><if test="$post['post']['post_count'] == 1">
<!--Google Start-->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-9975308371338800";
/* Post GBL */
google_ad_slot = "3814242872";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><!--Google End-->
</if>
</div>

Nie klasa a ID ;)

Po za tym, zacznij diva przed komentem google i skończ po nim, inaczej cały post będzie do prawej strony/.

Edytowane przez macsch15
  • Lubię to 2
Opublikowano (edytowane)

Daje całego diva:

<div class='post entry-content <if test="$post['post']['_repignored'] == 1">imgsize_ignore</if>'><if test="$post['post']['post_count'] == 1">
<div class='reklama'><!--Google Start-->
<script type="text/javascript"><!--
google_ad_client = "ca-pub-9975308371338800";
/* Post GBL */
google_ad_slot = "3814242872";
google_ad_width = 250;
google_ad_height = 250;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script><!--Google End-->
</if>
</div>
					{$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'>{$this->lang->words['reason_for_edit']} {$post['post']['post_edit_reason']}</span>
							</if>
						</p>
					</if>
				</div>

Efekt nie zadowalający: http://grambolubie.com/topic/4924-voicespeakorg-serwery-teamspeak-ventrilo-oraz-mumble/

Średnio mam pojęcie o warstwach :)

EDIT: mówiłeś abym dodał ID tak, to co powiesz na to? :)

post-1961-0-96712800-1292321700_thumb.jp

Edytowane przez esquel
Gość
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • 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ę.