vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vB3 General Discussions (https://vborg.vbsupport.ru/forumdisplay.php?f=111)
-   -   Searching using memberlist.php (Direct search) (https://vborg.vbsupport.ru/showthread.php?t=81573)

T3MEDIA 05-16-2005 12:45 PM

Searching using memberlist.php (Direct search)
 
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:
HTML Code:

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"

HTML Code:

<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...

HTML Code:

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

Quote:

Originally Posted by rootnik
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"

HTML Code:

<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...

HTML Code:

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


All times are GMT. The time now is 09:20 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01863 seconds
  • Memory Usage 1,731KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (5)bbcode_html_printable
  • (1)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (4)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete