Announcement

Collapse
No announcement yet.

Change search function

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • JabirA
    Member
    • Apr 2012
    • 80
    • 4.1.x

    [Forum] Change search function

    Hi All,

    I would like to change the searchbox (top-right box) with the tags search box. Is there a easy way to do this?

    Kind regards,
    Jabir
  • Riasat
    Senior Member
    • Aug 2006
    • 4013

    #2
    No. It will require quite a bit of coding and better discussed in vBulletin.org

    However, interesting idea. I might give it a try myself.

    Comment

    • JabirA
      Member
      • Apr 2012
      • 80
      • 4.1.x

      #3
      I thought so, could you maybe help with that? ;$ (on vb.org)

      Comment

      • Riasat
        Senior Member
        • Aug 2006
        • 4013

        #4
        When I will get the time, I will try it myself. If I do it, I'll be happy to share the code.

        Comment

        • JabirA
          Member
          • Apr 2012
          • 80
          • 4.1.x

          #5
          Hi CvP,

          The solution seems to be very simple. In navbar search for:

          Code:
          [COLOR=#FF8000]<form action=[COLOR=#0000FF]"search.php?{vb:raw session.sessionurl}do=process"[/COLOR] method=[COLOR=#0000FF]"post"[/COLOR] id=[COLOR=#0000FF]"navbar_search"[/COLOR] class=[COLOR=#0000FF]"navbar_search"[/COLOR]>[/COLOR]
          Below it you see:

          Code:
          [COLOR=#FF8000]<input type=[COLOR=#0000FF]"text"[/COLOR] value=[COLOR=#0000FF]""[/COLOR] name=[COLOR=#0000FF]"query"[/COLOR] class=[COLOR=#0000FF]"textbox"[/COLOR] tabindex=[COLOR=#0000FF]"99"[/COLOR]/>[/COLOR]
          Replace that with:


          Code:
          [COLOR=#FF8000]<input type=[COLOR=#0000FF]"text"[/COLOR] value=[COLOR=#0000FF]""[/COLOR] name=[COLOR=#0000FF]"tag"[/COLOR] class=[COLOR=#0000FF]"textbox"[/COLOR] tabindex=[COLOR=#0000FF]"99"[/COLOR]/>[/COLOR]
          Kind regards,
          Jabir

          Comment

          • Riasat
            Senior Member
            • Aug 2006
            • 4013

            #6
            Does the tag autocomplete work too?

            Comment

            • JabirA
              Member
              • Apr 2012
              • 80
              • 4.1.x

              #7
              Not it doesn't. But I don't find that usefull anyway...

              Comment

              • Riasat
                Senior Member
                • Aug 2006
                • 4013

                #8
                ah...in my mind, that was the most important things to have if tag search is to be put in there.

                Comment

                widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
                Working...
                😀
                🥰
                🤢
                😎
                😡
                👍
                👎