[YUI] Live Search
Hello & Welcome to our community. Is this your first visit? Đăng Ký
Follow us on
Follow us on Facebook Follow us on Twitter Linked In Flickr Watch us on YouTube My Space Blogger
 
Kết quả 1 đến 1 của 1

Chủ đề: [YUI] Live Search

  1. #1
    Thành Viên KingSky's Avatar
    Ngày tham gia
    Feb 2014
    Bài viết
    68
    Thanks
    2
    Thanked 7 Times in 5 Posts

    Icon14 [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
    So, after the opening tag <form ХХХ> add bottom:

    PHP Code:
    <div id="lsa_window"
    Before the closing tag </form> add:

    PHP Code:
    </div
    We have prepared the search form to pop-up window. Now we need to bind to the field of javascript.

    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
    P.S. If you already have id in your search field and its change may be possible to reset the anchor CSS, do the following.
    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.
    Hình Kèm Theo Hình Kèm Theo
    File Kèm Theo File Kèm Theo
    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ự

  1. Search 3D Camera offsets (main.exe)
    Bởi heroes1412 trong diễn đàn Guides - Kho Lưu trữ
    Trả lời: 3
    Bài viết cuối: 29-12-15, 02:37 PM
  2. [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áo
    Trả lời: 0
    Bài viết cuối: 08-02-14, 09:29 PM
  3. search web thanh kiếm vô song
    Bởi tinhlabui trong diễn đàn Các Server Không Nằm Trong Box
    Trả lời: 7
    Bài viết cuối: 06-08-13, 02:40 PM
  4. 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 Releases
    Trả lời: 33
    Bài viết cuối: 12-01-11, 09:04 AM

Quyền viết bài

  • Bạn Không thể gửi Chủ đề mới
  • Bạn Không thể Gửi trả lời
  • Bạn Không thể Gửi file đính kèm
  • Bạn Không thể Sửa bài viết của mình
  •  
Múi giờ GMT +7. Bây giờ là 04:59 PM.
vBulletin®, Copyright ©2000-2011, Jelsoft Enterprises Ltd.
CLBGamesVN không chịu trách nhiệm về Luật Bản Quyền của các tài liệu, bài viết v.v...được đăng tải trên diễn đàn này.
Diễn đàn phát triển dưới sự đóng góp của tất cả thành viên. BQT chỉ là những người thành lập ra sân chơi, quản lý và duy trì về mặt kỹ thuật, nội dung khi hợp lệ.