PDA

View Full Version : Searching using memberlist.php (Direct search)


T3MEDIA
05-16-2005, 12:45 PM
memberlist.php can be used to do searches using the do=getall& command right.
Now I have a field called field6[0] Now this field is races. Black white brown etc.

When I do a search for say white. I get every user that has that feature selected. How do I go about having it show only users that have that field selected only?

As of now if you have white & black selected you will pop up in this search.
I find it is almost inverted (lack of a better word) searching.
I mean if I wanted white & black I would click white checkbox and black check box then I can get users who are white, both or black.

as it is now it will show ONLY users that are both.

I am almost positive I have to put a command string in the URL. So I came here for help.

the string I have now is:
memberlist.php?do=getall&page=1&agefrom=0&ageto=0&hasprofilepic=on&ltr=&pp=100&order=desc&postslower=0&postsupper=0&sort=joindate&ausername=&homepage=&icq=&aim=&yahoo=&msn=&joindateafter=&joindatebefore=&lastpostafter=&lastpostbefore=&field6[0]=6

Thanks.

rootnik
12-27-2005, 08:33 PM
I know this is a long time ago, but here is the answer (I was searching for it)

open your advanced search page and search for the HTML that has the option you are looking for. My example is from a drop down box"


<div class="fieldset">
Color:<br />
<select name="field10" id="csel_field10">
<option value="0" selected="selected"></option>
<option value="1" >White</option>
<option value="2" >Black</option>
</select>

</div>


Notice the vaules...

White is 1
Black is 2

so to link to the search results for white...

memberlist.php?do=getall&field10=1

I could use some help finding a way to only show a list of members who have a custom text field filled out, no matter what the value is.

T3MEDIA
12-28-2005, 03:45 AM
I know this is a long time ago, but here is the answer (I was searching for it)

open your advanced search page and search for the HTML that has the option you are looking for. My example is from a drop down box"


<div class="fieldset">
Color:<br />
<select name="field10" id="csel_field10">
<option value="0" selected="selected"></option>
<option value="1" >White</option>
<option value="2" >Black</option>
</select>

</div>


Notice the vaules...

White is 1
Black is 2

so to link to the search results for white...

memberlist.php?do=getall&field10=1

I could use some help finding a way to only show a list of members who have a custom text field filled out, no matter what the value is.Nice to help but it will still show all users that have white in it...

example if your on lavalife and say I want to search for asian it will not bring back a person who is asian / indian... unless you click asian and indian.

that is my issue.

PennylessZ28
12-28-2005, 04:27 AM
i will pm you