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

ROZWIĄZANY: Daty postów raz jeszcze


Crass

Rekomendowane odpowiedzi

Hej mam taki problem w szablonie

Dodajać nowego posta zmienia mi sie data we we wszystkich teamtach postów już wcześniej napisanych ;/

Dlaczego zmienia w innych postach ? pojecia nie mam,reszta danych (ilość odpowiedzi,kto napisał,jest ok)

20101021-c45macnb9jrgu969r4nsr82xc1.jpg

Kawałek kodu ktory jest odpowiedzialny za wyświetlanie daty

<td class='altrow'>
						<ul class='last_post'>
							<li>
								<a href='{parse url="showtopic={$data['tid']}&view=getlastpost" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['goto_last_post']}'>{parse replacement="f_lastpost"}</a> <a href='{parse url="showtopic={$data['tid']}&view=getlastpost" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['goto_last_post']}'>[b]{parse date="$forum_data['last_post']" format="short"}[/b]</a>
							</li>
							<li>{$this->lang->words['forum_by']} {$data['last_poster']}{parse template="user_popup" group="global" params="$data['last_poster_id'], $data['seo_last_name']"}</li>
						</ul>
					</td>

Odnośnik do komentarza
Udostępnij na innych stronach

{parse js_module="forums"}
<script type="text/javascript">
//<![CDATA[
//Search Setup
ipb.vars['search_type']		= 'forum';
ipb.vars['search_type_id']	= {$this->request['showforum']};
ipb.templates['topic_rename'] = new Template("<input type='text' id='#{inputid}' value='#{value}' class='input_text' maxlength='{$this->settings['topic_title_max_len']}' /> <input type='submit' value='{$this->lang->words['rename_topic_update']}' class='input_submit' id='#{submitid}' /> <a href='#' id='#{cancelid}' class='cancel' title='{$this->lang->words['cancel']}'>{$this->lang->words['cancel']}</a>");
ipb.global.boardMarkers = $H({
	'f_cat_unread': "{parse replacement="f_cat_read"}",
	'f_unread': "{parse replacement="f_read"}",
	'f_pass_unread': "{parse replacement="f_pass_read"}"
});
var markerURL = "{parse url="app=forums&module=ajax&section=markasread&secure_key={$this->member->form_hash}&forumid=" base="public"}"; // Ajax URL so don't use &
//]]>
</script>

