康源NET排版支持net源码


-------------
说实话,这样很强大,但是……可能会吓跑很多新人的。不过留下很多高手,做出更好的网站。

请打开图片
附net康源排版源码,下面是调用最新5帖子和热门排行功能等。



<a href="forum/topiclist/New.Type">新帖</a> <a href="forum/topiclist/Digest.Type">精华</a> <a href="forum/topiclist/Recommend.Type">强帖</a> <a href="forum/topiclist/Hot.Type">热门</a> <a href="forum/Usertop.Type">排行</a><br/>
<%loop (ForumHotItemInfo) HotInfo forumhotconfiginfo.ForumHotCollection%>
<%if {HotInfo.Id}<=5&&{HotInfo.Enabled}==1%>
::{HotInfo.Name} <a href="forum/topiclist/{HotInfo.LinkType}.Type">&gt;&gt;</a><br/>
<%loop HotTopic WebForumHot.GetTopicList(HotInfo)%>
<%set (string){topictitleall} = HotTopic["title"].ToString().Trim()%>
<%set (string){topictitle} = HotInfo.Topictitlelength>0?Utils.HtmlEncode(Utils.GetSubString(Utils.HtmlDecode(topictitleall),HotInfo.Topictitlelength*2,"...")):topictitleall%>
<a href="forum/topic/{HotTopic[tid]}.Type" title="{topictitleall}">{topictitle}</a><br/>
<%if {HotTopic__loop__id}>={HotInfo.Topitemcount}%><%break%><%end if%>
<%loop%>
<%end if%>
<%loop%>


<%set (int){subforumcount} = 0%>
<%set (int){subcount} = 0%>
<%set (int){colcount} = 0%>
<%loop (BoardIndexPageInfo) BoardInfo BoardList%>
<%if {BoardInfo.Layercount}==0%>
<%set {subcount} = BoardInfo.Subboardcount%>
<%set {colcount} = BoardInfo.Colcount%>
::{BoardInfo.Name} <a href="forum/{BoardInfo.Bid}.Type">&gt;&gt;</a><br/>
<%else%>
<%set {subforumcount}=subforumcount+1%>
<a href="forum/{BoardInfo.Bid}.Type">{BoardInfo.Name}</a><%if {subforumcount}=={subcount}||{subforumcount}=={colcount}%><%set {subforumcount}=0%><br/><%else%> |<%end if%>
<%end if%>
<%loop%>


<%if {HotTagList.Length}>0%>
::主题热门标签<br/>
<%loop (TagInfo) tagInfo HotTagList%>
<a href="helper/tags/topic/{tagInfo.Tagid}.Type">{tagInfo.Tagname}</a>
<%loop%>
<br/>


<%end if%>
<a href="Index.Type">[返回网站首页]</a><br/>
<%end if%>
<%res.template._Foot%>
-------------
回复列表(4|隐藏机器人聊天)
添加新回复
回复需要登录