首页 > CMS建站 > Discuz > 正文

discuz 调用分类调用积分方法

2020-04-04 00:40:56
字体:
来源:转载
供稿:网友
 
刚有网友问积分调用方法
这个必须要用到sql,dz默认无法分类调用的。
 
我给大家写一个调用方法吧
调用分类积分1写法
<!--{eval $usermoney = DB::fetch_first("SELECT `extcredits1` FROM ".DB::table('common_member_count')." WHERE uid=$_G[uid]");}-->  $usermoney[extcredits1]
复制代码
 
调用积分分类二写法
<!--{eval $usermoney = DB::fetch_first("SELECT `extcredits2` FROM ".DB::table('common_member_count')." WHERE uid=$_G[uid]");}--> $usermoney[extcredits2]
复制代码
发表评论 共有条评论
用户名: 密码:
验证码: 匿名发表

图片精选