
12-17-2001, 10:06 AM
|
 |
|
|
Join Date: Nov 2001
Location: Germany
Posts: 57
Благодарил(а): 0 раз(а)
Поблагодарили:
0 раз(а) в 0 сообщениях
|
|
[QUOTE] Originally posted by bira
Hi Tarion,
that requires an extra condition - so it depends where you want it.
1) If you want an extra link in the memberlist's navbar, then open memberlist.php and find:
Code:
if ($what=="datejoined") {
$orderby="joindate";
$direction="DESC";
}
AFTER it ADD
Code:
if ($what=="away") {
$condition.=" AND away='1'";
}
The open the memberlist template and add a link to memberlist.php?s=$session[sessionhash]&what=away
2) if you want to add the away to the ADVANCED SEARCH in the member's list,
Find:
Code:
if ($postsupper!="") {
$condition.=" AND posts<'$postsupper'";
}
AFTER it ADD
Code:
if ($away=="1") {
$condition.=" AND away='1'";
} elseif ($away=="2") {
$condition.=" AND away='0'";
}
Open template memberlistsearch, and find:
Code:
<tr>
<td bgcolor="#F1F1F1"><normalfont><b>and Number of Posts is less than</b></normalfont></td>
<td bgcolor="#F1F1F1"><normalfont><input type="text" class="bginput" size="35" name="postsupper" value=""></normalfont></td>
</tr>
AFTER it ADD:
Code:
<tr>
<td bgcolor="#DFDFDF"><normalfont><b>and user is away or not</b></normalfont></td>
<td bgcolor="#DFDFDF"><normalfont><select name="away">
<option value=""></option>
<option value="2">user is NOT away</option>
<option value="1">user IS away</option>
</select></normalfont></td>
</tr>
|