修正匿名發帖顥示真實會员的問题加美化+修正QQ秀-展開圖片不變的問题+遊客發粘美化+表格修正问题
if($password != $password2) {
showmessage('profile_passwd_notmatch');
}
if($qq = preg_match("/^([0-9]+)$/", $qq) && strlen($qq) >= 5 && strlen($qq) <= 12 && intval($qq) > 0 ?
$qq : '') { } else {
showmessage("請填寫QQ號碼,返回重新填寫","javascript:history.back()");
}
$post['regdate'] = gmdate($dateformat, $post['regdate'] + $timeoffset * 3600);
$post['missday'] = intval(($timestamp-$post['lastactivity'])/(3600*24));
<tr>
<td class="altbg1"><span class="bold">QQ</span></td>
<td class="altbg2"><input type="text" name="qq" size="25"></td>
</tr>
<tr>
<td class="altbg1"><span class="bold">{lang email}</span></td>
<td width="18%" valign="top" class="t_user"><a name="pid$post[pid]"></a> $post[newpostanchor] $post[lastpostanchor]
<!--{if $forum['ismoderator']}-->
.
.
一
直
到
.
.
<span class="bold">$post[author]</span><br>
{lang member_deleted}
<!--{/if}-->
<br><br><br><br><br><br><br><br><br><br>
<!--{/if}-->
</td>
<!--{loop $postlist $post}-->
<SCRIPT>
<!--
function flip(ud, img) {
if (ud.style.display == "block") {
ud.style.display="none";
img.src = './images/rank/qqshow_1.gif';
}else{
ud.style.display="block";
img.src = './images/rank/qqshow_2.gif';
}
}
// -->
</SCRIPT>
function site() {
return $_SERVER['HTTP_HOST'];
}
function showrankstars($num) {
echo "<img src=images/rank/$num.gif title='Rank: ".$num."'>";
}
<div id="ud_$post[pid]" style="display:none">
替换為<div id="ud_$post[pid]" style="display:block">