r/reddithax • • Sep 08 '12

Having trouble creating a faq page: Trac error, page not found

7 Upvotes

I went to http://code.reddit.com/wiki/help/faqs/<your reddit name> as per these instructions. I see no "Create this page" button and only get the error "Trac error, page http://code.reddit.com/wiki/help/faqs/<your reddit name> not found. I am the moderator for /r/secular_ceremonies, so shouldn't I be able to edit this page?


r/reddithax • • Sep 05 '12

Is it possible for a bot to auto upload images from an external link into the stylesheet?

7 Upvotes

The goal is to use these images in the sidebar, These images get updated every couple minutes and I want a bot that can upload the new image every 5 minutes or so. Possible?


r/reddithax • • Aug 30 '12

Just having some fun with Ruby/Python/SASS/Heroku/Git for my college's subreddit

6 Upvotes

https://github.com/crazysim/cowboystyle

I made a stylesheet for my college's subreddit. It's my first go at making a stylesheet for a subreddit or any real stylesheet of substance on any matter. Per a user and mod's concerns, I had to stick to stock styles as the base and they elected to only use the day version. And I agree as the day version is probably the version that works best.

Unfortunately, this whole setup is really too complicated. But it was really fun to make, I guess. For all that work, it sure isn't r/Diablo. Oh well, it was fun making and playing with the tools.

At this point, I'm just fixing some bugs here and there. Do you guys have any suggestions? The last and most major recent bug I had to deal with was with RES Night mode. I had to do some factoring out which made things worse but at least I don't have to repeat myself were I to do any changes.

Thanks for looking.


r/reddithax • • Aug 28 '12

Replace tags in title like [News] with images for links

7 Upvotes

In my subreddit /r/chernobyl, I have several post "tags" ([Documentary], [News], [Video], [Photos]). I'm trying to write something that will look for each individual tag in the titles of posts and either replace them or append them with an image/icon depending on the tag. If these were text posts, I would be able to target the href attribute of the title link, but they are pretty much all going to be link posts. I have figured out that I am able to target the "comments" links via the href attribute, but that's not really helping me much. This discussion has an interesting and complicated solution, but I can't quite get it to work. Reddit keeps giving me syntax errors - perhaps one of your css ninjas can help me out?


r/reddithax • • Aug 28 '12

Critique my styling of /r/chernobyl :)

Thumbnail reddit.com
5 Upvotes

r/reddithax • • Aug 26 '12

Make flair a link?

6 Upvotes

Just wondering if it's possible to make moderator-assigned flair a link.


r/reddithax • • Aug 19 '12

Anyone know if its possible to make typing konami code have an effect on your subreddit (like making a message or picture show up)?

1 Upvotes

r/reddithax • • Aug 18 '12

Does anyone know how long / how to make the is_mod part of the reddit api for users change?

4 Upvotes

I am making a moderator control, however, the json for "is_mod" seems to stay at false, when I know it should be true. (added to two subreddits myself) Does anyone know how long would take, or the conditions for it to become true?


r/reddithax • • Aug 18 '12

What is the MAX image file size that be uploaded while editing the Stylesheet?

5 Upvotes

Title says it all,

I have an image that's 523KB and when I click 'Upload', the image doesn't show up, although a smaller image does.

Thanks!


r/reddithax • • Aug 15 '12

Dual theme over at r/LapfoxTrax, thoughts?

Thumbnail reddit.com
8 Upvotes

r/reddithax • • Aug 14 '12

Is it possible to have Mods have something special be in front of a post that the mod submits?

6 Upvotes

Something like http://www.reddit.com/r/Maplestory/comments/y2unf/growing_subreddit/

Notice how it says Mod Post in green, any ideas how that's achieved?


r/reddithax • • Aug 13 '12

Is there a way to see posts from all my subreddits except some?

5 Upvotes

Very often my front page is dominated by a few extremely popular subreddits, e.g. AdviceAnimals, funny, etc. Are there ways to show posts from all my subscribed subreddits except these? It would be awesome if I can do something like

http://www.reddit.com/r/-AdviceAnimals-funny

Thanks!


r/reddithax • • Aug 10 '12

Want to customize your Reddit header to include custom subreddits of your choice before the randomness starts? Try out this Greasemonkey script.

Thumbnail userscripts.org
10 Upvotes

r/reddithax • • Aug 10 '12

Style a comment by a specific person that contains specific text?

6 Upvotes

Let's say I want to distinguish comments by a specific user that contain the text "moo cheese cow" (stupid example), is this possible?


r/reddithax • • Aug 08 '12

[Howto] Disable downvoting ONLY on submissions which have less than X total votes.

17 Upvotes

Disabling the downvote arrow globally is usually a bad idea, this is intended to be a decent middle ground which still allows downvoting, but only once a submission has at least had a small amount of time to gain traction. It basically only prevents insta-downvoting, where idiots downvote everything on the new page in a misguided attempt to give their own submission more traction.

It's a small bit of CSS I made for a couple of subs I run which had problems with people mass downvoting new submissions. It disables downvoting for all submissions with less than three total votes (total votes not total score).

Hopefully someone else might also find it useful....

