The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
Google Custom Search Engine Integration [AdSense capable] Details »» | ||||||||||||||||||||||||||||
Google Custom Search Engine Integration [AdSense capable]
Developer Last Online: Dec 2013
NOTE: This works only on vBulletin 3.6.7+ as it's using one of the new navbar hooks introduced in 3.6.7.
Google Custom Search Engine Integration v1.0.0 http://www.andreas-kraus.net/blog -|- http://www.seo-vault.de If you don't have a Google Custom Search Engine yet, get one here: http://www.google.com/coop/cse/overview (Free Google Account required) With the GCS you have the ability to let Google just search the sites you specify, no other sites. Quote:
Instructions: 1) Download the plugin and install the plugin by importing the XML file 2) Edit the new template: navbar_GoogleCustom_Search 3) Go to the Google Coop Site , navigate to your custom search engine control panel, click on "Code", choose the last Layout with the note "Watermark requires Javascript", now you see something like this: Code:
<!-- Google CSE Search Box Begins --> <form id="searchbox_123412344xxxx672729:-gj4xxodxro" action="http://google.com/cse"> <input type="hidden" name="cx" value="00309xxxxxxxxx12672729:-gjxxxodxxo" /> <input type="hidden" name="cof" value="FORID:1" /> <input name="q" type="text" size="40" /> <input type="submit" name="sa" value="Search" /> </form> <script type="text/javascript" src="http://google.com/coop/cse/brand?form=searchbox_00309026xxxxxx2729%3A-gj4q4od4ro"></script> <!-- Google CSE Search Box Ends --> Code:
<!-- Google CSE Search Box Begins --> <form id="searchbox_123412344xxxx672729:-gj4xxodxro" action="http://google.com/cse"> <table cellpadding="4" cellspacing="1" border="0"> <tr> <td class="thead">Google Custom Search</td> </tr> <tr> <td class="vbmenu_option" title="nohilite"> <input type="hidden" name="cx" value="00309xxxxxxxxx12672729:-gjxxxodxxo" /> <input type="hidden" name="cof" value="FORID:1" /> <div><input class="bginput" name="q" type="text" size="25" /><input type="submit" name="sa" class="button" value="Go" /></div> </td> </tr> </table> </form> <script type="text/javascript" src="http://google.com/coop/cse/brand?form=searchbox_00309026xxxxxx2729%3A-gj4q4od4ro"></script> <!-- Google CSE Search Box Ends --> Enjoy! Show Your Support
|
Comments |
#2
|
|||
|
|||
seems not to work with vb 3.6.5? it doesn't appear?
|
#3
|
|||
|
|||
ok made the changes in navbar by myself *clicks install*
|
#4
|
|||
|
|||
Hi,
as stated above : Quote:
|
#5
|
|||
|
|||
Hello Reteep,
Great Plugin! I have installed this in my forum. I am running vB 3.6.8 and I have also implemented blogs. So the search in the forum, includes drop down for searching threads and posts, as well as for searching the blogs. Implementing your plugin, added Google Custom search in between the forum search and blog search. The style appearance for the blog search got removed on implementing this one. I am attaching images of how it was before implementing and after implementing the plugin. Please let me know how I can fix this issue. Thank you for your support. |
#6
|
|||
|
|||
Hi IndusLady, did you include the blogsearch also by using a plugin? If this is the case please drop me the link to the plugin so I can test it out.
If you implented that Blog Search Box manually, try moving it above the Hook in the template. |
#7
|
|||
|
|||
Hello Reteep,
Thanks for the quick response and support. The blog search box appeared when I implemented the vbulletin blog add-on. I didn't implement a separate hack or implement it manually. |
#8
|
|||
|
|||
Quote:
Could u provide me with the (HTML) source code which is produced by the complete popup or post the URL where you implented it? Sorry for the delay, this time I didn't receive an e-mail notifaction of the reply.. |
#9
|
|||
|
|||
Hello Reteep,
I have implemented the blogs in both my test and live forums. URL of my live forum - http://www.indusladies.com/forums If you click on the search menu you will see the blog search there. But I haven't yet implemented your Google CSE plugin in the live forum. It's just there in my test forum. Not sure you will be able to access my test forum (for it is not available to public). So, I am providing the code in the template... Quote:
Thank you and look forward to your help. |
#10
|
|||
|
|||
Hello Reteep,
I see that you are calling the below line in 'navbar_search' , which cause the Google Custom search box to appear below the forums search. $template_hook[navbar_search_menu] Blogs have got a template 'blog_navbar_search' that displays the blog search option in the drop down. Is there by any chance the template for your hook Google custom search is called in the blog search template? So that in the search drop down, the forum search appears 1st, the blog search is 2nd and then we have the Google custom search. What say you? Advance thanks for your help. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|