The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
#1
|
|||
|
|||
google intergration
I've seen users request google intergartion for the forums, we I manged to do that, I found a free script, and changed the layout etc to the forum. All the credits remain in the script.
I do know someone else has used the same code but has removed all the credit. ok first you need to get the google api http://www.google.com/apis/ Also there a a 1000 a day limit which google has set, and I believe its only for personal use. heres the template create a new template called google_main HTML Code:
$stylevar[htmldoctype] <html dir="$stylevar[textdirection]" lang="$stylevar[languagecode]"> <head> <title>$vboptions[bbtitle]</title> $headinclude <script language="javascript"> function checkform (form) { if (form["query"].value == "") { alert("Please insert keyword(s) to search for"); form["query"].focus(); return false ; } return true; } </script> </head> <body> $header $navbar <table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="0" width="100%" align="center"> <tr> <td colspan="2" class="tcat">Google Search</td> </tr> <tr> <td colspan="2" class="alt1">Search Google <form name="googleFrm" method="post" action="google.php" onsubmit="return checkform(this);"> <input type="text" name="query" class="input" value="$query"> <input type="submit" name="submit" value="Google It" class="button"> <input name="www" type="hidden" value="true"> </form><img src="enhancedbygoogle.gif" width="117" height="19"> </td> </tr> $results </table> $footer </body> </html> demo http://207.58.180.20/google.php have fun with the script, tested on vb 3.0.7 |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|