Can we default the Advanced Search to "all keywords" rather than "any"?


InstantForum Question
If so? How to properly configure?
InstantForum Question

Hi Robert,

First thank for posting in the forums. I know we've spoke quite a bit via support tickets but it's great to get some of these questions & ideas in the public domain. 

After a little investigation into this request it turns out this would require a code change. This is not ideal so we've updated this allowing you to set this declaratively. 

To change this Robert please download the small update below and copy these 2 DLLs into your InstantForum 2015 Bin folder. After you've applied the DLLs you'll need to navigate to the files on your server. Locate Skins/YourSkinName/Search.ascx and open this within NotePad. You will need to use the updated 2015 DLLs attached below before this will work. 

Change

<InstantForum:SearchOptions 
DisplayType="Basic"
EnableMemberGroups="true"
EnabledAdvancedSearch1="false"
EnabledAdvancedSearch2="false"
EnableSearchFooter="true" 
id="ctlSearchOptions" runat="Server"/>

To

<InstantForum:SearchOptions 
DisplayType="Basic"
EnableMemberGroups="true"
EnabledAdvancedSearch1="false"
EnabledAdvancedSearch2="false"
EnableSearchFooter="true" 
id="ctlSearchOptions" runat="Server">
  <SearchEventArgs SearchUsing="All" />
</InstantForum:SearchOptions>

I hope this helps Robert. This change will be left in place for future versions of InstantForum ensuring you can set various defaults within the advanced search via the user control rather than modifying code. If I can assist further don't hesitate to respond. 


http://www.instantasp.co.uk/images/line.gif
Kindest Regards,

Ryan Healey



ryan@instantasp.co.uk
www.instantasp.co.uk
Blog | Community | Docs

http://www.instantasp.co.uk/core/assets/images/email/facebook.png http://www.instantasp.co.uk/core/assets/images/email/twitter.png http://www.instantasp.co.uk/core/assets/images/email/google.png http://www.instantasp.co.uk/core/assets/images/email/linkedin.png
Attachments
GO

Login
Existing Account
Email Address:


Password:


Social Logins

Select a Forum....







InstantASP Forums


Search