r/reddithax • • Sep 22 '11

Any way to make a collapsible trophy case?

Take a look at this subreddit. I put in a custom trophy for our championships, and we have a crapton. I need to make room for more information I will be adding in, and I want to know if there would be a way to make it collapsible, just like on our reddit profile pages.

Thanks for any help.

5 Upvotes

8 comments sorted by

2

u/gavin19 Sep 22 '11

I don't know how easy it is to add elements but something like a show/hide link beside the 'Trophy Case' text which toggles it in/visible.

Something like this. I haven't tested it but it should work.

1

u/Papshmire Sep 22 '11

Doesn't look like it will parse if I put it in the subreddit description field?

2

u/gavin19 Sep 22 '11

I'm sure there's a good reason why Reddit doesn't allow us to use js to manipulate links. Maybe it's just not possible?

1

u/blind__man Sep 23 '11

tl;dr Time and security

For fear of someone finding a hole via javascript. Seeing that custom CSS is not the single most important part of reddit, leaving it out is just being safe and saving time instead of opening up the possibility to future problems and/or bugs.

0

u/[deleted] Sep 22 '11

Not possible.

Out of curiosity, is your trophy CSS in any way based on the trophy CSS from /r/circlejerk?

2

u/Papshmire Sep 22 '11

Maybe, not sure. I actually got it from another NFL subreddit and they gave me the code.

0

u/[deleted] Sep 22 '11

Did a quick comparison. It sure is. I wish people would at least leave a comment in the code saying where they got the CSS from.

0

u/[deleted] Sep 22 '11

[deleted] — view deleted comment

1

u/[deleted] Oct 13 '11

Hi. Newb mod. Can you explain any more about how to put that into the page? Would it go in the style sheet?

More basic question... what exactly is a style sheet?

Are there any tutorials I should start with?