资讯图片幻灯片:
- <!--资讯图片幻灯片 开始-->
- <!--{block name="spacenews" parameter="grade/4/haveattach/1/showattach/1/order/i.dateline DESC/limit/0,4/cachetime/15000/subjectlen/30/cachename/newspic/tpl/data"}-->
- <div id="slideimg" class="sideblock cleanblock">
- <!--{if empty( $_SBLOCK['newspic'])}-->
- <div style="height:234px; he\ight: 214px; padding:0px; line-height:150%;">图文资讯显示区域<br />该区域显示的资讯需要满足的条件为:<br />1.<u>资讯的审核等级为4</u><br />2.<u>资讯含有图片附件</u></div>
- <!--{else}-->
- <!--{eval $picarr = $linkarr = $textarr = array();}-->
- <!--{loop $_SBLOCK['newspic'] $value}-->
- <!--{eval $picarr[] = '"'.$value[a_thumbpath].'"';}-->
- <!--{eval $linkarr[] = '"'.$value[url].'"';}-->
- <!--{eval $textarr[] = '"'.$value[subject].'"';}-->
- <!--{/loop}-->
- <!--{eval $pics = implode(',', $picarr);}-->
- <!--{eval $links = implode(',', $linkarr);}-->
- <!--{eval $texts = implode(',', $textarr);}-->
- <script type="text/javascript" language="javascript">
- <!--
- var focus_width=160;
- var focus_height=120;
- var text_height=20;
- var xsImgs = new Array({$pics});
- var xsImgLinks = new Array({$links});
- var xsImgTexts = new Array({$texts});
- var xsImgSize = new Array(focus_width, focus_height);
- //-->
- </script>
- <script language="javascript" type="text/javascript" src="include/js/slide.js"></script>
- <!--{/if}-->
- </div>
- <!--资讯图片幻灯片 结束-->
复制代码
----------------------------------------------------------咨询3级------------------------------
- <!--{block name="spacenews" parameter="grade/3/order/i.lastpost DESC/limit/0,8/cachetime/14400/subjectlen/30/cachename/recommendnews/tpl/data"}-->
- <ul class="msgtitlelist" style="height: 12.8em;">
- <!--{if empty($_SBLOCK['recommendnews'])}-->
- <li style="height: auto; padding: 0; background-image: none;">该区域显示资讯需要满足的条件为:<br /><u>资讯审核等级为3</u></li>
- <!--{else}-->
- <!--{loop $_SBLOCK['recommendnews'] $value}-->
- <li><a href="$value[url]">$value[subject]</a></li>
- <!--{/loop}-->
- <!--{/if}-->
复制代码
------------------------资讯5级-------------------------------
- <!--{block name="spacenews" parameter="grade/5/haveattach/1/showattach/1/order/i.dateline DESC/limit/0,1/cachetime/40000/showdetail/1/subjectlen/34/messagelen/80/messagedot/1/cachename/headline/tpl/data"}-->
- <!--{if empty($_SBLOCK[headline])}-->
- <div id="headline" class="cleanblock">
- <strong>最新头条资讯</strong>
- <p>该区域显示的资讯需要满足的条件为:<br /><u>资讯的审核等级为5</u></p>
- </div>
- <!--{else}-->
- <div id="headline" class="cleanblock">
- <!--{loop $_SBLOCK[headline] $value}-->
- <strong><a href="$value[url]">$value[subject]</a></strong>
- <p>$value[message]</p>
- <!--{/loop}-->
- </div>
- <!--{/if}-->
- <!-- 1周回复热点 -->
- <!--{block name="spaceblog" parameter="dateline/604800/notype/1/order/i.replynum DESC/subjectlen/34/subjectdot/1/limit/0,10/cachetime/13600/showspacename/1/cachename/newinfos/tpl/data"}-->
- <div id="focus">
- <ul class="msgtitlelist">
- <!--{loop $_SBLOCK[newinfos] $value}-->
- <li><cite><a href="#uid/$value[uid]/action/space#">$value[username]</a> </cite>[<a href="#action/$value[type]#">{$lang[$value[type]]}</a>] <a href="$value[url]">$value[subject]</a></li>
- <!--{/loop}-->
- </ul>
复制代码
-------------------空间排行榜----------------------------
- <a href="#action/blog#" class="more2">更多</a>
- <h2>博客</h2>
- </div>
- <div class="content" style="background: none;">
- <div class="sideR">
- <!--{block name="userspace" parameter="order/u.spaceallnum DESC/limit/0,10/cachetime/44000/cachename/topspace/tpl/data"}-->
- <div id="hotspace" class="sideblock stat" style="height: 19.2em;">
- <h3><a href="#action/spaces#" class="more">所有空间>></a>空间排行</h3>
- <ol>
- <!--{loop $_SBLOCK['topspace'] $value}-->
- <li><em>$value[spaceallnum]</em><a href="$value[url]">$value[spacename]</a></li>
- <!--{/loop}-->
- </ol>
复制代码
--------------------同城空间-----------------------
- <div id="cityspace" class="sideblock cleanblock">
- <script language="javascript" type="text/javascript" src="{S_URL}/include/js/city.js"></script>
- <form action="{S_URL}/batch.search.php" method="post">
- <button type="submit" name="usersearch" value="true">同城<br />空间</button>
- <script language="javascript" type="text/javascript">showprovince('province', 'city', '');</script>
- <script language="javascript" type="text/javascript">showcity('city', '');</script>
- </form>
- </div>
复制代码
热门话题:
- <!--{block name="tag" parameter="order/spaceallnum DESC/limit/0,20/cachetime/21600/cachename/hottag/tpl/data"}-->
- <div id="hottag" class="sideblock boldblock">
- <h3>热门话题</h3>
- <div style="height: 10.5em;">
- <!--{loop $_SBLOCK['hottag'] $value}-->
- <a href="$value[url]">$value[tagname]<em>($value[spaceallnum])</em></a>
- <!--{/loop}-->
- </div>
- </div>
复制代码
下面省略,自己找寻添加.....注意,请符合相关CSS控制使用!
下面一样是多次表格.
[这部分省略.....]
主要是给你放各类信息代码!
如何得到信息代码...
打开后台..调用JavaScript设置!
演示:
[ 本帖最后由 SSAY 于 2006-12-15 22:10 编辑 ] |