1、整合uc 我用(UCenter接口: [DISCUZ UCenter GBK接口] )
嚴(yán)格按照 上面整合說(shuō)明做 特別是最后一步 清空表(一定要,不要會(huì)出錯(cuò)的,本地試過(guò)沒(méi)清楚總是出錯(cuò))
一步一步就會(huì)成功整合的
2、uchome榜上有名 第1、2、3張圖像調(diào)用便簽(說(shuō)一下我用的全是萬(wàn)能便簽,我會(huì)把便簽?zāi)0濉⒄{(diào)用SQL全部復(fù)制來(lái))
調(diào)用SQL代碼:[ecmsinfo]'SELECT uid as userid, username FROM uchome_show ORDER BY credit DESC LIMIT 3',3,10,0,24,35,0[/ecmsinfo]
頁(yè)面模板內(nèi)容:[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]
列表內(nèi)容模板:<div><div><a target="_blank"><img src="http://www.zhsou.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最新日志+用戶名 調(diào)用便簽
調(diào)用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]
頁(yè)面模板內(nèi)容:[!--empirenews.listtemp--]<!--list.var1-->[!--empirenews.listtemp--]
列表內(nèi)容模板:<li style="line-height:18px;"><a >[!--username--]</a>說(shuō):<a target="_blank">[!--title--]</a></li>
4、論壇指定欄目圖片調(diào)用標(biāo)簽(我網(wǎng)站精彩貼圖3張圖片調(diào)用的例子)
調(diào)用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論壇欄目編號(hào) (我網(wǎng)站調(diào)用搞笑貼圖(fid=21)、美圖分享(fid=23)、娛樂(lè)八卦(fid=24))
頁(yè)面模板內(nèi)容:<table width="98%" align="center">
[!--empirenews.listtemp--]
<tr>
<td><!--list.var1--></td><td><!--list.var2--></td><td><!--list.var3--></td>
</tr>
[!--empirenews.listtemp--]
</table>
列表內(nèi)容模板:<a target="_blank"><img src="http://bbs.zh11.com/attachments/[!--titlepic--]" width="110" height="60" /></a><br />
<a target="_blank">[!--title--]</a>
5、論壇指定欄目最新帖子(我的網(wǎng)站珠海知道調(diào)用“百姓問(wèn)道”欄目信息)
調(diào)用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]
頁(yè)面模板內(nèi)容:<table width="98%" align="center">
[!--empirenews.listtemp--]
<tr>
<td style="line-height:18px;"><!--list.var1--></td>
</tr>
[!--empirenews.listtemp--]
</table>
頁(yè)面模板內(nèi)容:<a target="_blank">[!--title--]</a>
調(diào)用SQL代碼 改改數(shù)字就可以了
調(diào)用模板自己改改 鏈接改成自己網(wǎng)站
新聞熱點(diǎn)
疑難解答
圖片精選