Giter Site home page Giter Site logo

xf2-infinite-scroll's Introduction

[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

xf2-infinite-scroll's People

Contributors

kalynrobinson avatar

Watchers

 avatar  avatar

Forkers

venmade

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.