網(LieHuo.Net)教程 DedeCMS 萬能標簽調用圈子精華置頂主題
以下為引用的內容: {dede:sql sql="Select gid,tid,subject,authorid,author,digest,displayorder,dateline From feidi_group_threads order by digest desc limit 0,5"} <li class="list_center_newslist_li"><!--<span><a href="#">[field:dateline function="GetDateTimeMK(@me)"/]</a></span> --><a href='[field:global name='cfg_cmspath'/]/group/viewthread.php?id=[field:gid/]&tid=[field:tid/]' target="_blank" title="[field:author/] 發表的 [field:subject/]">[field:subject/]</a> <!--<span class="liuyan"><a href='[field:global name='cfg_cmspath'/]/member/index.php?uid=[field:author/]&action=guestbook' target="_blank" title="給[field:author/]留言吧">留言</a></span> --> <span class="time">[field:dateline function='strftime("%m-%d %H:%M",@me)'/]</span> <span class="time"><a href='[field:global name='cfg_cmspath'/]/member/index.php?uid=[field:author/]&action=infos' target="_blank" title="[field:author/]作者的詳細資料">[field:author/]</a></span> </li> {/dede:sql} <!--小組 精華帖子 排行 --> |
可以調用5行置頂主題,里面注釋了一部分功能,根據需要自己修改。修改feidi_group_threads 為你自己的數據表]
以下為引用的內容: {dede:sql sql="Select gid,tid,subject,authorid,author,digest,displayorder,dateline From feidi_group_threads order by digest desc limit 0,5"} <li class="list_center_newslist_li"><!--<span><a href="#">[field:dateline function="GetDateTimeMK(@me)"/]</a></span> --><a href='[field:global name='cfg_cmspath'/]/group/viewthread.php?id=[field:gid/]&tid=[field:tid/]' target="_blank" title="[field:author/] 發表的 [field:subject/]">[field:subject/]</a> <!--<span class="liuyan"><a href='[field:global name='cfg_cmspath'/]/member/index.php?uid=[field:author/]&action=guestbook' target="_blank" title="給[field:author/]留言吧">留言</a></span> --> <span class="time">[field:dateline function='strftime("%m-%d %H:%M",@me)'/]</span> <span class="time"><a href='[field:global name='cfg_cmspath'/]/member/index.php?uid=[field:author/]&action=infos' target="_blank" title="[field:author/]作者的詳細資料">[field:author/]</a></span> </li> {/dede:sql} <!--小組 精華帖子 排行 --> |
可以調用5行精華主題,里面注釋了一部分功能,根據需要自己修改。修改feidi_group_threads 為你自己的數據表