Giter Site home page Giter Site logo

xf2-ajax-paging's Introduction

[Shinka] AJAX Paging

Replaces pagination links with AJAX calls.

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

  • Changing pages (e.g. inside a thread) no longer reloads the page

Paging

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/AjaxPaging" "C:/Fake User/Dev/xf2_ajax_paging/upload/src/addons/Shinka/AjaxPaging"

Import development output by executing

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

Build for Release

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

Technical

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

xf2-ajax-paging's People

Contributors

kalynrobinson avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

Forkers

venmade boravivek

xf2-ajax-paging's Issues

This add-on cannot be installed/upgraded because the following files are missing

The following errors must be resolved before continuing:

This add-on cannot be installed/upgraded because the following files are missing: js/shinka/ajaxpaging/paging.min.js, src/addons/Shinka/AjaxPaging/_data/template_modifications.xml.

To prevent potential issues, please resolve the following warnings before continuing:

This add-on contains the following files which have unexpected contents: js/shinka/ajaxpaging/paging.js, src/addons/Shinka/AjaxPaging/addon.json.

TODO

Jump Page

  • Doesn't actually work

SEO Friendliness

  • Update canonical, next, and previous URLs in head when page changes
  • Push new state to history when page changes
  • Add href back to pagers

Optimization

  • See where JQuery queries can be reduced or cached

Not working anymore

It's not working with xenforo 2.2.x can you fix it?
Also if wanna do it as a paid project hit me

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.