Click anywhere to close this dialog

Farewell

Great is the art of beginning, but greater is the art of ending
Henry Wadsworth Longfellow

I announce that I cease all development and activity in the programming universe indefinitely. My career has reached the turning point I was not expecting for at least another year, leaving me highly off guard and without laid-out plans for this hobby's continuity. I have begun a 5-year residency program in Neurosurgery which is clearly not compatible, time-wise, with programming.

I gave in all my passion for developing, and you gave me back your loyalty and trust, even when I did not deserve that much. Now it is the time for payback. I release all my present and past work as Open Source software, in the hope some talented developer will continue maintaining and expanding my vision of a modern, sleek forum software. The intrinsic flexibility of MyBB is the true hidden gem of an otherwise outdated codebase; I do hope the project can continue and be updated complying to the latest coding standards.

I hereby thank Euan, kawaii, andrewjs18, Ben, Matt, Omar G., effone, Eric J., Devilshakerz, Wildcard, JordanMussi and all the other team members I have had the opportunity to work with when I was a MyBB team member. I thank Tomm M, my mentor, who inspired me to pick up coding with his piece-of-art plugins. And finally, I thank all of you MyBBoost subscribers who have helped me getting through my toughest university years economically.

Yours sincerely, Filippo

Endless beta 1

10 Mar 2018 Edited
#1
Endless is a plugin which replaces normal pagination with an infinite scrolling approach. It is heavily inspired by Flarum's, except it is packed with some modifications which make it completely compatible with the latest MyBB versions and aim to improve its stability and usability.

[Image: 0kGO7wR.gif]

Minimum requirements


PHP 5.4
MyBB 1.8.0

Main features


Extensibility


Endless is designed to replace MyBB pagination of both threads and forums with an infinite scrolling pagination, but it is capable of transforming whatever custom paginated list into an endless scrolling experience. For example, MyBBoost's newsfeed homepage has Endless support with just a few lines of server-side code.

Endless automatically parses lists of valid data in the DOM and sends AJAX requests with a range of items to get from the backend, and it displays a temporary placeholder while the data is being fetched. All you need to do is write down a function which accepts and handles Endless-generated data, gets the requested items and returns them in a standardized fashion. A step-by-step tutorial will be written down after the beta period.

Scrubber-based


QuoteWhat's good about regular pagination is being able to quickly jump through the pages, with infinite scroll I'd have to keep scrolling to get to the last reply. Infinite scrolling looks a lot better than regular pagination but I think its functionality will get tedious, that's unless you've made a workaround for this.

The workaround comes directly from Flarum's inspiration. Endless includes a scrubber, a small draggable item added automatically by the plugin which you can use to quickly jump between posts and threads in the currently viewed discussion/forum. The scrubber position is updated automatically as you scroll, so you always know what's left to read; and you can both drag and drop the scrubber or click a specific point within it to be launched directly to the range of posts you wish to see.

At the current stages, you can choose to hide or display the scrubber and set threads/posts breakpoints after which, if a forum/thread exceed the breakpoint in size, the scrubber is displayed. You can also choose to hide the scrubber if a forum/thread has a single-page amount of data.

Automatic detection or manual triggering


You can tell Endless to automatically detect user's scrolling and show items, or you can set up manual buttons users will need to push in order to load further posts/threads, in both upwards and downwards direction. This feature is currently hardcoded. It will be integrated into MyBB's settings system in beta 2.

Installation


Upload the files maintaining the same folder structure they are compiled to and clicking the button Install & activate within your board's plugin list.

Endless requires 2 CSS classes to work properly:
  • thread to every thread (forumdisplay_thread);
  • post to every post (postbit/postbit_classic).

Ensure you have those classes in your theme’s templates, otherwise it will not work.


Display month and year in the scrubber


The scrubber can detect the currently-visible item's dateline and display a formatted "month year" date as you scroll, so you know an approximate timeline of what you are currently reading. Endless needs a timestamp to process it though; you must add it manually to your templates.
  • forumdisplay_thread: add data-time="{$thread['dateline']}" to the tr.thread element;
  • postbit or postbit_classic: add data-time="{$post['dateline']}" to the div.post element.

Settings


Endless adds 4 settings to tune the scrubber as explained above.

Templates and stylesheets


Endless adds a CSS file named endless.css to every theme of your board. You can customize the scrubber's and placeholders' appearance by editing the stylesheet's CSS rules and the 3 templates added by Endless called endless_placeholder_post, endless_placeholder_thread and endless_scrubber. {totalCount} and {colspan} are replaced by Endless with the respective values (total count of items and colspan to match the variability of MyBB's default theme within forumdisplay, due to mods having an extra column with a checkbox).

Reporting issues and requesting new features


If you encounter an issue or you want to request a new feature for Endless, feel free to open a new thread in this forum with detailed instructions on how to reproduce your issue if you want to report one.

Availability


Endless is available for free. WARNING SIGN Support is discontinued due to my departure from programming. Read more why here.


This project is licensed under

MIT


A simple license with little to no use restrictions, except for author's crediting. Read the provided LICENSE file for more informations.

Permissions

Commercial use
Modification
Distribution
Private use
Limitations

Warranty
Liability
Conditions

License notice
Copyright notice
Filename Size Downloads
28.21 KB 199
Eldenroot, LIONHAERT, Enes Palit And 4 others like this post
Sir Twisted 9 Nov 2019
#21
Hi @Shade url is : forumauthority.com

I believe that was done.
Shade 9 Nov 2019
#22
Nope, it's missing.

[Image: V6Ejfnw.png]

Add the class to your forumdisplay_thread template, just next to inline_row.

As for the quick reply not working, I can see you are using a plugin which enables quick quoting. I don't know the plugin, but I know that it's producing lots of JS errors which block other scripts execution, including Endless. Either you disable it or you fix it.
Sir Twisted 9 Nov 2019
#23
@Shade thank you for the info! Can it be ckeditor?
Shade 9 Nov 2019
#24
Might be. Can't tell without an actual account. My assumption is based upon analyzing your forum source code browsing as a guest.
Sir Twisted 9 Nov 2019 Edited
#25
@Shade much appreciated for the help unfortunately I've been having a lot of issues with the editor showing code within the actual posts themselves so it could be conflicting somewhere.

Nope, it's missing.

[Image: V6Ejfnw.png]

Add the class to your forumdisplay_thread template, just next to inline_row.

As for the quick reply not working, I can see you are using a plugin which enables quick quoting. I don't know the plugin, but I know that it's producing lots of JS errors which block other scripts execution, including Endless. Either you disable it or you fix it.
Shade (9 Nov 2019)
Hi,

I just attempted this now and unfortunately problem still occurs.
Shade 9 Nov 2019
#26
I’ll check it out later when I get back home.
Sir Twisted 9 Nov 2019
#27
I’ll check it out later when I get back home.
Shade (9 Nov 2019)
Much appreciated if it's easier for you, I have created a whole test website if you would like an account on there?
Shade 10 Nov 2019
#28
The class .thread is still absent.
Sir Twisted 10 Nov 2019
#29
The class .thread is still absent.
Shade (10 Nov 2019)
Can you tell me what I am adding exactly, as I have added the above code in the thread itself right next to the TR element.
Shade 10 Nov 2019
#30
<tr class="inline_row thread" data-time="{$thread['dateline']}">
This should be your tr element.