رفتن به مطلب

اشتباه در ویرایش فایل boardIndexTemplate


هادی

ارسال‌های توصیه شده

سلام بر همه

من خواستم برای تنظیم کردن زیر مجموعه ها فیل boardIndexTemplate رو ویرایش کنم متاسفانه حواسم نبود، چنتا خط دیگه رو هم انتخاب کردم و هیدر رو ناقص کردم، این آدرس فرومه

http://moalleman.ir/forum/index.php

اینم فایل boardIndexTemplate من

{parse js_module="board"}
{parse variable="sidebar_enabled" default="$show_side_blocks"}
<if test="boardIndexTop:|:true"></if>
<div id='board_index' class='ipsLayout <if test="sideBarEnabledL:|:$this->templateVars['sidebar_enabled']">ipsLayout_withright</if> ipsLayout_largeright clearfix <if test="sidebarclosed:|:IPSCookie::get('hide_sidebar') == '1'">no_sidebar</if>'>
<div id='categories' class='ipsLayout_content 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'] )">
 <div id='category_{$_data['cat_data']['id']}' class='category_block block_wrap'>
  {parse replacement="header_start"}<h3 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"}
  <div class='ipsBox table_wrap removeDefault'>
   <div class='ipsBox_container'>
    <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_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='redirect_forum' id='f_{$forum_data['id']}'>
	    <td class='col_c_icon'>
		 <img src='{$this->settings['img_url']}/f_redirect.png' />
	    </td>
	    <td class='col_c_forum'>
		 <h4 class='forum_name'><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>
		 <if test="$forum_data['description']"><span class='forum_desc_pos'><span class='forum_desc_con'><span class='forum_description'>{$forum_data['description']}</span></span></span></if>
	    </td>
	    <td class='desc'>
		 {parse format_number="$forum_data['redirect_hits']"} {$this->lang->words['rd_hits']}
	    </td>
	   </tr>
	  <else />
	   <tr class='<if test="hasUnreadClass:|:$forum_data['_has_unread']">unread</if>'>
	    <td class='col_c_icon'>
		 <if test="hasUnread:|:$forum_data['_has_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"}" data-tooltip="{$this->lang->words['bi_markread']}" class='forum_marker'><img src='{$this->settings['img_url']}/f_icon.png' /></a>
		 <else />
		  <img src='{$this->settings['img_url']}/f_icon_read.png' />
		 </if>
	    </td>
	    <td class='col_c_forum'>

		 <h4 class='forum_name'>
		  <if test="hasQueuedAndCanSeeIcon:|:!empty($forum_data['_has_queued_and_can_see_icon'])">
		   <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']}' class='ipsBadge ipsBadge_orange' data-tooltip="{parse expression="sprintf( $this->lang->words['f_queued'], $forum_data['queued_topics'], $forum_data['queued_posts'])"}" style='vertical-align: top'>{$this->lang->words['f_queued_badge']}</a>
		  </if>
		  <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>
		 <if test="$forum_data['description']"><span class='forum_desc_pos'><span class='forum_desc_con'><span class='forum_description'>{$forum_data['description']}</span></span></span></if>
<div class='forum_stats'><span>{$this->lang->words['topics']}:</span> {$forum_data['topics']}    <span>{$this->lang->words['replies']}:</span> {$forum_data['posts']}</div>	  
		 <if test="showSubForums:|:$forum_data['show_subforums'] AND count( $forum_data['subforums'] ) AND $forum_data['show_subforums']">
		   <ol class='subforums1'>
<foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">
</ol>

    <ol class='subforums2'>
<if test="showSubForumsLit:|:$__data[3]">
</foreach>
</ol>

<ol class='subforums3'>
<foreach loop="subforums:$forum_data['subforums'] as $__id => $__data">
</ol>

<ol class='subforums'>
<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>    </td>
	    <td class='col_c_post'>
		 <if test="hideLastInfo:|:$forum_data['hide_last_info']">
		  <ul class='last_post'>
		   <li class='desc'>{$this->lang->words['f_protected']}</li>
		  </ul>
		 <else />
		  <if test="hasphoto:|:$forum_data['pp_small_photo']">
		   <a href='{parse url="showuser={$forum_data['last_poster_id']}" template="showuser" seotitle="{$forum_data['seo_last_name']}" base="public"}' class='ipsUserPhotoLink left'>
		    <img src='{$forum_data['pp_small_photo']}' alt='{$this->lang->words['photo']}' class='ipsUserPhoto ipsUserPhoto_mini' />
		   </a>
		  <else />
		   <div class='left'>{IPSMember::buildNoPhoto(0, 'mini' )}</div>
		  </if>
		  <ul class='last_post ipsType_small'>
		   <if test="!$forum_data['last_id']">
		    <li class='desc lighter'><em>{$this->lang->words['f_none']}</em></li>
		   <else />
		    <li>
			 <span class='highlight_unread'>{$forum_data['last_topic_title']}</span>
		    </li>
														    <li>
															    <span class='desc lighter blend_links'>
															    <if test="hideDateUrl:|:$forum_data['_hide_last_date']">
																    {parse date="$forum_data['last_post']" format="DATE"}
															    <else />
																    <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="DATE"}</a>
															    </if></span>
															    <if test="lastPosterID:|:$forum_data['last_poster_id']">
																    {$this->lang->words['by']} {IPSMember::makeProfileLink($forum_data['last_poster_name'], $forum_data['last_poster_id'], $forum_data['seo_last_name'])}
															    </if>
														    </li>
		   </if>

		  </ul>
		 </if>
	    </td>
	   </tr>
	  </if>
	 </foreach>
    </table>
   </div>
  </div>{parse replacement="box_end"}
  <br />
 </div>
   </if>
  </foreach>
 </if>
