XF 2.2 Basic Search Button

Donske

Member
I would like to make a change to the basic Search Button. (images below). If someone is willing to share with me the code to make this change, I would really appreciate it. I know that clicking on the Basic Search button has an "Advanced Search" button and on my forum, I have so many members that are not seeing this extra advanced search that will help them. Not sure why they are overlooking this great feature.
Therefore, is there any way that when that Search Button is clicked on that it can carry you to the advanced search, to begin with?

When I click on this "Search" button
Search-02.png

Then I wish for this action to happen
Search-01.png

I have already tried modifying the link in the search button to no avail.

Thanks
Donald
 

Donske

Member
My apologies as I posted this in another thread - however, to keep from repeating myself, this is the code that I used below

PAGE_CONTAINER
From
<xf:if is="$xf.visitor.canSearch()">
<a href="{{ link('search') }}"
to
<xf:if is="$xf.visitor.canSearch()">
<a href="{{ link('search/?type=post') }}"

even after the change, when I click on the "Search" I still get this box. I want to bypass this box and go straight to the Advanced Search.

1608148010228.png
 

Brogan

XenForo moderator
Staff member
Edit the PAGE_CONTAINER template and remove the line highlighted:

1608148733038.png

Like so:

1608148767900.png


If you also want the threads tab to be selected on the search page, edit the link like so:

1608148878588.png
 
Top