vb.org Archive

vb.org Archive (https://vborg.vbsupport.ru/index.php)
-   vBulletin 4.x Template Modifications (https://vborg.vbsupport.ru/forumdisplay.php?f=246)
-   -   Integration with vBulletin - Replace search with google search engine ( no google account required) (https://vborg.vbsupport.ru/showthread.php?t=241563)

Golzarion 04-29-2010 10:00 PM

Replace search with google search engine ( no google account required)
 
1 Attachment(s)
This mod replace the navbar search with google search engine (No adsense account is required !) just use the google search engine to search inside your forum !!

Install :

1. go to : admin cp =>style manager=>>all style options =>>Navigation/Bread crumb templates => Navbar
in "navbar " template :
search for :
HTML Code:

<form action="search.php?{vb:raw session.sessionurl}do=process" method="post"
2. find :
HTML Code:

<form action="search.php?{vb:raw session.sessionurl}do=process" method="post" id="navbar_search" class="navbar_search">
                <vb:comment><input type="hidden" name="s" value="{vb:raw session.sessionurl}" /></vb:comment>
                <input type="hidden" name="securitytoken" value="{vb:raw bbuserinfo.securitytoken}" />
                <input type="hidden" name="do" value="process" />
                <span class="textboxcontainer"><span><input type="text" value="" name="query" class="textbox" tabindex="99"/></span></span>
                <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search<vb:if condition="$stylevar['textdirection'] == 'rtl'">_rtl</vb:if>.<vb:if condition="is_browser('ie') AND !is_browser('ie', 7)">gif<vb:else />png</vb:if>" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>
            </form>

3. Replace it with :

Code:

<form method="get" action="http://www.google.com/search" target="_blank" class="navbar_search">
            <input type="hidden" name="sitesearch" value="forums.animparadise.com"  id="pn"/>
            <span class="textboxcontainer"><span><input type="text" value="" name="q" class="textbox" tabindex="99"/></span></span>
            <span class="buttoncontainer"><span><input type="image" class="searchbutton" src="{vb:stylevar imgdir_button}/search.png" name="submit" onclick="document.getElementById('navbar_search').submit;" tabindex="100"/></span></span>
        <input type="hidden" name="domains" value="forums.animparadise.com"/>
</form>

4. Remember to change the url : " forums.animparadise.com " with your own forum address !!!!

5. Then save the template. and enjoy your new search with google engine !


demo : http://forum.golzarion.com

It works perfect on cms and blog too ..
Also Persian Translation is attached. on so the screen shots for both english and persian version.

update :works perfect on vb version : 4.1.10

**** Please click Installed if you use this mod . thx ****


.

Golzarion 04-30-2010 12:23 PM

1 Attachment(s)
To clear the screenshots :

This is for English version : Attachment 116496

And This is for Persian version :

Attachment 116497

Persian language users can use both ( persian or English ) versions of this mod .

I hope you like the mod..

BaziCenter 04-30-2010 01:11 PM

thanks man

Brandon Sheley 04-30-2010 02:49 PM

can you link us to a demo search page that doesn't require users to login

thanks

Golzarion 04-30-2010 04:07 PM

1 Attachment(s)
Quote:

Originally Posted by Loco.M (Post 2029580)
can you link us to a demo search page that doesn't require users to login

thanks

just test demo on my forum : http://forum.golzarion.com/forum.php

( for example search the word " golzarion " )or see the screenshots.


The main idea is :

You can always search inside the site by google search engine :

in the google box just type this :

Code:

site:YOURDOMAIN.COM keyword1+keyword2....
Then google search engine searches just inside your site ... without any accounts needed !

Am I right ?

Golzarion 04-30-2010 04:23 PM

I specially created this mod for Iraninan users ! because of " Trade restriction against Iranian ordinary people " ! my Iranian friends can not use Google Adsence custom search !
I personally do not have any google Adsence accounts ...
The idea of using google search by using " site:yourdomain.com" can make it easier for this country...

RobbieZ 05-02-2010 06:45 AM

Can this be customized for 3.8.x ??

Golzarion 05-02-2010 04:38 PM

Quote:

Originally Posted by RobbieZ (Post 2030469)
Can this be customized for 3.8.x ??

Yes,I will put the 3.8 version on the first post soon .

tarzan22 05-03-2010 05:50 AM

Very good, and to put our ID google?

thanks

Golzarion 05-03-2010 05:29 PM

Quote:

Originally Posted by tarzan22 (Post 2030962)
Very good, and to put our ID google?

thanks

I am happy you like it ...

There is no need to have a google adsence ID !!!NO Google adsence ID required !! It works similar to google adsence custom search ... but no Adsence ID is required !


All times are GMT. The time now is 12:51 AM.

Powered by vBulletin® Version 3.8.12 by vBS
Copyright ©2000 - 2025, vBulletin Solutions Inc.

X vBulletin 3.8.12 by vBS Debug Information
  • Page Generation 0.01140 seconds
  • Memory Usage 1,749KB
  • Queries Executed 10 (?)
More Information
Template Usage:
  • (1)ad_footer_end
  • (1)ad_footer_start
  • (1)ad_header_end
  • (1)ad_header_logo
  • (1)ad_navbar_below
  • (2)bbcode_code_printable
  • (2)bbcode_html_printable
  • (3)bbcode_quote_printable
  • (1)footer
  • (1)gobutton
  • (1)header
  • (1)headinclude
  • (6)option
  • (1)pagenav
  • (1)pagenav_curpage
  • (2)pagenav_pagelink
  • (1)post_thanks_navbar_search
  • (1)printthread
  • (10)printthreadbit
  • (1)spacer_close
  • (1)spacer_open 

Phrase Groups Available:
  • global
  • postbit
  • showthread
Included Files:
  • ./printthread.php
  • ./global.php
  • ./includes/init.php
  • ./includes/class_core.php
  • ./includes/config.php
  • ./includes/functions.php
  • ./includes/class_hook.php
  • ./includes/modsystem_functions.php
  • ./includes/class_bbcode_alt.php
  • ./includes/class_bbcode.php
  • ./includes/functions_bigthree.php 

Hooks Called:
  • init_startup
  • init_startup_session_setup_start
  • init_startup_session_setup_complete
  • cache_permissions
  • fetch_threadinfo_query
  • fetch_threadinfo
  • fetch_foruminfo
  • style_fetch
  • cache_templates
  • global_start
  • parse_templates
  • global_setup_complete
  • printthread_start
  • pagenav_page
  • pagenav_complete
  • bbcode_fetch_tags
  • bbcode_create
  • bbcode_parse_start
  • bbcode_parse_complete_precache
  • bbcode_parse_complete
  • printthread_post
  • printthread_complete