Skip to content

Loads content seamlessly as the user scrolls to the bottom of the page.

Notifications You must be signed in to change notification settings

ShinkaDev/xf2-infinite-scroll

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

[Shinka] Infinite Scroll

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

Scroll

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

About

Loads content seamlessly as the user scrolls to the bottom of the page.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published