Hacking my 1337 layers: Dreamwidth Layout work
2010-Jun-14, Monday 01:12The joys of blogging using a completely new platform with a development team that really want to make it work, instead of just make it sellable is palpable.
Dreamwidth is, still, not a finished, ready-for-general-release product. That's fine, it's getting there. What's really good though, is that the team behind it are really keen on getting the documentation up to speed, and are generally pleased when you go point out something that isn't working right.
After a lot of headscratching, and a bit of trial and error, I've finally got the sidebars to my main layout almost looking right (at least on this browser, on this laptop, with my preferred default settings). Setting the margin for some of the lists to -12px was a daft solution, but until I can figure it out better, it's a working solution.
So, if you're comfortable with adding stuff to DW layers (probably not going to work on LJ), then this will almost certainly be useful for you. Instead of putting the page title tags out as Username | PageTitle, I've changed it so that on the main recent entries journal page, it displays JournalTitle | Subtitle (ie, for me, Mat Bowles | Whatever I've Picked This Week), but on other pages it displays PageTitle | JournalTitle. When we've figured out what's wrong with the above bug, I'll update it to do even cooler stuff on the Reading page, but...
weirdoeslucky lucky people, I am going to build a pale background layout as well. This will deliberately not define fonts, background colours, etc, so it will only display your browser defaults (you can change them on any decent browser).
Best bit? I've got this into the base layout code (for my main layout) as a link. At the bottom of this entry on DW, you'll see some extra links, Dark, Pale and Print. Dark gets you back here, Pale takes you to the new layout, and Print takes you to a completely unformatted page. Theoretically, all internal links on the Pale layout will maintain those settings, including if you comment. This is useful.
Lastly, they've added a new feature in, when I post an entry here, the LJ copy will link here, and show hoe many comments are here. But these days I allow comments on the LJ backup, but there's no way of getting from here directly there. Until now. But, the display was, well, FUGLY. Fixed that too, custom CSS box, copy/paste, change the colours to suit.
It's all, naturally, still being tested, but I thought I'd post and let people know that a) I'm still alive and b) I'm trying to be useful.
I just felt like sharing that.
(feedback on the code, suggested improvements, bug reports, etc very very welcome. Pointing out that the pale layout is barely personalised and needs a lot of work will be a statement of the already known, I'm looking for unknown unknowns out of preference...)
Dreamwidth is, still, not a finished, ready-for-general-release product. That's fine, it's getting there. What's really good though, is that the team behind it are really keen on getting the documentation up to speed, and are generally pleased when you go point out something that isn't working right.
After a lot of headscratching, and a bit of trial and error, I've finally got the sidebars to my main layout almost looking right (at least on this browser, on this laptop, with my preferred default settings). Setting the margin for some of the lists to -12px was a daft solution, but until I can figure it out better, it's a working solution.
No point writing something if people can't find it
More importantly, I've developed stuff. Anyone that's read my ramblings online for awhile knows that I take usability and search presence fairly seriously. There's no point in writing something for a general audience if people that are interested can't find what you've written. Dreamwidth's default settings for page TITLE tags were, well, a bit weird, and broke basic usability and SEO rules. So I've been hacking. My early attempts simply didn't work, but a few days ago I simply swapped two lines of code, and now it almost works completely properly (see above bug link though).So, if you're comfortable with adding stuff to DW layers (probably not going to work on LJ), then this will almost certainly be useful for you. Instead of putting the page title tags out as Username | PageTitle, I've changed it so that on the main recent entries journal page, it displays JournalTitle | Subtitle (ie, for me, Mat Bowles | Whatever I've Picked This Week), but on other pages it displays PageTitle | JournalTitle. When we've figured out what's wrong with the above bug, I'll update it to do even cooler stuff on the Reading page, but...
against a dark background
Now, of more general use, I know a lot of people don't like reading entries against a dark background with light text. I'm the complete opposite for this; if I spend too much time looking at pale background sites, I start to get a headache, hence my preferred layout. So, for youBest bit? I've got this into the base layout code (for my main layout) as a link. At the bottom of this entry on DW, you'll see some extra links, Dark, Pale and Print. Dark gets you back here, Pale takes you to the new layout, and Print takes you to a completely unformatted page. Theoretically, all internal links on the Pale layout will maintain those settings, including if you comment. This is useful.
Lastly, they've added a new feature in, when I post an entry here, the LJ copy will link here, and show hoe many comments are here. But these days I allow comments on the LJ backup, but there's no way of getting from here directly there. Until now. But, the display was, well, FUGLY. Fixed that too, custom CSS box, copy/paste, change the colours to suit.
It's all, naturally, still being tested, but I thought I'd post and let people know that a) I'm still alive and b) I'm trying to be useful.
This layout is, officially, 1337
But more importantly, hover over that 'Dark' link. Look at the S2 ID number. Everytime someone creates a new layout on DW, it gets assigned a new, sequential, number. There are loads and loads and loads of them. But those of us who signed up to the site really early, well we've got styles with low numbers. Mine isn't that low. But it is pretty cool. S2 layout #1337. This layout is, officially, 1337.I just felt like sharing that.
(feedback on the code, suggested improvements, bug reports, etc very very welcome. Pointing out that the pale layout is barely personalised and needs a lot of work will be a statement of the already known, I'm looking for unknown unknowns out of preference...)
no subject
Date: 2010-Jun-14, Monday 06:47 (UTC)The black box under your user icon for the post, which contains your username, does not line up with the user icon, think it's about 2 or 3 pixels out, which is enough to be noticable!
Dark / pale / print options: not at the bottom of the page for everyone. It shows in the toolbar at the top if you have that enabled, I can choose to show your version or light or in my layout style.
The crossposts thing is nice and all right-aligned, but the tags line under it is broken, the word tags appears to be left-aligned while the tags themselves right-aligned.
I'm using FF 3.6.3, widescreen.
no subject
Date: 2010-Jun-14, Monday 08:42 (UTC)Icon location, and that of the username below it, has been borked for ages, need to completely redo it; the official styles now have a way to place it properly that works, need to copy that code, unfortunately they prefer icon as part of post, I prefer it as part of header, probably better to override that than try to move it back up.
The layouts in the toolbar aren't exactly the same, and most people miss them, yes it's got my style, yours and style=light, but hasn't got my pale layout, and doesn't show for everyone, especially not logged out readers, which is what matters (especially for Jennie)
And yes, I wanted the crosspost data to show exactly as per tags, but it wouldn't position correctly, but tags work in a different way and I haven't fixed that hack yet. I will do, but...
Danke.
no subject
Date: 2010-Jun-14, Monday 08:51 (UTC)no subject
Date: 2010-Jul-04, Sunday 10:51 (UTC)I don't suppose you happen to know if it's possible to change the head_title and page_title depending on whether the person is viewing a particular tag? Specifically, I'd like this page to have "Reading Chinese Menus" in both the <title> and the main page heading (but for http://kake.dreamwidth.org/ and other tag views to stay as they are).
no subject
Date: 2010-Jul-04, Sunday 11:23 (UTC)I will do some more digging, I have more layout goodness planned (the share this links at the bottom of each post are current project).
no subject
Date: 2010-Jul-04, Sunday 19:18 (UTC)no subject
Date: 2010-Aug-29, Sunday 16:05 (UTC)no subject
Date: 2010-Aug-29, Sunday 20:00 (UTC)One thing though, you need to define the font colour as well as the background colour in that box, or even better, give the thing a class and not do any inline styling.
Currently it shows in my layout as white text on pale background. Ideally you should never inline style but do everything with CSS in your layout, but if you do inline stuff it needs to be complete ;-)
no subject
Date: 2010-Aug-30, Monday 21:10 (UTC)no subject
Date: 2010-Sep-05, Sunday 14:03 (UTC)no subject
Date: 2010-Sep-05, Sunday 15:25 (UTC)Ideally, the site would have some standard classes for stuff like footers and images in the base stylesheet that can be overridden by themes. I keep meaning to suggest it, but I don't know how big in scope to make it.
no subject
Date: 2010-Sep-14, Tuesday 23:57 (UTC)I don't really want to decide that someone's overriding of my style is their problem, since people may need to do this for accessibility reasons — not everyone finds dark text on a light background comfortable to read. I don't want to take away visual cues from someone who's already having to change things to make them more readable. So I've gone back to inline styling for now, though I might experiment at some point with having some of it in the stylesheet and some of it inline.
I would love to have a standard class for footers — also for related posts, which I'm currently hacking around by hijacking the tags div.
no subject
Date: 2010-Oct-07, Thursday 02:33 (UTC)(to fill in those who may have missed Joseph's posts, I lifted almost every word in my last paragraph from him just to highlight how ridiculous his arguments were)
no subject
Date: 2010-Oct-07, Thursday 14:06 (UTC)But "this is hard to do" or "I don't understand this" should not translate into "you're all lying to me you fanboys and I don't have the time".
It's also worth noting that, on other blog platforms, if you want to edit the base CSS for your layout, you actually normally edit the actual CSS file, so you see all of it. On DW/LJ, you apply new CSS, which is called last and thus overrides the default CSS, but looking at the actual CSS means going into the Advanced section, which has a "here be dragons" warning.
I do need to both write a how-to and sort the UI and taskflow. Glad it's of use and working though, does look quite nice, like your Favicon as well, keep meaning to add mine but haven't got around to it...
no subject
Date: 2010-Oct-08, Friday 01:04 (UTC)I'm so used to working that way, and I'm so used to putting the !important declaration after half the custom CSS I add, to override the default style sheet(s) on LJ or DW, that I almost wonder what it would be like to work any other way, *but*...but for someone who doesn't (or doesn't know how) to use browser-based live CSS editing tools, I can see how you might be pretty much up the creek without a paddle.
edit...Just for it's worth, did you know your implementation of the tab name/title bar is actually better than that of most websites? To remind myself how much more awesome yours is, I went to TechCrunch a few moments ago and clicked through to the top post, which was:
http://techcrunch.com/2010/10/07/calacanis-facebook/
When you visit it directly, all you see in the title bar is the post title and the browser name. Click through to any other post on that site, same thing.
no subject
Date: 2012-Jan-15, Sunday 11:09 (UTC)