pick 寫:1.拍賣場已經正常顯示了^^感謝!!
2.個人頭像那還是空白
3.在虛擬形象內文字連結部分有點問題
造型精靈 -> 購物中心->衣櫃 ->相冊->舊衣服->
收藏夾- 拍賣場- 個人設置 這三個完成沒文字顯示連結!
麻煩了^^
2. 試試修改 includes/usercp_viewprofile.php
#
#-----[ FIND ]-----
#
代碼: 選擇全部
case USER_AVATAR_FACE:
//###### begin 虛擬形象 #####
if ($profiledata[user_gender]<=0)
{
$poster_avatar="";
//虛擬形象
$userface = "";
//虛擬形象
}
else if ($profiledata[user_gender]==1)
{
$tempequip = '0-0-0-0-0-0-0-0-init-init-0-init-0-init-
init-0-0-0-init-0-0-0-0-0-0-0'; //男性的初始值
$sex = "m";
$upid = "init";
}
else if ($profiledata[user_gender]==2)
{
$tempequip = '0-0-0-0-0-0-0-0-initf-initf-0-initf-0-initf
-initf-0-0-0-initf-0-0-0-0-0-0-0'; //女性的初始值
$sex = "f";
$upid = "initf";
}
$userwearip = '400-400-400-400-400-400-400-400-400-400-400-400-
400-400-400-400-400-400-400-400-400-400-400-400-400-400';//商品的過期屬性
$cookiearray = split('-', $tempequip);
$weararray = split('-', $userwearip);
$sql="SELECT * FROM week9_userdata where userid = ".$profiledata
['user_id']." and dafaultuse = '1' and (face_fitherd = '$sex' or face_fitherd = 't')";
if( !($facecookie = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query
week9_userdata', '', __LINE__, __FILE__, $sql);
}
while ($usercaifu = $db->sql_fetchrow($facecookie))
{
$tempi = $usercaifu[classid];
$cookiearray[$tempi] = $usercaifu[facepicid];
$face_weardate = floor($usercaifu[face_wear] - (time() -
$usercaifu[buydata])/8640);
if ($face_weardate <= 0)
{
$db->sql_query("UPDATE week9_userdata SET
dafaultuse = '3' WHERE userid=".$profiledata['user_id']." and facepicid = '$usercaifu[facepicid]'
and classid= '$usercaifu[classid]' and dafaultuse='1'");
if($usercaifu[classid] == 8||$usercaifu[classid]
==9||$usercaifu[classid]==11||$usercaifu[classid]==13||$usercaifu[classid]==14||$usercaifu
[classid]==18)
{
$userupid = $upid;
}
else
{
$userupid = "0";
}
$weararray[$tempi] = $userupid;
}
else
{
$weararray[$tempi] = $face_weardate;
}
}
$db->sql_freeresult($facecookie);
$userface = implode("-", $cookiearray);
$userwear = implode("-", $weararray);
$avatar_img = "
<!-- 虛擬形象開始-->
<DIV id=Show
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px;
LEFT: 0px; PADDING-BOTTOM: 0px; WIDTH: 140px; PADDING-TOP: 0px; POSITION: relative; TOP: 0px;
HEIGHT: 226px"></DIV>
<SCRIPT language=JavaScript>
var currface = "$userface";
var currwear = "$userwear";
start_face(0);
</SCRIPT>
<!-- 虛擬形象結束-->
";
//###### end 虛擬形象 #####
break;
#
#-----[ REPLACE WITH ]-----
#
代碼: 選擇全部
case USER_AVATAR_FACE:
//###### begin 虛擬形象 #####
if ($profiledata[user_gender]<=0)
{
$poster_avatar="";
//虛擬形象
$userface = "";
//虛擬形象
}
else if ($profiledata[user_gender]==1)
{
$tempequip = '0-0-0-0-0-0-0-0-init-init-0-init-0-init-init-0-0-0-init-0-0-0-0-0-0-0'; //男性的初始值
$sex = "m";
$upid = "init";
}
else if ($profiledata[user_gender]==2)
{
$tempequip = '0-0-0-0-0-0-0-0-initf-initf-0-initf-0-initf-initf-0-0-0-initf-0-0-0-0-0-0-0'; //女性的初始值
$sex = "f";
$upid = "initf";
}
$userwearip = '400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400-400';//商品的過期屬性
$cookiearray = split('-', $tempequip);
$weararray = split('-', $userwearip);
$sql="SELECT * FROM week9_userdata where userid = ".$profiledata['user_id']." and dafaultuse = '1' and (face_fitherd = '$sex' or face_fitherd = 't')";
if( !($facecookie = $db->sql_query($sql)) )
{
message_die(GENERAL_ERROR, 'Could not query week9_userdata', '', __LINE__, __FILE__, $sql);
}
while ($usercaifu = $db->sql_fetchrow($facecookie))
{
$tempi = $usercaifu[classid];
$cookiearray[$tempi] = $usercaifu[facepicid];
$face_weardate = floor($usercaifu[face_wear] - (time() - $usercaifu[buydata])/8640);
if ($face_weardate <= 0)
{
$db->sql_query("UPDATE week9_userdata SET dafaultuse = '3' WHERE userid=".$profiledata['user_id']." and facepicid = '$usercaifu[facepicid]' and classid= '$usercaifu[classid]' and dafaultuse='1'");
if($usercaifu[classid] == 8||$usercaifu[classid]==9||$usercaifu[classid]==11||$usercaifu[classid]==13||$usercaifu[classid]==14||$usercaifu[classid]==18)
{
$userupid = $upid;
}
else
{
$userupid = "0";
}
$weararray[$tempi] = $userupid;
}
else
{
$weararray[$tempi] = $face_weardate;
}
}
$db->sql_freeresult($facecookie);
$userface = implode("-", $cookiearray);
$userwear = implode("-", $weararray);
$avatar_img = "
<!-- 虛擬形象開始-->
<DIV id=Show
style="PADDING-RIGHT: 0px; PADDING-LEFT: 0px; LEFT: 0px; PADDING-BOTTOM: 0px; WIDTH: 140px; PADDING-TOP: 0px; POSITION: relative; TOP: 0px; HEIGHT: 226px"></DIV>
<SCRIPT language=JavaScript>
var currface = "$userface";
var currwear = "$userwear";
start_face(0);
</SCRIPT>
<!-- 虛擬形象結束-->
";
//###### end 虛擬形象 #####
break;
3. 我猜想:
有些地方, 預設本來就沒有顯示吧!
我有空, 再比對看看.