convert vbulltin 5 search box to google search

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • habili
    Senior Member
    • Jan 2018
    • 253
    • 4.2.x

    convert vbulltin 5 search box to google search

    i want to convert vbulltin 5 search box to google search
    please guid me to do that
    any help is highly appreciated
  • Mark.B
    vBulletin Support
    • Feb 2004
    • 24286
    • 6.0.X

    #2
    This would require custom code.

    You can try asking on www.vbulletin.org or https://vbmods.rocks
    MARK.B
    vBulletin Support
    ------------
    My Unofficial vBulletin 6.0.0 Demo: https://www.talknewsuk.com
    My Unofficial vBulletin Cloud Demo: https://www.adminammo.com

    Comment

    • glennrocksvb
      Former vBulletin Developer
      • Mar 2011
      • 4011
      • 5.7.X

      #3
      I will have it on vbmods.rocks soon.

      Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

      Comment

      • habili
        Senior Member
        • Jan 2018
        • 253
        • 4.2.x

        #4
        my problem is solve with below codes :
        PHP Code:
                </div>
                        <
        div class="toolbar">
                            <
        ul class="h-right">
                                {
        vb:hook 'header_toolbar'}
                                {
        vb:data searchpermuserhasPermissionsforumpermissionscansearch}
                                <
        vb:if condition="$searchperm AND $vboptions['enablesearches']">




                                <
        li class="search-container">
                                    <
        form id="searchForm" action="https://www.google.com/search" class="h-left" method="GET" target="_blank">
                                        <
        div class="h-left">
                                            <
        div class="search-box search-btn-inside-box">
                                                <
        input type="text" name="q" id="q" placeholder="{vb:phrase search}" class="textbox search-term" autocomplete="off" />
                                                <
        button type="submit" id="btnSearch" class="search-btn" title="{vb:phrase search}"><span class="vb-icon vb-icon-search"></span></button>
        <
        input type="hidden" name="sitesearch" value="linux-zone.org" />
                                                <!--
        div class="vertical-divider-left"></div>




                                                <
        div class="b-comp-menu-dropdown js-comp-menu-dropdown b-comp-menu-dropdown--open-on-hover b-comp-menu-dropdown--header-search">
                                                    <
        div class="b-comp-menu-dropdown__trigger js-comp-menu-dropdown__trigger b-comp-menu-dropdown__trigger--arrow js-button" tabindex="0"></div>
                                                    {
        vb:template search_popuppage={vb:raw page}, user={vb:raw user}}
                                                </
        div-->

                                            </
        div>
                                        </
        div>
                                    </
        form>
                                </
        li>
                                </
        vb:if>
                            </
        ul>
                        </
        div>
                        <
        vb:if condition="!empty($useSitebuilder)">
                            <
        div class="disable-overlay"></div>
                        </
        vb:if>
                    </
        div

        Comment

        • habili
          Senior Member
          • Jan 2018
          • 253
          • 4.2.x

          #5
          vbulltin search for persian and arabic language is so weak and can't trust to vbulltin search so most of persian vbulltin forums, change their search to google search to power their search box.
          plz think about it, thanks for your kind cooperation.

          Comment

          • plongeur.com
            Senior Member
            • Mar 2017
            • 239
            • 5.2.x

            #6
            That is very nice but I thought Google was discontinuing site search next month.

            Did I miss something?
            Last edited by plongeur.com; Sat 3 Mar '18, 8:55am.

            Comment


            • glennrocksvb
              glennrocksvb commented
              Editing a comment
              You're right. But that's Google Site Search where you can customize the look and feel to match your site (plus other features). But this one simply uses the "site:" keyword trick to search only within the specified URL and it redirects to Google search results page.
          • glennrocksvb
            Former vBulletin Developer
            • Mar 2011
            • 4011
            • 5.7.X

            #7
            I have created a free mod that uses template hooks and does not require editing header template. Check it out here.

            Flag Icon Postbit Insert GIPHY Impersonate User BETTER INITIALS AVATAR Better Name Card Quote Selected Text Bookmark Posts Post Footer Translate Stop Links in Posts +MORE!

            Comment

            • William Thomas Jr
              Senior Member
              • Nov 2014
              • 526
              • 5.1.x

              #8
              Originally posted by Glenn Vergara
              I have created a free mod that uses template hooks and does not require editing header template. Check it out here.
              Excellent work! Finally a functional Vbulletin 5 search. My site search was timing out, I take it that this may of been due to avg length (ton of content) of each post in the database.

              Anyhoot with Google search the end results are very quick.

              William

              Comment

              • plongeur.com
                Senior Member
                • Mar 2017
                • 239
                • 5.2.x

                #9
                I have to say a working vbsearch would be better but this is very good!
                one limitation is they Google will only index public content, so if you have private channels they won't appear.
                ​​​​​

                Comment

                Related Topics

                Collapse

                Working...