<if test="rulesinline:|:$forum_data['show_rules'] == 2">
<div class='message unspecific forum_rules'>
<h3>{$forum_data['rules_title']}</h3>
{$forum_data['rules_text']}
</div>
</if>
<if test="ruleslink:|:$forum_data['show_rules'] == 1">
<div class='message unspecific forum_rules'>
<a href='{parse url="app=forums&module=forums&section=rules&f={$forum_data['id']}" base="public"}' title='{$this->lang->words['view_forum_rules']}'><strong>{$forum_data['rules_title']}</strong></a>
</div>
</if>
<!-- __-SUBFORUMS-__ -->
<if test="hassubforums:|:is_array( $sub_forum_data ) AND count( $sub_forum_data )">
<div class='category_block block_wrap'>
	<h3 class='maintitle'>{$data['name']} {$this->lang->words['sub_forum_title']}</h3>
	<table class='ipb_table' summary="{$this->lang->words['cat_subforums']} '{$data['name']}'">
		<tr class='header'>
			<th scope='col' class='col_c_icon'> </th>
			<th scope='col' class='col_c_forum'>{$this->lang->words['cat_name']}</th>
			<th scope='col' class='col_c_stats stats'>{$this->lang->words['forum_stats']}</th>
			<th scope='col' class='col_c_post'>{$this->lang->words['last_post_info']}</th>
		</tr>
		<!-- / CAT HEADER -->

		<foreach loop="subforums:$sub_forum_data as $_data">
			<if test="subforumdata:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
				{parse striping="catTable" classes="row1,row2"}
				<foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
					<if test="isredirect:|:$forum_data['redirect_on']">
						<tr class='{parse striping="catTable"} redirect_forum'>
							<td class='altrow'>{parse replacement="f_redirect"}</td>
							<td>
								<h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['goto_forum']}'>{$forum_data['name']}</a></h4>
								<p class='desc'>{$forum_data['description']}</p>
							</td>
							<td colspan='2'>
								{$this->lang->words['rd_hits']}: {$forum_data['redirect_hits']}
							</td>
						</tr>
					<else />
						<tr class='{parse striping="catTable"}'>
							<td class='altrow'>
								<a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&module=forums&section=markasread&marktype=forum&forumid={$forum_data['id']}&returntoforumid={$this->request['f']}" base="public"}" title="{$this->lang->words['bi_markread']}" class='forum_marker'>{parse replacement="{$forum_data['img_new_post']}"}</a>

								<script type='text/javascript'>
									ipb.global.registerMarker( 'forum_img_{$forum_data['id']}', "{$forum_data['img_new_post']}", markerURL + "{$forum_data['id']}" );
								</script>
							</td>
							<td>
								<h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['goto_forum']}'>{$forum_data['name']}</a></h4>
								<p class='desc'>{$forum_data['description']}</p>

								<if test="showsubforums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
									<h5 class='hide'>{$this->lang->words['subforums']}</h5>
									<ol class='subforums'>
									<foreach loop="sub_subforums:$forum_data['subforums'] as $__id => $__data">
										<if test="showSubForumsLit:|:$__data[3]"><li class='newposts'><else /><li></if><a href="{parse url="showforum={$__data[0]}" seotitle="{$__data[2]}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$__data[1]}</a></li>
									</foreach>
									</ol>
								</if>
								<!-- Skinnote: Clean up queued stuff -->
								<if test="seequeuedicon:|:$forum_data['_has_queued_and_can_see_icon']">
									<em class='moderated'><a href='{parse url="showforum={$forum_data['id']}&modfilter=all" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}' title='{$this->lang->words['view_unapproved']}'>{parse expression="sprintf( $this->lang->words['f_queued'], $forum_data['queued_topics'], $forum_data['queued_posts'])"}</a></em>
								</if>
							</td>
							<td class='altrow stats'>
								<ul>
									<li>{$forum_data['topics']} {$this->lang->words['topics']}</li>
									<li>{$forum_data['posts']} {$this->lang->words['replies']}</li>
								</ul>
							</td>
							<td>
								<ul class='last_post'>
									<if test="hidelastinfo:|:$forum_data['hide_last_info']">
										<li>{$this->lang->words['f_protected']}</li>
									<else />
										<li><a href='{parse url="showtopic={$forum_data['last_id']}&view=getlastpost" base="public" template="showtopic" seotitle="{$forum_data['seo_last_title']}"}' title='{$this->lang->words['view_last_post']}'>{parse replacement="f_lastpost"}</a> <a href='{parse url="showtopic={$forum_data['last_id']}&view=getlastpost" base="public" template="showtopic" seotitle="{$forum_data['seo_last_title']}"}' title='{$this->lang->words['view_last_post']}'>{parse date="$forum_data['last_post']" format="short"}</a></li>
										<li><strong>{$this->lang->words['in_last_topic']}</strong> {$forum_data['last_topic_title']}</li>
										<li>
											<strong>{$this->lang->words['forum_by']}</strong>
											<if test="lastpostername:|:isset($forum_data['last_poster_name']) AND $forum_data['last_poster_name']">
												<if test="lastposterid:|:$forum_data['last_poster_id']">
													<a href='{parse url="showuser={$forum_data['last_poster_id']}" seotitle="{$forum_data['seo_last_name']}" template="showuser" base="public"}'>{$forum_data['last_poster_name']}</a>{parse template="user_popup" group="global" params="$forum_data['last_poster_id'],$forum_data['seo_last_name']"}
												<else />
													{$this->settings['guest_name_pre']}{$forum_data['last_poster_name']}{$this->settings['guest_name_suf']}
												</if>
											<else />
												{$this->lang->words['f_none']}
											</if>
										</li>
									</if>
								</ul>
							</td>
						</tr>
					</if>
				</foreach>
			</if>
		</foreach>
	</table>
