Discuz!官方免费开源建站系统

 找回密码
 立即注册

QQ登录

只需一步,快速开始

搜索

增加動態頭像外部連接(不影響本身DZ6.1上傳頭像功能)更新0606

[复制链接]
心空 发表于 2008-6-4 21:06:27 | 显示全部楼层


非常不错
回复

使用道具 举报

samoom 发表于 2008-6-6 08:24:39 | 显示全部楼层
  不错谢谢楼主~
回复

使用道具 举报

Sv 发表于 2008-6-7 11:52:50 | 显示全部楼层
6.1增加了0606补丁后
用自定义头像连结没问题
但如果有会员没有用头像连结
在帖子里就会出问题
在头像右手边会多了这两个符号
"/>"
回复

使用道具 举报

tomy49hk 发表于 2008-6-7 17:46:06 | 显示全部楼层
discuz_uc_avatar的定義改掉了..
<img src="'.discuz_uc_avatar($post['authorid']).'" />
改為 .discuz_uc_avatar($post['authorid']).
回复

使用道具 举报

nic009 发表于 2008-6-7 19:26:12 | 显示全部楼层
6.10 0606版修改方法
0606调用头像有了变化

只有viewthread.php有区别,其它2个文件修改方法不变
查找
  1.         if($showavatars) {
  2.                         $post['avatar'] = '<div class="avatar">'.discuz_uc_avatar($post['authorid']);
  3.                         if($_DCACHE['usergroups'][$post['groupid']]['groupavatar']) {
  4.                                 $post['avatar'] .= '<br /><img src="'.$_DCACHE['usergroups'][$post['groupid']]['groupavatar'].'" border="0" alt="" />';
  5.                         }
复制代码
修改为
  1. if($showavatars) {
  2.                 if($post['avatarwidth'] && $post['avatarheight']){
  3.                 $post['avatar'] = "<div class="avatar"><img src="$post[avatar]" width="$post[avatarwidth]" height="$post[avatarheight]" />";
  4.                 } else {
  5.                 $post['avatar'] = '<div class="avatar">'.discuz_uc_avatar($post['authorid']);
  6.                 if($_DCACHE['usergroups'][$post['groupid']]['groupavatar']) {
  7.                 $post['avatar'] .= '<br /><img src="'.$_DCACHE['usergroups'][$post['groupid']]['groupavatar'].'" border="0" alt="" />';
  8.                 }
  9.                 }
复制代码
回复

使用道具 举报

 楼主| uf2004 发表于 2008-6-7 23:55:39 | 显示全部楼层
原帖由 johnnieyan 于 2008-6-7 18:26 发表
若果首页调用了用户排名
那这个URL头像就失效了吧?也只能调用UC里的头像了
希望楼主考虑下这个完善下谢谢

本插件只對普遍帖內有效~因為不想修改太多文件~盡量簡單化~

已更新0606版~~~
回复

使用道具 举报

 楼主| uf2004 发表于 2008-6-8 18:18:24 | 显示全部楼层
原帖由 johnnieyan 于 2008-6-8 00:54 发表

貌似调用的话就在调用文件里加个类似你在帖内的判断就可以了吧?

對~
參考viewthread.php修改~
回复

使用道具 举报

5只驴 发表于 2008-6-8 18:20:55 | 显示全部楼层
找这个很久了,感谢楼主提供
回复

使用道具 举报

joule 发表于 2008-6-9 12:54:19 | 显示全部楼层
我的0606 里面怎么没有 memcp.htm 啊?
回复

使用道具 举报

 楼主| uf2004 发表于 2008-6-9 18:07:40 | 显示全部楼层
原帖由 joule 于 2008-6-9 12:54 发表
我的0606 里面怎么没有 memcp.htm 啊?


修改文件: memcp.php(根目錄) , viewthread.php(根目錄) , memcp_profile.htm(模板)
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

手机版|小黑屋|Discuz! 官方站 ( 皖ICP备16010102号 )star

GMT+8, 2024-4-26 20:42 , Processed in 0.139555 second(s), 17 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2023, Tencent Cloud.

快速回复 返回顶部 返回列表