Announcement

Collapse
No announcement yet.

Search Forum

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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 />
    <form method="get" action="search.php">
    <input type="text" name="q" size="16"
    maxlength="255" value="" />
    <br/>
    <input type="submit" value="Search" />
    </form>
    <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.

  • #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


    • #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


      • #4
        Try changing the form to a POST instead of GET.
        Last edited by Marco van Herwaarden; Mon 21st Aug '06, 3: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


        • #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...
          X