</div>
<br />
</if>
<if test="showtopics:|:$forum_data['sub_can_post']">
<div class='topic_controls'>
	{$forum_data['SHOW_PAGES']}

		<ul class='topic_buttons'>
			<if test="usercanpost:|:$forum_data['_user_can_post']">
				<li><a href='{parse url="module=post&section=post&do=new_post&f={$forum_data['id']}" base="publicWithApp"}' title='{$this->lang->words['topic_start']}' accesskey='s'><img src='{$this->settings['img_url']}/page_white_add.png' alt='{$this->lang->words['topic_start']}' /> {$this->lang->words['topic_start']}</a></li>
			<else />
				<li class='disabled'><span>{$this->lang->words['forum_no_start_topic']}</span></li>
			</if>
			<if test="watchismember:|:$this->memberData['member_id']">
				<if test="stopwatching:|:$this->settings['cpu_watch_update'] AND ( is_array( $this->memberData['_cache'] ) AND is_array( $this->memberData['_cache']['watchedForums'] ) AND in_array( $forum_data['id'], $this->memberData['_cache']['watchedForums'] ) )">
					<li><a href='{parse url="app=core&module=usercp&tab=forums&area=updateWatchForums&do=saveIt&authKey={$this->member->form_hash}&forumIDs[{$forum_data['id']}]=1&trackchoice=unsubscribe&forumReturn={$forum_data['id']}" base="public"}' title='{$this->lang->words['ft_title']}'>{parse replacement="watch_forum_on"} {$this->lang->words['ft_title_stop']}</a></li>
				<else />
					<li><a href='{parse url="app=core&module=usercp&tab=forums&area=watch&do=watch&watch=forum&fid={$forum_data['id']}" base="public"}' title='{$this->lang->words['ft_title']}'>{parse replacement="watch_forum_off"} {$this->lang->words['ft_title']}</a></li>
				</if>				
			</if>
		</ul>
