免費論壇 繁體 | 簡體
Sclub交友聊天~加入聊天室當版主
分享
返回列表 發帖

[版型教學] 【第五维度】帖子内容页显示头像调用用户QQ秀

当用户设置了QQ号码时,自动调用其QQ秀; 用户没有设置QQ时,显示默认!

模板管理 -- 找到 : viewthread_node.htm 点 编辑

大约77行 找到:
  1.                         <!--{elseif $post['avatar'] && $showavatars}-->
  2.                                 <div class="avatar" onmouseover="showauthor(this, 'userinfo$post[pid]')"><a href="space.php?uid=$post[authorid]" target="_blank">$post[avatar]</a></div>
  3.                         <!--{/if}-->
複製代碼
替换为:
  1.                         <!--{elseif $post['avatar'] && $showavatars}-->
  2.                                 <div class="avatar" onmouseover="showauthor(this, 'userinfo$post[pid]')"><a href="space.php?uid=$post[authorid]" target="_blank"><!--{if $post['qq']}--><img src="http://qqshow-user.tencent.com/$post['qq']/10/00/" /><!--{else}-->$post[avatar]<!--{/if}--></a></div>
  3.                         <!--{/if}-->
複製代碼
更新 缓存  / 即可实现如下效果:

http://no5.imotor.com

HTML设置1.jpg
2012-7-9 16:57


作者:Adcode 出处: http://no5.imotor.com

原帖地址: http://no5.imotor.com/viewthread ... 1&extra=#pid138
1

評分人數

返回列表