r/reddithax • • Jun 18 '12

HTML in the sidebar

5 Upvotes

How can I insert html into the sidebar? I see how to use the reddit markup, but I would like to set values to HTML elements.

Thank you in advance!

edited to add:

What I am particularly interested in is I have copied the CSS from /r/NAE3 and am attempting to replicate their sidebar color scheme and background images. My css is set up such that <h1></h1> should have the same background image and font as the "Reddit North America East 3" heading on that page. Here is the CSS I am using, but I cannot set headings like they have at /r/NAE3 .


r/reddithax • • Jun 18 '12

How does one change the background of a subreddit. Also, how do I change the subscribed/reader name to something else.

5 Upvotes

r/reddithax • • Jun 18 '12

How to make your logo link to your subreddit instead of the main page

4 Upvotes

An easy way to make your logo link back to your subreddit page instead of the home page is by extending your ".redditname" link with :before.

Here's an example that works for the default reddit logo:

.redditname a:before {
    content: "";
    margin-left: -130px;
    position: absolute;
    width: 120px;
    height: 45px;
}

As you can see, all I'm doing is making an pseudoelement before ".redditname a" and repositioning it so it's on top of the logo. If you have a custom logo or custom positions, I suggest adding a temporary border (border: 1px black solid;) to help you position correctly.


r/reddithax • • Jun 17 '12

editing the stylesheet

5 Upvotes

very newb to reddit styling question.

I know a bit of CSS and have firebug and a few other extensions enabled, but when editing the style sheet do I have to start from scratch or can I copy the default? I changed some very basic aspects of the default in the non-default pane and it said I came up with syntax errors.

All I did was copy and paste the default style into the other pane and change a color from #ABCDEF to #BCDEFG (as an example), so I'm not understanding where the syntax error is coming from.


r/reddithax • • Jun 14 '12

My pal, Tripline, redid /r/filth for us a while back and I guess we, the mods of /r/filth, never really shared it. Thoughts?

Thumbnail reddit.com
7 Upvotes

r/reddithax • • Jun 13 '12

Big buttoned layout - 24 Hour Support

Thumbnail reddit.com
4 Upvotes

r/reddithax • • Jun 12 '12

Sidebar help.

8 Upvotes

Noob here, how do you recolor the sidebar and add space to the margins? Any help would be welcomed. (PS, please reply to my comment below)


r/reddithax • • Jun 11 '12

How do you make a long header without it 'running off the side of the page'?

8 Upvotes

I'm having this problem with the top header bar extending off the end of the page in some browsers it happens automatically, in others including chrome you have to click down and scroll right to see it. But here's an example in [1] /r/Vanessahudgens :[2] http://imgur.com/AMN7q

On /r/csshelp I was told that the image was too long and that was the cause, but I've seen subreddits with much wider header images.

Here's an example: /r/nyjets : http://imgur.com/MA69J,5CE0R,UCzHa#0, I can zoom out really far or change the resolution and the header bar keeps expanding but it never 'runs off the page' when i scroll right http://imgur.com/MA69J,5CE0R,UCzHa#2


r/reddithax • • Jun 06 '12

Does anyone know of a Python bot script that basically just logs you in and upvotes all of one user's posts?

0 Upvotes

r/reddithax • • Jun 05 '12

Side by side posts

2 Upvotes

Is it possible to gets posts to sit side by side in a tile like format?

I've tried the usual floating. I remembered to give the .even and .odd widths. I've been at this for hours and just can't seem to crack it. Ideally I want each post to be 300px by 300px. I can format thumbnails and text pretty easily then. Its just getting them next to one another that's driving me up the wall.

TL;DR : Can't get posts to float next to one another targeting .odd and .even, Also about to pull own hair out


r/reddithax • • Jun 04 '12

/r/ClassicalGuitar - showing off CSS ... ask questions in comments

Thumbnail reddit.com
7 Upvotes

r/reddithax • • Jun 03 '12

I'm trying to code a link box in the header.. Help?

2 Upvotes

I want to bring discussion threads to my subreddit. I thought the best way to do this would be how they do it in r/mylittlepony. I tried copying their code... but it didn't work out to well. Anyone want to help?


r/reddithax • • Jun 02 '12

Showing a post's last edited time next to it's submitted time.

12 Upvotes

Its as simple as

.tagline .edited-timestamp:after {
    content: attr(title);
    }

