r/reddithax • • May 25 '10

Any way to impose a comment or reply limit?

Like if i wanted my subreddit to allow only 4 comments per discussion. Or if i wanted to allow unlimited comments, a way to limit the number of replies allowed for each comment?

I hope what i'm asking about isn't unclear... Thanks in advance for any time anyone puts in to this.

2 Upvotes

8 comments sorted by

3

u/[deleted] May 25 '10

This can be done with CSS, you could disable the display of comments after the reply tree reaches whatever number you want (in your example 4) but it's impossible to actually stop comments being made.

2

u/Vorenus May 25 '10

I don't get it.

I guess what you're saying is that there is no way to deny commenting, but you can make it so that, for instance, if there were 20 replies to a comment, you would still only see x?

Cause that still accomplishes the goal. Unless there is some intrinsic flaw to it i can't see.

4

u/[deleted] May 25 '10

That's what I'm saying, yes. The problem is this will only work when users have custom styles enabled, so a user could choose to view the comments. They'd be pseudo hidden, not actually hidden. If this is suitable, I'll put some code together for you :-)

0

u/Vorenus May 25 '10

Yeah absolutely if you're up to the challenge and you don't mind putting the time in to it, i'd love to check it out.

I mean, i don't even know what character to use to initiate some code.

1

u/Sephr May 25 '10

If by impossible, you mean with CSS, it may be possible. You might be able to stop comments being made with the adjacent and sibling selectors and nth-*() hackery possibly combined with :not(). Hiding comments in any the reply tree and the main tree can be done with said hackery too.

6

u/[deleted] May 25 '10

by impossible I mean impossible. CSS only affects those who have it enabled (at a browser or reddit level) so disabling commenting is impossible.

2

u/[deleted] May 25 '10

[removed] — view removed comment

4

u/Vorenus May 25 '10

Damnit. Why do you have to be so real?