User selectable pagination

NodeBB Development
  • For those who prefer traditional pagination you can now enable it from user/settings page. You can select the number of posts/topics per page too. It only works for category and topic views for now but we may extend it over to /recent /unread /popular in the future.

  • Appreciate it 🙂

  • @baris,

    Very nice! However, this brings up an interesting situation. Does the pagination setting in the ACP take precedence over the user pagination setting? And will there be an option in the pagination settings page in the ACP that will make it possible for the admin to override the user-specific setting?

  • It is the other way around user setting takes precedence over admin setting. If the user didn't select anything the admin setting is used.

  • @baris

    But don't you think it'd be better that the admin be one that enable users to have the privilege of being able to choose whether to use pagination or infinite scrolling. I think the ultimate decision should the admin's, rather than users.

  • What I think is more important than the decision whether users are allowed to use pagination or not is letting the admin set a maximum value for per-page entries therefor users cannot exceed the bandwidth in large topics by setting posts per page to 99999999 or whatever.

    Also nice would be sth. like a mix of pagination and ininite scrolling by enabling infinite scroll for each page, therefor you can easily paginate to the last page (in many circumstances nice to have) and within each page you appreciate infinite (until the pages end or even update the navigation to sth. like 1 | 5 | 6-8 | 9 | 42) scrolling

  • I agree with the max limit. As for infinite scroll vs. pagination - at least for me - feels very much like a user preference thing rather than something to impose on your users

  • Issue: the URL with pagination shows sth. like ?page=5. With user-defined page-sizes it's the wrong behavior since the users may want to share specific pages. you may change it to sth. like ?posts=20-40

    Btw: A reference-anchor for each post would be great too 🙂

  • Yeah, gets very confusing once you factor in page #s and such. I'd prefer the "posts per page" and "topics per page" options remain admin-only, while allowing users to toggle between pagination and infinite scrolling.

    A "hybrid" pagination+infinite scrolling would be nice as well, so you can get the best of both worlds.


Suggested Topics


  • 1 Votes
    4 Posts
    318 Views

    @greyteapot You can drop that widget into different boxes, iirc. Mayhaps worth exploration 🤔

  • 0 Votes
    3 Posts
    523 Views

    Thanks @baris, I will have a look.

  • 0 Votes
    3 Posts
    970 Views

    Cool answer.. It worked. Thanks.

  • 0 Votes
    1 Posts
    999 Views

    Hi everyone, just set up my nodebb, and there are two problems I cannot fix on my own, It will be great if I can have some help here.

    1 > Is there any way for me to add some new attributes for the users myself? Like, forum coin, every time a new account created, attribute forum coin=0 attach to that account.

    I don't have too much experience on the web development, so my first thought was to create a new schema in the database for the user, and try to implement the new value, and make it visible on the page. But immediately I realized that the mongodb don't have a fixed schema, so apparently it is a wrong way to go to start from the database.

    2> I accidentally deleted the user uid=3, is there any way for me to regain the number, 3? I created user uid=4, and tried to update the _key and uid into 3 in mongodb, but eventually the account uid=4 just disappear from the forum altogether. I know this is kind of dangerous so never mind if it's difficult.

  • 1 Votes
    10 Posts
    4k Views

    @julian So, now there's a setting that prevents chats from getting to you unless you follow that user trying to chat with you? 8⃣ 6⃣ 7⃣ 5⃣ 3⃣ 0⃣ 9⃣