vForums Support > Programming & Coding :: Database of Codes/Hacks/Mods :: Code Submissions :: > Google Search Into Quick Search

Google Search Into Quick Search - Posted By dog199200 (dog199200) on 17th Oct 08 at 2:44am
What this code does changes the vForums Google search tool at the bottom of the forum into a quick search tool, calling up the search feature for the website. You can search by a term in the message or in the subject, or both. Enjoy {Smile}

Previews: Before, After

Global Header

Code:
Code:
 
  1. <script type="text/javascript">
  2. /*Google Search Into Quick Search
  3. Google Search has to be Activated!
  4. Created by Dwight*/
  5. window.onload = function() {
  6. if(get('vforums_search', ID)) {
  7. get('vforums_search', ID).innerHTML = '<form action="/action/search" method="post" enctype="multipart/form-data" name="search_form"><input name="search_words" size="25" maxlength="100" value="" type="text"><br />Subject:<input name="subject" value="1" type="checkbox"> Message:<input name="message" value="1" type="checkbox"><input name="max_results" value="25" type="hidden"><input type="submit" value="Search" /></form>';
  8. }
  9. }
  10. </script>
 


There shouldn't have to be any editing at all, but you do have to have the Google search activated for this code to work!