<div align="right" style="FLOAT: right;"><a title="评分 0" href="http://www.happybao.com/forums/misc.php?action=viewratings&tid=2457&pid=10718"></a></div><span class="bold">5、完美在帖子中显示个人信息、登陆次数等的修改方法</span><br/><br/><div class="t_msgfont" id="message10718"><p>首先修改dispbbs.asp 找到</p><p>Set Rs=Dvbbs.Execute("Select </p><p>userid,useremail,UserIM,UserMobile,Usersign,userclass,Usertitle,Userwidth,Userheight,UserPost,Userface,JoinDate,userWealth,us</p><p>erEP,userCP,Userbirthday,Usersex,UserGroup,LockUser,userPower,titlepic,UserGroupID,LastLogin,UserHidden,IsChallenge,UserMoney</p><p>,UserTicket,UserAvaSetting,UserIsAva From dv_user Where UserID IN ("& postuseridlist &")")</p><p>修改为</p><p>Set Rs=Dvbbs.Execute("Select </p><p>userid,useremail,UserIM,UserMobile,Usersign,userclass,Usertitle,Userwidth,Userheight,UserPost,Userface,JoinDate,userWealth,us</p><p>erEP,userCP,Userbirthday,Usersex,UserGroup,LockUser,userPower,titlepic,UserGroupID,LastLogin,UserHidden,IsChallenge,UserMoney</p><p>,UserTicket,UserAvaSetting,UserIsAva,userlogins From dv_user Where UserID IN ("& postuseridlist &")")</p><p>然后后台风格模板 page_dispbbs template.html(0)</p><p>查找 文章 找到</p><p><div>文章:<xsl:value-of select="/post/userlist/user[@userid=$userid]/@userpost"/></div></p><p>后面的省略了。然后替换成</p><p><div>文章:<xsl:value-of select="/post/userlist/user[@userid=$userid]/@userpost"/></div><br/><div>经验:<xsl:value-of select="/post/userlist/user[@userid=$userid]/@userep"/></div><br/><div>魅力:<xsl:value-of select="/post/userlist/user[@userid=$userid]/@usercp"/></div><br/><div>现金:<xsl:value-of select="/post/userlist/user[@userid=$userid]/@userwealth"/></div><br/><div>金币:<xsl:value-of select="/post/userlist/user[@userid=$userid]/@usermoney"/></div><br/><div>点券:<xsl:value-of select="/post/userlist/user[@userid=$userid]/@userticket"/>点</div><br/><div>登陆:<xsl:value-of select="/post/userlist/user[@userid=$userid]/@userlogins"/></div><br/><div>生日:<xsl:value-of select="/post/userlist/user[@userid=$userid]/@userbirthday"/></div></p><p>就ok了</p></div> |