Support us on Patreon to keep GamingOnLinux alive. This ensures all of our main content remains free for everyone. Just good, fresh content! Alternatively, you can donate through PayPal. You can also buy games using our partner links for GOG and Humble Store.
[IN TESTING - LIVE] Option to change number of posts/comments per page
Page: «2/4»
  Go to:
tuubi Jun 4, 2016
Quoting: liamdaweI have also adjusted them as requested to link directly to the comment, I should have done that to begin with so it was valid you bringing it up. Thanks.
Great job, man, and a very convenient feature.
Liam Dawe Jun 4, 2016
*insert rum here as thanks* ;)
tuubi Jun 4, 2016

The rum goes in my tum, yum.
tuubi Jun 4, 2016
Oh, before you pop that cork, the Latest Forum Posts widget needs fixing as well.
redshift Jun 4, 2016
I think having these kind of options acts as a good incentive to register even if you don't want to comment. That, and new survey. Customising in how I read and view site is a big plus for me. Not sure how others feel, but having this options surely enhances my experience.
Liam Dawe Jun 4, 2016
Quoting: tuubiOh, before you pop that cork, the Latest Forum Posts widget needs fixing as well.
Should also now be fixed :)

Quoting: redshiftI think having these kind of options acts as a good incentive to register even if you don't want to comment. That, and new survey. Customising in how I read and view site is a big plus for me. Not sure how others feel, but having this options surely enhances my experience.
Glad I could help make it better :)

Any other issues, let me know.

I know that comment/post linking won't work correctly now, since everyone may see it on a different page. Currently brainstorming a solution, but it's not a major issue right now to spend too much time trying to fix just yet.
tuubi Jun 5, 2016
Quoting: liamdaweI know that comment/post linking won't work correctly now, since everyone may see it on a different page. Currently brainstorming a solution, but it's not a major issue right now to spend too much time trying to fix just yet.
I agree it's not a big problem and there's no hurry, but I at least tried to hint at a possible solution to this as well in my first comment. Drop the page number reference in the link urls and let the script that shows the article or forum post take care of showing the correct page of comments. This would also reduce the number of places that deal with paging and might make things simpler / more robust. Of course I've never seen your code and this might not be simple at all.
tuubi Jun 5, 2016
Just noticed that comment links in emails sent by the system can't deal with this stuff yet. One sent me to page 4/2 just now.
Liam Dawe Jun 5, 2016
Quoting: tuubiJust noticed that comment links in emails sent by the system can't deal with this stuff yet. One sent me to page 4/2 just now.
For what exactly, forum post, article comment?
Fixed that, thanks.

Quoting: tuubi
Quoting: liamdaweI know that comment/post linking won't work correctly now, since everyone may see it on a different page. Currently brainstorming a solution, but it's not a major issue right now to spend too much time trying to fix just yet.
I agree it's not a big problem and there's no hurry, but I at least tried to hint at a possible solution to this as well in my first comment. Drop the page number reference in the link urls and let the script that shows the article or forum post take care of showing the correct page of comments. This would also reduce the number of places that deal with paging and might make things simpler / more robust. Of course I've never seen your code and this might not be simple at all.
It won't make anything simpler, as the current code would simply grab the page from the url (the simplest way). I will now need to do a bunch of math and check the post amounts in the database to work out a correct page.

Actually it will make two places a tiny bit simpler, since I won't work out pages for the email links. The rest is annoying though, actually working out the correct page when you hit the link with the comment_id. Will still need a wee think on it.
tuubi Jun 5, 2016
Quoting: liamdawe
Quoting: tuubiJust noticed that comment links in emails sent by the system can't deal with this stuff yet. One sent me to page 4/2 just now.
For what exactly, forum post, article comment?
Fixed that, thanks.
Don't thank me, you're the one that's working on a sunday. :P

Quoting: liamdaweIt won't make anything simpler, as the current code would simply grab the page from the url (the simplest way). I will now need to do a bunch of math and check the post amounts in the database to work out a correct page.

Actually it will make two places a tiny bit simpler, since I won't work out pages for the email links. The rest is annoying though, actually working out the correct page when you hit the link with the comment_id. Will still need a wee think on it.
Yeah, I didn't mean simpler in that sense. Just that it's often better to do the work in as few places as possible, even if it takes a bit more logic, thus reducing duplication of code and making the codebase simpler to manage.

Is it hard for the script to find out the position of the comment in the thread, and then just do a modulus with the user's comments-per-page setting to find out the page? (Hope that makes sense, I think my brain's on strike today.)
While you're here, please consider supporting GamingOnLinux on:

Reward Tiers: Patreon. Plain Donations: PayPal.

This ensures all of our main content remains totally free for everyone! Patreon supporters can also remove all adverts and sponsors! Supporting us helps bring good, fresh content. Without your continued support, we simply could not continue!

You can find even more ways to support us on this dedicated page any time. If you already are, thank you!
Login / Register


Or login with...
Sign in with Steam Sign in with Google
Social logins require cookies to stay logged in.