Log in

No account? Create an account
everyone loves a wee sombrero
[solved] title= Adding link to commentbar
June 28th, 2007 @ 11:58 pm
This is hard to explain, but let me try the best I can. Is it possible to add a link to the comment bar that would work similiar to the permalink, but maybe show the layout in a different style? For example, it would show any entry in ?format=light, or ?s2id=numberofstylehere ?
( Post a new comment )
Veronika: [geek] lj codingkentucka on June 29th, 2007 02:08 pm (UTC)
absolutely. hand over your visible theme layer (or fear my wrath) and let me mess up your print_entry() ;D

I'll give you an edited version of the commentbar-link tutorial then.

would you like this ?format=light or ?s2id=###### link to be configurable (if you'll change it every now and then)? or just have it fixed to a certain style?
should this special link replace the permalink? or should it be an additional option?
everyone loves a wee sombrerobibliotech on June 29th, 2007 04:06 pm (UTC)
Ooh, I was kinda expecting a "No, that's not possible"! Thank you! My theme layer's here.

If it could be configurable, that would be great. I'll probably use ?s2id=14101189 for the link, but it would be great if I could switch between styles, or even go back to ?format=light if I wanted. And if it could be an option in addition to the permalink, that would be my first preference.
Veronika: [geek] lj codingkentucka on June 30th, 2007 01:03 pm (UTC)
since I can't post the whole code in a comment (damn character limit), here's the updated tutorial
everyone loves a wee sombrerobibliotech on June 30th, 2007 03:50 pm (UTC)
Worked perfectly! Thank you!
Veronika: [geek] lj codingkentucka on June 30th, 2007 04:25 pm (UTC)
yay it worked! *g* welcome.
Anjali.anjak_j on June 29th, 2007 05:50 pm (UTC)
You know, it occurs to me that this should be a standard LJ feature in any scheme - a button on all entries that is either ?format=light or ?style=mine (or S2id)...

They should call it the de-fugly button...

Speaking of which, would this also be applied to the f-list???
everyone loves a wee sombrerobibliotech on June 29th, 2007 05:53 pm (UTC)
I know if you have ?style=mine selected somewhere on the profile options (unless they moved it around), anytime you click on a comment link or #comments link on anyone's journal from your friends page, it automatically shows up in ?style=mine (for which I am very grateful). I get the feeling that LJ thinks that people just use ?format=light for mobile phones and the like, but it's very useful for people who just want the text and not the extras.
Anjali.anjak_j on June 29th, 2007 06:43 pm (UTC)
Aye, but mostly I'm not bothered by other people's layouts. It's just the occasional cretinous few who have no idea about colour whatsoever and who have layouts that are just retina-burning. I don't actually like using ?style=mine unless absolutely necessary - it confuses me when I go to post something and find my handy list of LJ links are missing, usually leading to a 'WTF' moment until I realise that I'm actually poking around in someone else's journal.

I love ?format=light. So handy for reading large amounts of stuff. I have to be honest, even if I generally like someone's layout, if it is light text on dark and they post a long piece of fic, that goes straight in there. Also great when I take the laptop outside and don't get a particularly good signal.
everyone loves a wee sombrerobibliotech on June 29th, 2007 06:44 pm (UTC)
I'd like it more if they mentioned ?format=light as an option along with ?style=mine--I'd never even heard of the former until a few months ago, and it really is easier on the eyes sometimes--especially for large blocks of text.
Anjali.anjak_j on June 29th, 2007 06:51 pm (UTC)
I saw it on the entries of one of the SGA fanfic BNFs when they posted fic. However, I couldn't recall which writer or what the code for it was until I got back online about 6 months ago.

I still have the post-it with it written on stuck to my monitor even though it is burnt into my brain now...