导航:  修改系统 >

函数参考

Previous pageReturn to chapter overviewNext page
Show/Hide Hidden Text

tog_minus列表显示分类头条新闻

string Headline(int id,string type,int topNum,int maxLength,bool showSort,bool showDate, bool alternat, int cols, bool firstSummary)

string Headline(int topNum,int maxLength,bool showSort,bool showDate, bool alternat, int cols, bool firstSummary)

 

id 为指定分类或专题id,默认为当前分类

type 为指定内容为分类或专题,分类为"sort",专题为"topic",默认为分类

topNom 为调用新闻数量

maxLength 为新闻标题长度限制

showSort 为是否显示分类链接

showDate 为是否显示日期

alternat 设置是否用间隔颜色显示新闻标题

cols 分几列显示新闻标题

firstSummary 第一个头条新闻是否显示简介

 

tog_minus简介显示分类头条新闻

string HeadlineSummary (int id, int topNum, bool showDate, bool showAuthor, bool showDigg)

 

id 为指定分类id,0为所有分类

topNom 为调用新闻数量

showDate 是否显示日期

showAuthor 是否显示作者

showDigg 为是否显示digg

 

tog_minus显示分类头条图片新闻

string ImgHeadline (int id,string type,int topNum,string listtype,int titleLength,int cols, bool showDate, bool showAuthor)

string ImgHeadline (int topNum,string listtype,int titleLength,int cols, bool showDate, bool showAuthor)

 

id 为指定分类或专题id,默认为当前分类

type 为指定为分类或专题内容,"sort"为分类,"topic"为专题,默认为分类

topNum 为调用新闻数量

listtype 为排列方式,"normal"为仅显示图片和标题,"summary_left"为在左边显示简介,"summary_right"为在右边显示简介,"js"为脚本数组

titleLength 是标题限制长度,0为不限制

cols 为每行显示新闻数

showDate 是否显示日期

showAuthor 是否显示作者

 

tog_minus列表显示指定分类/专题新闻排行

string TopList (Int32 id,string type, string toptype,Int32 topNum,Int32 maxLength,bool showClass,bool showHits, bool showDate, bool showNew, bool showAuthor, bool remarkLink, bool alternat, int cols)

string TopList (Int32 id,string type, string toptype,Int32 topNum,Int32 maxLength,bool showClass,bool showHits, bool showDate, bool showNew, bool showAuthor, bool remarkLink, bool alternat)

string TopList (Int32 id,string type, string toptype,Int32 topNum,Int32 maxLength,bool showClass,bool showHits, bool showDate, bool showNew, bool showAuthor, bool remarkLink)

string TopList(Int32 id, string type, string toptype,Int32 topNum,Int32 maxLength,bool showClass,bool showHits, bool showDate, bool showNew, bool showAuthor)

string TopList(Int32 id, string toptype, Int32 topNum,Int32 maxLength,bool showClass,bool showHits, bool showDate, bool showNew, bool showAuthor)

string TopList(string toptype,Int32 topNum,Int32 maxLength,bool showClass,bool showHits, bool showDate, bool showNew, bool showAuthor)

 

id 为要调用新闻的分类或专题或会员ID

type 为要调用新闻类型,"sort"为分类新闻,"topic"为专题新闻,"member"为会员新闻

toptype 为调用类型,"hot"为热门新闻,"new"为最新添加新闻,"weekhot"为本周热门新闻,"dayhot"为本日热门新闻,"random"为随机新闻,"digg"为digg排行,"weekdigg"为周digg排行,"remark"为评论排行

topNum 为调用新闻数量

maxLength 为新闻标题长度限制

showClass 设置是否显示新闻所在分类的连接

showHits 设置是否显示新闻点击数

showDate 设置是否显示新闻日期

showNew 设置是否在新闻添加新闻后显示new图标

showAuthor 设置是否显示新闻作者

remarkLink 设置是否显示新闻评论链接(还取决于新闻的属性)

alternat 设置是否用间隔颜色显示新闻标题

cols 设置新闻标题显示列数

 

tog_minus列表多个分类的最新内容

