Webstuff
[personal profile] matgb
One of the things I like about journalling platforms based on the LJ codebase is the easy shortcut for usernames that'll link to both the blog itself and the profile, with that nice little logo for the profile link.



LJ

DW

Mine

User

LJ User Icon

DW User Icon

Little Colin Baker

Community

LJ Comm Icon

DW Comm Icon

Little Tardis!

Feed

LJ Feed Icon

DW Feed Icon

Little Dalek!

Others
Little Peter! Little Mr Flibble! LJ userbloke
Thing is, the nice little logo doesn't always suit the style of the place it's appearing in, or the colour scheme of the layout. So, given I know how to replace them, I thought I'd update the code and add some new tweaks. As always, CSS hackery, playing with CSS is both fun and easy, I highly recommend it for people of a web-savvy nature.

I have, naturally, chosen a Doctor Who theme to my replacement images—feel free to replace them with something else if you wish. I forget where I got the original code for to do this, it's heavily updated now, but I'd like to credit the author, so if you know, gimme a link?

Anyway. Dreamwidth users should go to the DW Custom CSS page and paste the code into the big box.

Livejournal users should go to the LJ Custom CSS page and, go on, have a guess...

Yup, copy and paste the code into the box. One little caveat—it's replacing images taken from l-stat.livejournal.com, if LJ changes their CDN again, then the URL might change and the code'll stop working, I'll update it as soon as I know to, it's likely to be a simple change the letter hack (it used to be p-stat.*)

The Colin icon is taken from [livejournal.com profile] allah_sulu's Ten Doctor's. If you want to use different images, then replacing the image location is fairly easy, just make sure you also change the dimensions in the 'padding' area, the first two are effectively height and width.

I deliberately haven't done one for OpenID accounts, I might change my mind on that but I think the OpenID logo ought to be got used to. I'm considering a DW staff replacement, but not sure what I should go for (either Five or appeal a bit). Haven't bothered with sponsored Comms, probably ought to, not doing so means the image won't show up at all.

As always, feel free to link or comment with questions, etc.
Date: 2009-05-04 07:18 pm (UTC)
Bonfire of the Vanities
From: [personal profile] mendi
Thanks for the invite Mat - you didn't send me a code, does that mean you technically own my journal - or was the code in the Link? (I'm a complete techno simpleton I'm aftraid)
Date: 2009-05-04 10:02 pm (UTC)
Pseudocode for "If nothing else, remember this."
From: [personal profile] triadruid
Snazzy post!
Date: 2009-05-05 12:11 am (UTC)
Grammar Nazi
From: [personal profile] miss_s_b
Your spelling is AWFUL! :P

And your punctuation.
Date: 2009-05-05 06:53 am (UTC)
pic#175803
From: [identity profile] mapp.livejournal.com
Trouble is, while I like the Tardis and the Dalek icons, I don't really look at either of them and see "Community" and "RSS Feed" respectively...
Date: 2009-05-05 12:33 pm (UTC)
From: [identity profile] paulatpingu.livejournal.com
(This is mostly to test Open ID posting)

They're nice, but I think now that the RSS logo is pretty much a Standard, changing it to something else is a bit confusing. I wouldn't have thought to look there if I was going to subscribe to your Journal/Blog/Width/Whatever.

But it's cool that you can do it, and that's worth praising.
Date: 2009-07-15 12:59 am (UTC)
rainbow love
From: [personal profile] ardisia
I've tried adding this code to my css in my theme layer on my LJ but it wont compile.
I've put the message behind the cut:



S2 Compiler Output at Wed Jul 15 00:49:54 2009
Error compiling layer:

Compile error: line 216, column 32: Unexpected token found. Expecting: [TokenPunct] = ;
Got: [TokenIdent] = http
S2::Node, S2/Node.pm, 144
S2::NodeSet, S2/NodeSet.pm, 42
S2::Layer, S2/Layer.pm, 53
S2::Compiler, S2/Compiler.pm, 27


Context

