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

 找回密码
 立即注册
搜索

[教程] 巴中等大型模板帮助教程(申精)

[复制链接]
DZadmin! 发表于 2009-7-11 00:57:01 | 显示全部楼层 |阅读模式
本帖最后由 DZadmin! 于 2009-7-11 01:14 编辑

一:首页可调用数据的推荐
二:首页Flash调用论坛图片
三:模型说明
四:巴中推荐设置
五:uchome调用代码
·········································

二楼:SS调用说明[全]


持续更新,由于发帖数目限制,大家金币顶
`````````````````````````````````````````````````````````
使用方法:在后台的[系统管理]--[频道管理]里新建一个频道,频道名:[首页推荐],英文ID:tuijian,输入完成后提交保存。再选中[编辑模板],将下面的内容复制到文本框中粘贴提交就行了。
  1. <?exit?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  2. <html xmlns="http://www.w3.org/1999/xhtml">
  3. <head>
  4. <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
  5. <title>小编推荐 新丰台 - 真实、丰富、温暖的网上家园</title>
  6. <meta name="keywords" content="" />
  7. <meta name="description" content="" />
  8. <link id="cssChange" href="{S_URL}/templates/$_SCONFIG[template]/css/tuijian.css" rel="stylesheet" type="text/css">
  9. <!--[if ie 6]>
  10. <style>
  11. .MainLeft{width:246px; float:left; text-align:left;background:#fff;margin-left:2px;margin-top:10px;}
  12. </style>
  13. <![endif]-->
  14. <!--[if ie 7]>
  15. <style>
  16. .MainLeft{width:246px; float:left; text-align:left;background:#fff;margin-left:8px;margin-top:10px;}
  17. </style>
  18. <![endif]-->
  19. <!--[if ie 8]>
  20. <style>
  21. .MainLeft{width:246px; float:left; text-align:left;background:#fff;margin-left:8px;margin-top:10px;}
  22. </style>
  23. <![endif]-->
  24. <script type="text/javascript" src="{S_URL}/templates/$_SCONFIG[template]/js/jquery.js"></script>
  25. </head>
  26. <body>
  27. <SCRIPT language=javascript>
  28. JQ = jQuery.noConflict();
  29. function changeMap(obj)
  30. {
  31. for(i=1;i<=6;i++)
  32. {
  33. if(obj==i){
  34. JQ("#big_"+i).css("display","block");
  35. JQ("#small_"+i).css("display","none");

  36. }else{
  37. JQ("#big_"+i).css("display","none");
  38. JQ("#small_"+i).css("display","block");
  39. }
  40. }
  41. }
  42. </SCRIPT>
  43. <div class="MainLeft">
  44. <div class="MainLeftCon1">
  45. <div class="Rank">
  46. <!--第一个调用-->
  47. <!--{block name="spacenews" parameter="order/i.dateline DESC/limit/0,1/subjectlen/32/cachename/newslist"}-->
  48. <!--{loop $_SBLOCK['newslist'] $value}-->
  49. <div class="Rankcon" id="big_1"
  50. style="display:block;
  51. BACKGROUND: url({S_URL}/templates/$_SCONFIG[template]/images/icon001.gif) #ff5e03 no-repeat right bottom"><H3 class="white">
  52. <a href="$value[url]"
  53. target="_blank">$value[subject]</A>
  54. </h3>
  55. <h4>发布日期:#date('y.m.d', $value['dateline'])#</h4>
  56. </div>
  57. <div id="small_1" onmouseover="changeMap(1);" style="display:none">
  58. <ul class="gray6"
  59. style="BACKGROUND: url({S_URL}/templates/$_SCONFIG[template]/images/icon01.gif) #dddddd no-repeat 7px 6px"><li>$value[subject]</li>
  60. </ul>
  61. </div>
  62. <!--{/loop}-->

  63. <!--后面5个调用-->
  64. <!--{block name="spacenews" parameter="order/i.dateline DESC/limit/2,5/subjectlen/32/cachename/newslist"}-->
  65. <!--{eval $i = 2}-->
  66. <!--{loop $_SBLOCK['newslist'] $value}-->
  67. <div class="Rankcon" id="big_<!--{eval print $i;}-->"
  68. style="display:none;
  69. BACKGROUND: url({S_URL}/templates/$_SCONFIG[template]/images/icon00<!--{eval echo $i;}-->.gif) #ff5e03 no-repeat right bottom"><H3 class="white">
  70. <a href="$value[url]"
  71. target="_blank">$value[subject]</A>
  72. </h3>
  73. <h4>发布日期:#date('y.m.d', $value['dateline'])#</h4>
  74. </div>
  75. <div id="small_<!--{eval echo $i;}-->" onmouseover="changeMap(<!--{eval echo $i;}-->);" style="display:block">
  76. <ul class="gray6"
  77. style="BACKGROUND: url({S_URL}/templates/$_SCONFIG[template]/images/icon0<!--{eval echo $i;}-->.gif) #dddddd no-repeat 7px 6px"><li>$value[subject]</li>
  78. </ul>
  79. </div>
  80. <!--{eval $i++;}-->
  81. <!--{/loop}-->

  82. </div>
  83. </div>
  84. </div>
  85. </body>
  86. </html>
复制代码
二:首页Flash调用论坛图片
  1. <div id="supehot"><!--图片交换开始-->
  2. <!--{block name="bbsattachment" parameter="filetype/image/t_lastpost/2592000/order/t.replies DESC/limit/0,11/cachetime/49900/cachename/hotnewspic/tpl/data"}-->
  3. <div class="box_l" id="index_focus_turn">
  4. <!--{if !empty($_SBLOCK['hotnewspic'])}-->
  5. <div id="index_focus_turn_pic">
  6. <div id="index_focus_turn_picList" style="left:0; top:0;">
  7. <ul>
  8. <!--{loop $_SBLOCK['hotnewspic'] $pkey $pvalue}-->
  9. <li><a href="改成自己的论坛地址/viewthread.php?tid=$pvalue[tid]" target="_blank"><img src="$pvalue['attachment']" alt="" /></a></li>
  10. <!--{/loop}-->
  11. </ul>
  12. </div>
  13. <div id="index_focus_turn_opvdiv"></div>
  14. <div id="index_focus_turn_tx">
  15. <ul>
  16. <!--{eval $i = 0}-->
  17. <!--{loop $_SBLOCK['hotnewspic'] $key $value}-->
  18. <!--{eval $current = ($i == 0 ? 'current' : 'normal');}-->
  19. <li class="$current">$value[subject]</li>
  20. <!--{eval $i++}-->
  21. <!--{/loop}-->
  22. </ul>
  23. </div>
  24. </div>
  25. <div id="index_focus_turn_btn">
  26. <ul>
  27. <!--{eval $i = 0}-->
  28. <!--{loop $_SBLOCK['hotnewspic'] $bkey $bvalue}-->
  29. <!--{eval $current = ($i == 0 ? 'current' : 'normal');}-->
  30. <li class="$current"><img src="$bvalue[attachment]" alt="" /></li>
  31. <!--{eval $i++}-->
  32. <!--{/loop}-->
  33. </ul>
  34. </div>
  35. <!--{/if}-->

  36. </div><!--图片交换结束-->
复制代码
三:模型说明
  1. 1、下载最新、最全安装包


  2. 2、解压后,上传到ss所在目录,覆盖原来的文件。
  3. 如果希望保留,ss默认模板,请先将默认模板文件夹改名,再上传。
  4. 其中“model”目录可以不上传,其中是模块文件,需要从后台上传导入。如何导入请看下面的步骤。

  5. 3、使用管理员身份进入后台
  6. 选择【模型管理】-【模型管理】-【导入模型】

  7. 八哥为我们提供了11个模型,分别进行导入,我以文件名为序进行的导入,其中模型标识、模型名称可以参考如下填法


  8. 模型标识:
  9. 1.ask
  10. 2.baby
  11. 3.house
  12. 4.job
  13. 5.lady
  14. 6.life
  15. 7.love
  16. 8.radio
  17. 9.travel
  18. 10.video
  19. 11.person


  20. 模型名称:
  21. 1.互助问答
  22. 2.亲子乐园
  23. 3.房产信息
  24. 4.职位查询
  25. 5.情感驿站
  26. 6.同城商讯
  27. 7.交友征婚
  28. 8.家园电台
  29. 9.旅游信息
  30. 10.家园视频
  31. 11.人才库



  32. 4、调用uchome活跃会员和动态
  33. 八哥的压缩包已经提供了,调用方法,在此进一步详细说说
  34. 1.首先使用管理员身份进入uchome后台
  35. 2.选择【高级应用】-【数据调用】-【添加】
  36. 3.选择【手写SQL】
  37. 其中模块名称填写:活跃会员
  38. 数据调用SQL填写:SELECT * FROM `uchome_space` AS `space` LEFT JOIN `uchome_spacefield` AS `spacefield` on `space`.`uid`=`spacefield`.`uid` WHERE `space`.`avatar`='1' ORDER BY `space`.`credit` DESC
  39. 4.提交后,在出现的页面中
  40. 数据显示HTML代码填写:<ul>
  41. <!--{loop $_SBLOCK['block8'] $value}-->
  42. <li>
  43. <a href="http://home.pinghu.net/space.php?uid=$value[uid]" target=_blank><img src="<!--{avatar($value[uid],small)}-->" alt="{$_SN[$value[uid]]}" /></a>
  44. <p><a href="http://home.pinghu.net/space.php?uid=$value[uid]" target=_blank>$value[username]</a></p>
  45. </li>
  46. <!--{/loop}-->
  47. </ul>
  48. 5.提交,活跃会员基本调用设置完成
  49. 6.动态的调用,重复已上2-5部即可。因为八哥压缩包中都有代码,在此就不在啰嗦。
  50. 7.已上完成了uch调用设置,但是首页并不一定会显示,因为还需要将js调用添加到首页,打开压缩包中\templates\default目录下的index.html.php文件
  51. 找到<script language="javascript" type="text/javascript" src="http://home.pinghu.net/js.php?id=8"></script>
  52. 替换为你的活跃会员js调用代码

  53. 找到<script language="javascript" type="text/javascript" src="http://home.pinghu.net/js.php?id=7"></script>
  54. 替换为你的动态js调用代码

  55. 上传覆盖。

  56. 5、最后修改资讯分类调用,就是修改资讯分类ID
  57. 将index.html.php文件中的资讯分类ID修改为你创建的资讯分类ID即可。
  58. 比如,原index.html.php文件中“本地”分类的ID为10,你可以将你的网站分类id为10的分类设置为“本地”,也可以根据你的分类修改“本地”这个分类名。

  59. 也可以让分类直接调用你的论坛帖子,在设置分类时,就可以找到


  60. 如果你觉得以上对你有所帮助,请为我的小站做上友情链接


复制代码
四:巴中推荐设置
  1. 把channel-tuijian-html的文件里面的内容复制出来
  2. 然后在后台新建一个叫推荐的频道。ID叫tuijian
  3. 然后再编辑  粘贴刚才复制的东西就好了

  4. <?exit?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  5. <html xmlns="http://www.w3.org/1999/xhtml">
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=gbk" />
  8. <title>易盼网</title>
  9. <meta name="keywords" content="" />
  10. <meta name="description" content="" />
  11. <link id="cssChange" href="/templates/default/css/tuijian.css" rel="stylesheet" type="text/css">
  12. <!--[if ie 6]>
  13. <style>
  14. .MainLeft{width:246px; float:left; text-align:left;background:#fff;margin-left:2px;margin-top:10px;}
  15. </style>
  16. <![endif]-->
  17. <!--[if ie 7]>
  18. <style>
  19. .MainLeft{width:246px; float:left; text-align:left;background:#fff;margin-left:8px;margin-top:10px;}
  20. </style>
  21. <![endif]-->
  22. <!--[if ie 8]>
  23. <style>
  24. .MainLeft{width:246px; float:left; text-align:left;background:#fff;margin-left:8px;margin-top:10px;}
  25. </style>
  26. <![endif]-->
  27. <script type="text/javascript" src="/templates/default/js/jquery.js"></script>
  28. </head>
  29. <body>
  30. <SCRIPT language=javascript>
  31. JQ = jQuery.noConflict();
  32. function changeMap(obj)
  33. {
  34. for(i=1;i<=6;i++)
  35. {
  36. if(obj==i){
  37. JQ("#big_"+i).css("display","block");
  38. JQ("#small_"+i).css("display","none");

  39. }else{
  40. JQ("#big_"+i).css("display","none");
  41. JQ("#small_"+i).css("display","block");
  42. }
  43. }
  44. }
  45. </SCRIPT>
  46. <DIV class=MainLeft>
  47. <DIV class=MainLeftCon1>
  48. <DIV class=Rank>

  49. <DIV class=Rankcon id=big_1
  50. style="DISPLAY: block; BACKGROUND: url(/templates/default/images/icon001.gif) #ff5e03 no-repeat right bottom"><H3><A href="/bbs/viewthread.php?tid=1" target=_blank>易盼社区招聘版主</A></H3>
  51. <H4>发布人:admin</H4>
  52. </DIV>
  53. <DIV id=small_1 onmouseover=changeMap(1); style="DISPLAY: none">
  54. <UL class=gray6
  55. style="BACKGROUND: url(/templates/default/images/icon01.gif) #f1f1f1 no-repeat 7px 6px"><LI>易盼社区招聘版主</LI>
  56. </UL></DIV>

  57. <DIV class=Rankcon id=big_2
  58. style="DISPLAY: none; BACKGROUND: url(/templates/default/images/icon002.gif) #ff5e03 no-repeat right bottom"><H3 class=white>
  59. <A href="/?action-viewnews-itemid-6175"
  60. target=_blank>易盼同城网正式上线</A>
  61. </H3>
  62. <H4>发布人:admin</H4>
  63. </DIV>
  64. <DIV id=small_2 onmouseover=changeMap(2); style="DISPLAY: block">
  65. <UL class=gray6
  66. style="BACKGROUND: url(/templates/default/images/icon02.gif) #dddddd no-repeat 7px 6px"><LI>易盼同城网正式上线</LI>
  67. </UL>
  68. </DIV>

  69. <DIV class=Rankcon id=big_3
  70. style="DISPLAY: none; BACKGROUND: url(/templates/default/images/icon003.gif) #ff5e03 no-repeat right bottom"><H3 class=white>
  71. <A href="/?action-viewnews-itemid-33"
  72. target=_blank>教你多变天怎么穿搭</A>
  73. </H3>
  74. <H4>发布人:admin</H4>
  75. </DIV>
  76. <DIV id=small_3 onmouseover=changeMap(3); style="DISPLAY: block">
  77. <UL class=gray6
  78. style="BACKGROUND: url(/templates/default/images/icon03.gif) #f1f1f1 no-repeat 7px 6px"><LI>教你多变天怎么穿搭</LI>
  79. </UL>
  80. </DIV>

  81. <DIV class=Rankcon id=big_4
  82. style="DISPLAY: none; BACKGROUND: url(/templates/default/images/icon004.gif) #ff5e03 no-repeat right bottom"><H3 class=white>
  83. <A href="/?action-viewnews-itemid-546"
  84. target=_blank>点评20个女人最向往的圣地</A>
  85. </H3>
  86. <H4>发布人:佚名</H4>
  87. </DIV>
  88. <DIV id=small_4 onmouseover=changeMap(4); style="DISPLAY: block">
  89. <UL class=gray6
  90. style="BACKGROUND: url(/templates/default/images/icon04.gif) #dddddd no-repeat 7px 6px"><LI>点评20个女人最向往的圣地</LI>
  91. </UL>
  92. </DIV>

  93. <DIV class=Rankcon id=big_5
  94. style="DISPLAY: none; BACKGROUND: url(/templates/default/images/icon005.gif) #ff5e03 no-repeat right bottom"><H3 class=white>
  95. <A href="/?action-viewnews-itemid-640"
  96. target=_blank>英国举办解内衣比赛挑战世界纪录</A>
  97. </H3>
  98. <H4>发布人:佚名</H4>
  99. </DIV>
  100. <DIV id=small_5 onmouseover=changeMap(5); style="DISPLAY: block">
  101. <UL class=gray6
  102. style="BACKGROUND: url(/templates/default/images/icon05.gif) #f1f1f1 no-repeat 7px 6px"><LI>英国举办解内衣比赛挑战世界纪录</LI>
  103. </UL>
  104. </DIV>

  105. <DIV class=Rankcon id=big_6
  106. style="DISPLAY: none; BACKGROUND: url(/templates/default/images/icon006.gif) #ff5e03 no-repeat right bottom"><H3 class=white>
  107. <A href="#"
  108. target=_blank>易盼同城网测试版上线</A>
  109. </H3>
  110. <H4>发布人:admin</H4>
  111. </DIV>
  112. <DIV id=small_6 onmouseover=changeMap(6); style="DISPLAY: block">
  113. <UL class=gray6
  114. style="BACKGROUND: url(/templates/default/images/icon06.gif) #dddddd no-repeat 7px 6px"><LI>易盼同城网测试版上线</LI>
  115. </UL>
  116. </DIV>


  117. </DIV>
  118. </DIV>
  119. </DIV>
  120. </body>
  121. </html>
复制代码
五:uchome调用代码
活跃会员
查询SQL语句
  1. SELECT * FROM `uchome_space` AS `space` LEFT JOIN `uchome_spacefield` AS `spacefield` on `space`.`uid`=`spacefield`.`uid` WHERE `space`.`avatar`='1' ORDER BY `space`.`credit` DESC
复制代码
数据显示HTML代码
  1. <ul>
  2. <!--{loop $_SBLOCK['block7'] $value}-->
  3. <li>

  4. <a href="http://你的home访问地址/space.php?uid=$value[uid]" target=_blank><img src="<!--{avatar($value[uid],small)}-->" alt="{$_SN[$value[uid]]}" /></a>

  5. <p><a href="http://你的home访问地址/space.php?uid=$value[uid]" target=_blank>$value[username]</a></p>
  6. </li>
  7. <!--{/loop}-->
  8. </ul>
复制代码
动态
查询SQL语句
  1. SELECT * FROM `uchome_feed` AS `feed` WHERE `feed`.`appid`='0' AND `feed`.`friend`='0' ORDER BY `feed`.`dateline` DESC
复制代码
数据显示HTML代码
  1. <!--{eval $feed_list = array();}-->
  2. <!--{loop $_SBLOCK['block7'] $value}-->
  3.         <!--{if empty($feed_list[$value['hash_data']][$value['uid']])}-->
  4.                 <!--{eval realname_set($value['uid'], $value['username']);}-->
  5.                 <!--{eval $feed_list[$value['hash_data']][$value['uid']] = $value;}-->
  6.         <!--{/if}-->
  7. <!--{/loop}-->

  8. <!--{eval $list = array();}-->
  9. <!--{loop $feed_list $values}-->
  10.         <!--{eval $actors = array();}-->
  11.         <!--{eval $a_value = array();}-->
  12.         <!--{loop $values $value}-->
  13.                 <!--{if empty($a_value)}-->
  14.                         <!--{eval $a_value = $value;}-->
  15.                 <!--{/if}-->
  16.                 <!--{eval $actors[] = "<a href="{$siteurl}space.php?uid=$value[uid]">".$_SN[$value['uid']]."</a>";}-->
  17.         <!--{/loop}-->
  18.         <!--{eval $a_value = mkfeed($a_value, $actors);}-->
  19.         <!--{if $a_value['dateline']>=$_SGLOBAL['today']}-->
  20.                 <!--{eval $list['today'][] = $a_value;}-->
  21.         <!--{elseif $a_value['dateline']>=$_SGLOBAL['today']-3600*24}-->
  22.                 <!--{eval $list['yesterday'][] = $a_value;}-->
  23.         <!--{else}-->
  24.                 <!--{eval $theday = sgmdate('Y-m-d', $a_value['dateline']);}-->
  25.                 <!--{eval $list[$theday][] = $a_value;}-->
  26.         <!--{/if}-->
  27. <!--{/loop}-->

  28. <!--{loop $list $day $values}-->
  29. <UL class=line_list id=scrollbody style="OVERFLOW: hidden; HEIGHT: 250px">
  30. <!--{loop $values $value}-->
  31. <li class="type_$value[icon]" id="feed_$value[feedid]_li">
  32.                 <!--{eval echo str_replace('src="attachment', 'src="'.$siteurl.'attachment', str_replace('ref="space', 'ref="'.$siteurl.'space', $value[title_template]));}-->
  33.                 <!--{if empty($notime)}--> <span class="time"><!--{date('m-d H:i',$value[dateline],1)}--></span><!--{/if}-->
  34. </li>
  35. <!--{/loop}-->
  36. </ul>
  37. <!--{/loop}-->
复制代码

评分

1

查看全部评分

回复

使用道具 举报

 楼主| DZadmin! 发表于 2009-7-11 00:57:33 | 显示全部楼层
本帖最后由 DZadmin! 于 2009-7-11 01:16 编辑

1、空间分类:



  1. <!--{block name="category" parameter="type/space/isroot/1/ischannel/2/order/c.displayorder/limit/0,100/cachetime/3600/cachename/category/tpl/data"}-->
  2.                                 <!--{loop $_SBLOCK['category'] $value}-->
  3.                                 <li><a href="$value[url]" target="_self">$value[name]</a></li>
  4. <!--{/loop}-->

  5. 2、空间分类及有新内容的空间列表:
  6. <!--{loop $_SBLOCK['category'] $ckey $cat}-->
  7.                 <!--{eval $ctime=2800+30*$ckey;}-->
  8.                 <!--{block name="userspace" parameter="catid/$cat[subcatid]/limit/0,15/order/u.lastpost DESC/cachetime/$ctime/cachename/sublist/tpl/data"}-->
  9.                 <!--{if $_SBLOCK['sublist']}-->
  10.                 <div class="category">
  11.                         <h3>
  12.                                 <strong><a href="#action/category/catid/$cat[catid]#" target="_self">$cat[name]</a></strong>
  13.                                 <a href="#action/category/catid/$cat[catid]#" class="more" target="_self">更多</a>
  14.                         </h3>
  15.                         <ul class="imgthumblist">
  16.                                 <!--{loop $_SBLOCK['sublist'] $value}-->
  17.                                 <li class="list2line">
  18.                                         <div><a href="$value[url]" target="_blank"><img src="$value[photo]" alt="$value[spacename]" /></a></div>
  19.                                         <p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
  20.                                         <p>信息数:$value[spaceallnum]</p>
  21.                                 </li>
  22.                                 <!--{/loop}-->
  23.                         </ul>
  24.                 </div>
  25.                 <!--{/if}-->
  26.                 <!--{/loop}-->
  27.                

  28. 3、空间分类封面及介绍
  29.                         <!--{if $thecat['thumb']}-->
  30.                         <img src="{A_URL}/$thecat[thumb]" alt="" />
  31.                         <!--{/if}-->
  32.                         <!--{if $thecat['note']}-->
  33.                         <p>$thecat[note]</p>
  34.                         <!--{/if}-->

  35. 4、空间子分类列表:
  36.                 <!--{block name="category" parameter="upid/$thecat[catid]/ischannel/2/order/c.displayorder/limit/0,100/cachetime/10900/cachename/subarr/tpl/data"}-->
  37.                 <!--{if $_SBLOCK['subarr']}-->
  38.                                 <!--{loop $_SBLOCK['subarr'] $value}-->
  39.                                 <li><a href="$value[url]" target="_self">$value[name]</a></li>
  40.                                 <!--{/loop}-->
  41.                 <!--{/if}-->
  42.                
  43. 6、空间专题列表:
  44. <!--{block name="category" parameter="upid/$thecat[catid]/ischannel/1/showattach/1/order/c.displayorder/limit/0,100/cachetime/16400/cachename/channel/tpl/data"}-->
  45.                 <!--{if $_SBLOCK['channel']}-->
  46.                                 <!--{loop $_SBLOCK['channel'] $value}-->
  47.                                 <li>
  48.                                         <a href="#action/category/catid/$value[catid]#" target="_self"><img src="$value[thumb]" alt="" /></a>
  49.                                         <p><a href="#action/category/catid/$value[catid]#" target="_self">$value[name]</a></p>
  50.                                 </li>
  51.                                 <!--{/loop}-->
  52.                 <!--{/if}-->
  53.                
  54. 7、空间更新排行----以一周内新发表数为序
  55. <!--{block name="userspace" parameter="catid/$thecat[subcatid]/lastpost/604800/limit/0,10/order/u.viewnum DESC/cachetime/29800/cachename/hotlist/tpl/data"}-->
  56.                                 <!--{loop $_SBLOCK['hotlist'] $value}-->
  57.                                 <li>
  58.                                         <a href="$value[url]" target="_blank"><img src="$value[photo]" width="78" height="78" alt="$value[spacename]" /></a>
  59.                                         <p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
  60.                                         <p>信息数:$value[spaceallnum]</p>
  61.                                 </li>
  62.                                 <!--{/loop}-->
  63.                                
  64. 8、空间当前类最新列表
  65.                 <!--{block name="userspace" parameter="perpage/40/catid/$thecat[subcatid]/order/u.lastpost DESC/cachename/newlist/tpl/data"}-->
  66.                 <!--{if $_SBLOCK['newlist']}-->
  67.                 <div class="category">
  68.                         <h3><strong>$thecat[name]</strong></h3>
  69.                         <ul class="imgthumblist">
  70.                                 <!--{loop $_SBLOCK['newlist'] $value}-->
  71.                                 <li class="list2line">
  72.                                         <div><a href="$value[url]" target="_blank"><img src="$value[photo]" alt="$value[spacename]" /></a></div>
  73.                                         <p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
  74.                                         <p>信息数:$value[spaceallnum]</p>
  75.                                 </li>
  76.                                 <!--{/loop}-->
  77.                         </ul>

  78. 9、空间当前类子分类最新列表-->
  79.                 <!--{loop $_SBLOCK['subarr'] $ckey $cat}-->
  80.                 <!--{eval $ctime=2800+30*$ckey;}-->
  81.                 <!--{block name="userspace" parameter="catid/$cat[subcatid]/limit/0,100/order/u.lastpost DESC/cachetime/$ctime/cachename/sublist/tpl/data"}-->
  82.                 <!--{if $_SBLOCK['sublist']}-->
  83.                 <div class="category">
  84.                         <h3>
  85.                                 <strong><a href="#action/category/catid/$cat[catid]#" target="_self">$cat[name]</a></strong>
  86.                                 <a href="#action/category/catid/$cat[catid]#" class="more" target="_self">更多</a>
  87.                         </h3>
  88.                         <ul class="imgthumblist">
  89.                                 <!--{loop $_SBLOCK['sublist'] $value}-->
  90.                                 <li class="list2line">
  91.                                         <a href="$value[url]" target="_blank"><img src="$value[photo]" width="78" height="78" alt="$value[spacename]" /></a>
  92.                                         <p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
  93.                                         <p>信息数:$value[spaceallnum]</p>
  94.                                 </li>
  95.                                 <!--{/loop}-->
  96.                         </ul>
  97.                 </div>
  98.                 <!--{/if}-->
  99.                 <!--{/loop}-->
  100.                
  101. 10、空间之星列表(有头像)--按有新发表为序
  102. <!--{block name="userspace" parameter="isstar/1/showdetail/1/order/u.lastpost DESC/limit/0,9/cachetime/14400/cachename/spacestar/tpl/data"}-->
  103.                                 <!--{loop $_SBLOCK['spacestar'] $value}-->
  104.                                 <li><a href="$value[url]"><img src="$value[photo]" alt="$value[spacename]" /></a><p><a href="$value[url]">$value[username]</a></p>
  105.                                 </li>
  106.                                 <!--{/loop}-->
  107.                                
  108. 11、空间之星列表(有头像及信息数目)--按有新发表为序                               
  109. <!--{block name="userspace" parameter="isstar/1/limit/0,100/order/u.lastpost DESC/cachetime/17400/cachename/spacestar/tpl/data"}-->
  110.                                 <!--{loop $_SBLOCK['spacestar'] $value}-->
  111.                                 <li>
  112.                                         <div><a href="$value[url]" target="_blank"><img src="$value[photo]" alt="$value[spacename]" /></a></div>
  113.                                         <p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
  114.                                         <p>信息数:$value[spaceallnum]</p>
  115.                                 </li>
  116.                                 <!--{/loop}-->               
  117. 12、同城空间:
  118.                 <div id="cityspace" class="sideblock cleanblock">
  119.                         <script language="javascript" type="text/javascript" src="{S_URL}/include/js/city.js"></script>
  120.                         <form action="{S_URL}/batch.search.php" method="post">
  121.                                 <button value="true" type="submit" name="usersearch">同城<br />空间</button>
  122.                                 <script language="javascript" type="text/javascript">showprovince('province', 'city', '');</script>
  123.                                 <script language="javascript" type="text/javascript">showcity('city', '');</script>
  124.                         </form>
  125.                 </div>
  126.                
  127. 13、最近更新空间(含空间名称、主人、博客篇数)
  128. <!--{block name="userspace" parameter="order/u.lastpost DESC/limit/0,15/cachetime/1900/cachename/lastspace/tpl/data"}-->
  129.                                 <!--{loop $_SBLOCK['lastspace'] $value}-->
  130.                                 <a href="$value[url]">$value[spacename]</a><br/>
  131.                                 <a href="$value[url]">$value[username]</a> / 博客 ($value[spaceblognum])
  132.                                 <!--{/loop}-->

  133. 14、最新加入空间(含空间名称、主人、加入日期)
  134.                 <!--{block name="userspace" parameter="order/u.dateline DESC/limit/0,15/cachetime/1900/cachename/newspace/tpl/data"}-->
  135.                                 <!--{loop $_SBLOCK['newspace'] $value}-->
  136.                                 <a href="$value[url]">$value[spacename]</a><br/>
  137.                                 <a href="$value[url]">$value[username]</a> / #date("Y-m-d H:i", $value["dateline"])#
  138.                                 <!--{/loop}-->
复制代码
  1. 二、博客篇

  2. 1、博客根分类列表:
  3. <!--{block name="category" parameter="type/blog/isroot/1/ischannel/2/order/c.displayorder/limit/0,100/cachetime/10800/cachename/category/tpl/data"}-->
  4.                                 <!--{loop $_SBLOCK['category'] $value}-->
  5.                                 <li><a href="$value[url]" target="_self">$value[name]</a></li>
  6.                                 <!--{/loop}-->
  7.                                
  8. 2、博客各分类最新文章列表
  9.                 <!--{loop $_SBLOCK['category'] $ckey $cat}-->
  10.                 <!--{eval $ctime=1800+30*$ckey;}-->
  11.                 <!--{block name="spaceblog" parameter="catid/$cat[subcatid]/order/i.dateline DESC/limit/0,10/cachetime/$ctime/subjectlen/40/subjectdot/1/cachename/bloglist/tpl/data"}-->
  12.                 <div class="category">
  13.                         <h3>
  14.                                 <strong><a href="#action/category/catid/$cat[catid]#" target="_self">$cat[name]</a></strong>
  15.                                 <a href="#action/category/catid/$cat[catid]#" class="more" target="_self">更多</a>
  16.                         </h3>
  17.                         <ul class="msgtitlelist">
  18.                                 <!--{loop $_SBLOCK['bloglist'] $value}-->
  19.                                 <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a></li>
  20.                                 <!--{/loop}-->
  21.                         </ul>
  22.                 </div>
  23.                 <!--{/loop}-->

  24.        
  25. 3、博客排行---按照已有博客数目:
  26.                         <!--{block name="userspace" parameter="order/u.spaceallnum DESC/limit/0,10/cachetime/44000/cachename/topspace/tpl/data"}-->
  27.                                         <!--{loop $_SBLOCK['topspace'] $value}-->
  28.                                                 <li><em>$value[spaceallnum]</em><a href="$value[url]">$value[spacename]</a></li>
  29.                                         <!--{/loop}-->
  30.                                        
  31. 4、一周内有更新的博客空间---按浏览数:
  32. <!--{block name="userspace" parameter="lastpost/604800/limit/0,10/order/u.viewnum DESC/cachetime/29800/cachename/hotlist/tpl/data"}-->
  33.                                 <!--{loop $_SBLOCK['hotlist'] $value}-->
  34.                                 <li>
  35.                                         <a href="$value[url]" target="_blank"><img src="$value[photo]" width="78" height="78" alt="$value[spacename]" /></a>
  36.                                         <p><a href="$value[url]" target="_blank" title="$value[spacename]">$value[username]</a></p>
  37.                                         <p>信息数:$value[spaceallnum]</p>
  38.                                 </li>
  39.                                 <!--{/loop}-->
  40.                
  41. 5、博客热门话题tag:
  42. <!--{block name="tag" parameter="order/spaceallnum DESC/limit/0,20/cachetime/21600/cachename/hottag/tpl/data"}-->
  43.                                         <!--{loop $_SBLOCK['hottag'] $value}-->
  44.                                                 <a href="$value[url]">$value[tagname]<em>($value[spaceallnum])</em></a>
  45.                                         <!--{/loop}-->
  46.                                        
  47. 6、热门博客--按照评论数:
  48. <!--{block name="spaceblog" parameter="dateline/604800/order/i.replynum DESC/subjectlen/40/subjectdot/1/limit/0,10/cachetime/18400/cachename/hotblog/tpl/data"}-->
  49.                                         <!--{loop $_SBLOCK['hotblog'] $value}-->
  50.                                         <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a></li>
  51.                                         <!--{/loop}-->


  52. 7、图片博客列表及幻灯:
  53.                 <!--审核等级4的图文博客幻灯片-->
  54.                 <!--{block name="spaceblog" parameter="grade/4/haveattach/1/showattach/1/order/i.lastpost DESC/limit/0,4/cachetime/11930/cachename/picblog/tpl/data"}-->
  55.                 <div id="slideimg" class="sideblock cleanblock">
  56.                         <!--{eval $picarr=$linkarr=$textarr=array();}-->
  57.                         <!--{loop $_SBLOCK['picblog'] $ikey $value}-->
  58.                         <!--{eval $picarr[] = '"'.$value[a_filepath].'"';}-->
  59.                         <!--{eval $linkarr[] = '"'.$value[url].'"';}-->
  60.                         <!--{eval $textarr[] = '"'.$value[subject].'"';}-->
  61.                         <!--{/loop}-->
  62.                         <!--{eval $pics = implode(',', $picarr);}-->
  63.                         <!--{eval $links = implode(',', $linkarr);}-->
  64.                         <!--{eval $texts = implode(',', $textarr);}-->
  65.                        
  66.                         <script type="text/javascript" language="javascript">
  67.                         <!--
  68.                         var focus_width=208;
  69.                         var focus_height=208;
  70.                         var text_height=20;
  71.                        
  72.                         var xsImgs = new Array({$pics});
  73.                         var xsImgLinks = new Array({$links});
  74.                         var xsImgTexts = new Array({$texts});
  75.                         var xsImgSize = new Array(focus_width, focus_height);
  76.                         //-->
  77.                         </script>
  78.                         <script language="javascript" type="text/javascript" src="{S_URL}/include/js/slide.js"></script>
  79.                 </div>

  80. 8、博客等级标题列表:
  81. <!--{block name="spaceblog" parameter="grade/3/order/i.lastpost DESC/limit/0,9/subjectlen/20/subjectdot/1/cachetime/18000/cachename/recommend3blog/tpl/data"}-->
  82.                                 <!--{loop $_SBLOCK['recommend3blog'] $value}-->
  83.                                 <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]" title="$value[subjectall]">$value[subject]</a></li>
  84.                                 <!--{/loop}-->

  85. 9、博客等级标题列表(带内容截取及略图)
  86.                 <!--{block name="spaceblog" parameter="grade/5/showattach/1/showdetail/1/order/i.dateline DESC/limit/0,1/subjectlen/30/subjectdot/1/messagelen/80/messagedot/1/cachetime/18600/cachename/headblog/tpl/data"}-->
  87.                 <!--{loop $_SBLOCK['headblog'] $value}-->
  88.                         <!--{if !empty($value['a_thumbpath'])}--><a href="$value[url]"><img src="$value[a_thumbpath]" alt="" /></a><!--{/if}-->
  89.                         <strong><a href="$value[url]">$value[subject]</a></strong>
  90.                         <p>$value[message]</p>
  91.                 <!--{/loop}-->
  92.                
  93. 10、全部通过审核的博客列表:
  94. <!--{block name="spaceblog" parameter="grade/1,2,3,4,5/order/i.dateline DESC/limit/0,15/showspacename/1/subjectlen/40/subjectdot/1/cachetime/4800/cachename/newgradeblog/tpl/data"}-->
  95.                                         <!--{loop $_SBLOCK['newgradeblog'] $value}-->
  96.                                         <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a></li>
  97.                                         <!--{/loop}-->
  98.                                         如果去掉grade/1,2,3,4,5/ 则表示所有发表的博客无需经过审核即可显示在网站集成页面。
  99.                                        
  100.                                        
  101. 11、一周内有新内容的用户空间名称列表
  102.                 <!--{block name="userspace" parameter="lastpost/604800/order/u.spaceblognum DESC/limit/0,10/cachetime/9900/cachename/newspace/tpl/data"}-->
  103.                                 <!--{loop $_SBLOCK['newspace'] $value}-->
  104.                                 <li><em>$value[spaceblognum] </em><a href="$value[url]">$value[spacename]</a></li>
  105.                                 <!--{/loop}-->
  106.                                
  107. 12、最热博客TAG列表
  108.                 <!--{block name="tag" parameter="order/spaceblognum DESC/limit/0,20/cachetime/18000/cachename/hottag/tpl/data"}-->
  109.                                 <!--{loop $_SBLOCK['hottag'] $value}-->
  110.                                 <a href="$value[url]">$value[tagname]<em>($value[spaceblognum])</em></a>
  111.                                 <!--{/loop}-->

  112. 13、站内热门BLOG列表(一周)---按浏览数
  113.                         <!--{block name="spaceblog" parameter="dateline/604800/order/i.viewnum DESC/limit/0,10/cachetime/15400/subjectlen/40/subjectdot/1/cachename/hotblog1/tpl/data"}-->
  114.                                 <!--{loop $_SBLOCK['hotblog1'] $value}-->
  115.                                 <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a>($value[viewnum])</li>
  116.                                 <!--{/loop}-->

  117. 14、站内热门BLOG列表(一月)---按浏览数
  118.                         <!--{block name="spaceblog" parameter="dateline/2592000/order/i.viewnum DESC/limit/0,10/cachetime/17200/subjectlen/40/subjectdot/1/cachename/hotblog2/tpl/data"}-->
  119.                                 <!--{loop $_SBLOCK['hotblog2'] $value}-->
  120.                                 <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a>($value[viewnum])</li>
  121.                                 <!--{/loop}-->

  122. 15、站内热门BLOG列表(开站以来)---按浏览数
  123.                         <!--{block name="spaceblog" parameter="order/i.viewnum DESC/limit/0,10/cachetime/17400/subjectlen/40/subjectdot/1/cachename/hotblog3/tpl/data"}-->
  124.                                 <!--{loop $_SBLOCK['hotblog3'] $value}-->
  125.                                 <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a>($value[viewnum])</li>
  126.                                 <!--{/loop}-->

  127. 16、带附件图片的博客列表
  128. <!--{block name="spaceblog" parameter="haveattach/1/showattach/1/order/i.lastpost DESC/subjectlen/14/subjectdot/1/limit/0,7/cachetime/8000/cachename/picblog/tpl/data"}-->
  129.                 <!--{loop $_SBLOCK['picblog'] $value}-->
  130.                 <li><div><a href="$value[url]"><img src="$value[a_thumbpath]" alt="$value[subjectall]" /></a></div><p><a href="$value[url]">$value[subject]</a></p></li>
  131.                 <!--{/loop}-->

  132. 17、站内热门BLOG列表(一周)---按评论数
  133.                 <!--{block name="spaceblog" parameter="lastpost/604800/order/i.replynum DESC/limit/0,10/cachetime/15400/subjectlen/40/subjectdot/1/cachename/replyhot/tpl/data"}-->
  134.                                 <!--{loop $_SBLOCK['replyhot'] $value}-->
  135.                                 <a href="$value[url]">$value[subject]</a><br/>
  136.                                 <a href="#uid/$value[uid]/action/space#">$value[username]</a> / <a href="$value[url]">评论($value[replynum])</a>
  137.                                 <!--{/loop}-->

  138. 18、最新发表(含评论)博客列表
  139.                 <!--{block name="spaceblog" parameter="order/i.lastpost DESC/limit/0,20/cachetime/1000/cachename/newblog/tpl/data"}-->
  140.                                 <!--{loop $_SBLOCK['newblog'] $value}-->
  141.                                 <a href="$value[url]">$value[subject]</a>
  142.                                 <a href="#uid/$value[uid]/action/space#">$value[username]</a> / #date("Y-m-d", $value["lastpost"])#
  143.                                 <!--{/loop}-->
  144.                                
  145.                                
  146. 19、当前分类封面图片及简介
  147.                 <!--{if $thecat['thumb'] || $thecat['note']}-->
  148.                         <!--{if $thecat['thumb']}-->
  149.                         <img src="{A_URL}/$thecat[thumb]" alt="" />
  150.                         <!--{/if}-->
  151.                         <!--{if $thecat['note']}-->
  152.                         <p>$thecat[note]</p>
  153.                         <!--{/if}-->
  154.                 <!--{/if}-->
  155.                
  156. 20、当前分类子分类列表:
  157.                 <!--{block name="category" parameter="upid/$thecat[catid]/ischannel/2/order/c.displayorder/limit/0,100/cachetime/10900/cachename/subarr/tpl/data"}-->
  158.                 <!--{if $_SBLOCK['subarr']}-->
  159.                                 <!--{loop $_SBLOCK['subarr'] $value}-->
  160.                                 <li><a href="$value[url]" target="_self">$value[name]</a></li>
  161.                                 <!--{/loop}-->
  162.                 <!--{/if}-->
  163.                
  164. 21、当前分类专题列表:
  165.                 <!--{block name="category" parameter="upid/$thecat[catid]/ischannel/1/showattach/1/order/c.displayorder/limit/0,100/cachetime/16400/cachename/channel/tpl/data"}-->
  166.                 <!--{if $_SBLOCK['channel']}-->
  167.                                 <!--{loop $_SBLOCK['channel'] $value}-->
  168.                                 <li>
  169.                                         <a href="#action/category/catid/$value[catid]#" target="_self"><img src="$value[thumb]" alt="" /></a>
  170.                                         <p><a href="#action/category/catid/$value[catid]#" target="_self">$value[name]</a></p>
  171.                                 </li>
  172.                                 <!--{/loop}-->
  173.                 <!--{/if}-->

  174. 22、当前分类月度关注热点---按浏览数
  175.                 <!--{block name="spaceblog" parameter="dateline/2592000/catid/$thecat[subcatid]/order/i.viewnum DESC/limit/0,15/cachetime/17200/cachename/hotnews/tpl/data"}-->
  176.                 <!--{if $_SBLOCK['hotnews']}-->
  177.                                 <!--{loop $_SBLOCK['hotnews'] $value}-->
  178.                                 <a href="$value[url]">$value[subject]</a>
  179.                                 <a href="#uid/$value[uid]/action/space#">$value[username]</a> / <a href="$value[url]">点击($value[viewnum])</a>
  180.                                 <!--{/loop}-->
  181.                 <!--{/if}-->
  182.                
  183. 23、当前分类博客最新列表(含分页):

  184.                 <!--{if $_SGET['page']<2 || empty($_SGET['mode'])}-->
  185.                 <!--{block name="spaceblog" parameter="perpage/20/catid/$thecat[subcatid]/order/i.dateline DESC/showspacename/1/showdetail/1/messagelen/300/messagedot/1/cachename/newlist/tpl/data"}-->
  186.                 <!--{if $_SBLOCK['newlist']}-->
  187.                         <h3><strong>$thecat[name]</strong></h3>
  188.                                 <!--{loop $_SBLOCK['newlist'] $value}-->
  189.                                 <li>
  190.                                         <h4><a href="#uid/$value[uid]/action/space/domain/$value[domain]#"><img src="$value[photo]" alt="$value[spacename]" /></a><a href="$value[url]">$value[subject]</a> <span class="smalltxt">($value[replynum])</span></h4>
  191.                                         <span class="smalltxt" onclick="ColExpIntro(this);">
  192.                                                 <a href="#uid/$value[uid]/action/space/domain/$value[domain]#">$value[username]</a>($value[province]) 发表于 #date("Y-m-d", $value["dateline"])#
  193.                                                 <!--{if !empty($value['tags'])}-->
  194.                                                 关键词:
  195.                                                 <!--{loop $value['tags'] $tag}-->
  196.                                                 <a href="#action/tag/tagname/$tag#">$tag</a>
  197.                                                 <!--{/loop}-->
  198.                                                 <!--{/if}-->
  199.                                         </span>
  200.                                         <p onclick="ColExpIntro(this);">$value[message] <a href="$value[url]">...全文</a></p>
  201.                                 </li>
  202.                                 <!--{/loop}-->
  203.                         <div class="pages">
  204.                                 <!--{if $_SBLOCK[newlist_multipage]}-->
  205.                                 $_SBLOCK[newlist_multipage]
  206.                                 <!--{else}-->
  207.                                 <table summary="" class="xspace-page"><tr><td class="xspace-totlerecord">当前只有一页</td></tr></table>
  208.                                 <!--{/if}-->
  209.                         </div>
  210.                 <!--{/if}-->
  211.                 <!--{/if}-->

  212. 24、关联论坛新帖列表:
  213.                 <!--{if !empty($thecat['bbsmodel'])}-->
  214.                 <!--{if $_SGET['page']<2 || !empty($_SGET['mode'])}-->
  215.                 <!--{eval $_SGET['mode']='bbs';}-->
  216.                 <!--{block name="bbsthread" parameter="perpage/20/$thecat[blockparameter]/cachename/bbsthreadlist/tpl/data"}-->
  217.                 <!--{if $_SBLOCK['bbsthreadlist']}-->
  218.                                 <!--{loop $_SBLOCK['bbsthreadlist'] $value}-->
  219.                                 <li><cite>#date("m-d", $value["dateline"])# </cite><a href="$value[url]">$value[subject]</a></li>
  220.                                 <!--{/loop}-->

  221.                         <div class="pages">
  222.                                 <!--{if $_SBLOCK[bbsthreadlist_multipage]}-->
  223.                                 $_SBLOCK[bbsthreadlist_multipage]
  224.                                 <!--{else}-->
  225.                                 <table summary="" class="xspace-page"><tr><td class="xspace-totlerecord">当前只有一页</td></tr></table>
  226.                                 <!--{/if}-->
  227.                         </div>
  228.                 <!--{/if}-->
  229.                 <!--{/if}-->
  230.                 <!--{/if}-->

  231. 25、博客当前分类子分类最新列表:
  232.                 <!--{if $_SGET['page']<2}-->
  233.                 <!--{loop $_SBLOCK['subarr'] $ckey $cat}-->
  234.                 <!--{eval $ctime=1800+30*$ckey;}-->
  235.                 <!--{block name="spaceblog" parameter="catid/$cat[subcatid]/order/i.dateline DESC/limit/0,10/cachetime/$ctime/subjectlen/40/cachename/subnewlist/tpl/data"}-->
  236.                 <!--{if $_SBLOCK['subnewlist']}-->
  237.                 <div class="category">
  238.                         <h3>
  239.                                 <strong><a href="#action/category/catid/$cat[catid]#" target="_self">$cat[name]</a></strong>
  240.                                 <a href="#action/category/catid/$cat[catid]#" class="more" target="_self">更多</a>
  241.                         </h3>
  242.                         <ul class="msgtitlelist">
  243.                                 <!--{loop $_SBLOCK['subnewlist'] $value}-->
  244.                                 <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite><a href="$value[url]">$value[subject]</a></li>
  245.                                 <!--{/loop}-->
  246.                         </ul>
  247.                 </div>
  248.                 <!--{/if}-->
  249.                 <!--{/loop}-->
  250.                 <!--{/if}-->
复制代码
  1. 1、论坛分类列表
  2.                 <!--{block name="bbsforum" parameter="type/forum/allowblog/1/order/displayorder/limit/0,100/cachetime/14400/cachename/forumarr/tpl/data"}-->
  3.                                 <!--{loop $_SBLOCK['forumarr'] $value}-->
  4.                                 <li><a href="$value[url]" target="_self">$value[name]</a></li>
  5.                                 <!--{/loop}-->
  6.                                
  7. 2、论坛注册
  8. {B_URL}/register.php

  9. 3、论坛公告标题
  10. <!--{block name="bbsannouncement" parameter="order/displayorder/limit/0,10/cachetime/86400/cachename/announcelist/tpl/data"}-->
  11.                                 <!--{loop $_SBLOCK['announcelist'] $ikey $value}-->
  12.                                 <li><a href="$value[url]" target="_blank">$value[subject]</a></li>
  13.                                 <!--{/loop}-->
  14.                                
  15. 4、论坛带图片附件帖幻灯显示:
  16.                 <!--{block name="bbsattachment" parameter="filetype/image/t_lastpost/2592000/order/t.replies DESC/limit/0,10/cachetime/19900/cachename/picthread/tpl/data"}-->
  17.                         <!--{eval $picarr=$linkarr=$textarr=array();}-->
  18.                         <!--{loop $_SBLOCK['picthread'] $ikey $value}-->
  19.                         <!--{eval $picarr[] = '"'.$value[a_thumbpath].'"';}-->
  20.                         <!--{eval $linkarr[] = '"'.$value[url].'"';}-->
  21.                         <!--{eval $textarr[] = '"'.$value[subject].'"';}-->
  22.                         <!--{/loop}-->
  23.                         <!--{eval $pics = implode(',', $picarr);}-->
  24.                         <!--{eval $links = implode(',', $linkarr);}-->
  25.                         <!--{eval $texts = implode(',', $textarr);}-->
  26.                        
  27.                         <script type="text/javascript" language="javascript">
  28.                         <!--
  29.                         var focus_width=208;
  30.                         var focus_height=208;
  31.                         var text_height=20;
  32.                        
  33.                         var xsImgs = new Array({$pics});
  34.                         var xsImgLinks = new Array({$links});
  35.                         var xsImgTexts = new Array({$texts});
  36.                         var xsImgSize = new Array(focus_width, focus_height);
  37.                         //-->
  38.                         </script>
  39.                         <script language="javascript" type="text/javascript" src="{S_URL}/include/js/slide.js"></script>


  40. 5、最近1个月热点回复帖子标题
  41.                 <!--{block name="bbsthread" parameter="dateline/2592000/order/replies DESC/limit/0,8/cachetime/22400/subjectlen/26/cachename/hotthread/tpl/data"}-->
  42.                         <!--{loop $_SBLOCK['hotthread'] $value}-->
  43.                         <li><a href="$value[url]" title="$value[subjectall]">$value[subject]</a> <span class="smalltxt">($value[replies])</span></li>
  44.                         <!--{/loop}-->

  45. 6、最近1天热点回复帖子(含内容截取)
  46.                 <!--{block name="bbsthread" parameter="showdetail/1/messagelen/100/subjectlen/40/dateline/86400/order/replies DESC/limit/0,1/cachetime/12400/cachename/coolthread/tpl/data"}-->
  47.                 <!--{loop $_SBLOCK['coolthread'] $value}-->
  48.                         <strong><a href="$value[url]">$value[subject]</a></strong>
  49.                         <p>$value[message]</p>
  50.                 <!--{/loop}-->

  51. 7、最近1个月热点回复帖子标题
  52.                 <!--{block name="bbsthread" parameter="dateline/604800/subjectlen/33/order/replies DESC/limit/0,15/cachetime/21400/cachename/replyhot/tpl/data"}-->
  53.                                 <!--{loop $_SBLOCK['replyhot'] $value}-->
  54.                                 <li><cite><a href="{B_URL}/viewpro.php?uid=$value[authorid]">$value[author]</a></cite><a href="$value[url]">$value[subject]</a> <span class="smalltxt">($value[replies])</span></li>
  55.                                 <!--{/loop}-->

  56. 8、板块排行--根据帖子数
  57.                 <!--{block name="bbsforum" parameter="type/forum/allowblog/1/order/posts DESC/limit/0,10/cachetime/14400/cachename/hotforums/tpl/data"}-->
  58.                                 <!--{loop $_SBLOCK['hotforums'] $value}-->
  59.                                 <li><em>$value[posts]</em><a href="$value[url]">$value[name]</a></li>
  60.                                 <!--{/loop}-->

  61. 9、会员排行--根据帖子数
  62.                 <!--{block name="bbsmember" parameter="order/m.posts DESC/limit/0,10/cachetime/43200/cachename/hotmembers/tpl/data"}-->
  63.                                 <!--{loop $_SBLOCK['hotmembers'] $value}-->
  64.                                 <li><cite style="text-align: right; margin-right: 5px;">$value[posts]</cite><a href="$value[url]">$value[username]</a></li>
  65.                                 <!--{/loop}-->

  66. 10、会员排行--根据在线时间
  67.                 <!--{block name="bbsmember" parameter="order/m.oltime DESC/limit/0,10/cachetime/7200/cachename/toponline/tpl/data"}--><!--在线排行-->
  68.                                 <!--{loop $_SBLOCK['toponline'] $value}-->
  69.                                 <li><cite style="width: 80px; text-align: right;">$value[oltime]小时</cite><a href="$value[url]">$value[username]</a></li>
  70.                                 <!--{/loop}-->


  71. 11、帖子点击数排行(一周)
  72.                         <!--{block name="bbsthread" parameter="dateline/604800/order/views DESC/limit/0,10/cachetime/22400/subjectlen/40/subjectdot/1/cachename/hotblog1/tpl/data"}-->
  73.                                 <!--{loop $_SBLOCK['hotblog1'] $value}-->
  74.                                 <li><cite><a href="{B_URL}/viewpro.php?uid=$value[authorid]">$value[author]</a> </cite><a href="$value[url]">$value[subject]</a> ($value[views])</li>
  75.                                 <!--{/loop}-->
  76.                                
  77. 12、帖子点击数排行(一月)
  78.                         <!--{block name="bbsthread" parameter="dateline/2592000/order/views DESC/limit/0,10/cachetime/22400/subjectlen/40/subjectdot/1/cachename/hotblog2/tpl/data"}-->
  79.                                 <!--{loop $_SBLOCK['hotblog2'] $value}-->
  80.                                 <li><cite><a href="{B_URL}/viewpro.php?uid=$value[authorid]">$value[author]</a> </cite><a href="$value[url]">$value[subject]</a> ($value[views])</li>
  81.                                 <!--{/loop}-->

  82. 13、帖子点击数排行(开坛以来)
  83.                         <!--{block name="bbsthread" parameter="order/views DESC/limit/0,10/cachetime/22400/subjectlen/40/subjectdot/1/cachename/hotblog3/tpl/data"}-->
  84.                                 <!--{loop $_SBLOCK['hotblog3'] $value}-->
  85.                                 <li><cite><a href="{B_URL}/viewpro.php?uid=$value[authorid]">$value[author]</a> </cite><a href="$value[url]">$value[subject]</a> ($value[views])</li>
  86.                                 <!--{/loop}-->

  87.                
  88. 14、最新帖子---根据回复
  89.                 <!--{block name="bbsthread" parameter="order/lastpost DESC/limit/0,30/cachetime/1400/cachename/newpost/tpl/data"}-->
  90.                                 <!--{loop $_SBLOCK['newpost'] $value}-->
  91.                                 <a href="$value[url]">$value[subject]</a> <span class="smalltxt">($value[replies])</span>
  92.                                 <!--{/loop}-->
  93.                                
  94. 15、最新加入空间列表
  95.                 <!--{block name="userspace" parameter="order/u.dateline DESC/limit/0,15/cachetime/1900/cachename/newspace/tpl/data"}-->
  96.                                 <!--{loop $_SBLOCK['newspace'] $value}-->
  97.                                 <dt><a href="$value[url]">$value[spacename]</a></dt>
  98.                                 <dd><a href="$value[url]">$value[username]</a> / #date("Y-m-d H:i", $value["dateline"])#</dd>
  99.                                 <!--{/loop}-->
  100.                                
  101. 16、一月好评热点
  102.                 <!--{block name="bbsthread" parameter="order/dateline DESC/limit/0,10/cachetime/21400/cachename/ratehot/tpl/data"}-->
  103.                                 <!--{loop $_SBLOCK['ratehot'] $value}-->
  104.                                 <li style="height: 2.8em; overflow: hidden;">
  105.                                 <p style="margin: 0; height: 1.6em; overflow: hidden;"><a href="$value[url]">$value[subject]</a></p>
  106.                                 <cite style="width: 100%;"><a href="{B_URL}/viewpro.php?uid=$value[authorid]">$value[author]</a>, 发布于#date("m-d H:i:s", $value["dateline"])#</cite></li>
  107.                                 <!--{/loop}-->


  108. 17、各板块最新帖子列表
  109.         <!--{loop $_SBLOCK['forumarr'] $ckey $cat}-->
  110.         <!--{eval $ctime=1800+30*$ckey;}-->
  111.         <!--{block name="bbsthread" parameter="fid/$cat[fid]/order/dateline DESC/limit/0,10/cachetime/$ctime/subjectlen/40/subjectdot/1/cachename/threadlist/tpl/data"}-->
  112.         <div class="formcategory">
  113.                 <h3>
  114.                         <a href="#action/forumdisplay/fid/$cat[fid]#" class="more" target="_self">更多</a>
  115.                         $cat[name]
  116.                 </h3>
  117.                 <ul class="msgtitlelist">
  118.                         <!--{loop $_SBLOCK['threadlist'] $value}-->
  119.                         <li><cite>#date("m-d", $value["dateline"])# </cite><a href="$value[url]">$value[subject]</a></li>
  120.                         <!--{/loop}-->
  121.                 </ul>
  122.                 <!--p class="catecommend"><a href="javascript:;">热点</a></p-->
  123.         </div>
  124.         <!--{/loop}-->
  125.        
  126.        
  127. 18、当前论坛子板块
  128.                 <!--{block name="bbsforum" parameter="fup/$fid/allowblog/1/order/displayorder/limit/0,100/cachetime/28800/cachename/subarr/tpl/data"}-->
  129.                 <!--{if $_SBLOCK['subarr']}-->
  130.                                 <!--{loop $_SBLOCK['subarr'] $value}-->
  131.                                 <li><a href="$value[url]" target="_self">$value[name]</a></li>
  132.                                 <!--{/loop}-->
  133.                 <!--{/if}-->
  134.                
  135. 19、当前论坛月度关注热点
  136.                 <!--{block name="bbsthread" parameter="fid/$fid/dateline/2592000/order/views DESC/limit/0,10/cachetime/17200/cachename/hotthread/tpl/data"}-->
  137.                 <!--{if $_SBLOCK['hotthread']}-->
  138.                                 <!--{loop $_SBLOCK['hotthread'] $value}-->
  139.                                 <dt><a href="$value[url]">$value[subject]</a></dt>
  140.                                 <dd>#date("m-d", $value["lastpost"])# / <a href="$value[url]">点击($value[views])</a></dd>
  141.                                 <!--{/loop}-->
  142.                 <!--{/if}-->
  143.                
  144. 20、当前论坛根分类最新帖子列表
  145.                 <!--{if $forum['type'] != 'group'}-->
  146.                 <!--{block name="bbsthread" parameter="perpage/30/fid/$fid/showdetail/1/messagelen/160/subjectlen/40/order/dateline DESC/cachename/newlist/tpl/data"}-->
  147.                 <!--{if $_SBLOCK['newlist']}-->
  148.                 <div class="category">
  149.                         <h3><strong>$forum[name]</strong><a href="javascript:;" onclick="ColExpAllIntro(this)" id="ColExpAllIntroText" class="more" target="_self">隐藏摘要</a></h3>
  150.                         <ul class="messagelist">
  151.                                 <!--{loop $_SBLOCK['newlist'] $value}-->
  152.                                 <li>
  153.                                         <h4><a href="$value[url]" target="_self">$value[subject]</a> <span class="smalltxt">($value[views])</span></h4>
  154.                                         <span class="smalltxt" onclick="ColExpIntro(this);"><a href="{B_URL}/viewpro.php?$value[authorid]">$value[author]</a> 发表于 #date("Y-m-d", $value["dateline"])#</span>
  155.                                         <p onclick="ColExpIntro(this);">$value[message] <a href="$value[url]">...全文</a></p>
  156.                                 </li>
  157.                                 <!--{/loop}-->
  158.                         </ul>
  159.                        
  160.                         <div class="pages">
  161.                                 <!--{if $_SBLOCK[newlist_multipage]}-->
  162.                                 $_SBLOCK[newlist_multipage]
  163.                                 <!--{else}-->
  164.                                 <table summary="" class="xspace-page"><tr><td class="xspace-totlerecord">当前只有一页</td></tr></table>
  165.                                 <!--{/if}-->
  166.                         </div>
  167.                        
  168.                 </div>
  169.                 <!--{/if}-->
  170.                 <!--{/if}-->
  171.                

  172. 21、当前论坛子论坛最新帖子列表
  173.                 <!--{if $_SGET['page']<2 && !empty($_SBLOCK['subarr'])}-->
  174.                 <!--{loop $_SBLOCK['subarr'] $key $value}-->
  175.                 <!--{eval $cachetime=1800+$key*5;}-->
  176.                 <!--{block name="bbsthread" parameter="fid/$value[fid]/order/dateline DESC/limit/0,10/cachetime/$cachetime/cachename/subthreadlist/tpl/data"}-->
  177.                 <!--{if $_SBLOCK['subthreadlist']}-->
  178.                 <div class="category">
  179.                         <h3>
  180.                                 <strong><a href="#action/forumdisplay/fid/$value[fid]#" target="_self">$value[name]</a></strong>
  181.                                 <a href="#action/forumdisplay/fid/$value[fid]#" class="more" target="_self">更多</a>
  182.                         </h3>
  183.                         <ul class="msgtitlelist">
  184.                                 <!--{loop $_SBLOCK['subthreadlist'] $value}-->
  185.                                 <li><cite>#date("m-d", $value["dateline"])# </cite><a href="$value[url]">$value[subject]</a></li>
  186.                                 <!--{/loop}-->
  187.                         </ul>
  188.                 </div>
  189.                 <!--{/if}-->
  190.                 <!--{/loop}-->
  191.                 <!--{/if}-->
  192.                
  193. 22、当前论坛最新更新帖子
  194.                 <!--{block name="bbsthread" parameter="fid/$thread[fid]/limit/0,10/cachetime/4500/order/dateline DESC/cachename/newthread/tpl/data"}-->
  195.                 <!--{if $_SBLOCK['newthread']}-->
  196.                                 <!--{loop $_SBLOCK['newthread'] $value}-->
  197.                                 <dt><a href="$value[url]">$value[subject]</a></dt>
  198.                                 <!--{/loop}-->
  199.                 <!--{/if}-->
  200.                
  201. 23、帖子浏览页调用:
  202.     标题:$thread[subject]
  203.     发表时间:#date('Y-n-d H:i', $thread["dateline"])#
  204.     作者: $thread[author]
  205.     来源: $_SCONFIG[sitename]
  206.     内容:$thread[message]
  207.     附件:<!--{if !empty($thread['attachments'])}-->
  208.                                         <!--{loop $thread['attachments'] $value}-->
  209.                                         <!--{if ($value['isimage'])}-->
  210.                                         <p><img src="{B_A_URL}/$value[attachment]"><br />$value[filename]</p>
  211.                                         <!--{else}-->
  212.                                         <p><img src="{S_URL}/images/system/haveattach.gif" align="absmiddle" border="0"><a href="{B_URL}/attachment.php?aid=$value[aid]" target="_blank"><strong>$value[filename]</strong></a><br />($value[dateline], Size: $value[attachsize], Downloads: $value[downloads])</p>
  213.                                         <!--{/if}-->
  214.                                         <!--{/loop}-->
  215.                                 <!--{/if}-->
  216.     评论页评论链接:{B_URL}/post.php?action=reply&tid=$thread[tid]
  217.     评论页查看链接:{B_URL}/viewthread.php?tid=$thread[tid]
  218.     相关评论
  219.                         <!--{loop $iarr $key $post}-->
  220.                                 <li>
  221.                                         <h4>$post[author] <span class="smalltxt">(#date("Y-n-d H:i:s", $post["dateline"])#)</span></h4>
  222.                                         <div>$post[message]</div>
  223.                                         <!--{if !empty($item['posts'][$post['pid']]['attachments'])}-->
  224.                                         <div class="imginlog">
  225.                                         <!--{loop $item['posts'][$post['pid']]['attachments'] $post}-->
  226.                                         <!--{if ($post['isimage'])}-->
  227.                                         <p><img src="{B_A_URL}/$post[attachment]"><br />$post[filename]</p>
  228.                                         <!--{else}-->
  229.                                         <p><img src="{S_URL}/images/system/haveattach.gif" align="absmiddle" border="0"><a href="{B_URL}/attachment.php?aid=$post[aid]" target="_blank"><strong>$post[filename]</strong></a><br />($post[dateline], Size: $post[attachsize], Downloads: $post[downloads])</p>
  230.                                         <!--{/if}-->
  231.                                         <!--{/loop}-->
  232.                                                 </div>
  233.                                         <!--{/if}-->
  234.                                 </li>
  235.                         <!--{/loop}-->



  236. 24、帖子浏览页图片及评论链接作用js:
  237. <script language="javascript" type="text/javascript">
  238. <!--
  239.         addImgLink("articlebody");
  240.         addImgLink("commentlist");
  241. //-->
复制代码
回复

使用道具 举报

 楼主| DZadmin! 发表于 2009-7-11 01:01:31 | 显示全部楼层
本帖最后由 DZadmin! 于 2009-7-11 01:12 编辑

更新
更新
更新
更新
更新
更新
回复

使用道具 举报

 楼主| DZadmin! 发表于 2009-7-11 01:02:55 | 显示全部楼层
本帖最后由 DZadmin! 于 2009-7-11 01:06 编辑

更新
更新
更新
更新
更新
更新
回复

使用道具 举报

woxiewo 发表于 2009-7-11 01:03:37 | 显示全部楼层
哦借用下
能用不((em:05))
回复

使用道具 举报

西瓜味雪泡 发表于 2009-7-11 09:02:31 | 显示全部楼层
嗯 不错,你的全部是平湖或者其修改版的教程?  下面那一长段是什么?
回复

使用道具 举报

西瓜味雪泡 发表于 2009-7-11 09:04:00 | 显示全部楼层
空间分类 和 博客篇怎么加上去 你没说呃
回复

使用道具 举报

a624762500 发表于 2009-7-11 10:52:48 | 显示全部楼层
很详细,辛苦了
回复

使用道具 举报

 楼主| DZadmin! 发表于 2009-7-11 16:46:34 | 显示全部楼层
回复

使用道具 举报

11107207 发表于 2009-7-11 17:11:01 | 显示全部楼层
占个
位置
回复

使用道具 举报

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

本版积分规则

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

GMT+8, 2025-9-14 08:46 , Processed in 0.108946 second(s), 15 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

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