Once enabled, Threadloom automatically routes searches via Threadloom for the standard XenForo theme, and Audentio's UI.X theme. If you are using a custom theme or template, searches may still route to native search, even after you enable Threadloom on the Threadloom options page in AdminCP.
The good news is that you can route searches via Threadloom through some minor template changes; however, we recommend first confirming that this is the issue by taking the following steps:
- Go to AdminCP > Appearance > Template Modifications.
- Look for the Threadloom modifications section, and locate search_bar and uix_searchMinimal.
- If both of those modifications display "0/0/0" next to it, continue with the steps listed below; otherwise, drop a us line, since there may be something else going on.
Once you're ready to modify your templates, proceed with the following instructions:
- Go to AdminCP > Appearance > Search Templates.
- In Template Contains, search for "search/search".
- Identify the templates that you want to modify to use Threadloom.
- Only replace search forms, which look like:
<form action="{xen:link 'search/search'}" method="post" class="formPopup">
Don't replace other references to "search/search".
- Do not replace advanced search forms. In the default theme this includes:
- search_form
- search_form_post
- search_form_profile_post
- In the selected template(s), replace the opening tag of the search form, e.g.:
<form action="{xen:link 'search/search'}" method="post" class="formPopup">
with the snippet below:
{xen:if $xenOptions.threadloom_search,
'<form action="{xen:link 'threadloom/search'}" method="post" class="formPopup">',
'<form action="{xen:link 'search/search'}" method="post" class="formPopup">'}
So, for example, if your template previously read:
<div>
<form action="{xen:link 'search/search'}" method="post" class="formPopup">
<... stuff ...>
</form>
</div>
It should now read:
<div>
{xen:if $xenOptions.threadloom_search,
'<form action="{xen:link 'threadloom/search'}" method="post" class="formPopup">',
'<form action="{xen:link 'search/search'}" method="post" class="formPopup">'}
<... stuff ...>
</form>
</div>
As a reminder, these changes will routes search via Threadloom only if Threadloom is enabled on the Threadloom options page in AdminCP. If you still encounter issues after following these steps, please drop us a line.
Comments
0 comments
Article is closed for comments.