string TopList (string cids, Int32 topNum, Int32 maxLength, bool showClass, bool showHits, bool showDate, bool showNew, bool showAuthor, bool remarkLink, bool alternat, int cols)

string TopList (string cids, Int32 topNum, Int32 maxLength, bool showClass, bool showHits, bool showDate, bool showNew, bool showAuthor, bool remarkLink, bool alternat)

string TopList (string cids, Int32 topNum, Int32 maxLength, bool showClass, bool showHits, bool showDate, bool showNew, bool showAuthor, bool remarkLink)

 

cids 为要调用新闻的分类ID,多个分类请用","分隔,如"1,2,3 "

topNum 为调用新闻数量

maxLength 为新闻标题长度限制

showClass 设置是否显示新闻所在分类的连接

showHits 设置是否显示新闻点击数

showDate 设置是否显示新闻日期

showNew 设置是否在新闻添加新闻后显示new图标

showAuthor 设置是否显示新闻作者

remarkLink 设置是否显示新闻评论链接(还取决于新闻的属性)

alternat 设置是否用间隔颜色显示新闻标题

cols 设置新闻标题显示列数

 

tog_minus简介显示分类新闻

string TopListSummary (Int32 id, string type, string toptype, Int32 topNum, bool showDate, bool showAuthor, bool showHits, bool showDigg)

string TopListSummary (Int32 id, string toptype, Int32 topNum, bool showDate, bool showAuthor, bool showHits, showDigg)

 

id 为要调用新闻的一级分类ID

type 为要调用新闻类型,"sort"为分类新闻,"topic"为专题新闻,"member"为会员新闻

toptype 为调用类型,"hot"为热门新闻,"new"为最新添加新闻,"weekhot"为本周热门新闻,"dayhot"为本日热门新闻,"random"为随机新闻,"digg"为digg排行,"weekdigg"为周digg排行,"remark"为评论排行

topNum 为调用新闻数量

showDate 是否显示日期

showAuthor 是否显示作者

showHits 设置是否显示新闻点击数

showDigg 是否显示digg

 

tog_minus简介显示多个分类的新闻排行

string TopListSummary (String cids, Int32 topNum, bool showDate, bool showAuthor, bool showHits, bool showDigg)

 

cids 为要调用新闻分类ID,多个分类请用","分隔,如"1,2,3 "

topNum 为调用新闻数量

showDate 是否显示日期

showAuthor 是否显示作者

showHits 设置是否显示新闻点击数

showDigg 是否显示digg

 

tog_minus列表显示指定标签关联的新闻

string KeyNewsList(string key, Int32 topNum,Int32 maxLength,bool showClass,bool showHits, bool showDate, bool showNew, bool showAuthor, bool remarkLink)

 

key 为标签名

topNum 为调用新闻数量

maxLength 为新闻标题长度限制

showClass 设置是否显示新闻所在分类的连接

showHits 设置是否显示新闻点击数

showDate 设置是否显示新闻日期

showNew 设置是否在新闻添加新闻后显示new图标

showAuthor 设置是否显示新闻作者

remarkLink 设置是否显示新闻评论链接(还取决于新闻的属性)

 

tog_minus显示指定分类图片新闻 update

string ImgTopList (Int32 id, String type, String topType, Int32 topNum,Int32 cols,string listType, int titleLength, bool showDate, bool showAuthor, bool showHits)

string ImgTopList (Int32 id, String type, Int32 topNum,Int32 cols,string listType, int titleLength, bool showDate, bool showAuthor, bool showHits)

string ImgTopList (Int32 id,Int32 topNum,Int32 cols,string listType, int titleLength, bool showDate, bool showAuthor, bool showHits)

 

id 指定分类或专题ID
type 指定为分类还是专题 (sort | topic)

topType 为调用类型,"hot"为热门新闻,"new"为最新添加新闻,"weekhot"为本周热门新闻,"dayhot"为本日热门新闻,"random"为随机新闻,"digg"为digg排行,"weekdigg"为周digg排行,"remark"为评论排行

topNum 调用数量

