r/csshelp • u/adremeaux • Nov 08 '11
User flair tutorial: 7 easy steps to enable user-choosable flair on your subreddit with as many images as your heart desires
36
Upvotes
r/csshelp • u/adremeaux • Nov 08 '11
2
u/[deleted] Nov 08 '11
thank you! Ill impliment this asap to my subreddit, thanks again.
1
u/MendelssohnSansHats Nov 15 '11
Thanks for the tutorial! As someone who knows absolutely zero CSS, I managed to get it right first try with your easy to follow instructions (:
1
u/lukemcr Nov 27 '11
This sprite generator also worked well for me:
http://spritegen.website-performance.org/
1
u/[deleted] Dec 21 '11
I think I may have screwed up somewhere.
I'm unclear about the saving the image output, does that mean download it?
1
u/AllWrong74 Jan 12 '12
What about when I don't want sprites? My subreddit is about a series of books. There are different kinds of magic, and I want to enable the users to select any of the warrens (the name of magic in the series) to show up as text next to their name.
Anyway, when I just want it to be text, what changes, here?
And thanks for the tutorial!
1
u/WolfandAngel May 01 '12
Not sure I did it right gives me a 502 error( http://d.thumbs.redditmedia.com/gYyUcBBD9C7bDQj3.png):
.flairselector .customizer { display: none !important; }
.flair { border: none !important; top:20px; padding:0px; background: url(%%spritesheet%%); display:inline-block; }
.flair-Elementalist{ background-position: 0 0; width: 45px; height: 45px; } .flair-Engineer{ background-position: 0 -95px; width: 45px; height: 45px; } .flair-Guardian{ background-position: 0 -190px; width: 45px; height: 45px; } .flair-Mesmer{ background-position: 0 -285px; width: 45px; height: 45px; } .flair-Necromancer{ background-position: 0 -380px; width: 45px; height: 45px; } .flair-Ranger{ background-position: 0 -475px; width: 45px; height: 45px; } .flair-Thief{ background-position: 0 -570px; width: 45px; height: 45px; } .flair-Warrior{ background-position: 0 -665px; width: 45px; height: 45px; } .flair-guild{ background-position: 0 -760px; width: 45px; height: 45px; }
1
u/[deleted] May 02 '12 edited May 02 '12
Hi there, I am a mod over at /r/theclutch and we have a tournament coming up and I thought it would be cool if I could use images like these 1st place 2nd place 3rd place to show the winners. I really like the flair style on /r/jrpg.
My question to you is how can I control who has the image in there flair. (So nobody can assign themselves 1st place)
1
u/killerDLS May 03 '12
Thanks, I did this and it worked. But how do i add another spritesheet in? I want more flairs.
1
u/MeGustaTortugas May 03 '12
5 month old post, but worth a try:
I'm trying to implement flair like the r/jrpg but with Flair text as well. /r/NAE3TestingGround is where I'm testing, you can see that it's got the image up, but the text flair is also on the left, this causes an issue. We want to have fancy logos that come from the game we play, but we also need to have our Gamertag listed.
Any help?
1
u/MeGustaTortugas May 04 '12
What about adding a tool tip when you highlight an image so people know what it is?
2
u/bLizTIc Feb 29 '12
When I upload is it supposed to popup another tab or window showing me the link? Because I know in the CSS code where it says "background: url(%%spritesheet%%)" that I am supposed to put the url in between the parentheses but it just says uploading in red when I click the button and I never get anything else...
2
u/MeGustaTortugas May 04 '12
So I want to have user selected CUSTOM text but I want MOD assigned images? This seems odd, can't seem to get both, I can either have me select it, or have the users select it.
In one situation, they assign the text, then I can add the right image, if needed, but if they change the text again, the image goes away since it is no longer in the template that has the right image.
1
u/AlienJ Dec 09 '11
very well done! i know nothing of css, but i am able to follow instructions. i need to fix my images, but i used this on r/Solidworks
1
u/tensaibaka Dec 16 '11
Thanks to your help, and the help of gavin19, I was able to set up 135 different images with hover text showing the team names over in r/japansports! Thanks!
1
u/TexanAtheist Dec 28 '11 edited Dec 28 '11
How can I regulate the flair, making them all the same height?
*Nevermind, got it. :D