Adding Search On Every Pages

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • vivoperdio
    Member
    • May 2009
    • 91
    • 3.8.x

    Adding Search On Every Pages

    Hi, I would like to add a Search Box on every pages (like above "Welcome, username")
    So members would easier to find threads/posts matched with texts entered on the search box.

    Any help/idea would be appreciated. Thank you.
  • Dody
    Senior Member
    • Aug 2004
    • 1896
    • 3.8.x

    #2
    you want to add the search box in your vbulletin forum? or non-forum pages?
    while(true){
    if(
    $someone->needsHelp() && $i->canHelp()) $post->help();
    if(
    $i->findBug()) $post->bug();
    }

    Comment

    • vivoperdio
      Member
      • May 2009
      • 91
      • 3.8.x

      #3
      Originally posted by Dody
      you want to add the search box in your vbulletin forum? or non-forum pages?
      I want to add an Universal Search Box on every pages (maybe like below logo)

      Comment

      • Dody
        Senior Member
        • Aug 2004
        • 1896
        • 3.8.x

        #4
        Do you have a functional search script, or you want to have one?
        while(true){
        if(
        $someone->needsHelp() && $i->canHelp()) $post->help();
        if(
        $i->findBug()) $post->bug();
        }

        Comment

        • vivoperdio
          Member
          • May 2009
          • 91
          • 3.8.x

          #5
          I want to have one...
          Where I could copy the search script ?
          Do you have it ?

          Comment

          • Seven Skins
            Senior Member
            • Sep 2008
            • 146

            #6
            Try this:

            HTML Code:
            <form action="search.php?do=process" method="post">
             <input type="hidden" name="do" value="process" />
             <input type="hidden" name="quicksearch" value="1" />
             <input type="hidden" name="childforums" value="1" />
             <input type="hidden" name="exactname" value="1" />
             <input type="hidden" name="s" value="$session[sessionhash]" />
             <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
             <div>
                    <input type="text" class="bginput" name="query" size="25" />
                    <input type="submit" class="button" value="$vbphrase[go]" />
                </div>
            </form>
            vBulletin skins and servcies: www.sevenskins.com
            A to Z Talk: www.atoztalk.com

            Comment

            • vivoperdio
              Member
              • May 2009
              • 91
              • 3.8.x

              #7
              Thank you for your help, Pal

              But how do I enable this script only for certain member groups ?

              Ex: members, admins, moderators ?
              Last edited by vivoperdio; Sun 31 May '09, 8:41pm. Reason: How to enable certain member groups ?

              Comment

              • Seven Skins
                Senior Member
                • Sep 2008
                • 146

                #8
                HTML Code:
                <if condition="is_member_of($bbuserinfo, 5, 6, 7)">
                CODE HERE
                </if>
                Edit usergroup accordingly.
                vBulletin skins and servcies: www.sevenskins.com
                A to Z Talk: www.atoztalk.com

                Comment

                • vivoperdio
                  Member
                  • May 2009
                  • 91
                  • 3.8.x

                  #9
                  Okay, thank you very much for your help

                  Comment

                  • Jokerbites
                    Member
                    • Jun 2009
                    • 31
                    • 3.8.x

                    #10
                    I would like that as well...but I am confused on the members only portion. I dont know where to put that...

                    I am also trying to figure out how to get the login system on my site, so I would assume I need to set that up first?

                    Comment

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