Please login or register.

Login with username, password and session length
Advanced search  

Author Topic: The help in adjustment of a script of search.  (Read 2350 times)

cruelwar

  • Newbie
  • *
  • Karma: 0
  • Posts: 11
The help in adjustment of a script of search.
« on: June 12, 2008, 12:01:20 pm »

Hello dear members of a forum. How to make so that inquiries in search_engine by means of option value were sent. As on a picture. All parameters were sent in one form. Forgive for bad English. Image -  big72.info/sample.jpg
Logged

centered

  • Guest
Re: The help in adjustment of a script of search.
« Reply #1 on: June 12, 2008, 01:19:39 pm »

First, welcome to the forum.  Second, an example of your example shouldn't be too hard in an sNews environment, just not exact to what you are looking for there.  to be honest I am confused as to what your trying to achieve there...

but in any case...

modify function searchform to allow some options (note, these are already in the seach function as a total):
option 1: title
option 2: text
option 3: keywords
 then the search textarea

then pass it along to the search function as a variable (say $option) and replace each sql line under $keycount (and the following else statement too) with $option like %$keywords[i/j/0]%

If i confused you, i apologize, I am doing this off the top of my head...., but that is how it could be done
Logged

cruelwar

  • Newbie
  • *
  • Karma: 0
  • Posts: 11
Re: The help in adjustment of a script of search.
« Reply #2 on: June 14, 2008, 05:25:50 pm »

Thanks. I shall try to make or I shall ask somebody.  ???
Logged