Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[求助] 使用下载的模版不显示板块图标。如何解决?

[复制链接]
andonga 发表于 2012-1-7 11:19:48 | 显示全部楼层 |阅读模式
问题描述
适用版本: Discuz! X2
浏览器: IE6 IE7 IE8 IE9 TT 360 IE10 firefox 其他(帖子中请注明浏览器) 
使用模板: 其他模板(请在回帖中说明模板的名称或者是模板的下载地址)
BUG地址: http://bbs.xilinghu.com/
  1. <!--{subtemplate common/header}-->


  2. <div id="pt" class="bm cl">
  3. <!--{if empty($gid) && $announcements}-->
  4. <div class="y">
  5. <div id="an">
  6. <dl class="cl">
  7. <dt class="z xw1">{lang announcements}: </dt>
  8. <dd>
  9. <div id="anc"><ul id="ancl">$announcements</ul></div>
  10. </dd>
  11. </dl>
  12. </div>
  13. <script type="text/javascript">announcement();</script>
  14. </div>
  15. <!--{/if}-->
  16. <div class="z">
  17. <a href="./" class="nvhm" title="{lang homepage}">$_G[setting][bbname]</a><em>&raquo;</em><a href="forum.php">{$_G[setting][navs][2][navname]}</a>$navigation
  18. </div>
  19. <div class="z"><!--{hook/index_status_extra}--></div>
  20. </div>


  21. <!--{if empty($gid)}-->
  22. <!--{ad/text/wp a_t}-->
  23. <!--{/if}-->

  24. <style id="diy_style" type="text/css"></style>

  25. <!--{if empty($gid)}-->
  26. <div class="wp">
  27. <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
  28. </div>
  29. <!--{/if}-->

  30. <div id="ct" class="wp cl{if $_G['setting']['forumallowside']} ct2{/if}">
  31. <!--{if empty($gid)}-->
  32. <div id="chart" class="bm bw0 cl">
  33. <p class="chart z">{lang index_today}: <em>$todayposts</em><span class="pipe">|</span>{lang index_yesterday}: <em>$postdata[0]</em><span class="pipe">|</span>{lang index_posts}: <em>$posts</em><span class="pipe">|</span>{lang index_members}: <em>$_G['cache']['userstats']['totalmembers']</em><!--{if $_G['setting']['lastmember']}--><span class="pipe">|</span>{lang welcome_new_members}: <em><a href="home.php?mod=space&username={echo rawurlencode($_G['setting']['lastmember'])}" target="_blank" class="xi2">$_G['setting']['lastmember']</a></em><!--{/if}--></p>
  34. <div class="y">
  35. <!--{if $_G['uid']}--><a href="home.php?mod=space&uid=$_G['uid']&do=thread&view=me" title="{lang my_posts}" class="xi2">{lang my_posts}</a><!--{/if}--><!--{if !empty($_G['setting']['search']['forum']['status'])}--><!--{if $_G['uid']}--><span class="pipe">|</span><!--{/if}--><a href="search.php?mod=forum&srchfrom=$newthreads&searchsubmit=yes" title="{lang show_newthreads}" class="xi2">{lang show_newthreads}</a><!--{/if}-->
  36. </div>
  37. </div>
  38. <!--{/if}-->
  39. <div class="fansbar_xh">
  40. <span id="weather">
  41. <iframe src="http://m.weather.com.cn/m/pn4/weather.htm?id=101091016T " width="198" height="20" marginwidth="0" marginheight="0" hspace="0" vspace="0" frameborder="0" scrolling="no"></iframe>
  42. </span>
  43. <h3 class="mrmy"><script src="drc_imgs/js/mrmy.js" type="text/javascript"></script></h3>
  44. <div class="fansbox">
  45. <table><tr>
  46. <td valign="top" style="padding-left:1px;">
  47. <ul class="tabs">
  48. <li id="imgbox_1" class="current" onMouseOver="switchTab('imgbox',1,2,'current');"><span>最新图片展示</span></li>
  49. <li id="imgbox_2" onMouseOver="switchTab('imgbox',2,2,'current');"><span>热门游戏试玩</span></li>
  50. </ul>
  51. <div id="imgbox_c_1" style="display:block;" class="imagebody">
  52. <!--[diy=fansbar_n1]--><div id="fansbar_n1" class="area"></div><!--[/diy]-->
  53. </div>
  54. <div id="imgbox_c_2" style="display:none;" class="imagebody">
  55. <!--[diy=fansbar_n0]--><div id="fansbar_n0" class="area"></div><!--[/diy]-->
  56. </div>
  57. </td>
  58. <td valign="top" style="width:100%; padding:0 6px;;">
  59. <ul class="tabs">
  60. <li id="indexbox_1" class="current" onMouseOver="switchTab('indexbox',1,4,'current');"><span>最新主题</span></li>
  61. <li id="indexbox_2" onMouseOver="switchTab('indexbox',2,4,'current');"><span>最新回复</span></li>
  62. <li id="indexbox_3" onMouseOver="switchTab('indexbox',3,4,'current');"><span>热门主题</span></li>
  63. <li id="indexbox_4" onMouseOver="switchTab('indexbox',4,4,'current');"><span>最新精华</span></li></ul>
  64. <div class="threadbody">
  65. <div id="indexbox_c_1" style="display:block;" class="threadbox threadprefix">
  66. <ul>
  67. <!--[diy=fansbar_n2]--><div id="fansbar_n2" class="area"></div><!--[/diy]-->
  68. </ul></div>
  69. <div id="indexbox_c_2" style="display:none;" class="threadbox threadprefix">
  70. <ul>
  71. <!--[diy=fansbar_n3]--><div id="fansbar_n3" class="area"></div><!--[/diy]-->
  72. </ul></div>
  73. <div id="indexbox_c_3" style="display:none;" class="threadbox threadprefix">
  74. <ul>
  75. <!--[diy=fansbar_n4]--><div id="fansbar_n4" class="area"></div><!--[/diy]-->
  76. </ul></div>
  77. <div id="indexbox_c_4" style="display:none;" class="threadbox threadprefix">
  78. <ul>
  79. <!--[diy=fansbar_n5]--><div id="fansbar_n5" class="area"></div><!--[/diy]-->
  80. </ul></div>
  81. </div>
  82. </td>
  83. <td valign="top" style="padding-right:1px;">
  84. <ul class="tabs">
  85. <li id="ranklist_1" class="current" onMouseOver="switchTab('ranklist',1,2,'current');"><span>今日明星</span></li>
  86. <li id="ranklist_2" onMouseOver="switchTab('ranklist',2,2,'current');"><span>活跃会员</span></li>
  87. </ul>
  88. <div class="rankbody">
  89. <div id="ranklist_c_1" style="display:block;" class="rankbox rankstar">
  90. <!--[diy=fansbar_n6]--><div id="fansbar_n6" class="area"></div><!--[/diy]-->
  91. </div>
  92. <div id="ranklist_c_2" style="display:none;" class="threadbox rankprefix">
  93. <ul>
  94. <!--[diy=fansbar_n7]--><div id="fansbar_n7" class="area"></div><!--[/diy]-->
  95. </ul>
  96. </div></div>
  97. </td>
  98. </tr></table>
  99. </div>
  100. </div>
  101. <div class="mn2">
  102. <!--{hook/index_top}-->

  103. <!--{if !empty($_G['cache']['heats']['message'])}-->
  104. <div class="bm">
  105. <div class="bm_h cl">
  106. <h2>{lang hotthreads_forum}</h2>
  107. </div>
  108. <div class="bm_c2 cl">
  109. <div class="heat z">
  110. <!--{loop $_G['cache']['heats']['message'] $data}-->
  111. <dl class="xld">
  112. <dt><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->
  113. <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></dt>
  114. <dd>$data[message]</dd>
  115. </dl>
  116. <!--{/loop}-->
  117. </div>
  118. <ul class="xl xl1 heatl">
  119. <!--{loop $_G['cache']['heats']['subject'] $data}-->
  120. <li><!--{if $_G['adminid'] == 1}--><a class="d" href="forum.php?mod=misc&action=removeindexheats&tid=$data[tid]" onclick="return removeindexheats()">delete</a><!--{/if}-->· <a href="forum.php?mod=viewthread&tid=$data[tid]" target="_blank" class="xi2">$data[subject]</a></li>
  121. <!--{/loop}-->
  122. </ul>
  123. </div>
  124. </div>
  125. <!--{/if}-->

  126. <div class="fl bm">
  127. <!--{loop $catlist $key $cat}-->
  128. <div class="bm bmw {if $cat['forumcolumns']} flg{/if} cl">
  129. <div class="bm_h cl">
  130. <span class="o">
  131. <img id="category_$cat[fid]_img" src="{IMGDIR}/$cat[collapseimg]" title="{lang spread}" alt="{lang spread}" onclick="toggle_collapse('category_$cat[fid]');" />
  132. </span>
  133. <!--{if $cat['moderators']}--><span class="y">{lang forum_category_modedby}: $cat[moderators]</span><!--{/if}-->
  134. <!--{eval $caturl = !empty($cat['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$cat['domain'].'.'.$_G['setting']['domain']['root']['forum'] : '';}-->
  135. <h2><a href="{if !empty($caturl)}$caturl{else}forum.php?gid=$cat[fid]{/if}" style="{if $cat[extra][namecolor]}color: {$cat[extra][namecolor]};{/if}">$cat[name]</a></h2>
  136. </div>
  137. <div id="category_$cat[fid]" class="bm_c2" style="$collapse['category_'.$cat[fid]]">
  138. <table cellspacing="0" cellpadding="0" class="fl_tb">
  139. <tr>
  140. <!--{loop $cat[forums] $forumid}-->
  141. <!--{eval $forum=$forumlist[$forumid];}-->
  142. <!--{eval $forumurl = !empty($forum['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? 'http://'.$forum['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$forum['fid'];}-->
  143. <!--{if $cat['forumcolumns']}-->
  144. <!--{if $forum['orderid'] && ($forum['orderid'] % $cat['forumcolumns'] == 0)}-->
  145. </tr>
  146. <!--{if $forum['orderid'] < $cat['forumscount']}-->
  147. <tr class="fl_row">
  148. <!--{/if}-->
  149. <!--{/if}-->
  150. <td class="fl_g" width="$cat[forumcolwidth]">
  151. <dl{if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="margin-left: {$forum[extra][iconwidth]}px;"{/if}>
  152. <dt><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xw01 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></dt>
  153. <!--{if empty($forum[redirect])}--><dd><em>{lang forum_threads}: $forum[threads]</em>, <em>{lang forum_posts}: $forum[posts]</em></dd><!--{/if}-->
  154. <dd>
  155. <!--{if $forum['permission'] == 1}-->
  156. {lang private_forum}
  157. <!--{else}-->
  158. <!--{if $forum['redirect']}-->
  159. <a href="$forumurl" class="xi2">{lang url_link}</a>
  160. <!--{elseif is_array($forum['lastpost'])}-->
  161. <!--{if $cat['forumcolumns'] < 3}-->
  162. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($forum[lastpost][subject], 30)}--></a> <cite>$forum[lastpost][dateline] <!--{if $forum['lastpost']['author']}-->$forum['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
  163. <!--{else}-->
  164. <a href="forum.php?mod=redirect&tid=$forum[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $forum[lastpost][dateline]</a>
  165. <!--{/if}-->
  166. <!--{else}-->
  167. {lang never}
  168. <!--{/if}-->
  169. <!--{/if}-->
  170. </dd>
  171. </dl>
  172. </td>
  173. <!--{else}-->
  174. <td class="fl_icn" {if !empty($forum[extra][iconwidth]) && !empty($forum[icon])} style="width: {$forum[extra][iconwidth]}px;"{/if}>
  175. <!--{if $forum[icon]}-->
  176. $forum[icon]
  177. <!--{else}-->
  178. <a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}><img src="{IMGDIR}/forum{if $forum[folder]}_new{/if}.gif" alt="$forum[name]" /></a>
  179. <!--{/if}-->
  180. </td>
  181. <td>
  182. <h2><a href="$forumurl"{if $forum[redirect]} target="_blank"{/if}{if $forum[extra][namecolor]} style="color: {$forum[extra][namecolor]};"{/if}>$forum[name]</a><!--{if $forum[todayposts] && !$forum['redirect']}--><em class="xs01 xi1" title="{lang forum_todayposts}"> ($forum[todayposts])</em><!--{/if}--></h2>
  183. <!--{if $forum[description]}--><p class="xg2">$forum[description]</p><!--{/if}-->
  184. <!--{if $forum['subforums']}--><p>{lang forum_subforums}: $forum['subforums']</p><!--{/if}-->
  185. <!--{if $forum['moderators']}--><p>{lang forum_moderators}: <span class="xi2">$forum[moderators]</span></p><!--{/if}-->
  186. </td>
  187. </tr>
  188. <tr class="fl_row">
  189. <!--{/if}-->
  190. <!--{/loop}-->
  191. $cat['endrows']
  192. </tr>
  193. </table>
  194. </div>
  195. </div>
  196. <!--{ad/intercat/bm a_c/$cat[fid]}-->
  197. <!--{/loop}-->
  198. </div>

  199. <!--{hook/index_middle}-->
  200. <div class="wp mtn">
  201. <!--[diy=diy3]--><div id="diy3" class="area"></div><!--[/diy]-->
  202. </div>

  203. <!--{hook/index_bottom}-->
  204. </div>
  205. <div id="sd" class="sd2">
  206. <div class="drag">
  207. <!--[diy=diy_orz_post]--><div id="diy_orz_post" class="area"></div><!--[/diy]-->
  208. </div>
  209. </div>
  210. <!--{if $_G['setting']['forumallowside']}-->
  211. <div id="sd" class="sd2">
  212. <!--{hook/index_side_top}-->
  213. <div class="drag">
  214. <!--[diy=diy2]--><div id="diy2" class="area"></div><!--[/diy]-->
  215. </div>
  216. <!--{hook/index_side_bottom}-->
  217. </div>
  218. <!--{/if}-->
  219. <div id="content_search">
  220. <!--{subtemplate common/pubsearchform}-->
  221. </div>
  222. <!---->
  223. <!--{if empty($gid) && ($_G['cache']['forumlinks'][0] || $_G['cache']['forumlinks'][1] || $_G['cache']['forumlinks'][2])}-->
  224. <div class="sdlk lk">
  225. <div id="category_lk" class="bm_c ptm">
  226. <!--{if $_G['cache']['forumlinks'][0]}-->
  227. <ul class="m mbn cl">$_G['cache']['forumlinks'][0]</ul>
  228. <!--{/if}-->
  229. <!--{if $_G['cache']['forumlinks'][1]}-->
  230. <div class="mbn cl">
  231. $_G['cache']['forumlinks'][1]
  232. </div>
  233. <!--{/if}-->
  234. <!--{if $_G['cache']['forumlinks'][2]}-->
  235. <ul class="x mbm cl">
  236. $_G['cache']['forumlinks'][2]
  237. </ul>
  238. <!--{/if}-->
  239. </div>
  240. </div>
  241. <!--{/if}-->
  242. </div>

  243. <!--{if empty($gid) && $_G['setting']['whosonlinestatus']}-->
  244. <div id="online" class="bm oll">
  245. <div class="bm_h">
  246. <!--{if $detailstatus}-->
  247. <span class="o"><a href="forum.php?showoldetails=no#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_no.gif" alt="{lang spread}" /></a></span>
  248. <h3>
  249. <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
  250. <span class="xs1">- <strong>$onlinenum</strong> {lang onlines}
  251. - <strong>$membercount</strong> {lang index_members}(<strong>$invisiblecount</strong> {lang index_invisibles}),
  252. <strong>$guestcount</strong> {lang index_guests}
  253. - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  254. </h3>
  255. <!--{else}-->
  256. <span class="o"><a href="forum.php?showoldetails=yes#online" title="{lang spread}"><img src="{IMGDIR}/collapsed_yes.gif" alt="{lang spread}" /></a></span>
  257. <h3>
  258. <strong><a href="home.php?mod=space&do=friend&view=online&type=member">{lang onlinemember}</a></strong>
  259. <span class="xs1">- {lang total} <strong>$onlinenum</strong> {lang onlines}
  260. - {lang index_mostonlines} <strong>$onlineinfo[0]</strong> {lang on} <strong>$onlineinfo[1]</strong>.</span>
  261. </h3>
  262. <!--{/if}-->
  263. </div>
  264. <!--{if $_G['setting']['whosonlinestatus'] && $detailstatus}-->
  265. <dl id="onlinelist" class="bm_c">
  266. <dt class="ptm pbm bbda">$_G[cache][onlinelist][legend]</dt>
  267. <!--{if $detailstatus}-->
  268. <dd class="ptm pbm">
  269. <ul class="cl">
  270. <!--{if $whosonline}-->
  271. <!--{loop $whosonline $key $online}-->
  272. <li title="{lang time}: $online[lastactivity]">
  273. <img src="{STATICURL}image/common/$online[icon]" alt="icon" />
  274. <!--{if $online['uid']}-->
  275. <a href="home.php?mod=space&uid=$online[uid]">$online[username]</a>
  276. <!--{else}-->
  277. $online[username]
  278. <!--{/if}-->
  279. </li>
  280. <!--{/loop}-->
  281. <!--{else}-->
  282. <li style="width: auto">{lang online_only_guests}</li>
  283. <!--{/if}-->
  284. </ul>
  285. </dd>
  286. <!--{/if}-->
  287. </dl>
  288. <!--{/if}-->
  289. </div>
  290. <!--{/if}-->

  291. <!--{subtemplate common/footer}-->
复制代码

论坛的首页不显示论坛的版本图标

使用默认的就显示。说明是模版的问题。
但是我不懂代码。希望懂得朋友们能帮我看一下。谢谢了。

分不多。希望有人能帮我一下
网址  http://bbs.xilinghu.com
可以看一下。 如果一排一个板块显示。就显示图标。如果一排三个 就不显示图标了。我也不懂代码。帮帮忙看看吧
谢谢了!
您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-11-23 11:01 , Processed in 0.028062 second(s), 4 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表