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

(DP30) Forum Icons


DawPi

Rekomendowane odpowiedzi

Witam, gdy chcę wprowadzić zmiany w szablonie boardindex jak każe instrukcja wywala mi taki błąd w okienku:

W szablonie pojawił się błąd, spowodowany zazwyczaj źle sformatowanym kodem PHP. Proszę poprawić błąd i zapisać ponownie.

Oto mój kod:

[long]

<div id='footer_utilities'  class='clearfix clear rounded'> 
			<center><script type="text/javascript"><!--
google_ad_client = "ca-pub-2408787355061167";
/* krzysio */
google_ad_slot = "3356866942";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> </center></div> <br /><br />

{parse js_module="board"}
{parse js_module="hooks"}
{parse variable="sidebar_enabled" default="$show_side_blocks"}
<script type='text/javascript'>
//<![CDATA[
ipb.global.boardMarkers = ({
	'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&i=1" base="public"}"; // Ajax URL so don't use &
//]]>
</script>



<if test="sideBarEnabled:|:$this->templateVars['sidebar_enabled']">
<a href='{parse url="app=forums&module=extras&section=toggle&secure_key={$this->member->form_hash}" base="public"}' id='close_sidebar'  class='sidebar_toggle rounded' <if test="sidebaropen:|:IPSCookie::get('hide_sidebar') != '1'">style='display: none'</if>><img src='{$this->settings['img_url']}/sidebar_close.png' alt='{$this->lang->words['sidebar_close']}' /></a>
<a href='{parse url="app=forums&module=extras&section=toggle&secure_key={$this->member->form_hash}" base="public"}' id='open_sidebar' class='sidebar_toggle rounded' <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>><img src='{$this->settings['img_url']}/sidebar_open.png' alt='{$this->lang->words['sidebar_open']}' /></a>
</if>
<h2 class='hide'>{$this->lang->words['board_index_title']}</h2>
<div id='board_index' class='clearfix'>
<if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">
	<div id='index_stats' class='right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>
		<foreach loop="side_blocks:$side_blocks as $block">
			{$block}
		</foreach>
	</div>
</if>


<div id='categories' class='<if test="nosidebar:|:IPSCookie::get('hide_sidebar') == '1' || !$this->templateVars['sidebar_enabled']">no_sidebar</if> clearfix'>
	<if test="latestNews:|:is_array($news_data) AND count($news_data)">
		<div id='latest_news' class='row2'><strong>{$this->lang->words['newslink']}</strong> <a href='{parse url="showtopic={$news_data['id']}" template="showtopic" seotitle="{$news_data['seo_title']}" base="public"}' title='{$this->lang->words['newslink']}'>{$news_data['title']}</a></div>
	</if>



<!-- CATS AND FORUMS -->
	<if test="cats_forums:|:is_array( $cat_data ) AND count( $cat_data )">
		<foreach loop="categories:$cat_data as $_data">
			<if test="cat_has_forums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
				{parse striping="catTable" classes="row1,row2"}
				<div class='category_block block_wrap'>
					<h3 id='category_{$_data['cat_data']['id']}' class='maintitle'><a class='toggle right' href='#' title="{$this->lang->words['toggle_cat']}">{$this->lang->words['toggle_cat']}</a> <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['view_cat']}'>{$_data['cat_data']['name']}</a></h3>
					<table class='ipb_table' summary="{$this->lang->words['forums_in_cat']} '{$_data['cat_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['stats']}</th>
							<th scope='col' class='col_c_post'>{$this->lang->words['last_post_info']}</th>
						</tr>
						<!-- / CAT HEADER -->
						<foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
							<if test="forumRedirect:|:$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['go_to_forum']}'>{$forum_data['name']}</a></h4>
										<p class='desc'>{$forum_data['description']}</p>
									</td>
									<td colspan='2'>
										{$this->lang->words['rd_hits']}: {parse format_number="$forum_data['redirect_hits']"}
									</td>
								</tr>
							<else />
								<tr class='{parse striping="catTable"}'>
									<td class='altrow'>
										<if test="unreadicon:|:$forum_data['img_new_post'] != 'f_locked' && strstr( $forum_data['img_new_post'], 'unread' )">
											<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']}&i=1" base="public"}" title="{$this->lang->words['bi_markread']}" class='forum_marker'>
												                                             <if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">
							             <center><img src='{$this->settings['board_url']}/public/forumicons/{$forum_data['icon']}.gif' /></center>
 								             <else />											
                                          <if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">
							             <center><img src='{$this->settings['board_url']}/public/forumicons/{$forum_data['icon']}.gif' /></center>
								             <else />											
						                {parse replacement="{$forum_data['img_new_post']}"}
																             </if>
           			</a>

											<script type='text/javascript'>
												ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" );
											</script>
										<else />
																							<if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">
	<center><img src='{$this->settings['board_url']}/public/forumicons/{$forum_data['icon']}_off.gif' /></center>
													<else />
											{parse replacement="{$forum_data['img_new_post']}"}										
											</if>													
    													</if>

									</td>
									<td>
										<h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['go_to_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' id='subforums_{$forum_data['id']}'>
											<foreach loop="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="hasQueuedAndCanSeeIcon:|:!empty($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 />
												<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']}&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="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>
									</td>
								</tr>
							</if>
						</foreach>
					</table>
				</div>
			</if>
		</foreach>
	</if>
</div>
</div>
<ul id='stat_links' class='filter_bar rounded'>
<li><a href="{parse url="app=core&module=search&do=active" base="public"}" title="{$this->lang->words['today_active_cont']}">{$this->lang->words['new_active_cont']}</a></li>
<li><a href="{parse url="app=forums&module=extras&section=stats&do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a></li>
<li><a href="{parse url="app=forums&module=extras&section=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a></li>
<li><a href="{parse url="app=members&module=list&max_results=20&sort_key=posts&sort_order=desc&filter=ALL" base="public" seotitle="false"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a></li>
</ul>
<div id='board_statistics' class='statistics general_box clearfix'>
<if test="showTotals:|:$this->settings['show_totals']">
	<div id='stats'>
		<h2>{$this->lang->words['board_stats']}</h2>
		<dl>
			<dt>{$this->lang->words['total_posts']}</dt>
			<dd>{$stats['info']['total_posts']}</dd>
			<dt>{$this->lang->words['total_members']}</dt>
			<dd>{$stats['info']['mem_count']}</dd>
			<dt>{$this->lang->words['newest_member']}</dt>
			<dd><a href='{$stats['info']['last_mem_link']}' title='{$this->lang->words['view_profile']}'>{$stats['info']['last_mem_name']}</a>{parse template="user_popup" group="global" params="$stats['info']['last_mem_id'],$stats['info']['last_mem_seo']"} </dd>
			<dt>{$this->lang->words['online_at_once']}</dt>
			<dd>{$stats['info']['most_online']}<br /><span class='extra'>{$stats['info']['most_time']}</span></dd>
		</dl>
	</div>
</if>
<if test="showActive:|:$this->settings['show_active']">
	<div id='active_users' class='stats_list'>
		<h2>
			{$stats['TOTAL']} {$this->lang->words['active_users_text']} <span>{$this->lang->words['active_users']}</span><br />
			<span class='desc'>{parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"} | {$this->lang->words['show_by']}: <a href='{parse url="app=members&module=online&sort_order=desc" base="public"}'>{$this->lang->words['oul_click']}</a> {$this->lang->words['or']} <a href='{parse url="app=members&module=online&sort_key=name&sort_order=asc&show_mem=reg" base="public"}'>{$this->lang->words['oul_name']}</a></span>
		</h2>
		<if test="activeNames:|:count($stats['NAMES'])">
			<p>
				<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>					
			</p>
		</if>
	</div>
</if>
<if test="calendarEventsOuter:|:$calendar_events">
<div id='cal_events' class='stats_list'>
	<h2>{$this->lang->words['upcoming_events']}</h2>
	<if test="calendarEventsInner:|:is_array( $calendar_events )">
	<div id='namee'> 	<p>
			<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $calendar_events )"}</span>

		</p>
	<else />
		<p>{$calendar_events}</p>
	</div></if>
</div>
</if>

<if test="birthdays:|:$birthdays !== FALSE AND is_array( $birthdays['users'] ) AND count( $birthdays['users'] )">
	<div id='cal_bdays' class='stats_list'>
		<h2>{$birthdays['count']} {$this->lang->words['birthdays_today']}</h2>
		<p>
			<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $birthdays['users'] )"}</span>					
		</p>
	</div>
<else />
	<if test="showBirthdaysAlways:|:$this->settings['show_birthdays'] AND !$this->settings['autohide_bday']">
		<div id='cal_bdays' class='stats_list'>
			<h2>0 {$this->lang->words['birthdays_today']}</h2>
			<p>{$this->lang->words['no_birth_users']}</p>
		</div>
	</if>
</if>

</div>
<if test="autodst:|:$this->memberData['members_auto_dst'] == 1 AND $this->settings['time_dst_auto_correction']">
<script type='text/javascript'>
ipb.vars['dst_on']	= parseInt("{$this->memberData['dst_in_use']}");

ipb.board.checkDST();
</script>
</if>

[/long]

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

Uh, trochę tam namieszane. Cofnij te zmiany i wklej bit skina bez Twoich edycji. Zedytuję Ci go.

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

Dzięki. :*

[long]

<div id='footer_utilities'  class='clearfix clear rounded'> 
			<center><script type="text/javascript"><!--
google_ad_client = "ca-pub-2408787355061167";
/* krzysio */
google_ad_slot = "3356866942";
google_ad_width = 728;
google_ad_height = 90;
//-->
</script>
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script> </center></div> <br /><br />

{parse js_module="board"}
{parse js_module="hooks"}
{parse variable="sidebar_enabled" default="$show_side_blocks"}
<script type='text/javascript'>
//<![CDATA[
ipb.global.boardMarkers = ({
	'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&i=1" base="public"}"; // Ajax URL so don't use &
//]]>
</script>



<if test="sideBarEnabled:|:$this->templateVars['sidebar_enabled']">
<a href='{parse url="app=forums&module=extras&section=toggle&secure_key={$this->member->form_hash}" base="public"}' id='close_sidebar'  class='sidebar_toggle rounded' <if test="sidebaropen:|:IPSCookie::get('hide_sidebar') != '1'">style='display: none'</if>><img src='{$this->settings['img_url']}/sidebar_close.png' alt='{$this->lang->words['sidebar_close']}' /></a>
<a href='{parse url="app=forums&module=extras&section=toggle&secure_key={$this->member->form_hash}" base="public"}' id='open_sidebar' class='sidebar_toggle rounded' <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>><img src='{$this->settings['img_url']}/sidebar_open.png' alt='{$this->lang->words['sidebar_open']}' /></a>
</if>
<h2 class='hide'>{$this->lang->words['board_index_title']}</h2>
<div id='board_index' class='clearfix'>
<if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">
	<div id='index_stats' class='right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>
		<foreach loop="side_blocks:$side_blocks as $block">
			{$block}
		</foreach>
	</div>
</if>


<div id='categories' class='<if test="nosidebar:|:IPSCookie::get('hide_sidebar') == '1' || !$this->templateVars['sidebar_enabled']">no_sidebar</if> clearfix'>
	<if test="latestNews:|:is_array($news_data) AND count($news_data)">
		<div id='latest_news' class='row2'><strong>{$this->lang->words['newslink']}</strong> <a href='{parse url="showtopic={$news_data['id']}" template="showtopic" seotitle="{$news_data['seo_title']}" base="public"}' title='{$this->lang->words['newslink']}'>{$news_data['title']}</a></div>
	</if>



<!-- CATS AND FORUMS -->
	<if test="cats_forums:|:is_array( $cat_data ) AND count( $cat_data )">
		<foreach loop="categories:$cat_data as $_data">
			<if test="cat_has_forums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
				{parse striping="catTable" classes="row1,row2"}
				<div class='category_block block_wrap'>
					<h3 id='category_{$_data['cat_data']['id']}' class='maintitle'><a class='toggle right' href='#' title="{$this->lang->words['toggle_cat']}">{$this->lang->words['toggle_cat']}</a> <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['view_cat']}'>{$_data['cat_data']['name']}</a></h3>
					<table class='ipb_table' summary="{$this->lang->words['forums_in_cat']} '{$_data['cat_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['stats']}</th>
							<th scope='col' class='col_c_post'>{$this->lang->words['last_post_info']}</th>
						</tr>
						<!-- / CAT HEADER -->
						<foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
							<if test="forumRedirect:|:$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['go_to_forum']}'>{$forum_data['name']}</a></h4>
										<p class='desc'>{$forum_data['description']}</p>
									</td>
									<td colspan='2'>
										{$this->lang->words['rd_hits']}: {parse format_number="$forum_data['redirect_hits']"}
									</td>
								</tr>
							<else />
								<tr class='{parse striping="catTable"}'>
									<td class='altrow'>
										<if test="unreadicon:|:$forum_data['img_new_post'] != 'f_locked' && strstr( $forum_data['img_new_post'], 'unread' )">
											<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']}&i=1" base="public"}" title="{$this->lang->words['bi_markread']}" class='forum_marker'>
												                                             <if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">
							             <center><img src='{$this->settings['board_url']}/public/forumicons/{$forum_data['icon']}.gif' /></center>
							             <else />											
							                {parse replacement="{$forum_data['img_new_post']}"}

								</if>			</a>

											<script type='text/javascript'>
												ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" );
											</script>
										<else />
											{parse replacement="{$forum_data['img_new_post']}"}
										</if>
									</td>
									<td>
										<h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['go_to_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' id='subforums_{$forum_data['id']}'>
											<foreach loop="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="hasQueuedAndCanSeeIcon:|:!empty($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 />
												<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']}&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="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>
									</td>
								</tr>
							</if>
						</foreach>
					</table>
				</div>
			</if>
		</foreach>
	</if>
</div>
</div>
<ul id='stat_links' class='filter_bar rounded'>
<li><a href="{parse url="app=core&module=search&do=active" base="public"}" title="{$this->lang->words['today_active_cont']}">{$this->lang->words['new_active_cont']}</a></li>
<li><a href="{parse url="app=forums&module=extras&section=stats&do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a></li>
<li><a href="{parse url="app=forums&module=extras&section=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a></li>
<li><a href="{parse url="app=members&module=list&max_results=20&sort_key=posts&sort_order=desc&filter=ALL" base="public" seotitle="false"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a></li>
</ul>
<div id='board_statistics' class='statistics general_box clearfix'>
<if test="showTotals:|:$this->settings['show_totals']">
	<div id='stats'>
		<h2>{$this->lang->words['board_stats']}</h2>
		<dl>
			<dt>{$this->lang->words['total_posts']}</dt>
			<dd>{$stats['info']['total_posts']}</dd>
			<dt>{$this->lang->words['total_members']}</dt>
			<dd>{$stats['info']['mem_count']}</dd>
			<dt>{$this->lang->words['newest_member']}</dt>
			<dd><a href='{$stats['info']['last_mem_link']}' title='{$this->lang->words['view_profile']}'>{$stats['info']['last_mem_name']}</a>{parse template="user_popup" group="global" params="$stats['info']['last_mem_id'],$stats['info']['last_mem_seo']"} </dd>
			<dt>{$this->lang->words['online_at_once']}</dt>
			<dd>{$stats['info']['most_online']}<br /><span class='extra'>{$stats['info']['most_time']}</span></dd>
		</dl>
	</div>
</if>
<if test="showActive:|:$this->settings['show_active']">
	<div id='active_users' class='stats_list'>
		<h2>
			{$stats['TOTAL']} {$this->lang->words['active_users_text']} <span>{$this->lang->words['active_users']}</span><br />
			<span class='desc'>{parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"} | {$this->lang->words['show_by']}: <a href='{parse url="app=members&module=online&sort_order=desc" base="public"}'>{$this->lang->words['oul_click']}</a> {$this->lang->words['or']} <a href='{parse url="app=members&module=online&sort_key=name&sort_order=asc&show_mem=reg" base="public"}'>{$this->lang->words['oul_name']}</a></span>
		</h2>
		<if test="activeNames:|:count($stats['NAMES'])">
			<p>
				<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>					
			</p>
		</if>
	</div>
</if>
<if test="calendarEventsOuter:|:$calendar_events">
<div id='cal_events' class='stats_list'>
	<h2>{$this->lang->words['upcoming_events']}</h2>
	<if test="calendarEventsInner:|:is_array( $calendar_events )">
	<div id='namee'> 	<p>
			<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $calendar_events )"}</span>

		</p>
	<else />
		<p>{$calendar_events}</p>
	</div></if>
</div>
</if>

<if test="birthdays:|:$birthdays !== FALSE AND is_array( $birthdays['users'] ) AND count( $birthdays['users'] )">
	<div id='cal_bdays' class='stats_list'>
		<h2>{$birthdays['count']} {$this->lang->words['birthdays_today']}</h2>
		<p>
			<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $birthdays['users'] )"}</span>					
		</p>
	</div>
<else />
	<if test="showBirthdaysAlways:|:$this->settings['show_birthdays'] AND !$this->settings['autohide_bday']">
		<div id='cal_bdays' class='stats_list'>
			<h2>0 {$this->lang->words['birthdays_today']}</h2>
			<p>{$this->lang->words['no_birth_users']}</p>
		</div>
	</if>
</if>

</div>
<if test="autodst:|:$this->memberData['members_auto_dst'] == 1 AND $this->settings['time_dst_auto_correction']">
<script type='text/javascript'>
ipb.vars['dst_on']	= parseInt("{$this->memberData['dst_in_use']}");

ipb.board.checkDST();
</script>
</if>

[/long]

Odnośnik do komentarza
Udostępnij na innych stronach

Tu jest całkiem czysty, bez moich ingerencji.

[long]

{parse js_module="board"}
{parse js_module="hooks"}
{parse variable="sidebar_enabled" default="$show_side_blocks"}
<script type='text/javascript'>
//<![CDATA[
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}&i=1&forumid=" base="public"}"; // Ajax URL so don't use &
//]]>
</script>

	<if test="latestNews:|:is_array($news_data) AND count($news_data)">
		<div id='latest_news' class='row2'><strong>{$this->lang->words['newslink']}</strong> <a href='{parse url="showtopic={$news_data['id']}" template="showtopic" seotitle="{$news_data['seo_title']}" base="public"}' title='{$this->lang->words['newslink']}'>{$news_data['title']}</a></div>
	</if>


<if test="sideBarEnabled:|:$this->templateVars['sidebar_enabled']">
<a href='{parse url="app=forums&module=extras&section=toggle" base="public"}' id='close_sidebar'  class='sidebar_toggle rounded' <if test="sidebaropen:|:IPSCookie::get('hide_sidebar') != '1'">style='display: none'</if>><img src='{$this->settings['img_url']}/sidebar_close.png' alt='{$this->lang->words['sidebar_close']}' /></a>
<a href='{parse url="app=forums&module=extras&section=toggle" base="public"}' id='open_sidebar' class='sidebar_toggle rounded' <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>><img src='{$this->settings['img_url']}/sidebar_open.png' alt='{$this->lang->words['sidebar_open']}' /></a>
</if>
<h2 class='hide'>{$this->lang->words['board_index_title']}</h2>
<div id='board_index' class='clearfix'>
<if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">
	<div id='index_stats' class='right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>
		<foreach loop="side_blocks:$side_blocks as $block">
			{$block}
		</foreach>
	</div>
</if>


<div id='categories' class='<if test="nosidebar:|:IPSCookie::get('hide_sidebar') == '1' || !$this->templateVars['sidebar_enabled']">no_sidebar</if> clearfix'>

<!-- CATS AND FORUMS -->
	<if test="cats_forums:|:is_array( $cat_data ) AND count( $cat_data )">
		<foreach loop="categories:$cat_data as $_data">
			<if test="cat_has_forums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
				{parse striping="catTable" classes="row1,row2"}
				<div class='category_block block_wrap'>
					<h3 id='category_{$_data['cat_data']['id']}' class='maintitle'><a class='toggle right' href='#' title='{$this->lang->words['toggle_cat']}'>{$this->lang->words['toggle_cat']}</a> <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['view_cat']}'>{$_data['cat_data']['name']}</a></h3>
					<table class='ipb_table' summary="{$this->lang->words['forums_in_cat']} '{$_data['cat_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['stats']}</th>
							<th scope='col' class='col_c_post'>{$this->lang->words['last_post_info']}</th>
						</tr>
						<!-- / CAT HEADER -->
						<foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
							<if test="forumRedirect:|:$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['go_to_forum']}'>{$forum_data['name']}</a></h4>
										<p class='desc'>{$forum_data['description']}</p>
									</td>
									<td colspan='2'>
										{$this->lang->words['rd_hits']}: {parse format_number="$forum_data['redirect_hits']"}
									</td>
								</tr>
							<else />
								<tr class='{parse striping="catTable"}'>
									<td class='altrow'>
										<!-- SKINNOTE: this URL is wrong, needs updating -->
										<if test="unreadicon:|:$forum_data['img_new_post'] != 'f_locked' && strstr( $forum_data['img_new_post'], 'unread' )">
											<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']}&i=1" 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>
										<else />
											{parse replacement="{$forum_data['img_new_post']}"}
										</if>
									</td>
									<td>
										<h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['go_to_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="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="hasQueuedAndCanSeeIcon:|:!empty($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 />
												<if test="hideDateUrl:|:$forum_data['_hide_last_date']">
													<li>{$forum_data['last_post']}</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']}'>{$forum_data['last_post']}</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>
									</td>
								</tr>
							</if>
						</foreach>
					</table>
				</div>
			</if>
		</foreach>
	</if>
</div>
</div>
<ul id='stat_links' class='filter_bar rounded'>
<li><a href="{parse url="app=core&module=search&do=active" base="public"}" title="{$this->lang->words['today_active_cont']}">{$this->lang->words['new_active_cont']}</a></li>
<li><a href="{parse url="app=forums&module=extras&section=stats&do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a></li>
<li><a href="{parse url="app=forums&module=extras&section=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a></li>
<li><a href="{parse url="app=members&section=view&module=list&max_results=20&sort_key=posts&sort_order=desc&filter=ALL" base="public"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a></li>
</ul>
<div id='board_statistics' class='statistics general_box clearfix'>
<if test="showTotals:|:$this->settings['show_totals']">
	<div id='stats'>
		<h2>{$this->lang->words['board_stats']}</h2>
		<dl>
			<dt>{$this->lang->words['total_posts']}</dt>
			<dd>{$stats['info']['total_posts']}</dd>
			<dt>{$this->lang->words['total_members']}</dt>
			<dd>{$stats['info']['mem_count']}</dd>
			<dt>{$this->lang->words['newest_member']}</dt>
			<dd><a href='{$stats['info']['last_mem_link']}' title='{$this->lang->words['view_profile']}'>{$stats['info']['last_mem_name']}</a>{parse template="user_popup" group="global" params="$stats['info']['last_mem_id'],$stats['info']['last_mem_seo']"} </dd>
			<dt>{$this->lang->words['online_at_once']}</dt>
			<dd>{$stats['info']['most_online']}<br /><span class='extra'>{$stats['info']['most_time']}</span></dd>
		</dl>
	</div>
</if>
<if test="showActive:|:$this->settings['show_active']">
	<div id='active_users' class='stats_list'>
		<h2>
			{$stats['TOTAL']} {$this->lang->words['active_users_text']} <span>{$this->lang->words['active_users']}</span><br />
			<span class='desc'>{$stats['MEMBERS']} {$this->lang->words['members']}, {$stats['GUESTS']} {$this->lang->words['guests']}, {$stats['ANON']} {$this->lang->words['anon_users']} | {$this->lang->words['show_by']}: <a href='{parse url="app=members&module=online&sort_order=desc" base="public"}'>{$this->lang->words['oul_click']}</a> {$this->lang->words['or']} <a href='{parse url="app=members&module=online&sort_key=name&sort_order=asc&show_mem=reg" base="public"}'>{$this->lang->words['oul_name']}</a></span>
		</h2>
		<if test="activeNames:|:count($stats['NAMES'])">
			<p>
				<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>					
			</p>
		</if>
	</div>
</if>
<if test="calendarEventsOuter:|:$calendar_events">
<div id='cal_events' class='stats_list'>
	<h2>{$this->lang->words['upcoming_events']}</h2>
	<if test="calendarEventsInner:|:is_array( $calendar_events )">
		<p>
			<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $calendar_events )"}</span>
		</p>
	<else />
		<p>{$calendar_events}</p>
	</if>
</div>
</if>

<if test="birthdays:|:$birthdays !== FALSE AND is_array( $birthdays['users'] ) AND count( $birthdays['users'] )">
	<div id='cal_bdays' class='stats_list'>
		<h2>{$birthdays['count']} {$this->lang->words['birthdays_today']}</h2>
		<p>
			<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $birthdays['users'] )"}</span>					
		</p>
	</div>
<else />
	<if test="showBirthdaysAlways:|:$this->settings['show_birthdays'] AND !$this->settings['autohide_bday']">
		<div id='cal_bdays' class='stats_list'>
			<h2>0 {$this->lang->words['birthdays_today']}</h2>
			<p>{$this->lang->words['no_birth_users']}</p>
		</div>
	</if>
</if>

</div>
<if test="autodst:|:$this->memberData['members_auto_dst'] == 1 AND $this->settings['time_dst_auto_correction']">
<script type='text/javascript'>
ipb.vars['dst_on']	= parseInt("{$this->memberData['dst_in_use']}");

ipb.board.checkDST();
</script>
</if>

[/long]

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

Próbuj:

{parse js_module="board"}
{parse js_module="hooks"}
{parse variable="sidebar_enabled" default="$show_side_blocks"}
<script type='text/javascript'>
//<![CDATA[
       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}&i=1&forumid=" base="public"}"; // Ajax URL so don't use &