</div>
<if test="sideBarEnabled2:|:$this->templateVars['sidebar_enabled']">
 <div id='index_stats' class='ipsLayout_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>
 <a href='#' id='toggle_sidebar' title='{$this->lang->words['toggle_sidebar']}' data-closed="{$this->lang->words['_laquo']}" data-open="×"> </a>
</if>
</div>
<script type='text/javascript'>
//<![CDATA[
var markerURL  = "{parse url="app=forums&module=ajax&section=markasread&i=1" base="public"}"; // Ajax URL so don't use &
var unreadIcon = "<img src='{$this->settings['img_url']}/f_icon_read.png' />";

<if test="markercatforums:|:is_array( $cat_data ) AND count( $cat_data )">
 <foreach loop="markercategories:$cat_data as $_data">
  <if test="markerhasforums:|:is_array( $_data['forum_data'] ) AND count( $_data['forum_data'] )">
   <foreach loop="markerforums:$_data['forum_data'] as $forum_id => $forum_data">
 <if test="markernotredirect:|:!$forum_data['redirect_on']">
  <if test="markerhasunread:|:$forum_data['_has_unread']">
IPB.global.registerMarker( "forum_img_{$forum_data['id']}", "{$forum_data['img_new_post']}", markerURL + "&forumid={$forum_data['id']}" );
  </if>
 </if>
   </foreach>
  </if>
 </foreach>
</if>
//]]>
</script>
<if test="showTotals:|:$this->settings['show_totals']">
<div id='board_stats'> 
 <ul class='ipsType_small ipsList_inline'>
  <li class='clear'>
   <span class='value'>{$stats['info']['total_posts']}</span>
   {$this->lang->words['total_posts']}
  </li>
  <li class='clear'>
   <span class='value'>{$stats['info']['mem_count']}</span>
   {$this->lang->words['total_members']}
  </li>
  <li class='clear'>
   <a href='{$stats['info']['last_mem_link']}' title='{$this->lang->words['view_profile']}' class='value'>{$stats['info']['last_mem_name']}</a>
   {$this->lang->words['newest_member']}
  </li>
  <li class='clear' data-tooltip="{$stats['info']['most_time']}">
   <span class='value'>{$stats['info']['most_online']}</span>
   {$this->lang->words['online_at_once']}
  </li>
 </ul>
</div>
</if>
<div id='board_statistics' class='statistics clearfix'>
<h4 class='statistics_head'><ul id='stat_links' class='ipsList_inline right ipsType_small'>
 <if test="statsLinks:|:1==1"> <!-- Hook point -->
  <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>
 </if>
</ul>
{parse expression="sprintf( $this->lang->words['online_right_now'], $stats['TOTAL'] )"} {$this->lang->words['active_users']}</h4>
<p class='statistics_brief desc'>
 {parse expression="sprintf( $this->lang->words['active_users_detail'], $stats['MEMBERS'], $stats['GUESTS'], $stats['ANON'] )"}
   <a href='{parse url="app=members&module=online&sort_order=desc" base="public"}'>({$this->lang->words['online_link']})</a>
</p>

<if test="activeNames:|:count($stats['NAMES'])">
 <br />
 <p>
  <span class='name'>{parse expression="implode( ",</span> <span class='name'>", $stats['NAMES'] )"}</span>	
 </p>
</if>
</div>

کمک کنه کسی ممنون میشم

لینک ارسال
به اشتراک گذاری در سایت های دیگر

  • بنیان گذار IPSFarsi

سلام

هر قالبی کدهاش متفاوت هست ( 10 الی 20 درصد) شما فایل xml قالب رو دوباره ایمپورت کنید و تیک Upgrade رو هم بزنید درست می شه.

موفق باشید

  • پسند 2
لینک ارسال
به اشتراک گذاری در سایت های دیگر

  • کاربران آنلاین در این صفحه   0 کاربر

    • هیچ کاربر عضوی،در حال مشاهده این صفحه نیست.
×
×
  • اضافه کردن...