Announcement

Collapse
No announcement yet.

Search Forums By Titles As Default

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

  • Search Forums By Titles As Default

    Want to set a forum so when search forum is accessed it will search by titles and not search posts.
    Currently this what we have for this section.
    <!-- forum search menu -->
    <div class="vbmenu_popup" id="forumsearch_menu" style="display:none">
    <form action="search.php" method="post">
    <table cellpadding="4" cellspacing="1" border="0">
    <tr>
    <td class="thead">Search Forums<a name="goto_forumsearch"></a></td>
    </tr>
    <tr>
    <td class="vbmenu_option" title="nohilite">
    <input type="hidden" name="s" value="$session[sessionhash]" />
    <input type="hidden" name="do" value="process" />
    <input type="hidden" name="forumchoice[]" value="10" />
    <input type="hidden" name="childforums" value="1" />
    <input type="hidden" name="searchdate" value="40" />
    <input type="text" class="bginput" name="query" size="20" />$gobutton<br />
    </td>
    </tr>
    <tr>
    <td class="vbmenu_option"><a href="search.php?$session[sessionurl]f=12" rel="nofollow">$vbphrase[advanced_search]</a></td>
    </tr>
    </table>
    </form>
    </div>
    <!-- / forum search menu -->
    Think something needs to be added with $titleonlyselected in it.
    Need to know what and where to add it.

    Thanks.

  • #2
    This is untested

    After

    <input type="hidden" name="searchdate" value="40" />

    Add

    <input type="hidden" name="titleonly" value="1" />
    Kerry-Anne :)

    Twitter Blog

    www.peterska2.com www.worldnewszone.com www.popularusenetgroups.com www.superclickers.co.uk www.forumsforchrist.com www.browsergameplanet.com

    Comment


    • #3
      That does what we want and thanks much.

      Comment

      Loading...
      Working...
      X