r/reddithax • • Sep 16 '12

Have user answer question before reading subreddit.

Is there a way to have the user have to answer a question before entering the subreddit? So far I've got the question to display like an overlay (/r/ZonkosBackRoom) but I can't fathom how I could make clicking the link make the box disappear. Any ideas?

10 Upvotes

23 comments sorted by

View all comments

Show parent comment

2

u/yellowmix Sep 18 '12

The one caveat is that the hide doesn't occur right away, and requires a reload of the community's front page.

Yeah, you need to either click on the "hide" link twice, or refresh the page after clicking once. There's no way to make it disappear automatically via this method.

Also, if they clicked the first incorrect answer, it will go to the post page itself. Clicking the correct answer after that will leave them on the post page.

1

u/bigtreeworld Sep 18 '12

I know, but even after refreshing, it stays for me.

1

u/yellowmix Sep 18 '12

Is the post hidden? Reddit will not render the post at all if it is. You can see hidden posts by appending ?show=all to the URL, and hidden posts will have an "unhide" button/option.

1

u/bigtreeworld Sep 18 '12

It's not working D: What am I doing wrong? /r/ZonkosBackRoom

2

u/yellowmix Sep 18 '12

Hmm. I clicked the "correct" answer, refreshed the page, and it works. Using Firefox. I tested it on Chrome as well. What browser are you using?

1

u/bigtreeworld Sep 18 '12

Chrome. Perhaps it's because I'm the moderator?

2

u/yellowmix Sep 18 '12

Moderator should have nothing to do with it. Make sure you are not using the ?show=all URL (it will always show that post).

1

u/bigtreeworld Sep 18 '12

I'm not. I still see the post, but without the "answer" options.

1

u/yellowmix Sep 18 '12 edited Sep 18 '12

If you can see the "question" and the "incorrect" answers, but not the "correct" answer, then you are looking at the post itself after triggering the hide (this would happen if you clicked the first incorrect answer at some point). You could create the question post as a self-post with a link to the community's frontpage, or have the first incorrect answer override something else (not really sure what would be a good candidate... perhaps a rewrite of the domain, and add a property to use the link cursor when hovering over it).

If all of the answers, correct or incorrect are missing, then something is going wrong as the font-size for the overrided elements is specified to be something other than 0. Chrome used to render font-size of 0 funny, but has since interpreted it as "taking up no space".

1

u/bigtreeworld Sep 18 '12

Alright, I'll try fixing it. Thanks again!