MobileHacks
New Member
Version 2.0
Features:
Installation:
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:
So, after the opening tag <form ХХХ> add bottom:
Next, find the tag <input HHH> with a value of type="text" and add (if not match, replace) the following:
Before the closing tag </form> add:
As a result, you should get some of this code:
Live DEMO: MixPlay (user: test, pass: 123456)
Live video: YouTube - Live Search
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
Installation:
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:
PHP:
<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>
PHP:
<div id="lsa_window">
PHP:
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>
PHP:
</div>
<if condition="!in_array($bbuserinfo[usergroupid], array($vboptions[lsa_group]))"><script type="text/javascript"> vbmenu_register("lsa_window",1); </script></if>
PHP:
<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" class="bginput" name="query" tabindex="1001" 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 type="submit" class="button" value="$vbphrase[go]" tabindex="1004" />
</div>
<if condition="!in_array($bbuserinfo[usergroupid], array($vboptions[lsa_group]))"><script type="text/javascript"> vbmenu_register("lsa_window",1); </script></if>
</form>
Live DEMO: MixPlay (user: test, pass: 123456)
Live video: YouTube - Live Search