View Full Version : search string to search for all threads a user started ?
is there a search string which can allow you to search for all threads a particular user started only
http://animeboards.net/forums/search.php?getdaily=yes&action=dosearch&searchdate=1&searchuser=$username
daily posts started by a user
http://animeboards.net/forums/search.php?action=simplesearch&exactname=yes&searchuser=$username
this searches for all threads a user replied to or posted in.
But can i only search for posts the user started ?
I know someone talked about something like this awhile ago. I seem to remember someone wanting to have a ratio under the username instead of total posts, something to show Topics Started/Total Posts or something like that
Don't know if anything ever came of it
thanks... i'll search harder using the search function :D
You could hack it in to search.php...
To get you started, you'd be editing this:
if ($searchuser!="") {
if ($exactname=="yes") {
$checkuser="AND INSTR(userindex,' ".addslashes($searchuser)." ')>0";
} else {
$checkuser="AND INSTR(userindex,'".addslashes($searchuser)."')>0";
}
} else {
$checkuser="";
}
To resemble:
if ($searchuser!="") {
if ($threadstart=="yes") {
if ($exactname=="yes") {
$checkuser="AND thread.postusername = '".addslashes($searchuser)."'";
} else {
$checkuser="AND thread.postusername LIKE '%".addslashes($searchuser)."%'";
}
} else {
if ($exactname=="yes") {
$checkuser="AND INSTR(userindex,' ".addslashes($searchuser)." ')>0";
} else {
$checkuser="AND INSTR(userindex,'".addslashes($searchuser)."')>0";
}
}
} else {
$checkuser="";
}
Then change the search template to have radio buttons for $threadstart...
Should be all!
vBulletin® v3.8.12 by vBS, Copyright ©2000-2025, vBulletin Solutions Inc.