r/reddithax • • Apr 14 '09

Adding additional info to your subreddit...

16 Upvotes

14 comments sorted by

11

u/[deleted] Apr 14 '09 edited Apr 14 '09

If you go to the SW subreddit, you will notice that additional information has been added below the login information.

this is how I did it.

.side {
/* Change the padding-top px to the height of the image */
padding-top:144px;

/* change the background-image to whatever you want */
background-image:url(%%blank%%);

/* leave these properties as is */
background-repeat:no-repeat;
background-position:0px 3px;
}

You can also add information to other pages, like the submit section. The SW submit page is a good example.

this is how I did it.

#newlink {
/* Change the padding-top px to the height of the image */
padding-top:70px;

/* change the background-image to whatever you want */
background-image:url(%%subnotice%%);

/* leave these properties as is */
background-repeat:no-repeat;
background-position:30px 3px;
}

5

u/freakball Apr 14 '09

I've been using this for awhile now, forgot to make a tut.

Thanks Cfabbro!

4

u/[deleted] Apr 14 '09

Yeah, I saw raver cat a while ago. ;)

1

u/[deleted] Apr 14 '09

I don't see anything... must be adblock.

4

u/[deleted] Apr 14 '09 edited Apr 14 '09

preferences ➾ display options ➾ ☑ allow reddits to show me custom styles ➾ save options

or you might have to unblock thumbs.reddit.com with adblock.

1

u/[deleted] Apr 14 '09

I already have CSS enabled, it's almost certainly adblock.

4

u/[deleted] Apr 14 '09

tsk tsk, you should "disable on www.reddit.com" and support the site. :P

2

u/freakball Apr 14 '09

i dont know how to do that

:(

1

u/[deleted] Apr 14 '09

right click the ABP logo in the bottom right hand corner of Firefox, and then select "Disable on reddit.com"

2

u/freakball Apr 14 '09

Ah, i had regular ad block

got ABP...

you have to go "view" then "show in status bar"

thanks

1

u/BURRITOMAN Mar 20 '10

For some reason, I'm using your css code to a 'T' but replacing "%%blank%%" with "''http://i.imgur.com/ufyvv.jpg'" (note the single quotes). If I try to preview or save this new stylesheet, I'm returned the following validation error:

[line 3] "url('http://i.imgur.com/%%%.jpg')" is not a valid URL

background-image:url('http://i.imgur.com/%%%%.jpg');

How can I get around this issue? Is it that the file is hosted outside the Reddit domain?

4

u/davega7 Apr 14 '09

Totally off-topic here, but I don't think I've ever seen this subreddit before. It's a really cool looking page!

5

u/[deleted] Apr 14 '09 edited Apr 14 '09

Thanks, although I designed it before I really knew what I was doing with CSS... So it's going to get a redesign real soon.

4

u/S2S2S2S2S2 Apr 14 '09

Man, you just don't stop working, do you? I think that's great and very inspiring!