{"id":185,"date":"2005-03-17T09:59:59","date_gmt":"2005-03-17T09:59:59","guid":{"rendered":"http:\/\/www.stevepugh.net\/VTT\/?p=185"},"modified":"2005-03-17T09:59:59","modified_gmt":"2005-03-17T09:59:59","slug":"more-cleverness","status":"publish","type":"post","link":"https:\/\/stevepugh.net\/VTT\/2005\/03\/more-cleverness\/","title":{"rendered":"More cleverness"},"content":{"rendered":"<p>Of course the <a href=\"http:\/\/www.stevepugh.net\/VTT\/?p=177\">technique I outlined a few days ago<\/a> isn&#8217;t limited to <a href=\"http:\/\/en.wikipedia.org\/wiki\/Favicon\">favicons<\/a>. It can be used with any appropriate image. I realised that I could make links to Live Journals look exactly like they do on <abbr title=\"Liv Journal\">LJ<\/abbr> itself by including the following in my <abbr title=\"Cascading Stylee Sheet\">CSS<\/abbr>.<\/p>\n<pre><code>#content a[href^=\"http:\/\/www.livejournal.com\/users\/\"] {\n  background-image: url('http:\/\/stat.livejournal.com\/img\/userinfo.gif');\n  padding-left: 20px; background-repeat: no-repeat;\n}<\/code><\/pre>\n<p>Still Gecko only obviously, due to the use of the <abbr title=\"Cascading Stylee Sheet\">CSS<\/abbr> 3 selector.<\/p>\n<p>What I should do is cobble something together in <abbr title=\"Word Press\">WP<\/abbr> that automatically converts <code>&lt;lj user=\"foo\"&gt;<\/code> into an appropriate <abbr title=\"HyperText Markup Language\">HTML<\/abbr> link complete with icon. This is the sort of thing that Live Press was supposed to do but (a) I could never get it working and (b) it hasn&#8217;t been upgraded to Word Press 1.5. Time to brush up on my PHP and get hacking.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Of course the technique I outlined a few days ago isn&#8217;t limited to favicons. It can be used with any appropriate image. I realised that I could make links to Live Journals look exactly like they do on LJ itself by including the following in my CSS. #content a[href^=&#8221;http:\/\/www.livejournal.com\/users\/&#8221;] { background-image: url(&#8216;http:\/\/stat.livejournal.com\/img\/userinfo.gif&#8217;); padding-left: 20px; background-repeat: [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"jetpack_post_was_ever_published":false,"_jetpack_newsletter_access":"","_jetpack_dont_email_post_to_subs":false,"_jetpack_newsletter_tier_id":0,"_jetpack_memberships_contains_paywalled_content":false,"_jetpack_memberships_contains_paid_content":false,"footnotes":"","jetpack_publicize_message":"","jetpack_publicize_feature_enabled":true,"jetpack_social_post_already_shared":false,"jetpack_social_options":{"image_generator_settings":{"template":"highway","default_image_id":0,"font":"","enabled":false},"version":2}},"categories":[16],"tags":[74],"class_list":["post-185","post","type-post","status-publish","format-standard","hentry","category-blogs","tag-css"],"jetpack_publicize_connections":[],"jetpack_featured_media_url":"","jetpack_shortlink":"https:\/\/wp.me\/p1fxq5-2Z","jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/posts\/185","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/comments?post=185"}],"version-history":[{"count":0,"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/posts\/185\/revisions"}],"wp:attachment":[{"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/media?parent=185"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/categories?post=185"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/stevepugh.net\/VTT\/wp-json\/wp\/v2\/tags?post=185"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}