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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已答复] 请问为什么首页内容和幻灯图片不显示

[复制链接]
zqfwd 发表于 2009-7-10 04:29:30 | 显示全部楼层 |阅读模式
请问为什么首页内容和幻灯图片不显示。安装操作都没有问题,看了官网的解决方法还是没有用。不知道这是什么原因?请教高手师傅们帮帮忙,谢谢!

下面是首先模版代码:

  1. <?exit?>
  2. <!--{template header}-->
  3. <!--{eval $ads = getad('system', 'indexad', '1'); }-->
  4. <!--{if !empty($ads['pageheadad']) }-->
  5. <div class="ad_header">$ads[pageheadad]</div>
  6. <!--{/if}-->
  7. </div><!--header end-->

  8. <div id="nav">
  9. <div class="main_nav">
  10. <ul>
  11. <li class="current"><a href="{S_URL}/index.php">首页</a></li>
  12. <!--{loop $channels['menus'] $key $value}-->
  13. <li><a href="$value[url]">$value[name]</a></li>
  14. <!--{/loop}-->
  15. </ul>
  16. </div>

  17. <div class="order_nav">
  18. <!--{loop $channels['menus'] $key $value}-->
  19. <!--{if $key == 'news'}-->
  20. <!--{block name="category" parameter="type/news/isroot/1/order/c.displayorder/limit/0,12/cachetime/80800/cachename/category"}-->
  21. <ul><li>
  22. <em><a href="$value[url]">$value['name']</a>: </em>
  23. <!--{eval $dot = '|'}-->
  24. <!--{eval $total = count($_SBLOCK['category'])}-->
  25. <!--{eval $i = 1;}-->
  26. <!--{loop $_SBLOCK['category'] $value}-->
  27. <a href="$value[url]">$value[name]</a><!--{if $total != $i}--> $dot <!--{/if}-->
  28. <!--{eval $i++;}-->
  29. <!--{/loop}-->
  30. </li></ul>
  31. <!--{elseif $key == 'bbs'}-->
  32. <!--{if $forumarr}-->
  33. <ul><li>
  34. <em><a href="$value[url]">$value['name']</a>: </em>
  35. <!--{eval $dot = '|'}-->
  36. <!--{eval $total = count($forumarr)}-->
  37. <!--{eval $i = 1;}-->
  38. <!--{loop $forumarr $value}-->
  39. <a href="$value[url]">$value[name]</a><!--{if $total != $i}--> $dot <!--{/if}-->
  40. <!--{eval $i++;}-->
  41. <!--{/loop}-->
  42. </li></ul>
  43. <!--{/if}-->
  44. <!--{elseif $value['type'] == 'model'}-->
  45. <!--{eval @include S_ROOT.'./cache/model/model_'.$value['nameid'].'.cache.php';}-->
  46. <!--{if !empty($cacheinfo['categories'])}-->
  47. <ul><li>
  48. <em><a href="$value[url]">$value['name']</a>: </em>
  49. <!--{eval $dot = '|'}-->
  50. <!--{eval $total = count($cacheinfo['categories'])}-->
  51. <!--{eval $i = 1;}-->
  52. <!--{loop $cacheinfo['categories'] $key $value}-->
  53. <a href="$siteurl/m.php?name=$cacheinfo[models][modelname]&mo_catid=$key" title="$value">$value</a><!--{if $total != $i}--> $dot <!--{/if}-->
  54. <!--{eval $i++;}-->
  55. <!--{/loop}-->
  56. </li></ul>
  57. <!--{/if}-->
  58. <!--{/if}-->
  59. <!--{/loop}-->
  60. </div>

  61. </div><!--nav end-->

  62. <div class="column">
  63. <div class="col1">
  64. <div class="col3">
  65. <!--{block name="spacenews" parameter="haveattach/2/order/i.dateline DESC/limit/0,4/cachetime/83400/subjectlen/40/subjectdot/0/cachename/hotnewspic"}-->
  66. <div id="focus_turn">
  67. <!--{if !empty($_SBLOCK['hotnewspic'])}-->
  68. <ul id="focus_pic">
  69. <!--{eval $j = 0}-->
  70. <!--{loop $_SBLOCK['hotnewspic'] $pkey $pvalue}-->
  71. <!--{eval $pcurrent = ($j == 0 ? 'current' : 'normal');}-->
  72. <li class="$pcurrent"><a href="$pvalue[url]"><img src="$pvalue['a_filepath']" alt="" /></a></li>
  73. <!--{eval $j++}-->
  74. <!--{/loop}-->
  75. </ul>
  76. <ul id="focus_tx">
  77. <!--{eval $i = 0}-->
  78. <!--{loop $_SBLOCK['hotnewspic'] $key $value}-->
  79. <!--{eval $current = ($i == 0 ? 'current' : 'normal');}-->
  80. <li class="$current"><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
  81. <!--{eval $i++}-->
  82. <!--{/loop}-->
  83. </ul>
  84. <div id="focus_opacity"></div>
  85. <!--{/if}-->
  86. </div><!--focus_turn end-->

  87. <!--{block name="spacenews" parameter="order/i.viewnum DESC/limit/0,17/cachetime/86900/subjectlen/40/subjectdot/0/showdetail/1/messagelen/100/messagedot/1/cachename/hotnews"}-->
  88. <!--{if !empty($_SBLOCK['hotnews'])}-->
  89. <!--{eval $hotnews = @array_slice($_SBLOCK['hotnews'], 0, 5)}-->
  90. <!--{/if}-->
  91. <div id="new_news">
  92. <h3>热点内容</h3>
  93. <ul>
  94. <!--{loop $hotnews $value}-->
  95. <li><span class="box_r">#date('m-d',$value['dateline'])#</span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
  96. <!--{/loop}-->
  97. </ul>
  98. </div>
  99. </div><!--col3 end-->

  100. <!--最新资讯-->
  101. <!--{block name="spacenews" parameter="order/i.dateline DESC/limit/0,5/cachetime/85400/subjectlen/46/subjectdot/0/showdetail/1/messagelen/150/messagedot/1/cachename/newnews1"}-->
  102. <div class="col4" id="hot_news">
  103. <h3>最新资讯</h3>
  104. <!--{loop $_SBLOCK['newnews1'] $value}-->
  105. <div class="hot_news_list">
  106. <h4><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></h4>
  107. <p>$value[message]</p>
  108. </div>
  109. <!--{/loop}-->
  110. </div><!--col4 end-->
  111. </div><!--col1 end-->
  112. <div class="col2">
  113. <div id="user_login">
  114. <script src="{S_URL}/batch.panel.php?rand={eval echo rand(1, 999999)}" type="text/javascript" language="javascript"></script>
  115. </div><!--user_login end-->

  116. <!--{block name="poll" parameter="order/dateline DESC/limit/0,3/cachetime/80000/subjectlen/36/cachename/poll"}-->
  117. <div class="super_notice">
  118. <h3>调查:</h3>
  119. <ul>
  120. <!--{if empty($_SBLOCK['poll'])}-->
  121. <li>暂时没有调查</li>
  122. <!--{else}-->
  123. <!--{loop $_SBLOCK['poll'] $value}-->
  124. <li><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
  125. <!--{/loop}-->
  126. <!--{/if}-->
  127. </ul>
  128. </div><!--调查end-->

  129. <!--{block name="announcement" parameter="order/displayorder DESC,starttime DESC/limit/0,3/cachetime/96400/subjectlen/34/subjectdot/0/cachename/announce"}-->
  130. <div class="super_notice">
  131. <h3>公告:</h3>
  132. <ul>
  133. <!--{if empty($_SBLOCK['announce'])}-->
  134. <li>暂时没有公告</li>
  135. <!--{else}-->
  136. <!--{loop $_SBLOCK['announce'] $value}-->
  137. <li><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
  138. <!--{/loop}-->
  139. <!--{/if}-->
  140. </ul>
  141. </div><!--公告end-->
  142. <div class="search_bar margin_bot0">
  143. <h3>站内搜索</h3>
  144. <div class="search_content">
  145. <form action="{S_URL}/batch.search.php" method="post">
  146. <input type="text" class="input_tx" size="23" name="searchkey" value="$searchkey" /> <input type="submit" class="input_search" name="authorsearchbtn" value="搜索" />
  147. <div class="search_catalog">
  148. <!--{if empty($searchname)}-->
  149. <!--{eval $searchname = 'subject'}-->
  150. <!--{/if}-->
  151. <input id="title" name="searchname" type="radio" value="subject" <!--{if $searchname == 'subject'}-->checked="checked" <!--{/if}-->/><label for="title">标题</label>
  152. <input id="content" name="searchname" type="radio" value="message" <!--{if $searchname == 'message'}-->checked="checked" <!--{/if}-->/><label for="content">内容</label>
  153. <input id="author" name="searchname" type="radio" value="author" <!--{if $searchname == 'author'}-->checked="checked" <!--{/if}-->/><label for="author">作者</label>
  154. <!--{if !empty($channels['menus']['bbs'])}-->
  155. <a class="search_bbs" title="搜索论坛" href="$bbsurl/search.php" target="_blank">搜索论坛</a>
  156. <!--{/if}-->
  157. <input type="hidden" value="news" name="type">
  158. <input type="hidden" name="formhash" value="<!--{eval echo formhash();}-->" />
  159. </div>
  160. </form>
  161. </div>
  162. </div><!--站内搜索-->
  163. </div><!--col2 end-->
  164. </div><!--column end-->

  165. <!--{if !empty($ads['pagecenterad'])}-->
  166. <div class="ad_pagebody">$ads[pagecenterad]</div>
  167. <!--{/if}-->

  168. <div class="column">
  169. <div class="col1">
  170. <div class="global_module">
  171. <div class="global_module1_caption"><h3>资讯</h3><a class="more" href="#action/news#">更多>></a></div>
  172. <ul class="global_tx_list1">
  173. <!--{if !empty($_SBLOCK['hotnews'])}-->
  174. <!--{eval $hotnews2 = @array_slice($_SBLOCK['hotnews'], 5, 17)}-->
  175. <!--{/if}-->
  176. <!--{loop $hotnews2 $value}-->
  177. <li><span class="box_r">#date('m-d',$value['dateline'])#</span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
  178. <!--{/loop}-->
  179. </ul>
  180. </div>
  181. </div><!--col1 end-->


  182. <!--{block name="spacenews" parameter="digest/1,2,3/order/i.viewnum DESC,i.dateline DESC/limit/0,6/cachetime/89877/subjectlen/34/subjectdot/0/cachename/hotnews2"}-->
  183. <div class="col2">
  184. <div class="global_module bg_fff">
  185. <div class="global_module2_caption"><h3>本月精华</h3></div>
  186. <ul class="global_tx_list2">
  187. <!--{loop $_SBLOCK['hotnews2'] $value}-->
  188. <li><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
  189. <!--{/loop}-->
  190. </ul>
  191. </div>
  192. </div><!--col2 end-->
  193. </div><!--column end-->

  194. <!--{if !empty($channels['menus']['uchimage'])}-->
  195. <div class="column">
  196. <!--{block name="uchphoto" parameter="updatetime/604800/order/updatetime DESC/limit/0,6/cachetime/86585/subjectlen/12/cachename/uchphoto"}-->
  197. <div class="col1">
  198. <div class="global_module">
  199. <div class="global_module1_caption"><h3>相册</h3><a class="more" href="#action/uchimage#">更多>></a></div>
  200. <ul class="global_piclist">
  201. <!--{loop $_SBLOCK['uchphoto'] $key $value}-->
  202. <li><div><a href="$value[url]"><img alt="" src="$value['pic']"/></a></div><span><a href="$value[url]">$value[albumname]</a></span></li>
  203. <!--{/loop}-->
  204. </ul>
  205. </div>
  206. </div><!--col1 end-->

  207. <!--{block name="uchphoto" parameter="dateline/604800/order/picnum DESC,updatetime DESC/limit/0,2/cachetime/89477/subjectlen/14/subjectdot/0/cachename/uchphototop"}-->
  208. <div class="col2">
  209. <div class="global_module bg_fff">
  210. <div class="global_module2_caption"><h3>精彩推荐</h3></div>
  211. <ul class="global_piclist">
  212. <!--{loop $_SBLOCK['uchphototop'] $key $value}-->
  213. <li><div><a href="$value[url]"><img alt="" src="$value['pic']"/></a></div><span><a href="$value[url]">$value[albumname]</a></span></li>
  214. <!--{/loop}-->
  215. </ul>
  216. </div>
  217. </div><!--col2 end-->
  218. </div><!--column end-->
  219. <!--{/if}-->

  220. <!--{if !empty($channels['menus']['bbs'])}-->
  221. <div class="column">
  222. <div class="col1">
  223. <!--{block name="bbsthread" parameter="order/t.dateline DESC/subjectlen/36/subjectdot/0/limit/0,12/cachetime/5630/cachename/newthread"}-->
  224. <div class="global_module">
  225. <div class="global_module1_caption"><h3>论坛</h3><a class="more" href="#action/bbs#">更多>></a></div>
  226. <ul class="global_tx_list1">
  227. <!--{loop $_SBLOCK['newthread'] $value}-->
  228. <li><span class="box_r"><a href="{S_URL}/space.php?uid=$value[authorid]">$value[author]</a></span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
  229. <!--{/loop}-->
  230. </ul>
  231. </div>
  232. </div><!--col1 end-->

  233. <!--{block name="bbsforum" parameter="type/forum/allowblog/1/order/posts DESC/limit/0,6/cachetime/14672/cachename/hotforums"}-->
  234. <div class="col2">
  235. <div class="global_module bg_fff">
  236. <div class="global_module2_caption"><h3>版块帖子数排行</h3></div>
  237. <ul class="global_tx_list2">
  238. <!--{loop $_SBLOCK['hotforums'] $value}-->
  239. <li><span class="box_r">$value[posts]</span><a href="$value[url]">$value[name]</a></li>
  240. <!--{/loop}-->
  241. </ul>
  242. </div>
  243. </div><!--col2 end-->
  244. </div><!--column end-->
  245. <!--{/if}-->

  246. <!--{if !empty($channels['menus']['uchblog'])}-->
  247. <!--{block name="uchblog" parameter="order/dateline DESC/subjectlen/36/subjectdot/0/limit/0,12/cachetime/18400/cachename/hotblog"}-->
  248. <div class="column">
  249. <div class="col1">
  250. <div class="global_module">
  251. <div class="global_module1_caption"><h3>日志</h3><a class="more" href="#action/uchblog#">更多>></a></div>
  252. <ul class="global_tx_list1">
  253. <!--{loop $_SBLOCK['hotblog'] $value}-->
  254. <li><span class="box_r"><a href="{S_URL}/space.php?uid=$value[uid]">$value[username]</a></span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
  255. <!--{/loop}-->
  256. </ul>
  257. </div>
  258. </div><!--col1 end-->

  259. <!--{block name="uchspace" parameter="order/updatetime DESC/limit/0,8/cachetime/86430/cachename/uchspace"}-->
  260. <div class="col2">
  261. <div class="global_module bg_fff">
  262. <div class="global_module2_caption"><h3>最近更新</h3></div>
  263. <ul class="global_avatar_list new_avatar">
  264. <!--{loop $_SBLOCK['uchspace'] $value}-->
  265. <li><a href="{S_URL}/space.php?uid=$value[uid]"><img src="{UC_API}/avatar.php?uid=$value[uid]&size=small" alt="$value[username]" /></a><span><a href="{S_URL}/space.php?uid=$value[uid]">$value[username]</a></span></li>
  266. <!--{/loop}-->
  267. </ul>
  268. </div>
  269. </div><!--col2 end-->
  270. </div><!--column end-->
  271. <!--{/if}-->

  272. <!--{if !empty($ads['pagefootad'])}-->
  273. <div class="ad_pagebody">$ads[pagefootad]</div>
  274. <!--{/if}-->

  275. <!--{if !empty($_SCONFIG['showindex'])}-->
  276. <!--{block name="friendlink" parameter="order/displayorder/limit/0,$_SCONFIG['showindex']/cachetime/11600/namelen/32/cachename/friendlink/tpl/data"}-->
  277. <div id="links">
  278. <h3>友情链接</h3>
  279. <!--{eval $imglink=$txtlink="";}-->
  280. <!--{loop $_SBLOCK['friendlink'] $value}-->
  281. <!--{if $value[logo]}-->
  282. <!--{eval $imglink .= "<a href="".$value[url]."" target="_blank"><img src="".$value[logo]."" alt="".$value[description]."" border="0" /></a>\n";}-->
  283. <!--{else}-->
  284. <!--{eval $txtlink .= "<li><a href="".$value[url]."" title="".$value[description]."" target="_blank">".$value[name]."</a></li>\n";}-->
  285. <!--{/if}-->
  286. <!--{/loop}-->
  287. <!--{if !empty($imglink)}-->
  288. <div class="links_img">
  289. $imglink
  290. </div>
  291. <!--{/if}-->
  292. <!--{if !empty($txtlink)}-->
  293. <div class="links_tx">
  294. <ul class="s_clear">
  295. $txtlink
  296. </ul>
  297. </div>
  298. <!--{/if}-->
  299. </div>
  300. <!--{/if}-->
  301. <!--{if !empty($ads['pagemovead']) || !empty($ads['pageoutad'])}-->
  302. <!--{if !empty($ads['pagemovead'])}-->
  303. <div id="coupleBannerAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
  304. <div style="position: absolute; left: 6px; top: 6px;">
  305. $ads[pagemovead]
  306. <br />
  307. <img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');">
  308. </div>
  309. <div style="position: absolute; right: 6px; top: 6px;">
  310. $ads[pagemovead]
  311. <br />
  312. <img src="{S_URL}/images/base/advclose.gif" onMouseOver="this.style.cursor='hand'" onClick="closeBanner('coupleBannerAdv');">
  313. </div>
  314. </div>
  315. <!--{/if}-->
  316. <!--{if !empty($ads['pageoutad'])}-->
  317. <div id="floatAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
  318. <div id="floatFloor" style="position: absolute; right: 6px; bottom:-700px">
  319. $ads[pageoutad]
  320. </div>
  321. </div>
  322. <!--{/if}-->
  323. <script type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
  324. <script type="text/javascript">
  325. <!--{if !empty($ads['pageoutad'])}-->
  326. var lengthobj = getWindowSize();
  327. lsfloatdiv('floatAdv', 0, 0, 'floatFloor' , -lengthobj.winHeight).floatIt();
  328. <!--{/if}-->
  329. <!--{if !empty($ads['pagemovead'])}-->
  330. lsfloatdiv('coupleBannerAdv', 0, 0, '', 0).floatIt();
  331. <!--{/if}-->
  332. </script>
  333. <!--{/if}-->

  334. <!--{if !empty($ads['pageoutindex'])}-->
  335. $ads[pageoutindex]
  336. <!--{/if}-->

  337. <!--{template footer}-->
复制代码
 楼主| zqfwd 发表于 2009-7-10 04:37:05 | 显示全部楼层
资讯和公告,调查都不显示!郁闷!
回复

使用道具 举报

antdk 发表于 2009-7-10 08:05:48 | 显示全部楼层
由于采用了服务器缓存技术,所以发布的东西不会立即显示在首页上,如果启用了html模式,更新更为缓慢。
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

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

GMT+8, 2025-1-10 02:16 , Processed in 0.024805 second(s), 3 queries , Gzip On, Redis On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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