CD-Ren by『光碟奇人录』

我的日历
最新评论
友情链接
访问计数

+------------------------------------------------------------------------------------------------------+

DISCUZ! 配偶显示方法HACK

   网络风2005-2-26 3:50
4修改viewthread.php
找到


代码:
$querypost = $db->query("SELECT p.*, a.aid AS aaid, a.creditsrequire, a.filetype, a.filename, a.attachment, a.filesize, a.downloads, m.uid, m.username, m.gender, m.status, m.regdate, m.lastvisit, m.postnum,m.goldgrd, m.credit, m.money,m.email, m.site, m.icq, m.oicq, m.yahoo, m.msn, m.location, m.avatar, m.signature, m.customstatus, m.showemail, m.useimages FROM $table_posts p LEFT JOIN $table_members m ON m.username=p.author LEFT JOIN $table_attachments a ON p.aid<>'0' AND p.aid=a.aid WHERE p.tid='$tid' ORDER BY dateline LIMIT $start_limit, $ppp");






在FROM前面加

代码:

, m.hw







找到


代码:
if($groupinfo['groupavatar']) {
$post['avatar'] = image($groupinfo['groupavatar']);
} elseif($groupinfo['allowavatar'] && $post['avatar']) {
$post['avatar'] = image($post['avatar']);
} else {
$post['avatar'] = '';
}






在前面加

代码:
if (!$post[hw]) {
$post[hw]='未婚';
}






找到


代码:
$post['postnum'] = $post['credit'] = $post['regdate'] = $post['money'] = $post['gender'] = 'N/A';







在'N/A'前面加


代码:
$post['hw'] =






5.修改viewthread.htm
找到


代码:
{lang postnum} $post[postnum]<br>





在后面加


代码:
配偶 <font color=Orange><b>$post[hw]</b></font><br>
标签集:TAGS:
回复Comments()点击Count()

回复Comments

{commenttime}{commentauthor}

{CommentUrl}
{commentcontent}

+------------------------------------------------------------------------------------------------------+


   Designed by ArPan     Powered by 5DBlog