The Arcive of Official vBulletin Modifications Site.It is not a VB3 engine, just a parsed copy! |
|
[YUI] Live Search Details »» | |||||||||||||||||||||||||||||||||
Features:
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> HTML Code:
<div id="lsa_window">
HTML Code:
</div>
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> 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: http://www.youtube.com/watch?v=t_16fk5VGYw PS Some function writed by ChangUonDyU If you like this mod - Click Install it Download Now
Screenshots
Show Your Support
|
Comments |
#212
|
||||
|
||||
Hello again,
I was browsing around and looking at Joomla templates when I came across one that had an amazing AJAX search box. I was wondering if anything like it would be possible with this mod here, or is vBulletin's search capabilities/parameters too different? http://demo.rockettheme.com/may09/ Keep up the great work! |
#213
|
|||
|
|||
hope you still consider getting us ability to move the result window since its display over the search input field
|
#214
|
|||
|
|||
I've been trying to find an excuse to post how I did this Live Search mod...
http://www.quad4forums.com PM me if you are interested. |
#215
|
|||
|
|||
Quote:
I like that :nod: |
#216
|
||||
|
||||
carcomp, i know how do this, just for me it not that important This is Live Search, implies pop-up window.
|
#217
|
|||
|
|||
Quote:
|
#218
|
||||
|
||||
This is location name of phrases, it's not matter.
|
#219
|
||||
|
||||
The code has changed and I cannot identify where I can modify the size of the input box and the "Live Search" text within it. A quick pointer to the section of code where this is set would be greatly appreciated.
|
#220
|
||||
|
||||
Size you can set yourself (it not defined), next to the variable $lsainput. "Live Search" look in phrases.
|
#221
|
|||
|
|||
This is a great idea, but there are some problems.
1.) It works flawlessly in Firefox (and Google Chrome) but it will not work for me within IE7. I hadn't yet tested Opera or Safari. 2.) $lsainput does have a width that I can't determine either. I have it set within my own search field at 100px, which defines the search form, but there is a clickable search area that is invisible but will bring up the Live Search once it has been "activated." 3.) I don't know if this was covered yet or not as I didn't get a chance to search for it, but it does not work on my vBAdvanced, stating the Ajax.php cannot be found, I imagine this can be solved by calling to an absolute path. Perhaps these errors were just with me, but for now I will hold off on this as much as I like the idea in the hopes of getting some time to try to resolve the errors (as they very well could be due to my style and setup.) It does work great with Firefox again though. |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|