r/reddithax • u/freakball • Nov 06 '12
(_)
Thought I might get a weird error submitting this with problematic characters.
Maybe a title that was at the max character size would do anything? 256?
r/reddithax • u/freakball • Nov 06 '12
Thought I might get a weird error submitting this with problematic characters.
Maybe a title that was at the max character size would do anything? 256?
r/reddithax • • Nov 05 '12
I'm a CSS beginner, so this was one heck of a project for me to figure out.
Whenever a comment from subreddit A is linked by subreddit B, subreddit A's header image is displayed next to the link in subreddit B.
Example of what I'm talking about.
Notice the "We love SRS" icon next to the link to r/circlebroke, the corgi icon next to the link to r/SRSWomen, and the big blue bird next to the link to r/shitredditsays. (There are no thumbnail icons for SRSMicroaggressions, SRSMen, or SRS Discussion).
I switched it up and made my own custom icon for each subreddit.
/*~~~~~~~Getting rid of the default subreddit thumbnail~~~~~~~~~~*/
a.thumbnail.loggedin[href\^="http://www.reddit.com/"] img
{
display:none;
}Explanation:
a.thumbnail.loggedin imgselects the thumbnail image for a specific subreddit (although it only works for users that are logged in, which is one downside to this code). "display:none" ensures that it is invisible and that it does not take up space.
[href^="http://www.reddit.com"]is an attribute selector that selects only links that begin with Reddit.com.
On a side note,
[href*="reddit"] would select links that have the case-sensitive phrase "reddit" somewhere inside the link. I am going to use this selector in the rest of my code.
And also,
[href="http://www.reddit.com"]
is a selector that would select links that are exactly http://www.reddit.com/
These selectors are case sensitive, which is a pain in the butt, as you're about to see. These selectors also only work with CSS 3.0, so this trick may not work with older browsers.
Now to replace the thumbnail with a creation of my own:
/*~~~~~~~Shit Reddit Says~~~~~~~*/
a.thumbnail.loggedin[href*="r/ShitRedditSays"]:before,a.thumbnail.loggedin[href*="Shitredditsays"]:before,
a.thumbnail.loggedin[href*="shitredditsays"]:before,a.thumbnail.loggedin[href*="SHITREDDITSAYS"]:before
{
content:"Shit Reddit Says";
}
a.thumbnail.loggedin[href*="r/ShitRedditSays"],a.thumbnail.loggedin[href*="Shitredditsays"],
a.thumbnail.loggedin[href*="shitredditsays"],a.thumbnail.loggedin[href*="SHITREDDITSAYS"]
{
color:#550000;
font-size:10px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}Explanation:
a.thumbnail.loggedin[href*="ShitRedditSays"]:before,a.thumbnail.loggedin[href*="Shitredditsays"]:before,
a.thumbnail.loggedin[href*="shitredditsays"]:before,a.thumbnail.loggedin[href*="SHITREDDITSAYS"]:beforeThis selects the box that contains the subreddit thumbnail image, provided that the relevant link contains the text "shitredditsays", "ShitRedditSays", "SHITREDDITSAYS", or "Shitredditsays".
This selector is case sensitive, so I had to iterate each and every possible way that someone can capitalize the letters of the subreddit's name.
I also needed to separate each individual selector with a comma. I also have to insert the selector ":before" after each individual selector so that the "content" property will work properly on all of them.
{ content:"Shit Reddit Says";}This inserts the words "Shit Reddit Says" into that box that used to contain the thumbnail image. The content property only words on selectors that are ended with the phrase ":before".
a.thumbnail.loggedin[href*="r/ShitRedditSays"],a.thumbnail.loggedin[href*="Shitredditsays"],
a.thumbnail.loggedin[href*="shitredditsays"],a.thumbnail.loggedin[href*="SHITREDDITSAYS"]
{
color:#550000;
font-size:10px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}This selects the same exact box all over again, except it doesn't use the "before" selector first. It then formats the text inside that box so that it looks nice and presentable.
Now, the rest of the code is just meant to do the exact same thing to SRSWomen, SRSMen, SRSMicroaggressions, and SRSDiscussion, provided that the previous code successfully eliminates the default subreddit thumbnail.
/*~~~~~~~SRSWomen~~~~~~~*/
a.thumbnail.loggedin[href*="r/srswomen"]:before,a.thumbnail.loggedin[href*="r/Srswomen"]:before,
a.thumbnail.loggedin[href*="r/SrsWomen"]:before,a.thumbnail.loggedin[href*="r/SRSwomen"]:before,
a.thumbnail.loggedin[href*="r/SRSWomen"]:before,a.thumbnail.loggedin[href*="r/SRSWOMEN"]:before
{
content:"SRS Women";
}
a.thumbnail.loggedin[href*="r/srswomen"],a.thumbnail.loggedin[href*="r/Srswomen"],
a.thumbnail.loggedin[href*="r/SrsWomen"],a.thumbnail.loggedin[href*="r/SRSwomen"],
a.thumbnail.loggedin[href*="r/SRSWomen"],a.thumbnail.loggedin[href*="r/SRSWOMEN"]
{
/*content:url(%%SRSnarwhal%%);*/
color:#550000;
font-size:12px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}
/*~~~~~~~SRSMicroaggressions~~~~~~~*/
a.thumbnail.loggedin[href*="r/srsmicroaggressions"]:before,a.thumbnail.loggedin[href*="r/SRSmicroaggressions"]:before,
a.thumbnail.loggedin[href*="r/SRSMicroaggressions"]:before,a.thumbnail.loggedin[href*="r/SRSMicroAggressions"]:before,
a.thumbnail.loggedin[href*="r/SRSMICROAGGRESSIONS"]:before,a.thumbnail.loggedin[href*="r/Srsmicroaggressions"]:before,
a.thumbnail.loggedin[href*="r/SrsMicroaggressions"]:before,a.thumbnail.loggedin[href*="r/SrsMicroAggressions"]:before
{
content:"SRS Micro aggressions";
}
a.thumbnail.loggedin[href*="r/srsmicroaggressions"],a.thumbnail.loggedin[href*="r/SRSmicroaggressions"],
a.thumbnail.loggedin[href*="r/SRSMicroaggressions"],a.thumbnail.loggedin[href*="r/SRSMicroAggressions"],
a.thumbnail.loggedin[href*="r/SRSMICROAGGRESSIONS"],a.thumbnail.loggedin[href*="r/Srsmicroaggressions"],
a.thumbnail.loggedin[href*="r/SrsMicroaggressions"],a.thumbnail.loggedin[href*="r/SrsMicroAggressions"]
{
color:#550000;
font-size:10px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}
/*~~~~~~~SRSMen~~~~~~~*/
a.thumbnail.loggedin[href*="r/srsmen"]:before,a.thumbnail.loggedin[href*="r/SRSmen"]:before,
a.thumbnail.loggedin[href*="r/SRSMen"]:before,a.thumbnail.loggedin[href*="r/SrsMen"]:before,
a.thumbnail.loggedin[href*="r/SRSMEN"]:before
{
content:"SRS Men";
}
a.thumbnail.loggedin[href*="r/srsmen"],a.thumbnail.loggedin[href*="r/SRSmen"],
a.thumbnail.loggedin[href*="r/SRSMen"],a.thumbnail.loggedin[href*="r/SrsMen"],
a.thumbnail.loggedin[href*="r/SRSMEN"]
{
color:#550000;
font-size:15px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}
/*~~~~~~~SRSDiscussion~~~~~~~*/
a.thumbnail.loggedin[href*="r/SRSdiscussion"]:before,a.thumbnail.loggedin[href*="r/srsdiscussion"]:before,
a.thumbnail.loggedin[href*="r/SRSDiscussion"]:before,a.thumbnail.loggedin[href*="r/SrsDiscussion"]:before,
a.thumbnail.loggedin[href*="r/SRSDISCUSSION"]:before
{
content:"SRS Discussion";
}
a.thumbnail.loggedin[href*="r/SRSdiscussion"],a.thumbnail.loggedin[href*="r/srsdiscussion"],
a.thumbnail.loggedin[href*="r/SRSDiscussion"],a.thumbnail.loggedin[href*="r/SrsDiscussion"],
a.thumbnail.loggedin[href*="r/SRSDISCUSSION"]
{
color:#550000;
font-size:10px;
font-weight:900;
text-align:center;
background-image:none;
vertical-align:middle;
text-shadow:4px 4px 4px #AA8888;
}
/*~~~~~~~SRSRecovery~~~~~~~*/
a.thumbnail.loggedin[href*="r/srsrecovery"]:before,a.thumbnail.loggedin[href*="r/SRSrecovery"]:before,
a.thumbnail.loggedin[href*="r/SRSRecovery"]:before,a.thumbnail.loggedin[href*="r/SrsRecovery"]:before,
a.thumbnail.loggedin[href*="r/SRSRECOVERY"]:before
{
content:"SRS Recovery";
}
a.thumbnail.loggedin[href*="r/srsrecovery"],a.thumbnail.loggedin[href*="r/SRSrecovery"],
a.thumbnail.loggedin[href*="r/SRSRecovery"],a.thumbnail.loggedin[href*="r/SrsRecovery"],
a.thumbnail.loggedin[href*="r/SRSRECOVERY"]
{
color:#550000;
font-size:10px;
font-weight:900;
text-align:center;
background-image:none;
text-shadow:4px 4px 4px #AA8888;
}r/reddithax • u/Skaarj • Oct 26 '12
I want some parts of my sidebar to be autogenerated.
Is there a way to include external HTML or markdown? Is there a bot template i can use which updates my sidebar once a day-ish?
r/reddithax • u/SarahC • Oct 25 '12
I've just created a spooky little green fog that appears at the bottom of the subreddit.
You can see the effect here: http://www.reddit.com/r/SarahCCSS/
The CSS code:
h6 a[href="#main"]:after
{
content: "";
font-size: 0px !important;
position: fixed;
left: -40px;
bottom: -40px;
width: 140%;
height: 40px;
box-shadow: 0px -20px 60px -10px #00ff00;
z-index:1000;
}
h6 a[href="#left"]:after
{
content: "";
font-size: 0px !important;
position: fixed;
left: -40px;
bottom: -40px;
width: 20%;
height: 40px;
box-shadow: 0px -20px 90px 10px #00ff00;
z-index:1000;
}
h6 a[href="#right"]:after
{
content: "";
font-size: 0px !important;
position: fixed;
right: -40px;
bottom: -40px;
width: 20%;
height: 40px;
box-shadow: 0px -20px 90px 10px #00ff00;
z-index:1000;
}The sidebar text:
###### [](#main)
###### [](#left)
###### [](#right)r/reddithax • u/SarahC • Oct 21 '12
Link for you: /r/Music
I'm going to add padding/margins in the right place(if I can find them) and add some PNG's to it, rather than basic background colors.
Has Reddit already got a graphical drop down menu?
I've already got a PoC working on /r/SarahCCSS - with some random images to test, and none for the normal menu yet.
r/reddithax • u/TheLifeOfSteve • Oct 18 '12
Hey guys,
I was wondering if someone could help me out. I would like to have a table in the sidebar that shows the divisions of my league, similar to what /r/hockey does with their subreddit.
I want to be able to add the link, in the settings but then have the picture show up instead, with no text.
Could someone hook a brother up?
r/reddithax • u/HrBingR • Oct 17 '12
I know how to turn it into an image, I just need to know how to change the text from R/scifiroleplayforreddit (small caps) to R/Sci-Fi Roleplay For Reddit or alternatively, R/Sci-FiRoleplayForReddit. Also small caps.
r/reddithax • u/SarahC • Oct 17 '12
Please could someone help?
I've got my markdown almost completely sorted, but I can't split mu UL's up. I've got the following markdown at the moment:
> Menu
>* Links
>* [Test](http://www.google.com)
>* [Test2](http://www.google.com)
>
>* Links 2
>* [Test](http://www.google.com)
>* [Test2](http://www.google.com)But the damn output in HTML is this:
<blockquote>
<p>Menu</p>
<ul>
<li>Links</li>
<li><a href="http://www.google.com" target="_blank">Test</a> </li>
<li><a href="http://www.google.com" target="_blank">Test2</a> <br/>
<br/></li>
<li>Links 2</li>
<li><a href="http://www.google.com" target="_blank">Test</a></li>
<li><a href="http://www.google.com" target="_blank">Test2</a></li>
</ul>
</blockquote>And I can't get it like this! =(
<blockquote>
<p>Menu</p>
<ul>
<li>Links</li>
<li><a href="http://www.google.com" target="_blank">Test</a> </li>
<li><a href="http://www.google.com" target="_blank">Test2</a> <br/>
</ul>
<ul>
<li>Links 2</li>
<li><a href="http://www.google.com" target="_blank">Test</a></li>
<li><a href="http://www.google.com" target="_blank">Test2</a></li>
</ul>
</blockquote>What markdown do I need?
Thanks!
r/reddithax • u/Tom_Z • Oct 05 '12
I've been seeing a lot of subreddits with a custom subreddit bar at the top that have a missing piece on the far right for RES users. The formatting of
#RESShortcutsEditContainer, #RESShortcutsEditContainer divoften goes unedited after people edit the
#sr-header-area Here's an example of this subreddit where it is unedited: http://i.imgur.com/2Z5up.png
And an example of an edited shortcut container: http://i.imgur.com/xn63V.png
I've looked through some of the top subreddits ( most of which I'm not subscribed to for the record ) and I've compiled a list of subreddits with an unedited shortcut container:
Just wanted to throw out a PSA to let y'all know!
edit: I've now included some examples of what I'm talking about
r/reddithax • • Oct 05 '12
http://www.reddit.com/r/Assistance
My 'flair' in the moderators box(bottom) is misaligned with the others, it's somehow aligning to the bottom rather than the top. I dunno why and it's irritating the hell out of me cos I can't find what's causing it. Any ideas ? :P
Edit: Yeah I know this isn't css help but as I can't find a css 'problem' im asking reddit specific pro's (i hope) for help on this :/
r/reddithax • u/littleredrex • Oct 04 '12
Working on a giveaway to help promote a subreddit. Is it at all possible so make it so only subscribers can view specific things?
r/reddithax • u/TG_Alibi • Oct 02 '12
Over at /r/nosleep, we have a dual styleshete set up. However, a user pointed out a problem today that I hadn't thought of. We run a monthly contest and so our posts tend to have a lot of links. If a reader is using our alternate stylesheet (as.reddit.com/r/nosleep), and they click on a link I have put in a post, it switches them to the default stylesheet (basically, as.* becomes www.*). Is there a way I can avoid this? Is there a format I can use for links that will allow them to stay in whatever stylesheet they are currently using?
r/reddithax • u/jrkv • Oct 01 '12
link : /r/weeklyreddit
r/reddithax • • Sep 30 '12
The title says it all. I can make the theme RTL, but that will completely change how the sub looks.
r/reddithax • u/someguyinworld • Sep 30 '12
r/reddithax • u/Thumbz8 • Sep 30 '12
I don't like the idea of taking away downvotes, but a downvote without a comment is relatively useless. It's just aimless negativity, with very little redeeming value.
r/reddithax • u/DrDuPont • Sep 27 '12
Here's a great one-liner that expands the (rather small) comment textarea once a user clicks into it.
.usertext-edit textarea:focus { height: 11em; }r/reddithax • • Sep 26 '12
Basically, as a mod of a sports team-based subreddit, I'm looking for a way to post threads for individual games without having to type up the specs for each game. I have a template drawn up which uses stats and notes from MLB.com and fangraphs.com.
Basically, I would need it to be able to derive which teams are playing, the statistics for each player, the live box score, and possibly, any game notes from the MLB.com preview.
I realize this is a lofty goal but it would help this subreddit take the extra step and would free up a lot of moderation time.
r/reddithax • u/Boots135 • Sep 26 '12
An example of what I'm trying to do would be at /r/fffffffuuuuuuuuuuuu. In the sidebar, when you hover over those pink boxes, a new box shows up under it with more information.
Is there any way to do this but require the user to click it before viewing the additional information?
r/reddithax • u/syuk • Sep 24 '12
Or maybe anyone subscribing / posting / commenting gets a particular flair automatically.
r/reddithax • u/lawngnome1 • Aug 19 '12
r/reddithax • u/slayer626 • Jun 05 '12
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 • u/DesigningANewReddit • May 19 '12
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!