1、整合uc 我用(UCenter接口: [DISCUZ UCenter GBK接口] )
嚴格按照 上面整合說明做 特別是最后一步 清空表(一定要,不要會出錯的,本地試過沒清楚總是出錯)
一步一步就會成功整合的
2、uchome榜上有名 第1、2、3張圖像調用便簽(說一下我用的全是萬能便簽,我會把便簽模板、調用SQL全部復制來)
調用SQL代碼:
[ecmsinfo]'SELECT uid as userid, username FROM uchome_show ORDER BY credit DESC LIMIT 3',3,10,0,24,35,0[/ecmsinfo]
頁面模板內容:
[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]
列表內容模板:
<div><div><a target="_blank"><img src="http://www.xxx.com/uccenter/avatar.php?uid=[!--userid--]&size=middle&type=virtual" width="60" height="60" /></a></div><div><a target="_blank">[!--username--]</a></div></div>
3、uchome最新日志+用戶名 調用便簽
調用SQL代碼:
[ecmsinfo]'select subject as title,uid as userid,username,blogid as id from uchome_blog order by blogid desc limit 3',0,20,0,24,39,0[/ecmsinfo]
頁面模板內容:
[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]
列表內容模板:
<li style="line-height:18px;"><a >[!--username--]</a>說:<a target="_blank">[!--title--]</a></li>
4、論壇指定欄目圖片調用標簽(我網站精彩貼圖3張圖片調用的例子)
調用SQL代碼:
[ecmsinfo]'select u.attachment as titlepic,ui.subject as title,u.tid as id from cdb_attachments u LEFT JOIN cdb_threads ui ON u.tid=ui.tid where u.isimage=1 and fid=21 or fid=23 or fid=24 order by ui.tid DESC limit 3',0,16,0,24,37,0[/ecmsinfo]
解釋一下:fid=21 or fid=23 or fid=24論壇欄目編號 (我網站調用搞笑貼圖(fid=21)、美圖分享(fid=23)、娛樂八卦(fid=24))
頁面模板內容:
<table width="98%" align="center">[!--empirenews.listtemp--]<tr><td><!--list.var1--></td><td><!--list.var2--></td><td><!--list.var3--></td></tr>[!--empirenews.listtemp--]</table>
列表內容模板:
<a target="_blank"><img src="http://bbs.xxx.com/attachments/[!--titlepic--]" width="110" height="60" /></a><br /><a target="_blank">[!--title--]</a>
5、論壇指定欄目最新帖子(我的網站珠海知道調用“百姓問道”欄目信息)
調用SQL代碼:
[ecmsinfo]'select subject as title,tid as id from cdb_threads where fid=2 order by tid desc limit 14',0,30,0,24,36,0[/ecmsinfo]
頁面模板內容:
<table width="98%" align="center">[!--empirenews.listtemp--]<tr><td style="line-height:18px;"><!--list.var1--></td></tr>[!--empirenews.listtemp--]</table>
頁面模板內容:
<a target="_blank">[!--title--]</a>
調用SQL代碼 改改數字就可以了
調用模板自己改改 鏈接改成自己網站
新聞熱點
疑難解答