1.打开memberlist.htm
找到:
<input type="text" size="15" name="srchmem" />
上面一行添加:
<input class="radio" type="radio" name="find" value="1" checked>{lang username}
<input class="radio" type="radio" name="find" value="2">UID
2. 打开member.php
找到:
$sql = !empty($srchmem) ? " WHERE username LIKE '".str_replace(array('_', '%'), array('_', '%'), $srchmem)."%'" : '';
上面一行添加:
if($find==2){
dheader('Location: viewpro.php?uid='.$srchmem);
}
完毕!