调用uchome图像、日志、论坛图片标签完整版

帝国教程 强烈建议 2024-03-04 08:24 105 0

  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--][!--empirenews.listtemp--]

  列表内容模板:

  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--][!--empirenews.listtemp--]

  列表内容模板:

  • [!--username--]说:[!--title--]
  •   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))

      页面模板内容:

      [!--empirenews.listtemp--]

      

      

      

      [!--empirenews.listtemp--]

      

      列表内容模板:调用uchome图像、日志、论坛图片标签完整版

      [!--title--]

      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]

      页面模板内容:

      [!--empirenews.listtemp--]

      

      

      

      [!--empirenews.listtemp--]

      

      页面模板内容:[!--title--]

      调用SQL代码 改改数字就可以了

      调用模板自己改改 链接改成自己网站

    本站资源均来自互联网或会员发布,如果不小心侵犯了您的权益请与我们联系。我们将立即删除!谢谢!