The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
Small Hack Needed
I need a small hack that allows a member to input something - and after hitting a search button the form will search a custom field and display the memberlist results of the members that have that in the custom profile.
I basicly want it to work just like the 'Search Members' box works on the Member List Page but instead of searchign member names I want it to search a custome profile field. Can anyone help? |
#2
|
||||
|
||||
You know that the memberslist has an advanced search page?
That would more or less fulfill your needs... You might have to turn it on if you don't currently see it. memberlist.php?do=search |
#3
|
|||
|
|||
I know it has that but for what Im looking to do I want a search of only one custom field. Im setting up an area for members on the board that I want to include the ability to search for this one field. This is why I want it set up like the search feature in the memberlist....I dont want to take away the ability for members to search all custom profile fields on the memberlist search and I dont want all custom profile fields to show up.
|
#4
|
||||
|
||||
well what you could do is just include a form with the appropriate html to wherever you like and point that to the memberslist.php file, as if it were coming from the advanced search page.
|
#5
|
|||
|
|||
Ok but how do I point the search to the custom profile field?
I know I can use this code and strip some things away but this will only search for usernames - how do I point it to search a custome profile field? (this is the Quick Search Form from the memberlist template) Code:
<form action="memberlist.php" method="post"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">$vbphrase[search_members]</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <input type="hidden" name="s" value="$session[sessionhash]" /> <input type="hidden" name="do" value="getall" /> <input type="text" class="bginput" name="ausername" size="20" value="$ltr" title="$vbphrase[username]" />$gobutton </td> </tr> <tr> <td class="vbmenu_option"><a href="memberlist.php?$session[sessionurl]do=search">$vbphrase[advanced_search]</a></td> </tr> </table> </form> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|