[Помощь] цифры вместо даты

Статус
В этой теме нельзя размещать новые ответы.

_SiG_

Постоялец
Регистрация
24 Янв 2009
Сообщения
53
Реакции
1
Прошу помощи с шаблонами для ipb 3.x
Ставлю шаблон warrior - вместо даты стоят цифры
Код:
1274958479
Т.Е. время в непереведенном формате
На всех остальных шаблонах
Код:
27 May 2010 - 14:07
 
Все зло в шаблоне.
Список тем форума - forumIndexTemplate
Проверьте содержимое ul class='last_post'
Должно быть
Код:
<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']}&amp;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']}&amp;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="LONG"}</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>

Так же проверьте шаблон Список Форумов - Список форумов
Точно также, Вам нужен вот этот код
Код:
<ul class='last_post'>
												<if test="hideLastInfo:|:$forum_data['hide_last_info']">
													<li>{$this->lang->words['f_protected']}</li>
												<else />
													<if test="hideDateUrl:|:$forum_data['_hide_last_date']">
														<li>{parse date="$forum_data['last_post']" format="LONG"}</li>
													<else />
														<li><a href='{parse url="showtopic={$forum_data['last_id']}&amp;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']}&amp;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="LONG"}</a></li>
													</if>
													<li><strong>{$this->lang->words['in']}</strong> {$forum_data['last_topic_title']}</li>
													<li>
														<strong>{$this->lang->words['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']}" template="showuser" seotitle="{$forum_data['seo_last_name']}" base="public"}' title='{$this->lang->words['view_profile']}'>{$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>
Если то что в вашем шаблоне отличается - замените)
 
