Kết quả 1 đến 1 của 1
Chủ đề: [YUI] Live Search
-
10-02-14, 10:21 AM #1
[YUI] 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
- 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:
PHP 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>
PHP Code:<div id="lsa_window">
PHP Code:</div>
For this in tag <input type="text" /> add id="lsa_input"
As a result, you should get some of this code:
PHP 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.Khách viếng thăm hãy cùng KingSky xây dựng diễn đàn CLBGAMESVN vững mạnh nhé!
Các Chủ đề tương tự
-
Search 3D Camera offsets (main.exe)
Bởi heroes1412 trong diễn đàn Guides - Kho Lưu trữTrả lời: 3Bài viết cuối: 29-12-15, 02:37 PM -
[THÔNG BÁO] Thông báo thêm công cụ Google Custom Search vào diễn đàn
Bởi The Guardian trong diễn đàn Tin Tức - Thông BáoTrả lời: 0Bài viết cuối: 08-02-14, 09:29 PM -
search web thanh kiếm vô song
Bởi tinhlabui trong diễn đàn Các Server Không Nằm Trong BoxTrả lời: 7Bài viết cuối: 06-08-13, 02:40 PM -
Buồn tình ngồi search google ra cái sv jx 8.0 share cho a e chơi
Bởi quoctuan2712 trong diễn đàn ReleasesTrả lời: 33Bài viết cuối: 12-01-11, 09:04 AM