i've added on some things to make this a little more complete. gives search functionality in memberlist.php as well as the admin user section.
===============
in memberlist.php
===============
find:
after it add:
then find:
Code:
if ($aim!="") {
$condition.=" AND aim LIKE '%".addslashes(htmlspecialchars($aim))."%' ";
}
after it add:
Code:
if ($msn!="") {
$condition.=" AND msn LIKE '%".addslashes(htmlspecialchars($msn))."%' ";
}
then find:
Code:
if ($userinfo[aim]!="") {
eval("\$userinfo[aimicon] = \"".gettemplate("aim")."\";");
} else {
$userinfo[aim]=" ";
}
after it add:
Code:
if ($userinfo[msn]!="") {
eval("\$userinfo[msnicon] = \"".gettemplate("msn")."\";");
} else {
$userinfo[msn]=" ";
}
then find:
after it add:
===============
in admin/user.php
===============
find:
Code:
makeinputcode("AIM Handle","aim");
after it add:
Code:
makeinputcode("MSN Messenger Handle","msn");
then find:
after it add:
then find:
Code:
'".addslashes(htmlspecialchars($aim))."',
after it add:
Code:
'".addslashes(htmlspecialchars($msn))."',
then find:
Code:
makeinputcode("AIM Handle","aim",$user[aim],0);
after it add:
Code:
makeinputcode("MSN Messenger Handle","msn",$user[msn],0);
then find:
Code:
,aim='".addslashes(htmlspecialchars($aim))."'
after it add:
Code:
,msn='".addslashes(htmlspecialchars($msn))."'
then find:
Code:
makeinputcode("and AIM Handle contains","aim");
after it add:
Code:
makeinputcode("and MSN Messenger Handle contains","msn");
then find:
Code:
makeyesnocode("Display AIM ID","displayaim",0);
after it add:
Code:
makeyesnocode("Display MSN ID","displaymsn",0);
then find:
Code:
and $displayaim == 0
after it add:
Code:
and $displaymsn == 0
then find:
Code:
if ($aim!="") {
$condition.=" AND INSTR(LCASE(aim),'".addslashes(strtolower($aim))."')>0";
}
after it add:
Code:
if ($msn!="") {
$condition.=" AND INSTR(LCASE(msn),'".addslashes(strtolower($msn))."')>0";
}
then find:
after it add:
then find:
Code:
if ($displayaim==1) {
echo "<td><p><b><span class='tblhead'>AIM ID</span></b></p></td>";
}
after it add:
Code:
if ($displaymsn==1) {
echo "<td><p><b><span class='tblhead'>MSN ID</span></b></p></td>";
}
then find:
Code:
if ($displayaim==1) {
if ($user[aim]=="") {
$user[aim]=" ";
}
echo "<td><p>$user[aim]</p></td>";
}
after it add:
Code:
if ($displaymsn==1) {
if ($user[msn]=="") {
$user[msn]=" ";
}
echo "<td><p>$user[msn]</p></td>";
}
then find:
Code:
makehiddencode("aim",$aim);
after it add:
Code:
makehiddencode("msn",$msn);
then find:
Code:
makehiddencode("displayaim",$displayaim);
after it add:
Code:
makehiddencode("displaymsn",$displaymsn);
==================
In memberlist template
==================
find:
Code:
<td align="center" bgcolor="{ tableheadbgcolor }"><smallfont color="{ tableheadtextcolor }"><b>AIM</b></smallfont></td>
add under it:
Code:
<td align="center" bgcolor="{ tableheadbgcolor }"><smallfont color="{ tableheadtextcolor }"><b>MSN</b></smallfont></td>
==================
in memberlistsearch template
==================
find:
Code:
<tr>
<td bgcolor="{ secondaltcolor }"><normalfont><b>and AIM Handle contains</b></normalfont></td>
<td bgcolor="{ secondaltcolor }"><normalfont><input type="text" class="bginput" size="35" name="aim" value=""></normalfont></td>
</tr>
add under it:
Code:
<tr>
<td bgcolor="{ firstaltcolor }"><normalfont><b>and MSN Messenger Handle contains</b></normalfont></td>
<td bgcolor="{ firstaltcolor }"><normalfont><input type="text" class="bginput" size="35" name="msn" value=""></normalfont></td>
</tr>
==================
in memberlistbit template
==================
find:
Code:
<td bgcolor="{firstaltcolor}">$ userinfo[aimicon]</td>
add under it:
Code:
<td bgcolor="{firstaltcolor}">$ userinfo[msnicon]</td>
*note: you will need to remove the spaces (" ") between the {} on the template mods for the colors. also, fix the secondalt and firstalt colors to suit your board (i use the same for both, so i didn't need to make any fixes).