Addon 2x Infinite Scroll - Cuộn vô hạn

MacKen

Sergeant
Tham gia
30/11/2015
Bài viết
625
Được Like
542
Loads content seamlessly as the user scrolls to the bottom of the page.

Installation
  • Download the latest stable release
  • Extract the zip
  • Copy the contents of the upload folder to the root of your Xenforo installation
  • Install and activate the add-on in your Admin CP
Features
  • Scrolling to the bottom of a content container (e.g. discussions, member lists, search results) loads content via AJAX request.
  • Adjustable settings, e.g.
    • At what scroll position should new content be loaded, e.g. 100 pixels away from the bottom
    • What element's bottom should be used to load new content, e.g. the entire window or the bottom of a discussion
    • Whether the new URL should be pushed to the history or used to replace the current


Tip Jar
Development
Setup
  • Clone or fork the repository
  • Create a symbolic link for the AjaxPaging folder in your XF2 installation to the one in the repository directory, e.g.
> mklink /D "C:/Fake User/My Site/src/addons/Shinka/InfiniteScroll" "C:/Fake User/Dev/xf2_ajax_paging/upload/src/addons/Shinka/InfiniteScroll"


Import development output by executing

> php cmd.php xf-dev:import --addon Shinka/InfiniteScroll

Build for Release
> php cmd.php xf-addon:bump-version Shinka/InfiniteScroll --version-id [version_id] --version-string [version_string]
> php cmd.php xf-addon:build-release Shinka/InfiniteScroll

Technical
  • Uses a custom XF handler that pigeons code and logic from XFAjaxSubmit
  • My JavaScript is terrible, don't emulate me
 

Đính kèm

  • xf2-infinite-scroll-master.zip
    1.1 MB · Lượt xem: 29

cheng

Private
Tham gia
02/05/2018
Bài viết
38
Được Like
14
Thế muốn comment phải cuộc hết hả bác :(
 

Hướng dẫn sử dụng

XenForo 1 XenForo 2
Translate by PVS

Dịch vụ XenForo của VNXF

Mobile/Zalo: 0906081284

Telegram: anhanhxf

Chỉ nhận web nội dung lành mạnh

Nhà Tài Trợ

Mút Xốp Không Gian
Mút Sofa Không Gian
Top Bottom