PDA

View Full Version : Customize the default search


kingharrison
05-16-2010, 11:33 AM
I am trying to change the behavior in the default search on my board. I refer to the search bar underneath the header as the default search.

The behavior I would like is that a user types in a few searchable terms, vbulletin goes and searches all the posts for these words, and then presents a list of the results to the user. Clicking the results takes you straight to the post where the results were found.

I discovered this behavior does exists strictly on a single forum level. When you select a particular forum, click Search Forum, click Show Posts, and search for terms this produces the exact behavior I am looking for. On our old phpbb board this was how search worked and my users just got used to it.

So, how do I transfer that behavior that I know it can do to the default search and make it board wide? Thanks!

Andreas
05-17-2010, 04:36 AM
That's a pretty simple template modification:
Set contenttype=vBForum_Post and showposts=1 in the form.

But keep in mind that this means crippling functionality as now only forum posts will be searched.

kingharrison
05-17-2010, 07:44 AM
What would I be losing exactly?

I guess this is what I think my users expect from that default search.