News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

users can specify how many messages to display

Started by dschwab9, December 08, 2003, 06:54:06 PM

Previous topic - Next topic

dschwab9

An option in the profile to specify how many message to display in the board view, and how many messages in the thread view would be nice.  I've seenother forums that have this.

Of course, there would need to be a limit so someone couldn't put 2000 messages on one page.  Some users with dialup may prefer to only view 10 messages at one time, but someone with broadband could view 50 on one page.

Tomer


Owdy

Former Lead Support Specialist

Tarvitsetko apua SMF foorumisi kanssa? Otan työtehtäviä vastaan, lue:http://www.simplemachines.org/community/index.php?topic=375918.0

pulpitfire


bostasp

If you could cap it... say you can't enter a number more than 20... then it seems perfectly fine to me :)

Sir McDuck

Quote from: bostasp on December 09, 2003, 02:21:03 PM
If you could cap it... say you can't enter a number more than 20... then it seems perfectly fine to me :)

Why just 20? I would like to view for about 50 posts on one page.

bostasp

We'll couldn't the total number be variable at the choice of the admin?

[Unknown]

Why not make it so it can't go over 5 times the default?

-[Unknown]

pulpitfire

how about users can specify how many posts they have?  :P

Ben_S

Quote from: [Unknown] on December 09, 2003, 06:52:47 PM
Why not make it so it can't go over 5 times the default?

-[Unknown]

Sounds like a good compromise to me, if you set it to a value you are happy with as a default then the server can probably cope with 5*s that, assuming not everyone does it.
Liverpool FC Forum with 14 million+ posts.

dschwab9

Quote from: [Unknown] on December 09, 2003, 06:52:47 PM
Why not make it so it can't go over 5 times the default?

-[Unknown]

I guess that would work.   I think the default is 20 topics and 15 messages per page, so that would mean 100 topics or 75 messages max with the default settings, which seems reasonable.

It could also use the "max posts for ALL button" setting.

Symetrix

Why limit it, in a way. If setting it too high is stupid, surely thats the same as clicking the 'all' pages link?

And most threads dont have more than 40 posts on average

[Unknown]

I knew someone once who set the message count to somehting like 10000.  The forum crashed immediately.

-[Unknown]

Ben_S

Quote from: Symetrix on December 09, 2003, 07:43:52 PM
And most threads dont have more than 40 posts on average

Depends on the board, some people have threads with thousands of posts.
Liverpool FC Forum with 14 million+ posts.

dschwab9

Quote from: Symetrix on December 09, 2003, 07:43:52 PM
Why limit it, in a way. If setting it too high is stupid, surely thats the same as clicking the 'all' pages link?

And most threads dont have more than 40 posts on average

The "all" pages link has a limit.  It's under "Layout" in the forum preferences.

dschwab9

I just ran a test on mine.  The first page of a 67 post thread was generated in .115 seconds, clicking the "all" button took .401.   Not bad at all, but say I had 670 post in the thread - that could get ugly if there was no limit  ::)  On YaBB SE, if you run a search that has more than a few hundred posts, PHP times out and you get errors.

Ben_S

although smart users realise that they can add ;all to a threads url and cause mayhem
Liverpool FC Forum with 14 million+ posts.

dschwab9

Quote from: Ben_S on December 09, 2003, 08:14:04 PM
although smart users realise that they can add ;all to a threads url and cause mayhem

Well, the code really should be such that they can't do that.  Maybe we can talk [Unknown] into fixing it  :-X

[Unknown]

Unless I'm entirely mistaken, all won't work unless the topic has so many posts - if not, it will only show the max of all.  But I might be wrong, that's just what I remember doing.

-[Unknown]

Ben_S

in beta 2 (not tried 2.5 yet) a user could add the ;all to the end of a thread url. I beleive that was just a temporary way of doing the all thing though so it may have changed
Liverpool FC Forum with 14 million+ posts.

Advertisement: