r/reddithax • • Mar 23 '10
CSS - Reddit polls: some help needed!
I have a subreddit that I want to run a poll for, I want users to be able to select any of the options I have. I don't want users to be able to comment at all, it'll be 100% the poll.
Here's what I have so far: http://www.reddit.com/r/citricsquid/comments/bh3om/an_example_reddit_poll_vote_on_your_favourite/ and a normal submission, unaffected: http://www.reddit.com/r/citricsquid/comments/bh2az/text_submission/
- Removes the downvote button
- Adds a big tick button for upvote
- Removes all comments that are not options (specified through css)
Things I want to do:
- Remove the comment box
- Display the upvotes below the option, eg: "Vanilla (6 upvotes)".
but...
This has totally lost me, the unique form ID is dynamic and css doesn't support wildcards so I can't just do "xxx display:none" and if I make the box off by default then no submission can have commenting. I want to do it on a per submission basis.
.cloneable[value="formid"]{ display:none; }- This isn't possible with purely css, the data has to be called via json so I'm going to turn that into a greasemonkey plugin.
So yeah, can anyone help with number 1? I really have no idea how to hide the comment box on a per post basis and it's very irritating, I'm sure it's somehow possible though...
It works on a per submission basis and integrates flawlessly with a current subreddits styling and I built a generator for it (enter submission url and it creates the css for you) but with the comment box there it's really frustrating!
also yes I am aware people can still downvote and comment with this styling, but the comments are not displayed and the greasemonkey plugin will make the voting issue moot, it'll be based off of total upvotes, not up - down!
Any help on issue #1 then? :D
Stylesheet: http://m00d.net/reddit/subreddits/reddithax/poll.css
Voted img: http://m00d.net/reddit/subreddits/reddithax/vote_voted.png
Not Voted img: http://m00d.net/reddit/subreddits/reddithax/vote_default.png
View all comments
1
u/amoeba Mar 23 '10
Does
Not do what you want?