||
2.在帝国首页模板,调用代码如下:
[ecmsinfo]'select subject as title,uid as userid,blogid as id from bbs_home_blog where friend=0 order by dateline desc limit 8',0,35,0,24,41,0[/ecmsinfo]
subject为日志标题
uid为日志日志所属用户ID
blogid为日志ID
dateline为日志发布时间
41为帝国标签模板
where friend=0为friend日志隐私设置:"0"为全站用户可见,"1"为全好友可见,"2"为仅指定的好友可见,"3"为仅自己可见,"4"为凭密码查看
order by dateline desc为按照日志发布时间排序,也可以按照viewnum日志查看数、replynum日志回复数或者hot热度等排序调取。