Page 1 of 1
How to implement a "sub search"
Posted: Tue Oct 21, 2003 5:19 pm
by glenn15
We currently have Webinator providing text search for a jobs database. These are Jobs posted by various Members... It's working marvelously.
Here's my question:
Currently the search returns results from ALL of the Jobs regardless of which Member posted the Job.
I'd like to provide a text search that returns results ONLY from a specific member.
The links in the base URL that Webinator is crawling look like this:
<a href="/page.html?job=123&member=456">JobTitle</a>
Is this possible with Webinator?
Regards
How to implement a "sub search"
Posted: Tue Oct 21, 2003 5:52 pm
by mark
Yes. Edit the "search" script. Find where it says "<$sql=". Add an and clause something like
and Url like 'member 456'
or more generically add a line before that like
<strfmt "member %s" $member><$mq=$ret>
and use
and Url like $mq
and add an export for $mq at the top by the others
<EXPORT $mq QUERY USEROK>
How to implement a "sub search"
Posted: Tue Oct 21, 2003 8:47 pm
by glenn15
That's terrific - thanks for the reply, Mark. I was able to follow at least some if it ;->
Rereading my original post I wonder if I did a good job describing what I need, though.
3 Points:
- I have between 50-100 members who need this functionality...not one only.
- I carry the <member> number as a variable in every page on my site so it is "available" to be inserted on demmand if needed to produce a "generic" solution as individual pages are browsed (preferable).
- Finally, while 50-100 is a lot, it's not 1,000s and they don't all need it at once, so a solution where I have to tweak individually (specific profiles?) is not out of the realm.
Apologies if you already addressed this. I'm struggling to fully comprehend the "more generic" solution you proposed as I come up to speed on Webinator.
Regards,
Glenn
How to implement a "sub search"
Posted: Wed Oct 22, 2003 10:10 am
by mark
"member" is a variable. It may come from CGI POST data, query string, cookie, or environment. Use $member to access the variable called "member".
Read about using variables in vortex at
http://www.thunderstone.com/site/vortexman/node11.html