AusPhotography Google Custom Search
http://www.AusPhotography.net.au Google Custom Search
This product provides a simple way to integrate Google Custom Search into vBulletin V4.1.x. It is advisable to get the XML site map working and adjust your robots.txt file accordingly. Don't ask me how to do this, you need to do a little research of your own. This product is a simple framework for connecting an external function with its own menu tab, not just Google CSE, i.e. you could easily adapt it for Yahoo or some other function. Features: 1. Configurable Google CSE code 2. Online/Offline option 3. Only works for logged in users Requires: 1. A Google CSE for the site (see: https://www.google.com/cse/ ) 2. [optional] apnavenhance - AP Navigation Enhancements (if not installed it is ignored) NB: apneavenhance has not and will not be released to the general public. Installation: 1. [Important] First! Create a Google CSE for the site and configure it with the Full-width option in Look & feel - You need a Google account to do this 2. Copy the Google CSE Javascript and CSS code ready to insert via AdminCP 3. Upload the apgoogle.php file to the forum directory 4. Install the product file 5. Configure your google search via AdminCP/Settings/Options - You need to put your CSE code into the option to make it work - See the sample below - Turn it on (installed in off mode by default) Done! Enjoy! It will probably work on all vB4.0+ as well. Kym Sample Google CSE javascript: 888888888888888888888:kgkgkgkgkgk being the key from your Google CSE I also changed the width in the first line to 60%, it's 100% from Google. Code:
<div id="cse" style="width: 60%;">Loading</div> <script src="http://www.google.com/jsapi" type="text/javascript"></script> <script type="text/javascript"> google.load('search', '1', {language : 'en', style : google.loader.themes.GREENSKY}); google.setOnLoadCallback(function() { var customSearchControl = new google.search.CustomSearchControl('888888888888888888888:kgkgkgkgkgk'); customSearchControl.setResultSetSize(google.search.Search.FILTERED_CSE_RESULTSET); customSearchControl.draw('cse'); }, true); </script> Download
APgoogle1.0.1.zip (4.5 KB, 76 downloads) |
Similar Mods
Integration with vBulletin Replace search with Google Custom Search | vBulletin 4.x Template Modifications |