- $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'];
- }
模板循环代码:
- <!--{loop $user_medals $v}-->
- $v['....']
- <!--{/loop}-->
字典解说:
声明:有的资源均来自网络转载,版权归原作者所有,如有侵犯到您的权益 请联系邮箱:123456@qq.com 我们将配合处理!
原文地址:Discuz调用用户勋章方法发布于2023-03-01 19:37:13