1.8.x Tính Năng: RT LiveSearch (Ajax Search)

Preview

Tác giả: RevertIT

Phiên bản: 1.8

Gửi lúc: 08/04/2023

Cập nhật lúc: 12/02/2024

Show Thread Index Page Forum Display
Mô tả
RT LiveSearch
Is a plugin which utilizes native MyBB search functionality and provides result via ajax. Very light and highly customizable plugin for your search queries.

#Dependencies
#Features
  • Ajax search with native MyBB search function.
  • ZERO additional database queries!
  • KeyPress search: Bind key (default "S") on your keyboard to open search popup modal at any time while not typing.
  • CustomAjaxSearch: Attach ajax search on any HTML form you wish! Ref: https://github.com/RevertIT/mybb-rt_live...search-box
  • Detailed search statistics:
    • Provides a graph with detailed data for search queries on the forum
          - Total ajax/normal search queries
          - Total ajax search queries
          - Total normal search queries
    • Search type graphs (Threads / Posts)
          - Total ajax/normal search types (24 hrs)
          - Total ajax search types (24 hrs)
          - Total normal search types (24 hrs)
    • Search stats by users (See which users use search function the most and how many queries)
          - Total ajax/normal search queries by users (24 hrs)
          - Total ajax search queries by users (24 hrs)
          - Total normal search queries by users (24 hrs)
    • Most searched keywords
          - Most searched keywords via ajax/normal search queries (24 hrs)
          - Most searched keywords via ajax search queries (24 hrs)
          - Most searched keywords via normal search queries (24 hrs)
  • Search history:
    • View all search history data from user
    • Sort your search via username, and from selected forum
  • Replace/Revert MyBB quick search with ajax search via settings.
  • Organized templates
  • Easy to use configuration and settings.

#Installation
  1. Copy the directories from the plugin inside your root MyBB installation.
  2. Settings for the plugin are located in the "Plugin Settings" tab. /admin/index.php?module=config-settings

#Update
  1. Deactivate the plugin.
  2. Replace the plugin files with the new files.
  3. Activate the plugin again.

#Removal
  1. Uninstall the plugin from your plugin manager.
  2. Optional: Delete all the RT LiveSearch plugin files from your MyBB folder.

#How-to: Add custom search box
This is a minimal configuration needed for form to fire up ajax
You can replace custom_ajax* with any other class
Code: 
<div class="custom_ajax">
  <form action="search.php" class="custom_ajax_form">
    <input name="keywords" type="text" class="textbox custom_ajax_keywords" />
    
    <!-- START hidden input form fields -->
    <input name="action" type="hidden" value="do_search" />
    <input name="ext" type="hidden" value="rt_livesearch" />
    <input name="ajax" type="hidden" value="1" />
    <input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
    <input name="showresults" type="hidden" value="threads" />
    <input type="hidden" name="postthread" value="1" />
    <input type="text" style="display: none;" />
    <!-- END Hidden input form fields -->
    
    <!-- START Show ajax results/errors container -->
    <div class="custom_ajax_container" style="display: none; position: absolute"></div>
    <!-- END Show ajax results/errors container -->
    
  </form>
</div>
<script>LiveSearch.searchInput('.custom_ajax', {$mybb->settings['rt_livesearch_keypress_timeout']});</script>


#Feature request
Open a new idea by clicking here
Tìm kiếm trực tiếp RT
Là một plugin sử dụng chức năng tìm kiếm MyBB gốc và cung cấp kết quả thông qua ajax. Plugin rất nhẹ và có khả năng tùy chỉnh cao cho các truy vấn tìm kiếm của bạn.

