The Arcive of vBulletin Modifications Site. |
|
Details »»
|
|||||||||||||||||||||||||
is there a search string which can allow you to search for all threads a particular user started only
http://animeboards.net/forums/search...user=$username daily posts started by a user http://animeboards.net/forums/search...user=$username this searches for all threads a user replied to or posted in. But can i only search for posts the user started ? Show Your Support
|
|||||||||||||||||||||||||
| Comments |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
thanks... i'll search harder using the search function
|
|
#4
|
|||
|
|||
|
You could hack it in to search.php...
To get you started, you'd be editing this: Code:
if ($searchuser!="") {
if ($exactname=="yes") {
$checkuser="AND INSTR(userindex,' ".addslashes($searchuser)." ')>0";
} else {
$checkuser="AND INSTR(userindex,'".addslashes($searchuser)."')>0";
}
} else {
$checkuser="";
}
Code:
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="";
}
Should be all! |
![]() |
|
|