discuz个人信息栏显示用户QQ秀教程
用户头像调用QQ秀,未填写QQ帐号资料的就显示为默认头像 For discuz 7.x
1.打开vIEwthread_node.htm
找到:
<div class="avatar" onmouSEOver="showauthor(this,'userinfo$post[pID]')"><a href="space.PHP?uID=$post[authorID]" target="_blank">$post[avatar]</a></div>
修改为:
<!--{if $post['qq']}-->
<div class="avatar" onmouSEOver="showauthor(this,'userinfo$post[pID]')"><a href="space.PHP?uID=$post[authorID]" target="_blank"><img alt=我的QQshow src=http://qqshow-user.tencent.com/$post[qq]/10/00/ border=0 align=absmIDdle></a></div>
<!--{else}-->
<div class="avatar" onmouSEOver="showauthor(this,'userinfo$post[pID]')"><a href="space.PHP?uID=$post[authorID]" target="_blank">$post[avatar]</a></div>
<!--{/if}-->
本站测试成功,演示图:
未填写QQ号码的用户
已填写QQ号码的用户 总结
以上是内存溢出为你收集整理的Discuz!帖子页个人信息增加QQ秀的修改教程全部内容,希望文章能够帮你解决Discuz!帖子页个人信息增加QQ秀的修改教程所遇到的程序开发问题。
如果觉得内存溢出网站内容还不错,欢迎将内存溢出网站推荐给程序员好友。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)