</div>
<div class='category_block block_wrap'>
	<table class='ipb_table topic_list' summary='{$this->lang->words['forum_topic_list']} "{$forum_data['name']}"' id='forum_table'>
		<caption class='maintitle'>
			<span class='main_forum_title'>{$forum_data['name']}</span><span class='desc'><a href='{parse url="app=forums&module=forums&section=markasread&marktype=forum&forumid={$forum_data['id']}&returntoforumid={$forum_data['id']}" base="public"}' title='{$this->lang->words['mark_as_read']}'>({$this->lang->words['mark_as_read']})</a></span></caption>
		<tr class='header'>
			<th scope='col' class='col_f_icon'> </th>
			<th scope='col' class='col_f_topic'>{$this->lang->words['forum_topic']}</th>
			<th scope='col' class='col_f_starter short'>{$this->lang->words['forum_started_by']}</th>
			<th scope='col' class='col_f_views stats'>{$this->lang->words['forum_stats']}</th>
			<th scope='col' class='col_f_post'>{$this->lang->words['forum_last_post_info']}</th>
			<if test="topicsismod:|:$this->memberData['is_mod'] == 1">
				<th scope='col' class='col_f_mod short'><input type='checkbox' id='tmod_all' class='input_check' title='{$this->lang->words['topic_select_all']}' value='1' /></th>
			</if>
		</tr>	
		<!-- ANNOUNCEMENTS -->
		<if test="hasannouncements:|:is_array( $announce_data ) AND count( $announce_data )">
			<foreach loop="announcements:$announce_data as $aid => $adata">
				<tr class='row2 announcement' id='arow_{$adata['announce_id']}'>
					<td class='short altrow'>{parse replacement="t_announcement"}</td>
						<if test="topicsismod:|:$this->memberData['is_mod'] == 1">
							<td colspan='5'>
						<else />
							<td colspan='4'>
						</if>
						<span class='topic_prefix'>{$this->lang->words['announce_row']}</span> 
						<a href="{parse url="showannouncement={$adata['announce_id']}&f={$forum_data['id']}" seotitle="%%{$adata['announce_title']}%%" template="showannouncement" base="public"}" title='{$this->lang->words['view_announcement']}'>{$adata['announce_title']}</a><br />
						<span class='desc'>{$this->lang->words['posted_by']} <strong><a href="{parse url="showuser={$adata['member_id']}" seotitle="{$adata['members_seo_name']}" template="showuser" base="public"}" title='{$this->lang->words['view_profile']}'>{$adata['member_name']}</a> {parse template="user_popup" group="global" params="$adata['member_id'], $adata['members_seo_name']"}</strong>
							<if test="announcedates:|:$adata['announce_start'] AND $adata['announce_start'] != '--'">, {$adata['announce_start']}</if>
						</span>
					</td>
				</tr>
			</foreach>
			<tr class='subhead altbar'>
				<th scope='col' colspan='<if test="endannouncements:|:$this->memberData['is_mod'] == 1">6<else />5</if>'>
					{$this->lang->words['forum_topic_list']}
				</th>
			</tr>
		</if>
		<!-- BEGIN TOPICS -->
		<if test="hastopics:|:is_array( $topic_data ) AND count( $topic_data )">
			{parse striping="forumTable" classes="row1,row2"}
			<foreach loop="topics:$topic_data as $tid => $data">
				<if test="queuedtopic:|:$this->memberData['is_mod'] AND ! $data['approved']">
				<tr class='{parse striping="forumTable"} moderated' id='trow_{$data['tid']}'>
				<else />
				<tr class='{parse striping="forumTable"}' id='trow_{$data['tid']}'>
				</if>
					<td class='short altrow'>                                             <if test="$data['dp30topic_icon'] != '' AND strlen( $data['dp30topic_icon'] ) > 10">
							             <center>{$data['dp30topic_icon']}</center>
							             <else />											
							                                                             <if test="$data['dp30topic_icon'] != '' AND strlen( $data['dp30topic_icon'] ) > 10">
							             <center>{$data['dp30topic_icon']}</center>
							             <else />											
							                {parse replacement="{$data['folder_img']}"}
							             </if>

							             </if>
           </td>
					<td <if test="hasmodlinks:|:$this->memberData['is_mod'] == 1">class='with_mod_links'</if>>
						<if test="topicmoderator:|:$this->memberData['is_mod'] == 1">
							<ul class='topic_moderation right rounded'>
								<li class='t_rename'><a href='{parse url="app=forums&module=moderate&section=moderate&f={$forum_data['id']}&t={$data['tid']}&auth_key={$this->member->form_hash}&do=05" base="public"}' title='{$this->lang->words['topic_rename']}'><img src='{$this->settings['img_url']}/textfield_rename.png' alt='{$this->lang->words['topic_rename']}' title='{$this->lang->words['topic_rename']}' /></a></li>
								<li class='t_delete'><a href='{parse url="app=forums&module=moderate&section=moderate&f={$forum_data['id']}&st={$this->request['st']}&t={$data['real_tid']}&auth_key={$this->member->form_hash}&do=03" base="public"}' title='{$this->lang->words['topic_delete']}'><img src='{$this->settings['img_url']}/delete.png' alt='{$this->lang->words['topic_delete']}' title='{$this->lang->words['topic_delete']}' /></a></li>
							<if test="islink:|:$data['state'] != 'link'">
								<if test="ispinned:|:$data['pinned']">
									<li class='t_pin'><a href='{parse url="app=forums&module=moderate&section=moderate&f={$forum_data['id']}&t={$data['tid']}&st={$this->request['st']}&auth_key={$this->member->form_hash}&do=16&from=forum" base="public"}' title='{$this->lang->words['topic_unpin']}'><img src='{$this->settings['img_url']}/award_delete.png' alt='{$this->lang->words['topic_unpin']} icon' title='{$this->lang->words['topic_unpin']}' /></a></li>
								<else />
									<li class='t_pin'><a href='{parse url="app=forums&module=moderate&section=moderate&f={$forum_data['id']}&t={$data['tid']}&st={$this->request['st']}&auth_key={$this->member->form_hash}&do=15&from=forum" base="public"}' title='{$this->lang->words['topic_pin']}'><img src='{$this->settings['img_url']}/award.png' alt='{$this->lang->words['topic_pin']} icon' title='{$this->lang->words['topic_pin']}' /></a></li>
								</if>
							</if>
							<if test="closedtopic:|:$data['state'] == 'closed' && $other_data['can_open_topics']">
								<li class='t_lock'><a href='{parse url="app=forums&module=moderate&section=moderate&f={$forum_data['id']}&t={$data['tid']}&st={$this->request['st']}&auth_key={$this->member->form_hash}&do=01" base="public"}' title='{$this->lang->words['topic_open']}'><img src='{$this->settings['img_url']}/lock_open.png' alt='{$this->lang->words['topic_open']} icon' title='{$this->lang->words['topic_open']}' /></a></li>
							</if>
							<if test="opentopic:|:$data['state'] == 'open' && $other_data['can_close_topics']">
								<li class='t_lock'><a href='{parse url="app=forums&module=moderate&section=moderate&f={$forum_data['id']}&t={$data['tid']}&st={$this->request['st']}&auth_key={$this->member->form_hash}&do=00" base="public"}' title='{$this->lang->words['topic_close']}'><img src='{$this->settings['img_url']}/lock.png' alt='{$this->lang->words['topic_close']} icon' title='{$this->lang->words['topic_close']}' /></a></li>
							</if>
							</ul>
						</if>
						{$data['prefix']}
						<if test="topicreported:|: isset( $this->memberData['_cache']['report_temp']['post_marker']['topic'][$data['tid']]['gfx'] ) AND $this->memberData['_cache']['report_temp']['post_marker']['topic'][$data['tid']]['gfx'] > 0">
							<a href="{parse url="app=core&module=reports&section=reports&do=findfirst&tid={$data['tid']}&cid={$this->memberData['_cache']['report_temp']['post_marker']['topic'][$data['tid']]['info']['com_id']}" base="public"}"> <img src="{$this->settings['img_url']}/reports/post_alert_{$this->memberData['_cache']['report_temp']['post_marker']['topic'][$data['tid']]['gfx']}.png" alt='{$this->lang->words['icon']}' title='{$this->lang->words['view_reported_posts']}' /> </a>
						</if>
						<if test="gotonewpost:|:$data['go_new_post'] === true"><a href='{parse url="showtopic={$data['tid']}&view=getnewpost" template="showtopic" seotitle="{$data['title_seo']}" base="public"}' title='{$this->lang->words['first_unread_post']}'>{parse replacement="f_newpost"}</a></if> 
						<if test="topichasattach:|:$data['topic_hasattach']">
							<!-- SKINNOTE: This is the link for the attachments popup  -->
							<a href="{parse url="app=forums&module=forums&section=attach&tid={$data['tid']}" base="public"}" title="{parse expression="intval($data['topic_hasattach'])"} {$this->lang->words['topic_attach']}" onclick="return ipb.forums.retrieveAttachments( {$data['tid']} );">{parse replacement="t_attach"}</a>
						</if>
						<if test="istracking:|:! empty($data['trackingTopic'])">{parse replacement="watch_small"}</if>
						<a id="tid-link-{$data['tid']}" href="{parse url="showtopic={$data['tid']}" base="public" template="showtopic" seotitle="{$data['title_seo']}"}" title='{$this->lang->words['topic_started_on']} {$data['start_date']}' class='topic_title'>{$data['title']}</a>
						{$data['_rate_img']}
						<if test="multipages:|:isset( $data['pages'] ) AND is_array( $data['pages'] ) AND count( $data['pages'] )">
							<ul class='mini_pagination'>
							<foreach loop="pages:$data['pages'] as $page">
									<if test="haslastpage:|:$page['last']">
										<li><a href="{parse url="showtopic={$data['tid']}&st={$page['st']}" seotitle="{$data['title_seo']}" template="showtopic" base="public"}" title='{$this->lang->words['topic_goto_page']} {$page['page']}'>{$page['page']} →</a></li>
									<else />
										<li><a href="{parse url="showtopic={$data['tid']}&st={$page['st']}" seotitle="{$data['title_seo']}" template="showtopic" base="public"}" title='{$this->lang->words['topic_goto_page']} {$page['page']}'>{$page['page']}</a></li>
									</if>
							</foreach>
							</ul>
						</if>
						<if test="description:|:$data['description']"><br /><span class='desc'>{$data['description']}</span></if>

					</td>
					<td class='short altrow'>{$data['starter']}{parse template="user_popup" group="global" params="$data['starter_id'], $data['seo_first_name']"}</td>
				<if test="queuedposts:|:$this->memberData['is_mod'] AND $data['_hasqueued']">
					<td class='stats moderated'>
						<ul>
							<li><a href='{parse url="showtopic={$data['tid']}&modfilter=invisible_posts" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['view_uapproved_posts']}'><img src='{$this->settings['img_url']}/bullet_error.png' alt='Icon' /></a>{$data['posts']} <if test="queuedpostslang:|:intval($data['posts']) == 1">{$this->lang->words['reply']}<else />{$this->lang->words['replies']}</if></li>
				<else />
					<td class='stats'>
						<ul>
							<li>{$data['posts']} <if test="replylang:|:intval($data['posts']) == 1">{$this->lang->words['reply']}<else />{$this->lang->words['replies']}</if></li>
				</if>

							<li class='views desc'>{$data['views']} {$this->lang->words['views']}</li>
						</ul>
					</td>
					<td class='altrow'>
						<ul class='last_post'>
							<li>
								<a href='{parse url="showtopic={$data['tid']}&view=getlastpost" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['goto_last_post']}'>{parse replacement="f_lastpost"}</a> <a href='{parse url="showtopic={$data['tid']}&view=getlastpost" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['goto_last_post']}'>{parse date="$forum_data['last_post']" format="short"}</a>
							</li>
							<li>{$this->lang->words['forum_by']} {$data['last_poster']}{parse template="user_popup" group="global" params="$data['last_poster_id'], $data['seo_last_name']"}</li>
						</ul>
					</td>
					<if test="mmicon:|:$this->memberData['is_mod'] == 1 and $inforum == 1">
					<td class='short'>
						<if test="mmtidon:|:$data['tidon'] == 0">
							<input type='checkbox' class='input_check topic_mod' id='tmod_{$data['real_tid']}' />
						<else />
							<input type='checkbox' class='input_check topic_mod' id='tmod_{$data['real_tid']}' checked='checked' />
						</if>
					</td>
					</if>
				</tr>

			</foreach>
		<else />
			<tr> 
				<if test="notopicsspan:|:$this->memberData['is_mod'] == 1">
					<td colspan='6' class='no_messages'>
				<else />
					<td colspan='5' class='no_messages'>
				</if>
					{$this->lang->words['no_topics']}
				</td>
			</tr>
		</if>
	</table>
	<if test="moderationform:|:$this->memberData['is_mod'] == 1">
		<div id='topic_mod' class='moderation_bar rounded with_action clear'>
			<!-- SKINNOTE: Check delete -->
			<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="topicchoice" />
					<input type="hidden" name="st" value="{$this->request['st']}" />
					<input type="hidden" name="f" value="{$forum_data['id']}" />
					<input type="hidden" name="auth_key" value="{$this->member->form_hash}" />
					<input type="hidden" name="modfilter" value="{$this->request['modfilter']}" />
					<input type="hidden" value="{$this->request['selectedtids']}" id='selectedtids' name="selectedtids" />

					<input type='button' id='forum_mod_options' value='{$this->lang->words['forum_management']}' class='input_submit alt left ipbmenu' />
					<ul class='ipbmenu_content' id='forum_mod_options_menucontent'>
						<li><a href='{parse url="app=forums&module=moderate&section=moderate&do=prune_start&f={$forum_data['id']}&auth_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['mod_prumemovetopics']}'>{$this->lang->words['mod_prumemovetopics']}</a></li>
						<li><a href='{parse url="app=forums&module=moderate&section=moderate&do=resync&f={$forum_data['id']}&auth_key={$this->member->form_hash}" base="public"}' title='{$this->lang->words['mod_resync']}'>{$this->lang->words['mod_resync']}</a></li>
						<li><a href='{parse url="showforum={$forum_data['id']}&modfilter=invisible_topics" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}' title='{$this->lang->words['mod_hidden']}'>{$this->lang->words['mod_hidden']}</a></li>
						<li><a href='{parse url="showforum={$forum_data['id']}&modfilter=invisible_posts" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}' title='{$this->lang->words['mod_hidden_posts']}'>{$this->lang->words['mod_hidden_posts']}</a></li>
					</ul>

					<select name="tact" id='mod_tact'>
						<option value="close">{$this->lang->words['cpt_close']}</option>
						<option value="open">{$this->lang->words['cpt_open']}</option>
						<option value="pin">{$this->lang->words['cpt_pin']}</option>
						<option value="unpin">{$this->lang->words['cpt_unpin']}</option>
						<option value="move">{$this->lang->words['cpt_move']}</option>
						<option value="merge">{$this->lang->words['cpt_merge']}</option>
						<option value="delete">{$this->lang->words['cpt_delete']}</option>
						<option value="approve">{$this->lang->words['cpt_approve']}</option>
						<option value="unapprove">{$this->lang->words['cpt_unapprove']}</option>
						<if test="mmdata:|:is_array( $multi_mod_data ) AND count( $multi_mod_data )">
							<option value="-1">------------------------------</option>
							<option value="-1">{$this->lang->words['mm_title']}</option>
							<option value="-1">------------------------------</option>
							<foreach loop="mm:$multi_mod_data as $mm_data">
								<option value="t_{$mm_data[0]}">--  {$mm_data[1]}</option>
							</foreach>
						</if>
					</select> 
					<input type="submit" name="gobutton" value="{$this->lang->words['f_go']}" class="input_submit alt" id='mod_submit' />
				</fieldset>
			</form>
			<script type='text/javascript'>
				$('modform').observe('submit', ipb.forums.submitModForm);
			</script>
		</div>
	</if>
	<div id='forum_filter' class='filter_bar rounded'>
		<span id='show_filters' class='clickable' style='display: none'>{$this->lang->words['filter_options']}</span>
		<form id='filter_form' action="{parse url="showforum={$forum_data['id']}&st={$this->request['st']}&changefilters=1" base="public" seotitle="{$forum_data['name_seo']}" template="showforum"}" method="post">
			<fieldset>
				<label for='topic_filter'>{$this->lang->words['filter_type']}</label> <select name="topicfilter" id='topic_filter' class='input_select'>{$footer_filter['topic_filter']}</select>
				<label for='sort_by'>{$this->lang->words['filter_sort']}</label> <select name="sort_key" id='sort_by' class='input_select'>{$footer_filter['sort_by']}</select>
				<label for='direction'>{$this->lang->words['filter_direction']}</label> <select name="sort_by" id='direction' class='input_select'>{$footer_filter['sort_order']}</select>
				<label for='time_frame'>{$this->lang->words['filter_time']}</label> <select name="prune_day" id='time_frame' class='input_select'>{$footer_filter['sort_prune']}</select>
				<input type='checkbox' value='1' name='remember' class='input_check' id='remember_filter' /> <label for='remember_filter'>{$this->lang->words['remember_options']}</label>
				<input type="submit" value="{$this->lang->words['sort_submit']}" class="input_submit alt" />
			</fieldset>
		</form>
		<script type='text/javascript'>
			if( $('filter_form' ) ){
				$('filter_form').hide();
				$('show_filters').show();
			}
		</script>
	</div>
	<div class='moderation_bar rounded'>
		<form method='post' action='{$this->settings['base_url']}app=core&module=search&do=quick_search&search_filter_app[forums]=1' id='context_search' class='left'>
			<fieldset>
				<input type='hidden' name='type' value='forum' />
				<input type='hidden' name='type_id' value='{$forum_data['id']}' />
				<label for='forum_search'>{$this->lang->words['search_forum']}</label>
				<input type='text' id='forum_search' name='search_term' class='input_text' size='20' tabindex='8' />
				<input type='submit' class='input_submit alt' value='{$this->lang->words['jmp_go']}' />
			</fieldset>
		</form>
		<if test="forumjump:|:$forum_data['FORUM_JUMP']">
			{$forum_data['FORUM_JUMP']}
		</if>
	</div>
