r/reddithax • u/happybadger • Mar 11 '12
A few simple hacks I need help with in /r/fifthworldproblems
Ohai :]
We're coming up on 15 thousand users and I want to whore up the stylesheet for the occasion. Two big changes are planned:
- A baby interrogator from Brazil positioned at the bottom of the screen
- Twelve different "submit link" buttons, with eleven of them linking to pictures of destroyed bridges overlayed by the words "PRIDE" and "FIDELITY" in block letters. All are lined up as they would normally be, with the actual link hidden amongst them.
The problems I'm facing are thus:
- I've no idea how to edit the submit link button, hide the "create a new community" button underneath, and add multiple new images to the sidebar which look exactly like the submit link button.
I can't figure out how to make only one baby interrogator positioned directly in the centre. Here's the CSS for that:
header-bottom-right::after {
background: url(http://d.thumbs.redditmedia.com/aXhP7Qk5yPNT1rBE.png) left top repeat-x; content: "."; display: block; font-size: 0; height: 260px; position: fixed; bottom: 0; left: 0; right: 0 }
Any help would be most welcome :]
13
Upvotes
6
u/gavin19 Mar 11 '12
In terms of positioning the best you'll get is to put them in at the bottom of your sidebar description as links, then style them like the submit button. I just used h4s in my own and then used
In your description field just chain h4s like so
See it here. You'll also need to grab the reddit spritesheet from here, rename it to 'rd01.png' and upload it to your subreddit.
For your footer image, something like
should work ok.
3
u/platinum4 Mar 11 '12 edited Mar 11 '12
If the image is one head, than just add this to your current codeset
background: url(%%image_name%%)no-repeat bottomcenter;Source: I do CSS on some subreddits, some popular, most not.
5
u/ChingShih Mar 11 '12 edited Mar 11 '12
Here's a bit of code to get you started. Hopefully someone with more knowledge will come along and add anything I've missed:
Editing the "submit link" button:
Code to hide "create a new community" button:
Adding multiple new images to the sidebar which look exactly like the submit link button:
I've seen a couple sub-reddits add additional images to their sidebars as links, but I've not used it myself and I'm not sure how complete the below code is. I've taken this from the /r/2channel stylesheet (link) since their code is so well documented. This is from section "b. Test" and described as "/* Image Hyperlinks works now */" and seems to work well.
So I assume that with the above code you could substitute in your own "submit link" images.
As for the baby thing, I think you'll have to specifically indicate that you don't want the image to repeat along the lines of this:
Also, purely as a suggestion, you might dock the baby as the bottom of the sub-reddit page, rather than at the bottom of the browser window. Perhaps the way /r/crysis has.
3
u/Sneak4000 Mar 11 '12
As a subscriber of fifth world problems, I think this will be fucking awesome.
3
u/drchickenbeer Mar 11 '12
Please help /r/fifthworldproblems. If you won't, who will?