蓝雨 发表于 2008-1-21 22:29:51

会员列表中加入UID 搜索 for Dz 6.0

1.打开memberlist.htm<BR>找到:
<DIV class=blockcode><SPAN class=headactions onclick=\"copycode($(\'code0\'));\">复制内容到剪贴板</SPAN>
<H5>代码:</H5><CODE id=code0><FONT face=新宋体><input type=\"text\" size=\"15\" name=\"srchmem\" /></FONT></CODE></DIV><STRONG><FONT color=red>上面</FONT></STRONG>一行添加:
<DIV class=blockcode><SPAN class=headactions onclick=\"copycode($(\'code1\'));\">复制内容到剪贴板</SPAN>
<H5>代码:</H5><CODE id=code1><FONT face=新宋体><input class=\"radio\" type=\"radio\" name=\"find\" value=\"1\" checked>{lang username}<BR><input class=\"radio\" type=\"radio\" name=\"find\" value=\"2\">UID</FONT></CODE></DIV>2. 打开member.php<BR>找到:
<DIV class=blockcode><SPAN class=headactions onclick=\"copycode($(\'code2\'));\">复制内容到剪贴板</SPAN>
<H5>代码:</H5><CODE id=code2><FONT face=新宋体>$sql = !empty($srchmem) ? \" WHERE username LIKE \'\".str_replace(array(\'_\', \'%\'), array(\'\\_\', \'\\%\'), $srchmem).\"%\'\" : \'\';</FONT></CODE></DIV><STRONG><FONT color=red>上面</FONT></STRONG>一行添加:
<DIV class=blockcode><SPAN class=headactions onclick=\"copycode($(\'code3\'));\">复制内容到剪贴板</SPAN>
<H5>代码:</H5><CODE id=code3><FONT face=新宋体>      if($find==2){<BR>            dheader(\'Location: viewpro.php?uid=\'.$srchmem);<BR>      }</FONT></CODE></DIV>完毕!<BR>
页: [1]
查看完整版本: 会员列表中加入UID 搜索 for Dz 6.0