</div>



<div class='topic_controls'>
	{$forum_data['SHOW_PAGES']}

	<ul class='topic_buttons'>
		<if test="bottomusercanpost:|:$forum_data['_user_can_post']">
			<li><a href='{parse url="module=post&section=post&do=new_post&f={$forum_data['id']}" base="publicWithApp"}'><img src='{$this->settings['img_url']}/page_white_add.png' alt='{$this->lang->words['topic_start']} Icon' /> {$this->lang->words['topic_start']}</a></li>
		<else />
			<li class='disabled'><span>{$this->lang->words['forum_no_start_topic']}</span></li>
		</if>
	</ul>
</div>


<div id='forum_footer' class='statistics general_box clear clearfix'>
	<div id='forum_legend' class='right'>
		<h2>{$this->lang->words['forum_legend']}</h2>
		<dl>
			<dt class='clear'>{parse replacement="t_unread"}</dt>
			<dd>{$this->lang->words['pm_open_new']}</dd>
			<dt>{parse replacement="t_read"}</dt>
			<dd>{$this->lang->words['pm_open_no']}</dd>
			<dt class='clear'>{parse replacement="t_hot_unread"}</dt>
			<dd>{$this->lang->words['pm_hot_new']}</dd>
			<dt>{parse replacement="t_hot_read"}</dt>
			<dd>{$this->lang->words['pm_hot_no']}</dd>
			<dt class='clear'>{parse replacement="t_poll_unread"}</dt>
			<dd>{$this->lang->words['pm_poll']}</dd>
			<dt>{parse replacement="t_poll_read"}</dt>
			<dd>{$this->lang->words['pm_poll_no']}</dd>
			<dt class='clear'>{parse replacement="t_closed"}</dt>
			<dd>{$this->lang->words['pm_locked']}</dd>
			<dt>{parse replacement="t_moved"}</dt>
			<dd>{$this->lang->words['pm_moved']}</dd>
		</dl>
	</div>				
	<if test="showactiveusers:|:!$this->settings['no_au_forum']">
		<div id='forum_active_users' class='active_users stats_list'>
			<h2>
				{parse expression="sprintf( $this->lang->words['active_users_title'], ($active_user_data['members'] + $active_user_data['guests'] + $active_user_data['anon'] ) )"}<br />
				<span class='desc'>{parse expression="sprintf( $this->lang->words['active_users_detail'], $active_user_data['members'], $active_user_data['guests'], $active_user_data['anon'] )"}</span>
			</h2>
			<ul>
				<if test="hasactiveusers:|:is_array( $active_user_data['names'] ) AND count( $active_user_data['names'] )">
					<foreach loop="activeusers:$active_user_data['names'] as $p => $r">
				<li>{$r['p_start']}<if test="aumemberid:|:$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="aumidend:|:$r['id']"></a></if>{$r['p_end']}<if test="auaddcomma:|:$p + 1 != count( $active_user_data['names'] )">,</if></li>
					</foreach>
				</if>
			</ul>
		</div>
	</if>
	<if test="hasmoderators:|:is_array( $mod_data ) AND count( $mod_data )">
		<div id='forum_led_by' class='active_users stats_list'>
			<h2>{$this->lang->words['forum_led_by']}</h2>
			<ul>
				<foreach loop="moderators:$mod_data as $p => $r">
					<li><a href='{$r[0]}' title='{$this->lang->words['view_profile']}'>{$r[1]}</a><if test="moderatorpopup:|:$r[2]">{parse template="user_popup" group="global" params="$r[2], IPSText::makeSeoTitle( $r[1] )"}</if><if test="moderatorscomma:|:$p + 1 != count( $mod_data )">,</if></li>
				</foreach>
			</ul>
		</div>
	</if>
