本文實例講述了帝國CMS首頁呼叫最新會員、活躍會員與積分排行的方法。分享給大家供大家參考。具體實作方法如下:
SQL程式碼如下,最新會員SQL:
程式碼如下:
select a.userid,a.username,b.userpic as titlepic from phome_enewsmember as a LEFT JOIN phome_enewsmemberadd as b ON a.userid=b.userid order by a.userid desc limit 10
推薦學習《帝國cms教學 》
以積分排行SQL:
程式碼如下:
select a.userid,a.username,b.userpic as titlepic from phome_enewsmember as a LEFT JOIN phome_enewsmemberadd as b ON a.userid=b.userid order by a.userfen desc limit 10
標籤範本中用[!--userpic--]表示頭像,[!--userid-- ]表示使用者id,[!--username--]表示使用者名稱.
以萬能標籤為例,其按積分排行SQL呼叫語句如下:
[ecmsinfo]"select a.userid,a.username,b.userpic as titlepic from phome_enewsmember as a LEFT JOIN phome_enewsmemberadd as b ON a.userid=b.userid order by a.userfen desc limit 10",10,30,0,24,1,0[/ecmsinfo]
希望本文所述對大家的帝國CMS建站有幫助。
以上是分享帝國CMS首頁呼叫最新會員、活躍會員與積分排行的方法的詳細內容。更多資訊請關注PHP中文網其他相關文章!