#Dependencies
#Features
  • Tìm kiếm Ajax với chức năng tìm kiếm MyBB gốc.
  • Số không truy vấn cơ sở dữ liệu bổ sung!
  • Tìm kiếm KeyPress: Phím liên kết (mặc định là "S") trên bàn phím của bạn để mở phương thức bật lên tìm kiếm bất kỳ lúc nào khi không nhập.
  • CustomAjaxSearch: Đính kèm tìm kiếm ajax trên bất kỳ biểu mẫu HTML nào bạn muốn! Ref: https://github.com/RevertIT/mybb-rt_live...search-box
  • Thống kê tìm kiếm chi tiết:
    • Cung cấp biểu đồ với dữ liệu chi tiết cho các truy vấn tìm kiếm trên diễn đàn
      - Tổng số truy vấn tìm kiếm ajax/bình thường
      - Tổng số truy vấn tìm kiếm ajax
      - Tổng số truy vấn tìm kiếm bình thường
    • Biểu đồ loại tìm kiếm (Chủ đề / Bài đăng)
      - Tổng số loại tìm kiếm ajax / bình thường (24 giờ)
      - Tổng số loại tìm kiếm ajax (24 giờ)
      - Tổng số loại tìm kiếm bình thường (24 giờ)
    • Số liệu thống kê tìm kiếm theo người dùng (Xem người dùng nào sử dụng chức năng tìm kiếm nhiều nhất và có bao nhiêu truy vấn)
      - Tổng số truy vấn tìm kiếm ajax / bình thường của người dùng (24 giờ)
      - Tổng số truy vấn tìm kiếm ajax của người dùng (24 giờ)
      - Tổng số truy vấn tìm kiếm bình thường của người dùng (24 giờ)
    • Từ khóa được tìm kiếm nhiều nhất
      - Các từ khóa được tìm kiếm nhiều nhất thông qua ajax / truy vấn tìm kiếm bình thường (24 giờ)
      - Các từ khóa được tìm kiếm nhiều nhất thông qua truy vấn tìm kiếm ajax (24 giờ)
      - Các từ khóa được tìm kiếm nhiều nhất thông qua các truy vấn tìm kiếm thông thường (24 giờ)
  • Lịch sử tìm kiếm:
    • Xem tất cả dữ liệu lịch sử tìm kiếm từ người dùng
    • Sắp xếp tìm kiếm của bạn thông qua tên người dùng và từ diễn đàn đã chọn
  • Thay thế / Hoàn nguyên tìm kiếm nhanh MyBB bằng tìm kiếm ajax thông qua cài đặt.
  • Các mẫu có tổ chức
  • Cấu hình và cài đặt dễ sử dụng.

#Installation
  1. Sao chép các thư mục từ plugin bên trong cài đặt MyBB gốc của bạn.
  2. Cài đặt cho plugin nằm trong tab "Cài đặt plugin". /admin/index.php?module=cài đặt cấu hình

#Update
  1. Hủy kích hoạt plugin.
  2. Thay thế các tệp plugin bằng các tệp mới.
  3. Kích hoạt lại plugin.

#Removal
  1. Gỡ cài đặt plugin khỏi trình quản lý plugin của bạn.
  2. Tùy chọn: Xóa tất cả các tệp plugin RT LiveSearch khỏi thư mục MyBB của bạn.

#How-to: Thêm hộp tìm kiếm tùy chỉnh
Đây là một cấu hình tối thiểu cần thiết để biểu mẫu kích hoạt ajax
Bạn có thể thay thế custom_ajax* với bất kỳ lớp nào khác
<div class="custom_ajax">
  <form action="search.php" class="custom_ajax_form">
    <input name="keywords" type="text" class="textbox custom_ajax_keywords" />
    
<!-- BẮT ĐẦU các trường biểu mẫu nhập ẩn -->
    <input name="action" type="hidden" value="do_search" />
    <input name="ext" type="hidden" value="rt_livesearch" />
    <input name="ajax" type="hidden" value="1" />
    <input name="my_post_key" type="hidden" value="{$mybb->post_code}" />
    <input name="showresults" type="hidden" value="threads" />
    <input type="hidden" name="postthread" value="1" />
    <input type="text" style="display: none;" />
    <!-- END Các trường biểu mẫu nhập liệu ẩn -->
    
<!-- BẮT ĐẦU Hiển thị kết quả ajax / lỗi vùng chứa -->
    <div class="custom_ajax_container" style="display: none; position: absolute"></div>
    <!-- END Hiển thị kết quả ajax / lỗi vùng chứa -->
    
</form>
</div>
<script>LiveSearch.searchInput('.custom_ajax', {$mybb->settings['rt_livesearch_keypress_timeout']});</script>


Yêu cầu #Feature
Mở một ý tưởng mới bằng cách bấm vào đây