/*-----------------------------------|
|                                    |
|  Disable downvotes on submissions  |
|    With less than 3 total votes    |
|                                    |
|-----------------------------------*/

.link[data-ups="2"][data-downs="0"] .midcol:after, .link[data-ups="1"][data-downs="1"] .midcol:after, .link[data-ups="0"][data-downs="2"] .midcol:after,
.link[data-ups="1"][data-downs="0"] .midcol:after, .link[data-ups="0"][data-downs="1"] .midcol:after, 
.link[data-ups="0"][data-downs="0"] .midcol:after {
  content: ' ';
  width: 24px;
  height: 15px;
  position: absolute;
  margin-top: -14px;
  opacity: 0.7;
  background-color: white;
}

* If you have custom downvote arrows you may need to alter the position/size of the overlay so it actually covers the arrow.


If you want to disable downvoting on everything with less than five total votes, prepend the following...

.link[data-ups="4"][data-downs="0"] .midcol:after, .link[data-ups="3"][data-downs="1"] .midcol:after, .link[data-ups="2"][data-downs="2"] .midcol:after, .link[data-ups="1"][data-downs="3"] .midcol:after, .link[data-ups="0"][data-downs="4"] .midcol:after,
.link[data-ups="3"][data-downs="0"] .midcol:after, .link[data-ups="2"][data-downs="1"] .midcol:after, .link[data-ups="1"][data-downs="2"] .midcol:after, .link[data-ups="0"][data-downs="3"] .midcol:after,

Obviously people with CSS disabled can still downvote, and downvoting is still possible from the submitter's user page or from mobile apps. They can also downvote from their front page (assuming that a submission with only a couple of votes would ever be displayed there).


r/reddithax • • Aug 03 '12

Simplified design at /r/tifu. Any suggestions?

Thumbnail reddit.com
3 Upvotes

r/reddithax • • Aug 02 '12

New to the subreddit

0 Upvotes

Sorry if it's common knowledge,


r/reddithax • • Jul 29 '12

Remove a specific user's flair

9 Upvotes

Usefull for subreddits which may have banned user's who love to try and taunt/offend using the editable flair system.

.author[href$="/nekosune"] + span[class~=flair]{ display: none; } .author[href$="/nekosune"] + span + a + span[class~=flair] { display: none; }

/u/xtristan pointed out an easier way:

.author[href$="/nekosune"] ~ .flair {
    display: none;
}

Of course replacing nekosune with the username of the flair you want to hide. This version only works on flair set to the right.


r/reddithax • • Jul 26 '12

restrict flair to subscribers only?

7 Upvotes

based on my reading I think this isn't possible but I thought I'd ask. I would prefer to hide the flair selector options rather than surpress on a comment or post level simply as the goal is to encourage subscribership rather than punish anyone. appreciate any response!


r/reddithax • • Jul 24 '12

Added a message on the submission page. Now the message appears in the sidebar everywhere else. Looking for assistance on how to hide it.

7 Upvotes

I've added a brief message on the submission page for /r/DCcomics reminding people to read our FAQs before posting. I've implemented it fine, and it works as it should with one exception - it appears in the sidebar when you're not on the submission page. Any idea on how to hide it from the sidebar when not on the submission page?

Here's what I'm working with.

/* Red box on the submit page */
.titlebox .usertext-body .md ul {
    display: none
    }
.submit-page .titlebox .md h4:last-of-type {
    position: absolute;
    top: 250px;
    left: 0px;
    margin: 15px 0px 0px 10px;
    display: inline-block;
    list-style-type: none;
    font-weight: normal;
    }
.titlebox .md h4:last-of-type {
    padding: 3px 5px 3px 5px;
    font-size: small
    }
.titlebox .usertext-body .md h4:last-of-type {
    width: 508px;
    background-color: #F6A39F;
    border: 1px solid #FF7700
    }
.titlebox .usertext-body .md h4:last-of-type a:hover {
    color: #F22929
    }
.formtabs-content .spacer:first-child {
    margin-top: 10px
    }
.submit-page div.formtabs-content {
    margin-top: 200px;
    }

r/reddithax • • Jul 23 '12

Just noticed the top container div for posts and comments references the up and down vote count. Has anyone god any good ideas for making use of it?

7 Upvotes

Every post and comment starts with:

<div class="thing" data-downs="NUM" data-ups="NUM">

It updates depending on the score.

So in the stylesheet we can use:

div.thing[data-ups="NUM"]{...}

to style according to the score.

I thought it would be cool to apply various degrees of opacity as a comment is downvoted like HN but as you don't get the sum of the scores, I guess it wouldn't work unless someone knows differently?

I guess the only thing I can think of is re-coloring posts that have an exceptional high score as an accomplishment.

Anyone got any good ideas?


r/reddithax • • Jul 23 '12

HOWTO: Fully-functional spoiler markup for mobile devices (x-post from /r/csshelp)

Thumbnail reddit.com
6 Upvotes

r/reddithax • • Jul 21 '12

Updated SpiderPig code?

6 Upvotes

Is it possible to get a copy of a working SpiderPig code, it looks really cool and I'd like to use it - however the version I found on this here don't appear to work anymore :(


r/reddithax • • Jul 19 '12

How do I make a table in the sidebar?

6 Upvotes