vForums Support :: Programming & Coding :: Database of Codes/Hacks/Mods :: Code Submissions :: Google Search Into Quick Search - View Topic
| |
| 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
Previews: Before, After
Global Header
Code:
Code: - <script type="text/javascript">
- /*Google Search Into Quick Search
- Google Search has to be Activated!
- Created by Dwight*/
- window.onload = function() {
- if(get('vforums_search', ID)) {
- 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>';
- }
- }
- </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! | |
| |
| |
|