//]]>
</script>

               <if test="latestNews:|:is_array($news_data) AND count($news_data)">
                       <div id='latest_news' class='row2'><strong>{$this->lang->words['newslink']}</strong> <a href='{parse url="showtopic={$news_data['id']}" template="showtopic" seotitle="{$news_data['seo_title']}" base="public"}' title='{$this->lang->words['newslink']}'>{$news_data['title']}</a></div>
               </if>


<if test="sideBarEnabled:|:$this->templateVars['sidebar_enabled']">
       <a href='{parse url="app=forums&module=extras&section=toggle" base="public"}' id='close_sidebar'  class='sidebar_toggle rounded' <if test="sidebaropen:|:IPSCookie::get('hide_sidebar') != '1'">style='display: none'</if>><img src='{$this->settings['img_url']}/sidebar_close.png' alt='{$this->lang->words['sidebar_close']}' /></a>
       <a href='{parse url="app=forums&module=extras&section=toggle" base="public"}' id='open_sidebar' class='sidebar_toggle rounded' <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>><img src='{$this->settings['img_url']}/sidebar_open.png' alt='{$this->lang->words['sidebar_open']}' /></a>
</if>
<h2 class='hide'>{$this->lang->words['board_index_title']}</h2>
<div id='board_index' class='clearfix'>
       <if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">
               <div id='index_stats' class='right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>
                       <foreach loop="side_blocks:$side_blocks as $block">
                               {$block}
                       </foreach>
               </div>
       </if>


       <div id='categories' class='<if test="nosidebar:|:IPSCookie::get('hide_sidebar') == '1' || !$this->templateVars['sidebar_enabled']">no_sidebar</if> clearfix'>

       <!-- CATS AND FORUMS -->
               <if test="cats_forums:|:is_array( $cat_data ) AND count( $cat_data )">
                       <foreach loop="categories:$cat_data as $_data">
                               <if test="cat_has_forums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
                                       {parse striping="catTable" classes="row1,row2"}
                                       <div class='category_block block_wrap'>
                                               <h3 id='category_{$_data['cat_data']['id']}' class='maintitle'><a class='toggle right' href='#' title='{$this->lang->words['toggle_cat']}'>{$this->lang->words['toggle_cat']}</a> <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['view_cat']}'>{$_data['cat_data']['name']}</a></h3>
                                               <table class='ipb_table' summary="{$this->lang->words['forums_in_cat']} '{$_data['cat_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['stats']}</th>
                                                               <th scope='col' class='col_c_post'>{$this->lang->words['last_post_info']}</th>
                                                       </tr>
                                                       <!-- / CAT HEADER -->
                                                       <foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
                                                               <if test="forumRedirect:|:$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['go_to_forum']}'>{$forum_data['name']}</a></h4>
                                                                                       <p class='desc'>{$forum_data['description']}</p>
                                                                               </td>
                                                                               <td colspan='2'>
                                                                                       {$this->lang->words['rd_hits']}: {parse format_number="$forum_data['redirect_hits']"}
                                                                               </td>
                                                                       </tr>
                                                               <else />
                                                                       <tr class='{parse striping="catTable"}'>
                                                                               <td class='altrow'>
                                                                                       <!-- SKINNOTE: this URL is wrong, needs updating -->
                                                                                       <if test="unreadicon:|:$forum_data['img_new_post'] != 'f_locked' && strstr( $forum_data['img_new_post'], 'unread' )">
                                                                                               <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']}&i=1" base="public"}" title="{$this->lang->words['bi_markread']}" class='forum_marker'>
                                            <if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">
							             <center><img src='{$this->settings['board_url']}/public/forumicons/{$forum_data['icon']}.gif' /></center>
							             <else />											
											<if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">
	<center><img src='{$this->settings['board_url']}/public/forumicons/{$forum_data['icon']}_off.gif' /></center>
											<else />
													{parse replacement="{$forum_data['img_new_post']}"}										
											</if>													
												</if>

											</a>


                                                                                               <script type='text/javascript'>
                                                                                                       ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "{$forum_data['id']}" );
                                                                                               </script>
                                                                                       <else />
                                                                                               {parse replacement="{$forum_data['img_new_post']}"}
                                                                                       </if>
                                                                               </td>
                                                                               <td>
                                                                                       <h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['go_to_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="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="hasQueuedAndCanSeeIcon:|:!empty($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 />
                                                                                                       <if test="hideDateUrl:|:$forum_data['_hide_last_date']">
                                                                                                               <li>{$forum_data['last_post']}</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']}'>{$forum_data['last_post']}</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>
                                                                               </td>
                                                                       </tr>
                                                               </if>
                                                       </foreach>
                                               </table>
                                       </div>
                               </if>
                       </foreach>
               </if>
       </div>
</div>
<ul id='stat_links' class='filter_bar rounded'>
       <li><a href="{parse url="app=core&module=search&do=active" base="public"}" title="{$this->lang->words['today_active_cont']}">{$this->lang->words['new_active_cont']}</a></li>
       <li><a href="{parse url="app=forums&module=extras&section=stats&do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a></li>
       <li><a href="{parse url="app=forums&module=extras&section=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a></li>
       <li><a href="{parse url="app=members&section=view&module=list&max_results=20&sort_key=posts&sort_order=desc&filter=ALL" base="public"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a></li>
</ul>
<div id='board_statistics' class='statistics general_box clearfix'>
       <if test="showTotals:|:$this->settings['show_totals']">
               <div id='stats'>
                       <h2>{$this->lang->words['board_stats']}</h2>
                       <dl>
                               <dt>{$this->lang->words['total_posts']}</dt>
                               <dd>{$stats['info']['total_posts']}</dd>
                               <dt>{$this->lang->words['total_members']}</dt>
                               <dd>{$stats['info']['mem_count']}</dd>
                               <dt>{$this->lang->words['newest_member']}</dt>
                               <dd><a href='{$stats['info']['last_mem_link']}' title='{$this->lang->words['view_profile']}'>{$stats['info']['last_mem_name']}</a>{parse template="user_popup" group="global" params="$stats['info']['last_mem_id'],$stats['info']['last_mem_seo']"} </dd>
                               <dt>{$this->lang->words['online_at_once']}</dt>
                               <dd>{$stats['info']['most_online']}<br /><span class='extra'>{$stats['info']['most_time']}</span></dd>
                       </dl>
               </div>
       </if>
       <if test="showActive:|:$this->settings['show_active']">
               <div id='active_users' class='stats_list'>
                       <h2>
                               {$stats['TOTAL']} {$this->lang->words['active_users_text']} <span>{$this->lang->words['active_users']}</span><br />
                               <span class='desc'>{$stats['MEMBERS']} {$this->lang->words['members']}, {$stats['GUESTS']} {$this->lang->words['guests']}, {$stats['ANON']} {$this->lang->words['anon_users']} | {$this->lang->words['show_by']}: <a href='{parse url="app=members&module=online&sort_order=desc" base="public"}'>{$this->lang->words['oul_click']}</a> {$this->lang->words['or']} <a href='{parse url="app=members&module=online&sort_key=name&sort_order=asc&show_mem=reg" base="public"}'>{$this->lang->words['oul_name']}</a></span>
                       </h2>
                       <if test="activeNames:|:count($stats['NAMES'])">
                               <p>
                                       <span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>                                       
                               </p>
                       </if>
               </div>
       </if>
       <if test="calendarEventsOuter:|:$calendar_events">
       <div id='cal_events' class='stats_list'>
               <h2>{$this->lang->words['upcoming_events']}</h2>
               <if test="calendarEventsInner:|:is_array( $calendar_events )">
                       <p>
                               <span class='name'>{parse expression="implode( ",</span> <span class='name'>", $calendar_events )"}</span>
                       </p>
               <else />
                       <p>{$calendar_events}</p>
               </if>
       </div>
       </if>

       <if test="birthdays:|:$birthdays !== FALSE AND is_array( $birthdays['users'] ) AND count( $birthdays['users'] )">
               <div id='cal_bdays' class='stats_list'>
                       <h2>{$birthdays['count']} {$this->lang->words['birthdays_today']}</h2>
                       <p>
                               <span class='name'>{parse expression="implode( ",</span> <span class='name'>", $birthdays['users'] )"}</span>                                   
                       </p>
               </div>
       <else />
               <if test="showBirthdaysAlways:|:$this->settings['show_birthdays'] AND !$this->settings['autohide_bday']">
                       <div id='cal_bdays' class='stats_list'>
                               <h2>0 {$this->lang->words['birthdays_today']}</h2>
                               <p>{$this->lang->words['no_birth_users']}</p>
                       </div>
               </if>
       </if>

</div>
<if test="autodst:|:$this->memberData['members_auto_dst'] == 1 AND $this->settings['time_dst_auto_correction']">
<script type='text/javascript'>
       ipb.vars['dst_on']      = parseInt("{$this->memberData['dst_in_use']}");

       ipb.board.checkDST();
</script>
</if>

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

  • 2 tygodnie później...

Problem polega na zmianie w modzie formatu z gif na png.Od razu wkleje jak mam zeedytowane board & forum index template...

boardindex template:

{parse js_module="board"}
{parse js_module="hooks"}
{parse variable="sidebar_enabled" default="$show_side_blocks"}
<script type='text/javascript'>
//<![CDATA[
ipb.global.boardMarkers = ({
	'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&i=1" base="public"}"; // Ajax URL so don't use &
//]]>
</script>
<if test="sideBarEnabled:|:$this->templateVars['sidebar_enabled']">
<a href='{parse url="app=forums&module=extras&section=toggle&secure_key={$this->member->form_hash}" base="public"}' id='close_sidebar'  class='sidebar_toggle rounded' <if test="sidebaropen:|:IPSCookie::get('hide_sidebar') != '1'">style='display: none'</if>><img src='{$this->settings['img_url']}/sidebar_close.png' alt='{$this->lang->words['sidebar_close']}' /></a>
<a href='{parse url="app=forums&module=extras&section=toggle&secure_key={$this->member->form_hash}" base="public"}' id='open_sidebar' class='sidebar_toggle rounded' <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>><img src='{$this->settings['img_url']}/sidebar_open.png' alt='{$this->lang->words['sidebar_open']}' /></a>
</if>
<h2 class='hide'>{$this->lang->words['board_index_title']}</h2>
<div id='board_index' class='clearfix'>
<if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">
	<div id='index_stats' class='right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>
		<foreach loop="side_blocks:$side_blocks as $block">
			{$block}
		</foreach>
	</div>
</if>

<div id='categories' class='<if test="nosidebar:|:IPSCookie::get('hide_sidebar') == '1' || !$this->templateVars['sidebar_enabled']">no_sidebar</if> clearfix'>
	<if test="latestNews:|:is_array($news_data) AND count($news_data)">
		<div id='latest_news' class='row2'><strong>{$this->lang->words['newslink']}</strong> <a href='{parse url="showtopic={$news_data['id']}" template="showtopic" seotitle="{$news_data['seo_title']}" base="public"}' title='{$this->lang->words['newslink']}'>{$news_data['title']}</a></div>
	</if>
<!-- CATS AND FORUMS -->
	<if test="cats_forums:|:is_array( $cat_data ) AND count( $cat_data )">
		<foreach loop="categories:$cat_data as $_data">
			<if test="cat_has_forums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
				{parse striping="catTable" classes="row1,row2"}
				<div class='category_block block_wrap'>
					<h3 id='category_{$_data['cat_data']['id']}' class='maintitle'><a class='toggle right' href='#' title="{$this->lang->words['toggle_cat']}">{$this->lang->words['toggle_cat']}</a> <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['view_cat']}'>{$_data['cat_data']['name']}</a></h3>
					<table class='ipb_table' summary="{$this->lang->words['forums_in_cat']} '{$_data['cat_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['stats']}</th>
							<th scope='col' class='col_c_post'>{$this->lang->words['last_post_info']}</th>
						</tr>
						<!-- / CAT HEADER -->
						<foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">
							<if test="forumRedirect:|:$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['go_to_forum']}'>{$forum_data['name']}</a></h4>
										<p class='desc'>{$forum_data['description']}</p>
									</td>
									<td colspan='2'>
										{$this->lang->words['rd_hits']}: {parse format_number="$forum_data['redirect_hits']"}
									</td>
								</tr>
							<else />
								<tr class='{parse striping="catTable"}'>
									<td class='altrow'>
										<if test="unreadicon:|:$forum_data['img_new_post'] != 'f_locked' && strstr( $forum_data['img_new_post'], 'unread' )">
											<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']}&i=1" 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 + "&forumid={$forum_data['id']}" );
											</script>
										<else />
											{parse replacement="{$forum_data['img_new_post']}"}
										</if>
									</td>
									<td>
										<h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['go_to_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' id='subforums_{$forum_data['id']}'>
											<foreach loop="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="hasQueuedAndCanSeeIcon:|:!empty($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 />
												<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']}&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="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>
									</td>
								</tr>
							</if>
						</foreach>
					</table>
				</div>
			</if>
		</foreach>
	</if>
</div>
</div>
<ul id='stat_links' class='filter_bar rounded'>
<li><a href="{parse url="app=core&module=search&do=active" base="public"}" title="{$this->lang->words['today_active_cont']}">{$this->lang->words['new_active_cont']}</a></li>
<li><a href="{parse url="app=forums&module=extras&section=stats&do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a></li>
<li><a href="{parse url="app=forums&module=extras&section=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a></li>
<li><a href="{parse url="app=members&section=view&module=list&max_results=20&sort_key=posts&sort_order=desc&filter=ALL" base="public"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a></li>
</ul>
<div id='board_statistics' class='statistics general_box clearfix'>
<if test="showTotals:|:$this->settings['show_totals']">
	<div id='stats'>
		<h2>{$this->lang->words['board_stats']}</h2>
		<dl>
			<dt>{$this->lang->words['total_posts']}</dt>
			<dd>{$stats['info']['total_posts']}</dd>
			<dt>{$this->lang->words['total_members']}</dt>
			<dd>{$stats['info']['mem_count']}</dd>
			<dt>{$this->lang->words['newest_member']}</dt>
			<dd><a href='{$stats['info']['last_mem_link']}' title='{$this->lang->words['view_profile']}'>{$stats['info']['last_mem_name']}</a>{parse template="user_popup" group="global" params="$stats['info']['last_mem_id'],$stats['info']['last_mem_seo']"} </dd>
			<dt>{$this->lang->words['online_at_once']}</dt>
			<dd>{$stats['info']['most_online']}<br /><span class='extra'>{$stats['info']['most_time']}</span></dd>
		</dl>
	</div>
</if>
<if test="showActive:|:$this->settings['show_active']">
	<div id='active_users' class='stats_list'>
		<h2>
			{$stats['TOTAL']} {$this->lang->words['active_users_text']} <span>{$this->lang->words['active_users']}</span><br />
			<span class='desc'>{parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"} | {$this->lang->words['show_by']}: <a href='{parse url="app=members&module=online&sort_order=desc" base="public"}'>{$this->lang->words['oul_click']}</a> {$this->lang->words['or']} <a href='{parse url="app=members&module=online&sort_key=name&sort_order=asc&show_mem=reg" base="public"}'>{$this->lang->words['oul_name']}</a></span>
		</h2>
		<if test="activeNames:|:count($stats['NAMES'])">
			<p>
				<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>					
			</p>
		</if>
	</div>
</if>
<if test="calendarEventsOuter:|:$calendar_events">
<div id='cal_events' class='stats_list'>
	<h2>{$this->lang->words['upcoming_events']}</h2>
	<if test="calendarEventsInner:|:is_array( $calendar_events )">
		<p>
			<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $calendar_events )"}</span>
		</p>
	<else />
		<p>{$calendar_events}</p>
	</if>
</div>
</if>

<if test="birthdays:|:$birthdays !== FALSE AND is_array( $birthdays['users'] ) AND count( $birthdays['users'] )">
	<div id='cal_bdays' class='stats_list'>
		<h2>{$birthdays['count']} {$this->lang->words['birthdays_today']}</h2>
		<p>
			<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $birthdays['users'] )"}</span>					
		</p>
	</div>
<else />
	<if test="showBirthdaysAlways:|:$this->settings['show_birthdays'] AND !$this->settings['autohide_bday']">
		<div id='cal_bdays' class='stats_list'>
			<h2>0 {$this->lang->words['birthdays_today']}</h2>
			<p>{$this->lang->words['no_birth_users']}</p>
		</div>
	</if>
</if>

</div>
<if test="autodst:|:$this->memberData['members_auto_dst'] == 1 AND $this->settings['time_dst_auto_correction']">
<script type='text/javascript'>
ipb.vars['dst_on']	= parseInt("{$this->memberData['dst_in_use']}");

ipb.board.checkDST();
</script>
</if>

forum index template:

{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 = ({
	'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" base="public"}"; // Ajax URL so don't use &

// Delete stuff set up
ipb.forums.deleteUrls['hardDelete'] = new Template("{parse url="app=forums&module=moderate&section=moderate&f={$forum_data['id']}&st={$this->request['st']}&auth_key={$this->member->form_hash}&do=08&t=#{tid}" base="public"}");
ipb.forums.deleteUrls['softDelete'] = new Template("{parse url="app=forums&module=moderate&section=moderate&f={$forum_data['id']}&st={$this->request['st']}&auth_key={$this->member->form_hash}&do=sdelete&t=#{tid}" base="public"}");

// Add perm data
ipb.forums.deletePerms = { 'canDelete' : {parse expression="intval($this->memberData['g_is_supmod'] == 1 || $this->memberData['forumsModeratorData'][ $forum_data['id'] ]['delete_topic'])"}, 'canSoftDelete' : {parse expression="intval($forum_data['permissions']['TopicSoftDelete'])"} };
//]]>
</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'>{$forum_data['name']} {$this->lang->words['sub_forum_title']}</h3>
	<table class='ipb_table' summary="{$this->lang->words['cat_subforums']} '{$forum_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 + "&forumid={$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' id='subforums_{$forum_data['id']}'>
									<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="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&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']) OR $data['_isDeleted']">
				<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 class='__topic __tid{$data['tid']}<if test="hasmodlinks:|:$this->memberData['is_mod'] == 1 || $forum_data['permissions']['TopicSoftDelete']"> with_mod_links</if>'>
					<if test="islink:|:$data['state'] != 'link'"><span class='topic_preview right'>{parse template="topic_popup" group="global" params="$data['tid']"}</span></if>
						<if test="topicIsDeleted:|:$data['_isDeleted']">
						<ul class='topic_moderation right rounded'>
							<if test="tidRestore:|:$forum_data['permissions']['TopicSoftDeleteRestore']">
								<li class='t_restore'><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=sundelete" base="public"}' title='{$this->lang->words['dlt_restore_topic']}'><img src='{$this->settings['img_url']}/arrow_rotate_clockwise.png' alt='{$this->lang->words['dlt_restore_topic']}' title='{$this->lang->words['dlt_restore_topic']}' /></a></li>
							</if>
							<if test="$this->memberData['g_is_supmod'] == 1 || $this->memberData['forumsModeratorData'][ $forum_data['id'] ]['delete_topic']">
								<li class='t_restore'><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['dlt_delete_topic']}'><img src='{$this->settings['img_url']}/delete.png' alt='{$this->lang->words['dlt_delete_topic']}' title='{$this->lang->words['dlt_delete_topic']}' /></a></li>
							</if>
						</ul>
						<else />
							<if test="topicmoderator:|:$this->memberData['is_mod'] == 1  || $forum_data['permissions']['TopicSoftDelete']">
								<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>
								<if test="$this->memberData['g_is_supmod'] == 1 || $this->memberData['forumsModeratorData'][ $forum_data['id'] ]['delete_topic'] || $forum_data['permissions']['TopicSoftDelete']">
									<li class='t_delete'><a id='t_deletelink_{$data['tid']}' 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>
								<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&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 />
										<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&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>
								<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&_from=forum" 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>
						</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='' 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']">
							<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']} {$this->lang->words['_rarr']}</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="topicDeletedReason:|:$data['_isDeleted']">
							<div class='desc'>
								{$this->lang->words['tdb__forumindex']} <a href='{parse url="showuser={$other_data['sdData'][ $data['tid'] ]['sdl_obj_member_id']}" base="public" template="showuser" seotitle="{$other_data['sdData'][ $data['tid'] ]['members_seo_name']}"}'>{$other_data['sdData'][ $data['tid'] ]['members_display_name']}</a>{parse template="user_popup" group="global" params="$other_data['sdData'][ $data['tid'] ]['member_id'], $other_data['sdData'][ $data['tid'] ]['members_seo_name']"} {$this->lang->words['on']} {parse date="$other_data['sdData'][ $data['tid'] ]['sdl_obj_date']" format="long"}.
								<if test="showReason:|:$forum_data['permissions']['SoftDeleteReason']">
									<if test="$other_data['sdData'][ $data['tid'] ]['sdl_obj_reason']">{$other_data['sdData'][ $data['tid'] ]['sdl_obj_reason']}<else />{$this->lang->words['tdb__noreasongi']}</if>
								</if>
							</div>
						<else />
							<if test="description:|:$data['description']"><br /><span class='desc'>{$data['description']}</span></if>
						</if>
					</td>
					<td class='short altrow'>{$data['starter']}{parse template="user_popup" group="global" params="$data['starter_id'], $data['seo_first_name']"}</td>
					<td class='stats<if test="queuedposts:|$this->memberData['is_mod'] AND $data['_hasqueued']) OR ($forum_data['permissions']['PostSoftDeleteSee'] AND $data['topic_deleted_posts'])"> moderated</if>'>
						<ul>
							<li>
								<if test="queuedpostsImg:|$this->memberData['is_mod'] AND $data['_hasqueued'])">
									<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>
								</if>
								<if test="deletedPostsImg:|$forum_data['permissions']['PostSoftDeleteSee'] AND $data['topic_deleted_posts'])">
									<a href='{parse url="showtopic={$data['tid']}&modfilter=deleted_posts" seotitle="{$data['title_seo']}" template="showtopic" base="public"}' title='{$this->lang->words['view_deleted_posts']}'><img src='{$this->settings['img_url']}/bullet_delete.png' alt='Icon' /></a>
								</if>
								{$data['posts']} <if test="replylang:|:intval($data['_posts']) == 1">{$this->lang->words['reply']}<else />{$this->lang->words['replies']}</if>
							</li>


							<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="$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>

				<if test="adCodeCheck:|:$data['_adCode']">
				<tr>
					<th scope='col' colspan='<if test="adCodeColSpan:|:$this->memberData['is_mod'] == 1">6<else />5</if>'>
						{$data['_adCode']}
					</th>
				</tr>
				</if>
			</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>
						<if test="$this->registry->class_forums->can_Un_SoftDeleteTopics( $forum_data['id'], array() )"><option value="sundelete">{$this->lang->words['cpt_undelete']}</option></if>
						<option value="approve">{$this->lang->words['cpt_approve']}</option>
						<option value="unapprove">{$this->lang->words['cpt_unapprove']}</option>
						<if test="$forum_data['queued_topics'] AND $this->registry->class_forums->canQueuePosts( $forum_data['id'] )">
						<option value="t_approve">{parse expression="sprintf( $this->lang->words['nmo_t_approve'], $forum_data['queued_topics'])"}</option>
						</if>
						<if test="$forum_data['queued_topics'] AND $this->registry->class_forums->canHardDeleteTopics( $forum_data['id'], array() )">
							<option value="t_delete_approve">{parse expression="sprintf( $this->lang->words['nmo_t_delete_approve'], $forum_data['queued_topics'])"}</option>
						</if>
						<if test="$forum_data['permissions']['TopicSoftDeleteRestore'] AND $forum_data['deleted_topics']">
							<option value="t_restore">{parse expression="sprintf( $this->lang->words['nmo_t_restore'], $forum_data['deleted_topics'])"}</option>
						</if>
						<if test="$forum_data['deleted_topics'] AND $this->registry->class_forums->canHardDeleteTopics( $forum_data['id'], array() )">
							<option value="t_delete_softed">{parse expression="sprintf( $this->lang->words['nmo_t_delete_softed'], $forum_data['deleted_topics'])"}</option>
						</if>
						<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);
				$('mod_tact').observe('change', ipb.forums.updateTopicModButton);
			</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>
	<if test="forumjump:|:$forum_data['FORUM_JUMP']">
		<div class='moderation_bar rounded'>
			<!--<form method='post' action='{$this->settings['base_url']}app=core&module=search&do=quick_search&search_app=forums' 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>-->

			{$forum_data['FORUM_JUMP']}
		</div>
	</if>
</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"}' 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>
<div id='delPopUp' style='display:none'>
<h3 class='bar'>{$this->lang->words['dlt_title']}</h3>
<div class='general_box'>
	<form action='#{removeUrl}' method='POST'>
		<strong>{$this->lang->words['dlt_remove_from_view']}</strong>
		<p class='desc'>{$this->lang->words['dlt_remove_from_view_desc']}</p>
		<p style='padding:4px 0px 4px 0px'>{$this->lang->words['dlt_reason']} <input type='text' name='deleteReason' id='delPop_reason' value='' style='width:65%' /> <input type='submit' class='input_submit' value='{$this->lang->words['dlt_remove']}' /></p>
	</form>
	<div style='#{permaDelete}padding-top:5px'>
		<strong>{$this->lang->words['dlt_delete_from_topic']}</strong>
		<p class='desc'>{$this->lang->words['dlt_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['dlt_delete_now']}' /></p>
	</div>
</div>
</div>

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

  • Manager

Zacznij od instalacji podstawowej wersji, bo sprawdziłem pierwszy kod i nie masz w nim edycji, opisanych w instrukcji.

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

  • 3 tygodnie później...

Także jak trochę osób przede mną napotkałem na problem niepodmienianych ikonek przeczytanego forum, mimo że wykonałem poprawnie instrukcje i zuploadowałem ikonki w dwóch wersjach, zawsze jedna z off (te oryginalne zresztą też nie działały). Problem jak się okazało tkwił w instrukcji:

Znajdź:

	{parse replacement="{$forum_data['img_new_post']}"}
										</if>

Zamień na:

												<if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">
	<center><img src='{$this->settings['board_url']}/public/forumicons/{$forum_data['icon']}_off.gif' /></center>
											<else />
													{parse replacement="{$forum_data['img_new_post']}"}										
											</if>													
												</if>

Mianowicie, jak się okazało w szablonie były dwa, identyczne fragmenty kodu

	{parse replacement="{$forum_data['img_new_post']}"}
										</if>

W instrukcji pierwotnie przeczytałem o jednokrotnej zamianie, i wykonałem ją w pierwszym przypadku. Prawidłowo zaczęło działać dopiero kiedy podmieniłem także drugie wystąpienie.

  • Lubię to 1
Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

Na pewno miałeś dwa takie kody? Owszem one są podobne, ale jeden kończy się na </if> a drugi na </a> - więc jak dla mnie one nie są identyczne. Tak czy inaczej dzięki za wpis.

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

Hmm, nie dam głowy że oryginalnie tak było, na pewno to zobaczyłem dziś kiedy znowu się za to wziąłem . Zawsze pozostaje możliwość że kiedy robiłem to pierwszy raz, pomyliłem te dwa podobne ale nie identyczne fragmenty (są obok siebie, ten gdzie na bank było </if> jest poniżej). W każdym razie teraz działa.

Odnośnik do komentarza
Udostępnij na innych stronach

Witam instaluje forum icon [robiłem to wile razy, ale teraz nie wiem dlaczego coś mnie dręczy i wyskakuje że php zła zawartość cały czas ;//]

Mam prośbę jeżeli ktoś by mógł mi podesłać gotowy kod ;)

notepad++ [ctrl+h - wyszukiwanie treści]

niestety aktualnie jestem na macu i nie mam tego ...

{parse js_module="board"}

{parse js_module="hooks"}

{parse variable="sidebar_enabled" default="$show_side_blocks"}

<script type='text/javascript'>

//<![CDATA[

ipb.global.boardMarkers = ({

'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&i=1" base="public"}"; // Ajax URL so don't use &

//]]>

</script>

<if test="sideBarEnabled:|:$this->templateVars['sidebar_enabled']">

<div class='sidebar_toggle_con'>

<a href='{parse url="app=forums&module=extras&section=toggle&secure_key={$this->member->form_hash}" base="public"}' id='close_sidebar' class='sidebar_toggle' <if test="sidebaropen:|:IPSCookie::get('hide_sidebar') != '1'">style='display: none'</if>><img src='{$this->settings['img_url']}/sidebar_close.png' alt='{$this->lang->words['sidebar_close']}' /></a>

<a href='{parse url="app=forums&module=extras&section=toggle&secure_key={$this->member->form_hash}" base="public"}' id='open_sidebar' class='sidebar_toggle' <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>><img src='{$this->settings['img_url']}/sidebar_open.png' alt='{$this->lang->words['sidebar_open']}' /></a>

</div>

</if>

<h2 class='hide'>{$this->lang->words['board_index_title']}</h2>

<div id='board_index' class='clearfix'>

<if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">

<div id='index_stats' class='right clearfix' <if test="sidebarclosed2:|:IPSCookie::get('hide_sidebar') == '1'">style='display: none'</if>>

{parse replacement="header_start"}<h3 class='maintitle'>Additional Content</h3>{parse replacement="header_end"}<foreach loop="side_blocks:$side_blocks as $block">

{$block}

</foreach>{parse replacement="box_end"}

</div>

</if>

<div id='categories' class='<if test="nosidebar:|:IPSCookie::get('hide_sidebar') == '1' || !$this->templateVars['sidebar_enabled']">no_sidebar</if> clearfix'>

<if test="latestNews:|:is_array($news_data) AND count($news_data)">

<div id='latest_news' class='row2'><strong>{$this->lang->words['newslink']}</strong> <a href='{parse url="showtopic={$news_data['id']}" template="showtopic" seotitle="{$news_data['seo_title']}" base="public"}' title='{$this->lang->words['newslink']}'>{$news_data['title']}</a></div>

</if>

<!-- CATS AND FORUMS -->

<if test="cats_forums:|:is_array( $cat_data ) AND count( $cat_data )">

<foreach loop="categories:$cat_data as $_data">

<if test="cat_has_forums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">

{parse striping="catTable" classes="row1,row2"}

<div class='category_block block_wrap'>

{parse replacement="header_start"}<h3 id='category_{$_data['cat_data']['id']}' class='maintitle'><a class='toggle right' href='#' title="{$this->lang->words['toggle_cat']}">{$this->lang->words['toggle_cat']}</a> <a href="{parse url="showforum={$_data['cat_data']['id']}" seotitle="{$_data['cat_data']['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['view_cat']}'>{$_data['cat_data']['name']}</a></h3>{parse replacement="header_end"}

<table cellspacing='0' class='ipb_table' summary="{$this->lang->words['forums_in_cat']} '{$_data['cat_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['stats']}</th>

<th scope='col' class='col_c_post'>{$this->lang->words['last_post_info']}</th>

</tr>

<!-- / CAT HEADER -->

<foreach loop="forums:$_data['forum_data'] as $forum_id => $forum_data">

<if test="forumRedirect:|:$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['go_to_forum']}'>{$forum_data['name']}</a></h4>

<p class='desc' style='padding-top: 3px;'>{$forum_data['description']}</p>

</td>

<td colspan='2'>

{$this->lang->words['rd_hits']}: {parse format_number="$forum_data['redirect_hits']"}

</td>

</tr>

<else />

<tr class='{parse striping="catTable"}'>

<td class='altrow'>

<if test="unreadicon:|:$forum_data['img_new_post'] != 'f_locked' && strstr( $forum_data['img_new_post'], 'unread' )">

<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']}&i=1" base="public"}" title="{$this->lang->words['bi_markread']}" class='forum_marker'>

<if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">

<center><img src='{$this->settings['board_url']}/public/forumicons/{$forum_data['icon']}.png' /></center>

<else />

{parse replacement="{$forum_data['img_new_post']}"}

</if>

</a>

<script type='text/javascript'>

ipb.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" );

</script>

<else />

<if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">

<center><img src='{$this->settings['board_url']}/public/forumicons/{$forum_data['icon']}_off.png' /></center>

<else />

{parse replacement="{$forum_data['img_new_post']}"}

</if>

</if>

</td>

<td>

<h4><a href="{parse url="showforum={$forum_data['id']}" seotitle="{$forum_data['name_seo']}" template="showforum" base="public"}" title='{$this->lang->words['go_to_forum']}'>{$forum_data['name']}</a></h4>

<p class='desc' style='padding-top: 3px;'>{$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' id='subforums_{$forum_data['id']}'>

<foreach loop="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="hasQueuedAndCanSeeIcon:|:!empty($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 nowrap='nowrap'>

<ul class='last_post'>

<if test="hideLastInfo:|:$forum_data['hide_last_info']">

<li>{$this->lang->words['f_protected']}</li>

<else />

<li>

<strong><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>  {$forum_data['last_topic_title']}</strong>

</li>

<li>

{$this->lang->words['by']}

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

<if test="hideDateUrl:|:$forum_data['_hide_last_date']">

<span class='topic_date'>{parse date="$forum_data['last_post']" format="LONG"}</span>

<else />

<span class='topic_date'><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="LONG"}</a></span>

</if>

</li>

</if>

</ul>

</td>

</tr>

</if>

</foreach>

</table>{parse replacement="box_end"}

</div>

</if>

</foreach>

</if>

</div>

</div>

{parse replacement="header_start"}<h3 class='maintitle'>

<span class='right desc'>

<a href="{parse url="app=core&module=search&do=active" base="public"}" title="{$this->lang->words['today_active_cont']}">{$this->lang->words['new_active_cont']}</a>  · 

<a href="{parse url="app=forums&module=extras&section=stats&do=leaders" base="public"}" title="{$this->lang->words['sm_forum_leaders_title']}">{$this->lang->words['sm_forum_leaders']}</a>  · 

<a href="{parse url="app=forums&module=extras&section=stats" base="public"}" title="{$this->lang->words['sm_all_posters_title']}">{$this->lang->words['sm_today_posters']}</a>  · 

<a href="{parse url="app=members&section=view&module=list&max_results=20&sort_key=posts&sort_order=desc&filter=ALL" base="public"}" title="{$this->lang->words['sm_overall_posters_title']}">{$this->lang->words['sm_overall_posters']}</a>

</span>

{$this->lang->words['board_stats']}

</h3>{parse replacement="header_end"}

<div id='board_statistics' class='statistics general_box clearfix stats_container row2' style='margin-top: 0; border:0; background-image: none;'>

<if test="showTotals:|:$this->settings['show_totals']">

<div id='stats'>

<h2>{$this->lang->words['board_stats']}</h2>

<dl>

<dt>{$this->lang->words['total_posts']}</dt>

<dd>{$stats['info']['total_posts']}</dd>

<dt>{$this->lang->words['total_members']}</dt>

<dd>{$stats['info']['mem_count']}</dd>

<dt>{$this->lang->words['newest_member']}</dt>

<dd><a href='{$stats['info']['last_mem_link']}' title='{$this->lang->words['view_profile']}'>{$stats['info']['last_mem_name']}</a>{parse template="user_popup" group="global" params="$stats['info']['last_mem_id'],$stats['info']['last_mem_seo']"} </dd>

<dt>{$this->lang->words['online_at_once']}</dt>

<dd>{$stats['info']['most_online']}<br /><span class='extra'>{$stats['info']['most_time']}</span></dd>

</dl>

</div>

</if>

<if test="showActive:|:$this->settings['show_active']">

<div id='active_users' class='stats_list'>

<h2>

{$stats['TOTAL']} {$this->lang->words['active_users_text']} <span>{$this->lang->words['active_users']}</span><br />

<span class='desc'>{parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"} | {$this->lang->words['show_by']}: <a href='{parse url="app=members&module=online&sort_order=desc" base="public"}'>{$this->lang->words['oul_click']}</a> {$this->lang->words['or']} <a href='{parse url="app=members&module=online&sort_key=name&sort_order=asc&show_mem=reg" base="public"}'>{$this->lang->words['oul_name']}</a></span>

</h2>

<if test="activeNames:|:count($stats['NAMES'])">

<p>

<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>

</p>

</if>

</div>

</if>

<if test="calendarEventsOuter:|:$calendar_events">

<div id='cal_events' class='stats_list'>

<h2>{$this->lang->words['upcoming_events']}</h2>

<if test="calendarEventsInner:|:is_array( $calendar_events )">

<p>

<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $calendar_events )"}</span>

</p>

<else />

<p>{$calendar_events}</p>

</if>

</div>

</if>

<if test="birthdays:|:$birthdays !== FALSE AND is_array( $birthdays['users'] ) AND count( $birthdays['users'] )">

<div id='cal_bdays' class='stats_list'>

<h2>{$birthdays['count']} {$this->lang->words['birthdays_today']}</h2>

<p>

<span class='name'>{parse expression="implode( ",</span> <span class='name'>", $birthdays['users'] )"}</span>

</p>

</div>

<else />

<if test="showBirthdaysAlways:|:$this->settings['show_birthdays'] AND !$this->settings['autohide_bday']">

<div id='cal_bdays' class='stats_list'>

<h2>0 {$this->lang->words['birthdays_today']}</h2>

<p>{$this->lang->words['no_birth_users']}</p>

</div>

</if>

</if>

</div>{parse replacement="box_end"}

<if test="autodst:|:$this->memberData['members_auto_dst'] == 1 AND $this->settings['time_dst_auto_correction']">

<script type='text/javascript'>

ipb.vars['dst_on'] = parseInt("{$this->memberData['dst_in_use']}");

ipb.board.checkDST();

</script>

</if>

Edycja:

Znajdz:{parse replacement="{$forum_data['img_new_post']}"}

</a>

zamien na:

<if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">

<center><img src='{$this->settings['board_url']}/public/forumicons/{$forum_data['icon']}.gif' /></center>

<else />

{parse replacement="{$forum_data['img_new_post']}"}

</if>

</a>

2 znajdz:

{parse replacement="{$forum_data['img_new_post']}"}

</if>

2 zmien na

<if test="$forum_data['icon'] != '' AND $forum_data['icon'] !='0'">

<center><img src='{$this->settings['board_url']}/public/forumicons/{$forum_data['icon']}_off.gif' /></center>

<else />

{parse replacement="{$forum_data['img_new_post']}"}

</if>

</if>

Odnośnik do komentarza
Udostępnij na innych stronach

  • Manager

Heniek: wykonaj te operacje uważniej. Niestety nie lubię spłaszczonych kodów, bo nic się tam doczytać nie można.

spawn3d: to, co zwykle - nie wykonałeś wszystkich edycji lub zrobiłeś je niepoprawnie. A na pewno namieszałeś w pliku: admin/applications/forums/skin_cp/cp_skin_forums.php.

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

  • 2 tygodnie później...

hello sir,

i did all the changes right, named two icons as, forumicon.gif and forumicon_off.gif, and the forum icons are comming, but when the forum is read, the default icons shows up...

i mean i can only see the custom forum icon when the forum in unread, when i read the forum, the custom icon disappears :(

Plz help...

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

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

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

Zarejestruj nowe konto

Załóż nowe konto. To bardzo proste!

Zarejestruj się

Zaloguj się

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

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

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

Powiadomienie o plikach cookie

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