Is there a way to get search function in a specific forum?

Discussion in 'vBulletin Discussions' started by plazzman, Jun 29, 2009.

  1. plazzman

    plazzman Adept

    Joined:
    May 17, 2009
    Messages:
    180
    Likes Received:
    6
    I was wondering if it's possible to somehow implement the search function, in a specific forum/subforum.

    For example, I have a subforum where we have something like 300+ videos, is there a way to add the search function just to that section?

    I know that you can filter search results with the main search function, but is there a way to have it work only at and on that one forum?

    I have included a pic to make things clearer if you're still confused.

    Thanks very much.

    EDIT: I see there is a vb specific section, so please feel free to move this there.
     
  2. hockeystar165

    hockeystar165 Newcomer

    Joined:
    Jun 28, 2009
    Messages:
    10
    Likes Received:
    0
    First make sure all the videos have a tag
    On the ribbon at the top of the site with user cp click search scroll down to search in forums click the forum its in and put in keywords
     
  3. Soliloquy

    Soliloquy Regular Member

    Joined:
    Jun 3, 2009
    Messages:
    2,402
    Likes Received:
    66
    Location:
    New York City
  4. plazzman

    plazzman Adept

    Joined:
    May 17, 2009
    Messages:
    180
    Likes Received:
    6
    Awesome, I shall try that out and see how it goes.
     
  5. Wayne Luke

    Wayne Luke Regular Member

    Joined:
    Apr 2, 2009
    Messages:
    991
    Likes Received:
    276
    You're using vBulletin. At the top of every thread list in every forum there is a search dropdown specific to that forum in the default style.

    To do what you want in the image you just need to create a form and submit the right values.
    HTML:
    <div id="search_box">
    <form id="search_form" method="post" action="search.php">
    <input type="hidden" value="process" name="do" />
    <input type="hidden" value="0" name="showposts" />
    <input type="hidden" value="0" name="childforums" />
    <input type="hidden" value="XX" name="forumchoice[]"
    <input type="hidden" value="" name="s"/>
    <input type="hidden" value="$bbuserinfo[securitytoken]" name="securitytoken" />
    <input type="text" id="s" value="Search this site..." name="query" onfocus="javascript:if(this.value=='Search this site...') this.value='';" onblur="if(this.value=='')this.value='Search this forum...'" />
    <input type="image" src="http://www.adminaddict.net/forum/images/fun/misc/search.gif" width="35" height="28" id="go" alt="Search" title="Search"  />
    </form>
    </div>
    
    Replace XX above for forumchoice[] with the forum id that you want to search.
     
    2 people like this.
  6. plazzman

    plazzman Adept

    Joined:
    May 17, 2009
    Messages:
    180
    Likes Received:
    6
    You sir, are the freakin MAN
     
  7. ArnyVee

    ArnyVee Regular Member

    Joined:
    May 25, 2009
    Messages:
    1,264
    Likes Received:
    39
    plazzman, if/when you do it, please share to check it out :D
     
  8. tryfuhl

    tryfuhl Champion

    Joined:
    Jun 27, 2009
    Messages:
    390
    Likes Received:
    14
    First Name:
    Shawn
    very nice
     

Share This Page