e107inc / e107

e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL, HTML5, jQuery and Twitter Bootstrap. Issue Discussion Room: https://gitter.im/e107inc/e107
https://e107.org
GNU General Public License v3.0
322 stars 214 forks source link

[Feature request]: comments pagination handling #5233

Open 3l3ktr0n opened 7 months ago

3l3ktr0n commented 7 months ago

Motivation

nextprev feels outdated

Proposed Solution

by today's standards a 'load more' approach would be more convenient

Alternatives

or remove the pagination for comments

Additional Context

No response

Vodhin commented 7 months ago

I agree that a "Load More" function would be nicer. This is typically accomplished via AJAX ands JavaScript/jQuery, both of which e107 v2 now include however it seems that the e107 AJAX calls I've looked at load into a dreaded iFrame which is not fashionable these days (probably to run any e107's PHP security checks on the request?). The plugins that I work on include my own code to do this kind of behind the scenes interaction, and tend to get rather bloated when incorporating those e107 security checks and other work arounds.

In short, it wouldn't be too difficult to implement a "Load More" function but I'm already 1 ¾ years into coding my Real Estate plugin and am on the verge of having it ready for beta release. I don't have any websites that use comments, but I could look into writing some JavaScript that could replace the Next/Previous buttons (would work nearly everywhere, the way I'm thinking of it).

3l3ktr0n commented 3 days ago

has anyone looked into this?