[personal profile] matgb
In my Monday post about icons, I gave replacement codes for the 5 icons that DW commonly uses as well as the 3 that LJ commonly uses. I missed one that DW uses, namely direct links to LJs using the new custom site code.

If you didn't know, rather than the old [lj-user="matgb"] code, DW has replaced it with [user name="matgb"], ie removing the LJ bit given, obviously, it's not on LJ. But cunningly, they've also added another option, if you code [user name="matgb" site="livejournal.com"] it will link to matgb on LJ, not DW. And it'll take the LJ usericon from the LJ server as well.

Which would be cool. Except it doesn't auto-discover whether it's a person, community or feed. So my post Tuesday mentioning the Russian President's blog displayed it as a person, not as a community. Which I think is slightly unintuitive and misleading. So I've fixed that.

I've added another bit of code for DW so that off-site links to LJs instead display the LJ pencil, to show it's something on LJ, not a bloke regardless of what it is on LJ. So, if you look at this post on DW using my style, it'll show the little pencil when I repeat the link. Look: [livejournal.com profile] blog_medvedev. I suspect I could keep doing these for ages—if you regularly link to IJ, WP, JF or whatever people, y'know what? Sort your own code out, ask me if you need help.

Date: 2009-05-07 04:54 pm (UTC)
From: [personal profile] rho
There are plans afoot to make it so that (for instance) commuities on LJ get the right link. I think the basic plan is that the first time an LJ username is encountered, we look it up to see what type of account it is, then store that in a database somewhere so that for all subsequent calls we can just use the right icon without having to hit up LJ again. Blah blah standard disclaimer etc.
hollybee: Green Background with a flower, butterfly, and the word Spring (Default)

Date: 2009-05-07 05:26 pm (UTC)
From: [personal profile] hollybee
Hey Mat...

I gave your code a go in mine to see what all you did and how it works, but it gives me a large square with the LJ pencil showing repeatedly. Any ideas?

Date: 2009-05-07 09:45 pm (UTC)
From: [personal profile] drjon
That's bloody awesome. Well done.
bard: While playing Shylock (Default)


Date: 2009-05-10 02:44 pm (UTC)
From: [personal profile] bard
This is off to one side a bit:

Aha! I believe I may have found my syndication fairy? Complimentary, all the more so since it's you! Glad to have found you on here.
matgb: Artwork of 19th century upper class anarchist, text: MatGB (Default)

British Liberal, house husband, school play leader and stepdad. Campaigner, atheistic feminist, amateur baker. Male.

Known to post items of interest on occasions. More likely to link to interesting stuff. Sometimes talks about stuff he's done. Occasionally posts recipes for good food. Planning to get married, at some point. 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.

Mat Bowles

Expand Cut Tags

No cut tags

October 2015


Stuff and nonsense

I'm the Chair of the Brighouse branch of the Liberal Democrats & the membership secretary for Calderdale Lib Dems and run the web campaign for the local candidates. I have a job, a stepdaughter and a life.

Here's the legal text:
Printed by Dreamwidth LLC, Maryland, USA. Published and promoted by Mat Bowles (Liberal Democrat) of Brighouse, West Yorkshire.

Page Contents

Popular Topics

Designed by

Powered by Dreamwidth Studios
Page generated Oct. 19th, 2017 11:45 pm