vForums Support Banner



 

Welcome Guest! Please Login or Register
vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Code Submissions :: Google Search Into Quick Search - View Topic
Topic Rating: *****
Printable View
dog199200
Guest
Google Search Into Quick Search (17th Oct 08 at 2:44am UTC)
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!
 Printable View

All times are GMT+0 :: The current time is 9:29am
Page generated in 0.0636 seconds
This Forum is Powered By vForums (v2.4)
Create a Forum for Free | Find Forums