Спасибо за ответ, с большинством шаблонов помогло. Но вот основной мой не хочет никак(
На главной все исправилось, уровнем ниже - все так же
Вот код
Код:
{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 &amp;
//]]>
</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&amp;module=forums&amp;section=rules&amp;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']}'">
			<!-- / 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' width="1%">{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' width="25%">
									{$this->lang->words['rd_hits']}: {$forum_data['redirect_hits']}
								</td>
							</tr>
						<else />
							<tr class='{parse striping="catTable"}'>
								<td class='altrow' width="1%">
									<a id='forum_img_{$forum_data['id']}' href="{parse url="app=forums&amp;module=forums&amp;section=markasread&amp;marktype=forum&amp;forumid={$forum_data['id']}&amp;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 width="40%">
									<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']}&amp;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' width="14%">
									<ul>
										<li><strong>{$forum_data['topics']}</strong> {$this->lang->words['topics']}</li>
										<li><strong>{$forum_data['posts']}</strong> {$this->lang->words['replies']}</li>
									</ul>
								</td>
								<td width="25%">
									<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']}&amp;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']}&amp;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="LONG"}</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&amp;section=post&amp;do=new_post&amp;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&amp;module=usercp&amp;tab=forums&amp;area=updateWatchForums&amp;do=saveIt&amp;authKey={$this->member->form_hash}&amp;forumIDs[{$forum_data['id']}]=1&amp;trackchoice=unsubscribe&amp;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&amp;module=usercp&amp;tab=forums&amp;area=watch&amp;do=watch&amp;watch=forum&amp;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&amp;module=forums&amp;section=markasread&amp;marktype=forum&amp;forumid={$forum_data['id']}&amp;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'>&nbsp;</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>&nbsp;
							<a href="{parse url="showannouncement={$adata['announce_id']}&amp;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'>{parse replacement="{$data['folder_img']}"}</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&amp;module=moderate&amp;section=moderate&amp;f={$forum_data['id']}&amp;t={$data['tid']}&amp;auth_key={$this->member->form_hash}&amp;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>
								<if test="$this->memberData['g_is_supmod'] == 1 || $this->memberData['forumsModeratorData'][ $forum_data['id'] ]['delete_topic']">
									<li class='t_delete'><a href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum_data['id']}&amp;st={$this->request['st']}&amp;t={$data['real_tid']}&amp;auth_key={$this->member->form_hash}&amp;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>
								<if test="islink:|:$data['state'] != 'link'">
									<if test="ispinned:|:$data['pinned'] && ($this->memberData['g_is_supmod'] OR $this->memberData['forumsModeratorData'][ $forum_data['id'] ]['pin_topic'])">
										<li class='t_pin'><a href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum_data['id']}&amp;t={$data['tid']}&amp;st={$this->request['st']}&amp;auth_key={$this->member->form_hash}&amp;do=16&amp;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 />
										<if test="issupermod:|:$this->memberData['g_is_supmod'] OR $this->memberData['forumsModeratorData'][ $forum_data['id'] ]['unpin_topic']">
											<li class='t_pin'><a href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum_data['id']}&amp;t={$data['tid']}&amp;st={$this->request['st']}&amp;auth_key={$this->member->form_hash}&amp;do=15&amp;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>
								<if test="closedtopic:|:$data['state'] == 'closed' && $other_data['can_open_topics']">
									<li class='t_lock'><a href='{parse url="app=forums&amp;module=moderate&amp;section=moderate&amp;f={$forum_data['id']}&amp;t={$data['tid']}&amp;st={$this->request['st']}&amp;auth_key={$this->member->form_hash}&amp;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&amp;module=moderate&amp;section=moderate&amp;f={$forum_data['id']}&amp;t={$data['tid']}&amp;st={$this->request['st']}&amp;auth_key={$this->member->form_hash}&amp;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&amp;module=reports&amp;section=reports&amp;do=findfirst&amp;tid={$data['tid']}&amp;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']}&amp;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&amp;module=forums&amp;section=attach&amp;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']}&amp;st={$page['st']}" seotitle="{$data['title_seo']}" template="showtopic" base="public"}" title='{$this->lang->words['topic_goto_page']} {$page['page']}'>{$page['page']} &rarr;</a></li>
										<else />
											<li><a href="{parse url="showtopic={$data['tid']}&amp;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']}&amp;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']}&amp;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']}&amp;view=getlastpost" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['goto_last_post']}'>{$data['last_post']}</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&amp;module=moderate&amp;section=moderate&amp;do=prune_start&amp;f={$forum_data['id']}&amp;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&amp;module=moderate&amp;section=moderate&amp;do=resync&amp;f={$forum_data['id']}&amp;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']}&amp;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']}&amp;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>&nbsp;
						<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']}&amp;st={$this->request['st']}&amp;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&amp;module=search&amp;do=quick_search&amp;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&amp;section=post&amp;do=new_post&amp;f={$forum_data['id']}" base="publicWithApp"}' title='{$this->lang->words['topic_start']}'><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>
 
Проверяй тут;
Код:
									<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']}&amp;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']}&amp;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="LONG"}</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>

И тут:
Код:
							<ul class='last_post'>
								<li>
									<a href='{parse url="showtopic={$data['tid']}&amp;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']}&amp;view=getlastpost" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['goto_last_post']}'>{$data['last_post']}</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>

Сначала пробуй первое заменить на то что я давал. Если не поможет - то сравни переменные во втором куске и по необходимости исправь
 
Спасибо, почему то редактор не захотел находить вторую {$data['last_post']}
 
Прошу помощи с шаблонами для ipb 3.x
Ставлю шаблон warrior - вместо даты стоят цифры
Код:
1274958479
Т.Е. время в непереведенном формате
На всех остальных шаблонах
Код:
27 May 2010 - 14:07
Этот шаблон на другую версию IPB, наверное...
Я тоже Protastic 3.0 поставил на 3.0.5 а как перешёл на 3.1.2 так цифры и появились вместо времени. Эти цифры: время секундах, прошедшее с полночи 1 января 1970 года - UNIX-время или POSIX-время (англ. Unix time)
 
Статус
В этой теме нельзя размещать новые ответы.
Назад
Сверху