discuz

推荐列表 站点导航

当前位置:首页 > 建站教程 > discuz >

discuz 调用用户勋章代码

来源:网络整理  作者:网络  发布时间:2020-12-10 20:16
目录 可获取用户勋章,数量LIMIT自己改。 查询 $medals=array();$mls=DB::query(SELECT a.*,b.* FROM .DB::table(common_member_medal). a LEF...
描述没搞出来,好像是缺js,自己用的css的:hover 部分css .medal .medal-list{display:inline-block;position:relative;cursor:pointer;} .medal .medal-list .medal-text:before{content: "";position: absolute;top: -6px;left: 50%;margin-left: -8px;border-color: transparent transparent #3498db transparent;border-style: solid;border-width: 0 7px 8px 7px;height: 0;width: 0;} .medal .medal-list .medal-text{opacity: 0;position: absolute;top: 25px;left:-65px;width: 180px;background-color: #3498db;color: #fff;padding: 10px 0;line-height: 14px;font-size: 12px;text-align: center;border-radius: 2px;-webkit-transition: all .5s;-moz-transition: all .5s;-ms-transition: all .5s;-o-transition: all .5s;transition: all .5s;z-index:-9999;} .medal .medal-list img:hover + .medal-text{opacity: 1;top:45px;z-index:9999;} 模板 <div class="buttons row medal"> <!--{loop $medals $medal}--> <div class="medal-list col-xs-1"> <img src="{$_G['style'][imgdir]}/{$medal['image']}"alt="" id="md_{$medal['medalid']}" onmouseover="showMenu({'ctrlid':this.id, 'menuid':'md_{$medal['medalid']}_menu', 'pos':'12!'});" initialized="true"/> <span class="medal-text">{$medal['name']}</br>{$medal['description']}</span> </div> <!--{/loop}--> </div>  

    目录 可获取用户勋章,数量LIMIT自己改。 查询 $medals=array(); $mls=DB::query("SELECT a.*,b.* FROM ".DB::table("common_member_medal")." a LEFT JOIN ".DB::table("forum_medal")." b on b.medalid=a.medalid WHERE b.`available` <> 0 AND a.`uid`='$_G[uid]' ORDER BY b.`displayorder` ASC LIMIT 0,20"); while ($ml=DB::fetch($mls)) { $medals[]=$ml; }  

相关热词: 调用 discuz

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供用于网络技术学习参考,学习中请遵循相关法律法规!

本文地址: https://www.juheyunku.com/jz/discuz/2293.shtml

Copyright © www.juheyunku.com      关于 | 合作 | 声明 | 联系 | 更新 | 地图 | Tags

discuz 调用用户勋章代码

2020-12-10 编辑:网络

描述没搞出来,好像是缺js,自己用的css的:hover 部分css .medal .medal-list{display:inline-block;position:relative;cursor:pointer;} .medal .medal-list .medal-text:before{content: "";position: absolute;top: -6px;left: 50%;margin-left: -8px;border-color: transparent transparent #3498db transparent;border-style: solid;border-width: 0 7px 8px 7px;height: 0;width: 0;} .medal .medal-list .medal-text{opacity: 0;position: absolute;top: 25px;left:-65px;width: 180px;background-color: #3498db;color: #fff;padding: 10px 0;line-height: 14px;font-size: 12px;text-align: center;border-radius: 2px;-webkit-transition: all .5s;-moz-transition: all .5s;-ms-transition: all .5s;-o-transition: all .5s;transition: all .5s;z-index:-9999;} .medal .medal-list img:hover + .medal-text{opacity: 1;top:45px;z-index:9999;} 模板 <div class="buttons row medal"> <!--{loop $medals $medal}--> <div class="medal-list col-xs-1"> <img src="{$_G['style'][imgdir]}/{$medal['image']}"alt="" id="md_{$medal['medalid']}" onmouseover="showMenu({'ctrlid':this.id, 'menuid':'md_{$medal['medalid']}_menu', 'pos':'12!'});" initialized="true"/> <span class="medal-text">{$medal['name']}</br>{$medal['description']}</span> </div> <!--{/loop}--> </div>  

    目录 可获取用户勋章,数量LIMIT自己改。 查询 $medals=array(); $mls=DB::query("SELECT a.*,b.* FROM ".DB::table("common_member_medal")." a LEFT JOIN ".DB::table("forum_medal")." b on b.medalid=a.medalid WHERE b.`available` <> 0 AND a.`uid`='$_G[uid]' ORDER BY b.`displayorder` ASC LIMIT 0,20"); while ($ml=DB::fetch($mls)) { $medals[]=$ml; }  

本站内容来源于网络,如有侵权请与我们联系,我们会及时删除,我们深感抱歉!
注:本站所有信息仅供学习参考!
本文地址为 https://www.juheyunku.com/jz/discuz/2293.shtml

相关文章

风云图片

推荐阅读

返回discuz频道首页