212: /* so that IE users will still see an image */
213: background-image: url(http://i447.photobucket.com/albums/qq198/ardisia1/user_icons/user_green.png);
214: padding: 16px 16px 0 2px !important;
215: }
216: .ljuser img[src="http://l-stat.livejournal.com/img/userinfo.gif"] {
217: background-color:transparent;
218: background-image: url(http://i447.photobucket.com/albums/qq198/ardisia1/user_icons/user_green.png);
219: padding: 0px 0px 0 2px !important;
220: }



Hope you can give me a clue why it's not working. I really want to get this going. Ta!!!

Edited Date: 2009-07-15 01:02 am (UTC)
Date: 2009-07-15 02:19 pm (UTC)
george - gnomes
From: [personal profile] ardisia
Thanks Matgb. I've got it working that way and renamed my user layer.
Now I just need to get the user layer working with the theme layer.

Neat code though - many thanks.

PS. The wizard compile just added three back slashes before and after the attribute selectors URL, so once the code is there it can be cut and pasted into the theme layer and will compile fine.

example:
.ljuser img[src=\\\"http://l-stat.livejournal.com/img/userinfo.gif\\\"] {
background-color:transparent;
background-image: url(http://i447.photobucket.com/albums/qq198/ardisia1/user_icons/user_green.png);
padding: 16px 16px 0 0px !important;
}


 
Edited Date: 2009-07-15 03:03 pm (UTC)
Anarchist

British Liberal, infrequent activist, atheistic feminist, occasional social media consultant, house husband and stepdad. Amateur baker. Male.

Known to post items of interest on occasions. More likely to link to interesting stuff. Sometimes bothers to talk about stuff he's done. Much more likely to post recipes for good food than in the past. Planning on getting married, but not expecting it to happen soon. Enjoying life in Yorkshire.

Likes comments. Especially likes links. Loves to know where people came from and what they were looking for. Mostly posts everything publicly. Sometimes doesn't. Hi.

January 2010

S M T W T F S
     12
3456789
10111213141516
17181920212223
24252627282930
31      

Free form text box

Oh look, more free space to make writtings in.

Expect Something of substance when I've figured out what to put here.

Dreamwidth

Most Popular Tags

2000ad abortion add tags adrian sanders adverts andy hamilton arthur c clarke atheism barack obama battlestar galactica bbc birthdays blasphemy bloggerheads blogging bnp books bradford brighouse camden car censorship charles stross christian voice coffee comics conference cooking cool critical miss css deepest sender del.icio.us devon doctor who doomtown dreamwidth dvds dw:layout economics election elections electoral reform email equality evolution exeter facebook fairytale of new york family fantastic films weekend films filth firefly firefox firefox extensions food freedom friends funny games germany gmail google google bomb gordon brown goth greece harry potter hazel blears history icons id cards ie7 ill indiana jones insomnia iraq jasper fforde jennie jerry springer job hunt john scalzi joss whedon kohit labour labour party leadership election leeds lib dems libel liberal conspiracy life life on mars life: 2004 life: 2005a life: 2005b life: 2006a life: 2006b life: 2007a life: 2007b life: 2008 life: 2009 linkspam linkspams livejournal lj friends lj layout lj memes lj support lj tricks lj2wordpress lj:features local london lush cosmetics markets mass lone protest me memes microsoft mike mobile post music mysociety myspace nadine dorries new years news noise now show obits old harry's game online games parliament petitions picspam pirates plans political compass politics politics: old polls quizzes quotes radio rants reform religion research reviews richard dawkins robin hood schillings science science fiction scott lynch sex sexism showing off shrub sir terry pratchett six apart socpa spam steph swainston stephen green stupidity sup taktix terrorism tfl the pogues the register thoughtplay to do torbay torchwood travel tv twitter twitterings us politics usability vince cable warlord ccg warren road web design webcomics webstuff wedding who should you vote for wifi wikipedia wordpress work wpts xmas yorkshire youtube
Page generated Feb. 9th, 2010 11:26 pm
Powered by Dreamwidth Studios