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

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

[已解决] 不知道怎么搞的首页底部多了一个1,很诡异的问题

[复制链接]
edvon 发表于 2010-8-10 17:38:57 | 显示全部楼层 |阅读模式
本帖最后由 edvon 于 2010-8-11 08:50 编辑

比较了首页和内页首页多了一个1,在底部,不知道从哪里冒出来的,内页就没有
所以怀疑是news_index的源码导致的,因为我的首页是使用的news_index
  1. <?exit?>
  2. <!--{template header}-->
  3. <!--{eval $ads = getad('system', $channel, '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.                         <!--{if empty($_SCONFIG['defaultchannel'])}-->
  12.                         <li><a href="{S_URL}/">首页</a></li>
  13.                         <!--{/if}-->
  14.                         <!--{loop $channels['menus'] $key $value}-->
  15.                         <li <!--{if $key == $channel }--> class="current"<!--{/if}-->><a href="$value[url]">$value[name]</a></li>
  16.                         <!--{/loop}-->
  17.                 </ul>
  18.         </div>

  19.         <!--{block name="category" parameter="type/$channel/isroot/1/order/c.displayorder/limit/0,100/cachetime/80800/cachename/category"}-->
  20.         <ul class="ext_nav clearfix">
  21.                 <!--{eval $dot = '|'}-->
  22.                 <!--{eval $total = count($_SBLOCK['category'])}-->
  23.                 <!--{eval $i = 1;}-->
  24.                 <!--{loop $_SBLOCK['category'] $value}-->
  25.                 <li><a href="$value[url]">$value[name]</a><!--{if $total != $i}--> $dot <!--{/if}--></li>
  26.                 <!--{eval $i++;}-->
  27.                 <!--{/loop}-->
  28.         </ul>
  29. </div><!--nav end-->
  30. <!--51nb自拟定468*60广告开始-->
  31. <div>#getad("user","13")#</div><!--4个468*60的图片广告-->
  32. <!--51nb自拟定468*60广告结束-->
  33. <!--51nb新品推荐7张图调用开始-->
  34. <!--51nb新品推荐7张图调用结束-->
  35. <!--{block name="spacenews" parameter="type/$channel/haveattach/2/showattach/1/showdetail/1/order/i.dateline DESC/limit/0,11/subjectlen/48/subjectdot/0/messagelen/170/messagedot/1/cachetime/11930/cachename/picnews"}-->
  36. <div class="column">
  37.         <div class="col1">
  38.                 <div class="clearfix">
  39.                         <div class="col3">
  40.                         
  41.                         <div id="focus_turn">
  42.                         <!--{if !empty($_SBLOCK['picnews'])}-->
  43.                         <!--{eval $picnews = @array_slice($_SBLOCK['picnews'], 0, 5);}-->
  44.                                 <ul id="focus_pic">
  45.                                         <!--{eval $j = 0}-->
  46.                                         <!--{loop $picnews $pkey $pvalue}-->
  47.                                         <!--{eval $pcurrent = ($j == 0 ? 'current' : 'normal');}-->
  48.                                         <li class="$pcurrent"><a href="#action/viewnews/itemid/$pvalue[itemid]#"><img src="$pvalue['a_filepath']" alt="$pvalue[subject]" /></a></li>
  49.                                         <!--{eval $j++}-->
  50.                                         <!--{/loop}-->
  51.                                 </ul>
  52.                                 <ul id="focus_tx">
  53.                                         <!--{eval $i = 0}-->
  54.                                         <!--{loop $picnews $key $value}-->
  55.                                         <!--{eval $current = ($i == 0 ? 'current' : 'normal');}-->
  56.                                         <li class="$current"><a href="$value[url]">$value[subject]</a></li>
  57.                                         <!--{eval $i++}-->
  58.                                         <!--{/loop}-->
  59.                                 </ul>
  60.                                 <div id="focus_opacity"></div>
  61.                         <!--{/if}-->
  62.                         </div><!--focus_turn end-->
  63.         
  64.                         </div><!--col3 end-->
  65.                 <!--最新资讯-->
  66.                 <!--{block name="spacenews" parameter="type/$channel/order/i.dateline DESC/limit/0,3/cachetime/85400/subjectlen/40/subjectdot/0/showdetail/1/messagelen/150/messagedot/1/cachename/newnews1"}-->
  67.                         <div class="col4" id="hot_news">
  68.                                 <h3>最新资讯</h3>
  69.                                 <!--{loop $_SBLOCK['newnews1'] $value}-->
  70.                                 <div class="hot_news_list">
  71.                                         <h4><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></h4>
  72.                                         <p>$value[message]</p>
  73.                                 </div>
  74.                                 <!--{/loop}-->
  75.                         </div><!--col4 end-->
  76.                 </div>

  77.                 <!--图文资讯显示-->
  78.                 <!--{if !empty($_SBLOCK['picnews'])}-->
  79.                 <!--{eval $picnews2 = @array_slice($_SBLOCK['picnews'], 5, 11);}-->
  80.                 <!--{/if}-->
  81.                 <div class="global_module margin_bot10">
  82.                         <div class="global_module1_caption"><h3>图文资讯</h3></div>
  83.                         <ul class="globalnews_piclist clearfix">
  84.                                 <!--{loop $picnews2 $value}-->
  85.                                 <li><a href="$value[url]"><img src="$value[a_thumbpath]" alt="$value[subjectall]"/></a><span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></span></li>
  86.                                 <!--{/loop}-->
  87.                         </ul>
  88.                 </div>
  89. <!--首页自拟定google广告开始-->
  90. <script type="text/javascript"><!--
  91.   google_ad_client = "pub-6694527111446837";
  92.   google_ad_format = "js_sdo";
  93.   google_color_bg = "FFFFCC";
  94.   google_cts_mode ="hq";
  95.   google_num_cts = "6";
  96.   google_searchbox_width = 215;
  97.   google_searchbox_height = 26;
  98.   google_link_target = 2;
  99.   google_ad_channel = "5386495894";
  100.   google_logo_pos = "left";
  101.   google_rs_pos = "right";
  102.   google_ad_height = 35;
  103.   google_ad_width = 690;
  104. //-->
  105. </script>
  106. <script type="text/javascript"
  107.   src="http://pagead2.googlesyndication.com/pagead/show_sdo.js">
  108. </script>
  109. <!--首页自拟定google广告结束-->
  110.                 <!--{if !empty($ads['pagecenterad'])}-->
  111.                 <div class="ad_pagebody">$ads[pagecenterad]</div>
  112.                 <!--{/if}-->

  113.                 <div class="catalog_list clearfix">
  114.                 <!--各分类最新资讯列表-->
  115.                 <!--{eval $i = 1;}-->
  116.                 <!--{loop $_SBLOCK['category'] $ckey $cat}-->
  117.                 <!--{eval $cachetime = 1800+30*$ckey;}-->
  118.                
  119.                          <!--{if ($i % 2) == 0}-->
  120.                         <div class="global_module box_r">
  121.                         <!--{else}-->
  122.                         <div class="global_module">
  123.                         <!--{/if}-->
  124.                         
  125.                                 <div class="global_module1_caption"><h3>$cat[name]</h3><a href="#action/category/catid/$cat[catid]#" class="more">更多&gt;&gt;</a></div>
  126.                                 
  127.                                 <!--{block name="spacenews" parameter="catid/$cat[subcatid]/haveattach/2/order/i.dateline DESC/limit/0,3/cachetime/$cachetime/subjectlen/36/cachename/newslistpic"}-->
  128.                             <ul style="list-style-type:none;">
  129.                                 <!--{loop $_SBLOCK['newslistpic'] $value}-->
  130.                                 <li style="float:left; padding:5px 15px 5px 15px"><a href="$value[url]" title="$value[subjectall]" target="_blank"><img src="$value[a_thumbpath]" alt="$value[subjectall]" width="80" height="75" /></a>
  131.                                 </li>
  132.                                 <!--{/loop}-->
  133.                                 </ul>
  134.                                 
  135.                                 <ul class="global_tx_list1">
  136.                                 <!--{block name="spacenews" parameter="catid/$cat[subcatid]/order/i.dateline DESC/limit/0,6/cachetime/$cachetime/subjectlen/36/subjectdot/0/cachename/newslist"}-->
  137.                                 <!--{loop $_SBLOCK['newslist'] $value}-->
  138.                                         <li><span class="box_r">#date('m-d', $value['dateline'])#</span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
  139.                                         <!--{/loop}-->
  140.                                 </ul>
  141.                         </div>
  142.                 <!--{eval $i++;}-->
  143.                 <!--{/loop}-->
  144.                 </div>


  145.         </div><!--col1 end-->
  146.         <div class="col2">
  147.                 <div id="user_login">
  148.                         <script src="{S_URL}/batch.panel.php?rand={eval echo rand(1, 999999)}" type="text/javascript" language="javascript"></script>
  149.                 </div><!--user_login end-->
  150.                 <!--{block name="tag" parameter="order/spacenewsnum DESC/limit/0,30/cachetime/88008/cachename/hottag/tpl/data"}-->
  151.                 <div class="global_module margin_bot10 bg_fff">
  152.                         <div class="global_module2_caption"><h3>热门标签</h3></div>
  153.                         <ul class="tag_list clearfix">
  154.                                         <!--{loop $_SBLOCK['hottag'] $value}-->
  155.                                         <li><a href="$value[url]">$value[tagname]</a>($value[spacenewsnum])</li>
  156.                                         <!--{/loop}-->
  157.                         </ul>
  158.                 </div>

  159. <!--网络广告资源-->
  160.                 <div class="global_module margin_bot10 bg_fff">
  161. <div class="global_module2_caption"><h3>赞助商连接</h3></div>
  162. <div class="ad_sidebar">
  163. <div>#getad("user","14")#</div><!--首页右侧赞助商-->
  164. </div>
  165. <!--网络广告资源-->

  166. </div>


  167.                 <!--最新评论资讯显示-->
  168.                 <!--{block name="spacenews" parameter="type/$channel/order/i.lastpost DESC/limit/0,15/subjectlen/26/subjectdot/0/cachetime/7500/cachename/newnews"}-->
  169.                 <div class="global_module margin_bot10 bg_fff">
  170.                         <div class="global_module2_caption"><h3>最新评论</h3></div>
  171.                         <ul class="global_tx_list3">
  172.                                         <!--{loop $_SBLOCK['newnews'] $value}-->
  173.                                         <li><span class="box_r">#date('m-d', $value['lastpost'])#</span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
  174.                                         <!--{/loop}-->
  175.                         </ul>
  176.                 </div>


  177. <!--网络广告资源-->
  178.                 <div class="global_module margin_bot10 bg_fff">
  179. <div class="global_module2_caption"><h3>网络资源</h3></div>
  180. <div class="ad_sidebar">
  181. <div>#getad("user","16")#</div><!--首页网络资源-->
  182. </div>
  183. <!--网络广告资源-->
  184. </div>
  185.                 <!--月度评论热点-->
  186.                 <!--{block name="spacenews" parameter="type/$channel/lastpost/2592000/order/i.replynum DESC/limit/0,15/cachetime/75400/subjectlen/26/subjectdot/0/cachename/replyhot"}-->
  187.                 <div class="global_module margin_bot10 bg_fff">
  188.                         <div class="global_module2_caption"><h3>月度评论</h3></div>
  189.                         <ul class="global_tx_list3">
  190.                                         <!--{loop $_SBLOCK['replyhot'] $value}-->
  191.                                         <li><span class="box_r">$value[replynum]</span><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
  192.                                         <!--{/loop}-->
  193.                         </ul>
  194.                 </div>

  195.         </div><!--col2 end-->
  196. </div><!--column end-->

  197. <!--{if !empty($ads['pagefootad'])}-->
  198. <div class="ad_pagebody">$ads[pagefootad]</div>
  199. <!--{/if}-->

  200. <!--{if !empty($ads['pagemovead']) || !empty($ads['pageoutad'])}-->
  201. <!--{if !empty($ads['pagemovead'])}-->
  202. <div id="coupleBannerAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
  203.         <div style="position: absolute; left: 6px; top: 6px;">
  204.                 $ads[pagemovead]
  205.                 <br />
  206.                 <img src="{S_URL}/images/base/advclose.gif">
  207.         </div>
  208.         <div style="position: absolute; right: 6px; top: 6px;">
  209.                 $ads[pagemovead]
  210.                 <br />
  211.                 <img src="{S_URL}/images/base/advclose.gif">
  212.         </div>
  213. </div>
  214. <!--{/if}-->
  215. <!--{if !empty($ads['pageoutad'])}-->
  216. <div id="floatAdv" style="z-index: 10; position: absolute; width:100px;left:10px;top:10px;display:none">
  217.         <div id="floatFloor" style="position: absolute; right: 6px; bottom:-700px">
  218.                 $ads[pageoutad]
  219.         </div>
  220. </div>
  221. <!--{/if}-->
  222. <script type="text/javascript" src="{S_URL}/include/js/floatadv.js"></script>
  223. <script type="text/javascript">
  224. <!--{if !empty($ads['pageoutad'])}-->
  225. var lengthobj = getWindowSize();
  226. lsfloatdiv('floatAdv', 0, 0, 'floatFloor' , -lengthobj.winHeight).floatIt();
  227. <!--{/if}-->
  228. <!--{if !empty($ads['pagemovead'])}-->
  229. lsfloatdiv('coupleBannerAdv', 0, 0, '', 0).floatIt();
  230. <!--{/if}-->
  231. </script>
  232. <!--{/if}-->

  233. <!--{if !empty($ads['pageoutindex'])}-->
  234. $ads[pageoutindex]
  235. <!--{/if}-->

  236. <!--51nb.la友情链接自拟定开始-->
  237. <!--{block name="friendlink" parameter="order/displayorder/limit/0,99cachetime/11600/namelen/32/cachename/friendlink/tpl/data"}-->
  238. <div id="links">
  239.         <h3>友情链接|要求PR≥5的IT相关网站|欢迎各大网站、媒体、软件开发商洽谈合作|部分链接移动到<a href="http://bbs.51nb.la/">上网本论坛</a> </h3>
  240.         <!--{eval $imglink=$txtlink="";}-->
  241.         <!--{loop $_SBLOCK['friendlink'] $value}-->
  242.         <!--{if $value[logo]}-->
  243.         <!--{eval $imglink .= "<a href="".$value[url]."" target="_blank"><img src="".$value[logo]."" alt="".$value[description].""  border="0" /></a>\n";}-->
  244.         <!--{else}-->
  245.         <!--{eval $txtlink .= "<li><a href="".$value[url]."" title="".$value[description]."" target="_blank">".$value[name]."</a></li>\n";}-->
  246.         <!--{/if}-->
  247.         <!--{/loop}-->
  248.         <!--{if !empty($imglink)}-->
  249.         <div class="links_img">
  250.                 $imglink
  251.         </div>
  252.         <!--{/if}-->
  253.         <!--{if !empty($txtlink)}-->
  254.         <div class="links_tx">
  255.                 <ul class="s_clear">
  256.                         $txtlink
  257.                 </ul>
  258. </div>
  259. <!--{/if}-->
  260.         </div>
  261. <!--51nb.la友情链接自拟定结束-->
  262. <!--{template footer}-->
复制代码





查询了首页页面www.51nb.la最下面部分的源代码
  1. <!--51nb.la友情链接自拟定结束-->
  2. <div id="footer">

  3. <a href="http://www.51nb.la/index.php">51nbIT资讯网</a> |
  4. <a href="http://www.51nb.la/" target="_blank">笔记本</a> |
  5. <a href="http://www.51nb.la/" target="_blank">上网本</a> |
  6. <a href="http://www.51nb.la/" target="_blank">山寨本</a> |
  7. <a href="http://bbs.51nb.la" target="_blank">交流论坛</a> |
  8. <a href="http://www.51nb.la/action-site-type-ggfh.html">广告服务</a> |
  9.                            <a href="http://www.51nb.la/action-site-type-gywm.html">关于我们</a> |
  10.                            <a href="http://www.itlaw.com.cn/" target="_blank">法律顾问</a> |
  11. <a href="http://www.51nb.la/action-site-type-link.html">友情链接</a> |
  12. <a href="http://www.51nb.la/action-site-type-txwm.html">联系我们</a>  |
  13. <script src="http://s7.cnzz.com/stat.php?id=980587&web_id=980587" language="JavaScript"></script> |
  14.                           <a href="http://www.miibeian.gov.cn" target="_blank">京ICP备10009289号</a><br />Powered by <a href="http://www.supesite.com" target="_blank">SupeSite</a> Copyright&copy;2008-2010 51nb.la All rights reserved. <a href="http://www.51nb.la" target="_blank">51nbIT资讯网</a> 版权所有

  15. <!--请保留版权信息,尊重作者劳动!如必须删除请添加个友情连接,谢谢! -->        
  16. <body>
  17. <div align="center">
  18.   <p><font color="#333333">版权声明:请在转载时注明出处;如果您发现有任何侵犯您权益的情况,请立即和我们联系,我们会及时作相关处理。<br>
  19.     北京市崇文区永外大街128号万朋商城3F-21 服务热线:010-51076493 | 会员交流QQ群83069039  </font></p>
  20.     LOGO及图片设计:<a href="http://www.zhmydesign.com/" target="_blank">忠華設計</a>
  21.   <p></p>

  22. </p>
  23. </body>
  24. </div><!--footer end-->
  25. </body>
  26. </html>
  27. 1
复制代码
现在不知道怎么解决

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
 楼主| edvon 发表于 2010-8-10 20:16:49 | 显示全部楼层


我使用官方默认的综合首页依然会在底部出现1



所以排除了代码的问题了,那就真的不知道是什么原因了

频道页面和内容发布页面是不会出现的这个大家可以浏览下

http://www.51nb.la/category-2.html

http://www.51nb.la/viewnews-4326.html

这次是真的郁闷了,还是找出到元凶

本帖子中包含更多资源

您需要 登录 才可以下载或查看,没有账号?立即注册

x
回复

使用道具 举报

 楼主| edvon 发表于 2010-8-11 08:51:32 | 显示全部楼层
自己也不知道怎么回事,今天早上看就好了
回复

使用道具 举报

zhuwenxian 发表于 2010-8-17 17:59:01 | 显示全部楼层
回复 edvon 的帖子

查询了首页页面www.51nb.la最下面部分的源代码  
第三十行不是有个1吗   把它去掉不就好了啊
   
回复

使用道具 举报

惹事生妃 发表于 2010-8-28 14:41:15 | 显示全部楼层
对啊,30行那里不是明显有个1么- -
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2024-6-1 23:58 , Processed in 0.102614 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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