|
Discuz调用用户勋章方法
$user_medal = C::t('common_member_medal')->fetch_all_by_uid($_G['uid',);
foreach($user_medal as $k=>$value){
$us_medal = reset(C::t('forum_medal')->fetch_all_by_id($value['medalid',));
$user_medals[$k, = $us_medal;
$user_medals[$k,['image', = 'static/image/common/'.$us_medal['image',;
}
[/ol,
复制代码
模板循环代码:
$v['....',
[/ol,
复制代码
字典解释:
[color=,medalid
[color=,smallint(6) unsigned
[color=,NO
[color=,是
[color=,勋章id
[color=,name
[color=,varchar(50)
[color=,NO
[color=,勋章名称
[color=,available
[color=,tinyint(1)
[color=,0
[color=,NO
[color=,是否启用
[color=,image
[color=,varchar(255)
[color=,NO
[color=,勋章图片
[color=,type
[color=,tinyint(1)
[color=,0
[color=,NO
[color=,勋章类型
[color=,displayorder
[color=,tinyint(3)
[color=,0
[color=,NO
[color=,勋章显示顺序
[color=,description
[color=,varchar(255)
[color=,NO
[color=,勋章描述
[color=,expiration
[color=,smallint(6) unsigned
[color=,0
[color=,NO
[color=,勋章有效期
[color=,permission
[color=,mediumtext
[color=,NO
[color=,勋章获得条件表达式
[color=,credit
[color=,tinyint(1) unsigned
[color=,0
[color=,NO
[color=,勋章购买使用积分
[color=,price
[color=,mediumint(8) unsigned
[color=,0
[color=,NO
[color=,勋章价格 |
|