Log in

No account? Create an account
livejournal S2 style system blue
LiveJournal's S2 Styles
Hi all, I have quite a few entries with 90+ comments on a… 
Jul 4th, 2011 - 08:26 pm
The Right Stuff
Hi all,

I have quite a few entries with 90+ comments on a journal of mine. I've found a nifty comment collapse thing to apply to Flexible Squares, but what'd I'd really like to do is simply append ?view=flat to the links that lead to the comments page. Is there a way to do this? It works perfectly for what I'm using the journal for but I wish I could turn it on by default because the amount of comments is stretching the layout.

Thanks for your help!
Jul 6th, 2011 - 02:40 pm (UTC)
The only way to edit the links in that way is through a theme layer, which requires a Paid account.
Jul 7th, 2011 - 02:15 am (UTC)
The journal I'm talking about (it's not this one) has a paid account - I'm glad to hear that it's possible through theme layers. Can you point me in the right direction of how to do that? Thank you!
Jul 7th, 2011 - 01:17 pm (UTC)
I would look for a tutorial in s2flexisquares on how to set up a theme layer, as it's pretty well documented there. Once you get it done, here's how to change the "read comments" link:

function CommentInfo::print_readlink {
    var Page p = get_page();
    print safe """<a href="$.read_url?view=flat">"""+
        get_plural_phrase($.count, $p.view == "friends" ?
                          "text_read_comments_friends" : "text_read_comments")+
Jul 8th, 2011 - 06:52 am (UTC)
That worked perfectly! I can't thank you enough!
This page was loaded Sep 17th 2019, 11:24 pm GMT.