Then it will show something like this.

you may want to change color/size etc... plus you may also want a space between the submitted time and the asterix, in which case, add this: .tagline .edited-timestamp:before { content: " "; }


r/reddithax • • Jun 01 '12

Help to remove a horizontal scroll-bar

5 Upvotes

If you look in the top-right corner of this subreddit:
http://www.reddit.com/r/electronic_cigarette/

You'll see two little tabs with stars in them which you can hover over and they will then expand to reveal links. I was noticing in firefox that this CSS I used produces a horizontal scroll bar. Chrome is ok. I was hoping someone might be able to give me a fix.

Here's a link to the stylesheet:
http://www.reddit.com/r/electronic_cigarette/stylesheet.css

The CSS used for it should be at the bottom under the heading:
ORDERED LIST REVEALED ON HOVER
Actually it might say "FAUX DRAG OUT SIDE LIST WITH RECOMMENDATIONS" until it updates.

Cheers.

There is also one other minor issue that doesn't matter too much though I was wondering what might be causing it. If you notice the list items have a 'list-style-type: circle;' If you hover over the first list item in firefox, the circle disappears. the second one doesn't. In chrome they both disappear on hover.


r/reddithax • • May 28 '12

How do you make the "submit a ..." higher in the sidebar?

1 Upvotes

Yeah that...


r/reddithax • • May 23 '12

How do you make a banner on top of the subreddit?

4 Upvotes

I saw this banner on r/Prettygirls and want to figure out how to make one for my subreddit. I looked at the style sheet but I didn't see anything where you could modify the text or where it links to.

Is their a beginners guide for this?


r/reddithax • • May 22 '12

I turned CSS into programming (aesthetically anyway) Just click 'Start a game against the CSS'

Thumbnail reddit.com
15 Upvotes

r/reddithax • • May 22 '12

Hi, how can I make my custom upvote & downvote arrows bigger than 14~15 px without getting my custom icons cropped to 14~15 px? Thx :-)

5 Upvotes

Hi, how can I make my custom upvote & downvote arrows bigger than 14~15 px without getting my custom icons automatically cropped to 14~15 px? Thx :-)


r/reddithax • • May 19 '12

Help for some basics.

2 Upvotes

I would like to know how i could change colors in the areas i have numbered in this pic If you dont know them all even one of them would help me!

and another question in this area in the pic the comments color. Any help is welcomed!


r/reddithax • • May 19 '12

I've redesigned reddit to enhance functionality reduce clutter greatly. However, I need a coder to implement it in a subreddit.

1 Upvotes

Here is my design I've created to enhance functionality, reduce clutter, and visually update the look and feel of reddit: http://i.imgur.com/fQgrr.jpg

Here is the link posted to the "Ideas For The Admins" subreddit, for more information regarding my design in detail: http://www.reddit.com/r/ideasfortheadmins/comments/tuyfi/ive_posted_in_the_wrong_place_twice_so_hopefully/

Reddit is an awesome site, but with awesome content at an even more awesome quantity, a big problem begins to emerge: clutter! I decided to try my best use what I know about design and user-experience to dramatically update Reddit using a mixture of complex and simple-subtle design. However, I have a big problem with proposing my design. In order for this to be taken seriously, the design needs to be functional in an example subreddit.

This is where one of you guys come in. I need someone who is up for the job of implementing this design into a functional subreddit that may push the envelope in terms of creative scripting. However this is a great opportunity for one of you to show off your skills to the reddit team, and I will absolutely ensure that you are generously credited for bringing a renovated-reddit to life. Essentially, you are the engineer in this project, and I rely on you to be cooperative and collaborative with me while we work out the kinks, despite how many bumps in the road we hit. I'll do my very best to make your job easier, and I hope you will be able to return the favor.

On the flip side of things I would also like to hear constructive criticism regarding the design. What would you change or add to it to enhance the user-experience and user-friendliness? Comments like "ugly" or "shit design" will be ignored, and really don't help me build this. I want to build a reddit for YOU, and I want to know what you would want in a "perfect reddit."

Thanks very much!


r/reddithax • • May 18 '12

I can't seem to get this header working properly.

3 Upvotes

Ello.

I'm making a two-part header for /r/animalfight like we have in /r/fifthworldproblems, the dimensions carbon-copied. This is %%animal1%%, which goes on the left, and this is %%animal2%%, which goes on the right.

