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 |
#42
|
|||
|
|||
Mine doesn't give a pop up when I click on the search box. Is there a problem? I didn't do any of the edits, and only did the navbar edit to get it to show above my nav bar. Obviously, I also imported the product. I get the results when I type something in, and press enter, but that's just like the normal search.
Also, is there no way to just replace the default search box from the search drop down menu with this search box, assuming it works, of course? |
#43
|
||||
|
||||
Were can i look on problem?
|
#44
|
|||
|
|||
<a href="http://forums.prophecy.co.za" target="_blank">http://forums.prophecy.co.za</a>
Enabling access for unregistered/guests in 1 minute. EDIT: Hmmm, this is weird. When I log in with my test user, it works, but not with my admin account. I can see the field with both, but only on the test user does the popup appear. Let me not waste your time. I'll see what I can figure out and then get back to you, if there's still a problem. Thanks for the help any ways! |
#45
|
|||
|
|||
Ok, now something is funny...
I have a thread called "Problems with my hands..." Now, if I use the search, and I type in problems ... I get too many results If I type in "problems with my" then I get the thread as a result. However, if I type in "Hands problems" then I get no results. "Problem hands" also gives no results. Is the search case sensitive, or does it search for strings only or does it make use of a contains clause? |
#46
|
||||
|
||||
Maybe you wrong set usergroup permission in hack setting?
Search work only by one word. |
#47
|
|||
|
|||
Yea, for some reason it works fine now, except for the problem described in my post #44 above.
|
#48
|
|||
|
|||
Ok, only works on one word. Thanks, I somehow missed that part.
Are there any plans to increase this to multiple words? |
#49
|
||||
|
||||
Yes, i'll plan, but it isn't easy
|
#50
|
|||
|
|||
This is my open field search.
HTML Code:
<div class="qsandlogin"> <h4>Quick Search</h4> <form id="searchbox_008514742519005312674:stktp-0amaq" action="search.php" method="get"> <input type="hidden" name="cx" value="008514742519005312674:stktp-0amaq" /> <input type="hidden" name="cof" value="FORID:9" /> <div class="searchfield"><input name="q" type="text" class="search-quick" value="" /><input name="do" value="process" type="hidden" /></div> <div class="searchfield"><input name="showposts" value="0" type="hidden" /> <input name="s" value="" type="hidden" /><input src="images/royalflush/misc/gosearch.gif" type="image" /></div> </form> <a href="search.php">Go Advanced</a> </div> |
#51
|
||||
|
||||
HTML Code:
<div class="qsandlogin"> <h4>Quick Search</h4> <form id="searchbox_008514742519005312674:stktp-0amaq" action="search.php" method="get"> <div id="lsa_window"> <input type="hidden" name="cx" value="008514742519005312674:stktp-0amaq" /> <input type="hidden" name="cof" value="FORID:9" /> <div class="searchfield"><input name="q" type="text" class="search-quick" id="lsa_input" maxlength="$vboptions[lsa_maxsym]" value="$vbphrase[live_search]" onfocus="if(this.value=='$vbphrase[live_search]'){this.value=''};<if condition="!in_array($bbuserinfo[usergroupid], array($vboptions[lsa_group]))"> showHint();</if>" onblur="if (this.value==''){this.value='$vbphrase[live_search]'}"<if condition="!in_array($bbuserinfo[usergroupid], array($vboptions[lsa_group]))"> onkeyup="showHint();</if> /><input name="do" value="process" type="hidden" /></div> <div class="searchfield"><input name="showposts" value="0" type="hidden" /> <input name="s" value="" type="hidden" /><input src="images/royalflush/misc/gosearch.gif" type="image" /></div> </div> <if condition="!in_array($bbuserinfo[usergroupid], array($vboptions[lsa_group]))"><script type="text/javascript"> vbmenu_register("lsa_window",1); </script></if> </form> <a href="search.php">Go Advanced</a> </div> |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|