vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   Modification Requests/Questions (Unpaid) (https://vborg.vbsupport.ru/forumdisplay.php?f=112)
-   -   Modify search database query to include "location" user field (https://vborg.vbsupport.ru/showthread.php?t=33738)

mvigod 01-02-2002 07:54 PM

Does anyone familiar w/mysql database queries know how I would modify the search query to return results which also include the user location field?

so if they type "black hats texas" it will search the forums for "black hats" and then match that up with people who have their location set to texas that posted in that thread. I'm sure it's a database query modification but not sure how to define it.

Thanks to anyone who may be able to help on this query.

Best Regards,

Marc

JJR512 01-02-2002 09:43 PM

It couldn't be as simple as putting "black hats texas" into one field, and have the search know to search the posts for only "black hats" and the location for only "texas". It would have to be two separate fields.

Also, speaking from experience, just "texas" might not work...some members would use "TX" in their profile instead of "Texas", for example.

mvigod 01-02-2002 09:58 PM

Couldn't the user field be joined to the tables already in the search? If not and there was a second box added next to the current search box like:

"and location is in"

How would such a "combined" query be formed?

I figured out how to search location on the member.php form but to add it to this is a little over my head so far.

It would be ok for users to do texas or tx. They will have to know to try both ways as with all the countries and provinces we use I can't standardize the location fields.

has anyone done this yet and if not could somebody devise the query or code to add this?

Thanks


All times are GMT. The time now is 07:12 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.01056 seconds
  • Memory Usage 1,706KB
  • 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
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (3)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