</div>
<br class='clear' />
</if>

Odnośnik do komentarza
Udostępnij na innych stronach

Kawałek kodu ktory jest odpowiedzialny za wyświetlanie daty

<td class='altrow'>
						<ul class='last_post'>
							<li>
								<a href='{parse url="showtopic={$data['tid']}&view=getlastpost" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['goto_last_post']}'>{parse replacement="f_lastpost"}</a> <a href='{parse url="showtopic={$data['tid']}&view=getlastpost" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['goto_last_post']}'>[b]{parse date="$forum_data['last_post']" format="short"}[/b]</a>
							</li>
							<li>{$this->lang->words['forum_by']} {$data['last_poster']}{parse template="user_popup" group="global" params="$data['last_poster_id'], $data['seo_last_name']"}</li>
						</ul>
					</td>

Zamień:

<a href='{parse url="showtopic={$data['tid']}&view=getlastpost" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['goto_last_post']}'>{parse date="$forum_data['last_post']" format="short"}</a>

na:

<a href='{parse url="showtopic={$data['tid']}&view=getlastpost" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['goto_last_post']}'>{parse date="$data['last_post']" format="short"}</a>

To wyrażenie powinno występować dwukrotnie, zmienić tylko drugie.

:rolleyes:

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

Problem ROZWIĄZANY. Jeśli są jakiekolwiek wątpliwości, pytania proszę o założenie nowego tematu.

Wszelkie uzasadnione reklamacje/pretensje/sugestie/rady przyjmuje ekipa forum.

intermedia - profesjonalne rozwiązania Invision Power Board

---

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

Odnośnik do komentarza
Udostępnij na innych stronach

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ę.