i noticed today that you can actually search by a user, but the problem is that you have to know the actuall username of the username that you are searching for. if you knew the username you could just go to the profile with a simple modification you can search for po and poil 's posts would come up. search for e and all forums and it will display all posts where the username has an e in it.
open up dosearch.php and find the line:
elseif ($Match == "Username") {
$Words_q = addslashes($Words);
$query = $query."AND B_Username = '$Words_q'";
$query = $query."\nAND B_Reged = 'y'\n";
}
and change it so it looks like this:
elseif ($Match == "Username") {
$WordsLike = "%"."$Words"."%";
$Words_q = addslashes($WordsLike);
$query = $query."WHERE (B_Username Like '$Words_q')";
$query = $query."\nAND B_Reged = 'y'\n";
}
that one will search for registered users, if you want to search for posts by all posts you make it looks like this instead:
elseif ($Match == "Username") {
$WordsLike = "%"."$Words"."%";
$Words_q = addslashes($WordsLike);
$query = $query."WHERE (B_Username Like '$Words_q')";
}
you just take out the registered y part.....if you want to do a serch by username and display it not by posts but by username something seperate might have to be made.
[:red]--------------
http://extremeforums.org