• This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn more.

Searching the forum via URL--is it possible?

Rudy

Well-known member
#1
Is there a way to search the forum strictly by using a URL?

This does not work, as it takes you to the search form:

http://www.audiospeakeasy.com/forum/search/?q=testing&o=date

This is what results after you search on the term "testing", with a search identifier in the URL:

http://www.audiospeakeasy.com/forum/search/1528/?q=testing&o=date

I have a couple of instances where I want to have a visitor click a link to hop to a search results page. Plus, there is one other application for this type of URL that I want to implement.
 

Rudy

Well-known member
#3
Oh man...I had thought about putting something in there, but didn't try it. Thanks! Works perfectly.

I'm going to play around with the queries a bit more and see what else I can do with them. One of my ideas might even result in a small add-on for XF... ;)
 

Rudy

Well-known member
#5
You can also specify search/search which is the action of the search form. That will submit the search like you want. For example:

http://xenforo.com/community/search/search/?keywords=test&title_only=1
That seems a little more stable than what I "stole" from the address bar. I see it uses "keywords=" instead. For my purposes, I only need the keyword search, but I should probably scan the documentation to see what other options are available (unless they are not documented yet).