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 |
#32
|
||||
|
||||
About search field:
CSS: Code:
#tb-searchdiv{float:right;padding:8px 5px 0 0;text-align:center;line-height:13px;cursor:default}#tb-searchdiv a{color:#000;font-size:11px;text-decoration:none;cursor:pointer}#tb-searchbox{padding:4px 11px 11px 22px;width:119px;background:url(images/as4/global/toolbar_searchbox.png) no-repeat;text-align:left;height:14px}#tb-searchbox input{border:0;padding:0;width:119px;background:#fff;color:#000;font:12px/12px 'Lucida Grande',Verdana,sans-serif;height:14px;outline:none;cursor:text} HTML Code:
<div id="tb-searchdiv"><div id="lsa_window"> <div id="tb-searchbox"><input type="text" id="lsa_input" name="query" tabindex="1001" maxlength="$vboptions[lsa_maxsym]" value="$vbphrase[live_search]" onfocus="if(this.value=='$vbphrase[live_search]' || document.getElementById('lsa_window_menu').style.display == 'none'){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>"/></div> <input type="hidden" name="securitytoken" value="$bbuserinfo[securitytoken]" /> <if condition="!in_array($bbuserinfo[usergroupid], array($vboptions[lsa_group]))"><script type="text/javascript"> vbmenu_register("lsa_window",1); </script></if></div> <a href="search.php$session[sessionurl_q]" accesskey="4" rel="nofollow">$vbphrase[advanced_search]</a> <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]" /> </div> </form> Search work throughout board. What do you mean about blog? |
#33
|
||||
|
||||
Updated video work of mod. http://www.youtube.com/watch?v=4w6AankLJkY
|
#34
|
|||
|
|||
Thanks Max for the guiding. However, I am trying to understand:
1/ where to put the HTML code? The CSS part, I assume, I need to put to the bottom of the CSS section. 2/ When I tried the Search from the Search drop down function, with few words that I recently posted, it did not come up. 3/ About blog, does this hack also work for searching in Blog? When I tried to do a blog search from Search drop down function, it's not working... or did I do something not right? |
#35
|
||||
|
||||
Quote:
|
#36
|
||||
|
||||
lol !!!!!! Sorry))))))))))))))))))))))))))))))))
Here that video http://www.youtube.com/watch?v=t_16fk5VGYw |
#37
|
|||
|
|||
I watched video but have no clue on how to add the Search field on the navbar... any hints? Thanks and sorry for stupidity!
|
#38
|
||||
|
||||
Do following. In template navbar find:
HTML Code:
<td class="alt2" nowrap="nowrap"> <div class="smallfont"> <strong><phrase 1="$bbuserinfo[username]" 2="member.php?$session[sessionurl]u=$bbuserinfo[userid]">$vbphrase[welcome_x_link_y]</phrase></strong><br /> HTML Code:
<td class="alt1" align="center" nowrap="nowrap"> $lsaform </td> |
#39
|
|||
|
|||
that did the job. however, I am finding difficulty to make it show this toolbar_searchbox.png. I did change the image path, uploaded the image, add CSS and nothing work.
Did I miss the HTML part? If so, where to I place those HTML codes? Thanks so much! |
#40
|
||||
|
||||
In next version i myself add this as feature.
|
#41
|
|||
|
|||
Thanks Max... so, right now, I just have to wait for your next version? Can you manual guide me to put it on?
Can you also make it search result for Blog too? or at least make it an option for admin to decide? |
|
|
X vBulletin 3.8.12 by vBS Debug Information | |
---|---|
|
|
More Information | |
Template Usage:
Phrase Groups Available:
|
Included Files:
Hooks Called:
|