Search Forum

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MRGTB
    Senior Member
    • May 2005
    • 5454

    Search Forum

    On my site I have a block I created for an earlier version of vBulletin, that when u added text in the search box it would search my site. Now with vBulletin 3.6 it just takes you to the search screen instead of searching the site.

    I use this code:

    Code:
    <center>
    $vboptions[bbtitle]
    <br />
    [COLOR=red]<form method="get" action="search.php">
    <input type="text" name="q" size="16"
    maxlength="255" value="" />
    <br/>
    <input type="submit" value="Search" />
    </form>[/COLOR]
    <br />
    <div class="smallfont">
    <a href="search.php">Advanced Search</a>
    </div>
    </center>
    Anybody know what I need to edit in the red highlighted code to make it do a search on the site instead of taking me to the Advanced Search Screen.
  • daemon
    Senior Member
    • Jun 2003
    • 2351
    • 3.5.x

    #2
    Use this code:

    HTML Code:
    <form method="get" action="search.php" name="search">
    <input type="text" name="query" size="16" maxlength="255" value="" />
    <input type="hidden" name="do" value="process" />
    <input type="submit" name="__submit__" value="  Search  " />
    </form>
    Bugdar: PHP bug tracking software that is beautiful, fast, and robust.

    Comment

    • MRGTB
      Senior Member
      • May 2005
      • 5454

      #3
      Thanks, but it does the same thing again. When you enter some text to search for. Like I just did using your code that I know is on my site to find. Instead of it showing the results. It takes you to the advanced search page instead like before.

      Comment

      • Marco van Herwaarden
        Senior Member
        • Nov 2004
        • 6999
        • 3.8.x

        #4
        Try changing the form to a POST instead of GET.
        Last edited by Marco van Herwaarden; Mon 21 Aug '06, 2:22am.
        Want to take your board beyond the standard vBulletin features?
        Visit the official Member to Member support site for vBulletin Modifications: www.vbulletin.org

        Comment

        • MRGTB
          Senior Member
          • May 2005
          • 5454

          #5
          Not sure what happened then, but this works now. Thanks!

          Code:
          <form method="get" action="search.php" name="search">
          <input type="text" name="query" size="16" maxlength="255" value="" />
          <input type="hidden" name="do" value="process" />
          <input type="submit" name="__submit__" value="  Search  " />
          </form>

          Comment

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