cols 显示多少列

listType 为排列方式,"normal"为仅显示图片和标题,"summary_left"为在左边显示简介,"summary_right"为在右边显示简介,"js"为脚本数组

titleLength 是标题限制到此长度,0为不显示标题

showDate 是否显示日期

showAuthor 是否显示作者

showHits 是否显示新闻点击数

 

tog_minus显示多个分类的图片新闻

string ImgTopList (string cIDs,Int32 topNum,Int32 cols,string listType, bool showTitle, int titleLength, bool showDate, bool showAuthor, bool showHits)

 

cIDs 指定分类,多个分类请用","分隔,如"1,2,3 "

topNum 调用数量

cols 显示多少列

listType 为排列方式,"normal"为仅显示图片和标题,"summary_left"为在左边显示简介,"summary_right"为在右边显示简介,"js"为脚本数组

showTitle 是否显示新闻标题

titleLength 标题限制到此长度

showDate 是否显示日期

showAuthor 是否显示作者

showHits 是否显示新闻点击数

 

tog_minus显示分类或首页公告

string GetBulletin (string type,bool bContent)

string GetBulletin (string type)

 

type 为类型,"h"为横向显示,"v"为竖向显示,"js"为脚本数组

bContent 为是否显示公告内容

 

tog_minus显示当前新闻的相关新闻

string RelateNews(int num, int maxLength, bool showDate, int cols)

string RelateNews(int num, int maxLength, bool showDate)

string RelateNews(int num, int maxLength)

 

num 为显示相关新闻数

maxLength 为新闻标题长度限制

showDate 为是否显示添加日期

cols 分几列显示

 

tog_minus显示当前新闻的相关图片新闻

string RelateImgNews(int num, int maxLength, int cols)

 

num 为显示相关新闻数

maxLength 为新闻标题长度限制

cols 分几列显示

 

tog_minus取指定ID的分类名

string GetSortName (int sortId)

 

sortId 为指定分类id

 

tog_minus取指定ID分类的子分类名

string GetSortChild(int sortId, int num)

 

sortId 为指定分类id

num 为显示子类个数

 

返回为html:<ul class="scl"><li>...</li></ul>

 

tog_minus分类页绑定侧分类导航

void BindLeftNav (bool hideNonChild)

 

hideNonChild 为是否隐藏当前分类的同级分类

 

tog_minus新闻页显示当前新闻评论

void   GetRemarks (int num)

 

num 为显示评论数

 

tog_minus显示评论排行

string TopRemarks (string type, int aid, int num, int days)

string TopRemarks (string type, int aid, int num)

string TopRemarks (int aid, int num)

 

type 评论排行类型 hot为热门评价,new为最新评论

aid 为指定类一分类的排行

num 为显示评论数

days 为取最近多少天的评论

 

tog_minus显示热门标签

string HotTags (int num, string type)

string HotTags (int num)

 

num 为显示标签数

type 为标签类型,"num"为关联新闻最多标签,"hits"为关注最多标签

 

tog_minus显示帖子排行

string TopPosts(int id,string type, bool root, int num, int days, int maxLen, bool showDate, bool showNew, bool newWin)

 

id 取请帖时为分类id,跟帖时为主帖id

type 为"new"时显示最新帖子,为"hot"时显示点击热帖,为"reply"时显示回复热帖,为"support"时显示支持热帖

root 为true时显示主帖,为false时显示跟帖

num 显示帖子数量

days 显示最近多少天内发帖

maxLen 标题显示长度

showDate 是否显示日期

showNew 是否显示new图标

newWin 是否在新窗口打开

 

tog_minus显示友情链接

string GetLinks(string sIds, int cols, bool imgLink)

string GetLinks (int sId, int cols, bool imgLink)

string GetLinks(int cols, bool imgLink)

string GetLinks(string direction, bool imgLink)

 

sIds 为指定多个分类id,","分隔

sId 为指定链接分类

cols 为每行显示链接数

direction 为指定横向或竖向显示,"h"为横向,"v"为竖向

imgLink 为显示图片链接还是文本连接