Custom config for search through the IE7/Firefox 2 Searchbar

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • SecTa
    Member
    • Dec 2004
    • 47
    • 3.6.x

    Custom config for search through the IE7/Firefox 2 Searchbar

    Greetz.
    There's a feature for make your forum searchable through the IE7/Firefox 2 Searchbar
    that i want to use, however, i'd like to customize it a bit.
    First of, i need to configure it for search within certain forum category and make it search in titles only. As far as i understand, some additional parametres should be added to line
    PHP Code:
    <Url type="text/html" method="get" template="http://www.yoursite.com/search.php?do=process&amp;query={searchTerms}" /> 
    Second, i want to restrict it so that only certain usergroups would be able to add this search in their browsers' searchbar... This (if i understand it right) could be done by adding some conditions to this line that goes to 'headinclude' template:
    PHP Code:
    <link rel="search" type="application/opensearchdescription+xml" href="http://www.yoursite.com/forum_url/ieff_search.xml" title="Your Website Name" /> 
    Could you guys help me out with those? Thanks in advance
  • SecTa
    Member
    • Dec 2004
    • 47
    • 3.6.x

    #2
    Bump

    Comment

    • SecTa
      Member
      • Dec 2004
      • 47
      • 3.6.x

      #3
      OK, i've found the answers myself, so i'll share it here.
      All additional variables could be found here, the only important thing is that you'll need to change
      Code:
      &
      to
      Code:
      &amp;
      in xml file.

      To restrict search addition to only certain usergroups (registered users forexample) you'll need to add following lines in headinclude template:
      Code:
      <if condition="!is_member_of($bbuserinfo, x, y, z)">
      <link rel="search" type="application/opensearchdescription+xml" href="http://www.yoursite.com/forum_url/yoursearch.xml" title="Your Website Name" />
      </if>
      where x, y, z are ids of usergrous you don't want to be able to add search.

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...