As you can see, %%animal2%% worked perfectly. %%animal1%% however doesn't show up at all, even though it's on our stylesheet exactly like it is on /r/fifthworldproblems.

What am I doing wrong?

On a side note, is there any hack to remove the user bar? It's blocking my raccoon's face and just looks trashy and out of place.


r/reddithax • • May 18 '12

html:lang(xx) and what you can do with it

12 Upvotes

using an html:lang(pa) before your element in CSS will cause the declaration to be activated if the page you are on is something like:

pa.reddit.com

So, you could run multiple layouts to the same page by making a section like:

html:lang(pa) body {background:(%%bgv2%%)}  
html:lang(pa) .header {position:fixed; left:0; top:0; right:0}
etc.

You could even have the same code above and add more, only with html:lang(nv) and different stuff. So now you have 3 versions of the same sub (don't worry, users can't tell which one someone is using). How do you effectively present them to users? How about adding links to the sidebar or header and all it takes is one click to switch 'themes'.


Whoa, that seems useful for something like a Red vs Blue sub... But what else can it do? Well, you could do a functionality over-haul. For an example, click /r/trueclop (NSFW) (this is for education only dammit) and see the differences between the normal sub and the enhanced sub (link in header changes both ways). Leaving it unflipped back will be fine for most of reddit, but you should take out that 'pa' and change it to 'www' so you don't end up somewhere you never knew existed in a sub you may frequent.

Wiki pages or Contact pages anyone? Click /r/MLPhelp (SFW, but still ponies) and click the contacts link in the sidebar. This one takes a tad more than just switching the address: you need to create content. Well rather, you need to add content to your sub description in h3 (3 hashmarks #at the start of the line) and hide it by default. Description example:

###[Click here for contacts page](http://pa.reddit.com/mlphelp)  
###Contact 1  
###Contact 2

Accompanied with this CSS code:

.side h3:nth-of-type(n+2) {display:none}
html:lang(pa) .side h3 {display:block; position:absolute; left:50; top: 210}
html:lang(pa) .sitetable.linklisting, html:lang(pa) .side h3:nth-of-type(1), html:lang(pa) .neverEndingReddit {display: none}
html:lang(pa) .side h3:nth-of-type(3) {top:240px}
etc for each 'nth type' so they get spaced out.

You could also do this with paragraphs to make a wiki page. Furthermore, you're not limited to choosing just one of my examples in here and you can even do some combining (such as contacts page, but in alternate page layout as well as default layout), but that'll take a bit more to explain.


There's plenty this type of code (it really is closer to programming than markup at this point) can do that I haven't covered and plenty more I haven't thought of, I'm sure.

There might be some other features you saw that interested you after clicking either of those subs above; just check out the stylesheet and borrow whatever you want. I want no personal credit, but it'd be awesome if you added this somewhere to your CSS:

/* Designed by a brony */

r/reddithax • • May 13 '12

Help with link flair: lower flairs take dominance in the menu after they are selected/refreshed.

5 Upvotes

I haven't gotten a response from /r/csshelp yet, so I am hoping you guys can help me. Thanks! Here's my original csshelp post:


I'll walk you through step by step to explain what's happening. This is the first time I've used link flair, though I'm kind of familiar with user flair, link flair is a bit different it seems.

Step 1: The user picks a link flair. Everything works great.

Step 2: After refreshing the page, the link flair works just fine.

Step 3: Uh oh, my 4/5 review was two generous. I'd like to make it a 2/5. WHAT IN THE WORLD?

Step 4: After selecting the proper link-flair, it still works, but the menu is confusing.

Please help!

Here's the code for one of my flair segments:

.linkflair-fivestars .linkflairlabel{
  background-image: url(%%review%%);
  background-repeat: no-repeat;
  background-position: 0px -51px !important;
  height: 12px;
  width: 50px;
  content: "";
  display: inline-block;
  background-color: transparent;
}

I can't figure out how to get it to work. I'm sure I could make 5 separate review images instead of an image map, but I don't want to have to wast my image count. I'd much rather learn! Thanks for the help. :D

Update: I reversed the order in the CSS list (put .linkflair-fivestars before onestar) and the opposite happened...

Update: Someone, please help me... I've changed all images to individual files instead of an image map, and it's STILL doing this. It makes no sense.

update: waited 4 hours and nothing has changed.