PDA

View Full Version : extra search


admin0
03-26-2009, 03:33 PM
Hi,

on one of my forums www.callshub.com, i want to put a search in the top of every page
the search will be something like search all (*)buyers or (* )sellers for destination [ country_name ] , where () is the radio button and [] is the input box. based on that, the search term will be searched and posts displayed from either the buyers forum or the sellers forum. I am not sure how to start on this.

Please point me to the right direction to get started.


Thanks,

Lynne
03-26-2009, 05:02 PM
What are buyers and sellers - prefixes? The right direction is the search.php page. If you look at the code there, you'll see the input name for the variables. Basically copy the from there - that's how I did it on some pages on my site anyway.

admin0
03-26-2009, 05:43 PM
Hi,

Its like this:
those who post on http://www.callshub.com/sell-termination/ are sellers and those who post on http://www.callshub.com/buy-termination/ are buyers.

Basically, i want to do this this.

search for (*) buyers for destination [ spain ] => will search and show all posts that contains spain from within the buy-termination forum

search for (*) sellers for destination [ spain ] => will search and show all posts that contains spain from within the sell-termination forum.

I can do the same if i go to advanced search, put spain in the keyword and select buy-termination or sell-termination forum, but I want to cut the steps and provide this search facility directly to the visitors from a simple form somewhere above or below the navbar.

Lynne
03-26-2009, 06:11 PM
So those are forums? They have forumids. So, find the name of the input field for the forumid and then use radio buttons to select the forumid.