查看完整版本: [10-14] 解決頭像大小丟失問題

rengo 2006-10-14 15:41

[10-14] 解決頭像大小丟失問題

[color=Red]恭喜, 樓主發此新帖隨機獲得 9 金幣[/color]
解決頭像大小丟失問題

原貼:http://www.discuz.net/thread-253523-1-4.html

作者:hklcf

解決頭像大小丟失問題

當設置了頭像大小後,每當再次編輯個人資料時,必須重新設定頭像大小,否則會使用*代替

此hack正是修正了這問題

修正方法
打開 memcp_profile.htm 模板找(共 2 處)

[code]<br>{lang width}: <input type="text" name="avatarwidthnew" size="1" value="*">($member[avatarwidth]) &nbsp; {lang height}: <input type="text" name="avatarheightnew" size="1" value="*">($member[avatarheight])</td>[/code]

更改為


[code]<!--{if $member['avatarwidth'] == 0}-->
<br>{lang width}: <input type="text" name="avatarwidthnew" size="1" value="*">($member[avatarwidth]) &nbsp; {lang height}: <input type="text" name="avatarheightnew" size="1" value="*">($member[avatarheight])</td>
<!--{else}-->
<br>{lang width}: <input type="text" name="avatarwidthnew" size="1" value="$member[avatarwidth]">($member[avatarwidth]) &nbsp; {lang height}: <input type="text" name="avatarheightnew" size="1" value="$member[avatarheight]">($member[avatarheight])</td>
<!--{/if}-->[/code]

2. 到後台更新緩存

------完成------
頁: [1]
查看完整版本: [10-14] 解決頭像大小丟失問題