Back to vBulletin 3.8 Add-ons

[YUI] Live Search
Mod Version: 3.0.2, by mad@Max

vB Version: 3.8.x Rating: (19 votes - 4.42 average) Installs: 163
Released: 07 Feb 2009 Last Update: 11 Jul 2009 Downloads: 1804
Not Supported Uses Plugins Auto-Template Additional Files  

Features:
  • search only, if typed >= 3 symbols;
  • header to window with button close;
  • message about no result;
  • limit number of threads;
  • highlight words in result
  • trim title of thread, if it large (optional)
  • edit position of pop-up window
  • work with vBadvanced
  • limit the number of displayed results
  • group permission
  • search by your own forums
  • sort results of search
  • mod makes only one query to db
  • full compatibility with styles and browsers
  • search by individual words
  • integrate option into standard search
  • search only the specified length of each word
  • users search
  • interval requests
  • wrote 2 js class
Rewritten many things since version 1.6

Known Issues
Double click in search field - still not fixed.

Installation:
Upload all files from folder upload to forum folder.
Import product.

Upgrade
Uninstall the old version, delete files (if you has use it) and install new version.

If you already have opened search field, do following.
Search field look like this:

HTML Code:
                <form action="search.php?do=process" method="post">
                    <input type="hidden" name="do" value="process" />
                    <input type="hidden" name="quicksearch" value="1" />
                    <input type="hidden" name="childforums" value="1" />
                    <input type="hidden" name="exactname" value="1" />
                    <input type="hidden" name="s" value="$session[sessionhash]" />
                    <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
                    <input type="text" class="bginput" name="query" size="25" tabindex="1001" />
                    <input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" />
                </form>
So, after the opening tag <form ХХХ> add bottom:

HTML Code:
                    <div id="lsa_window">
Before the closing tag </form> add:

HTML Code:
                    </div>
We have prepared the search form to pop-up window. Now we need to bind to the field of javascript.
For this in tag <input type="text" /> add id="lsa_input"
As a result, you should get some of this code:

HTML Code:
				<form action="search.php?do=process" method="post">
					<div id="lsa_window">
					<input type="hidden" name="do" value="process" />
					<input type="hidden" name="quicksearch" value="1" />
					<input type="hidden" name="childforums" value="1" />
					<input type="hidden" name="exactname" value="1" />
					<input type="hidden" name="s" value="$session[sessionhash]" />
					<input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" />
					<input type="text" id="lsa_input" class="bginput" name="query" size="25" tabindex="1001" />
					<input type="submit" class="button" value="$vbphrase[go]" tabindex="1004" />
					</div>
				</form>
P.S. If you already have id in your search field and its change may be possible to reset the anchor CSS, do the following.
Open the template lsa_script and edit the line

var lsa = new AJAX_LiveSearch_Prepare("lsa", "lsa_input", "lsa_window");

where the arguments of the class:
lsa - variable name initialize class js
lsa_input - search field id
lsa_window - pop-up window id

Thus, changing the arguments of the class AJAX_LiveSearch_Prepare, you can not edit the search field.

Live DEMO: http://mixplay.ru/ (user: test, pass: 123456)
Live video: https://www.youtube.com/watch?v=t_16fk5VGYw

PS Some function writed by ChangUonDyU

If you like this mod - Click Install it

Download

File Type: %1$s [AJAX] Live Search 2.2.3 Eng.zip (7.3 KB, 307 downloads)
File Type: %1$s [AJAX] Live Search 2.3.1 Eng.zip (7.6 KB, 368 downloads)
File Type: %1$s [YUI] Live Search v3.0.2 En.zip (9.6 KB, 899 downloads)

Screenshots

Click image for larger version
Name:	lsa_set_eng.jpg
Views:	2552
Size:	110.2 KB
ID:	94307  

Similar Mods

Miscellaneous Hacks Live Topic - AJAX vBulletin 3.7 Add-ons
Add-On Releases [AJAX] Live Search vBulletin 3.7 Add-ons
Add-On Releases Live Search 1.0 (AJAX) vBulletin 3.6 Add-ons

vblts.ru supports vBulletin®, 2022-2024