?

Log in

No account? Create an account

Previous Entry | Next Entry

Comment indent

  • May. 29th, 2009 at 11:08 AM
Me again :( I'm sorry to bother you once more but as obvious I do have a question.

Is it possible to stop the indent of comments after a certain amount for Expressive?

I found this for Flexible Squares but it doesn't seem to work for me. It works until I add #4 to my theme layer and then I always get errors. Since I have clue what compiling errors mean I'm helpless.


Error compiling layer:
Compile error: line 1330, column 41: Unknown property
  S2::NodeVarRef, S2/NodeVarRef.pm, 171
  S2::NodeVarRef, S2/NodeVarRef.pm, 151
  S2::NodeTerm, S2/NodeTerm.pm, 174
  S2::NodeTerm, S2/NodeTerm.pm, 66
  S2::NodeSum, S2/NodeSum.pm, 65
  S2::NodeSum, S2/NodeSum.pm, 64
  S2::NodeSum, S2/NodeSum.pm, 64
  S2::NodeSum, S2/NodeSum.pm, 64
  S2::NodeSum, S2/NodeSum.pm, 64
  S2::NodeSum, S2/NodeSum.pm, 64
  S2::NodeSum, S2/NodeSum.pm, 64
  S2::NodeSum, S2/NodeSum.pm, 64
  S2::NodeSum, S2/NodeSum.pm, 64
  S2::NodeSum, S2/NodeSum.pm, 64
  S2::NodeSum, S2/NodeSum.pm, 64
  S2::NodeSum, S2/NodeSum.pm, 64
  S2::NodeSum, S2/NodeSum.pm, 64
  S2::NodeSum, S2/NodeSum.pm, 64
  S2::NodeSum, S2/NodeSum.pm, 64
  S2::NodeSum, S2/NodeSum.pm, 64
  S2::NodeTerm, S2/NodeTerm.pm, 76
  S2::NodeTerm, S2/NodeTerm.pm, 66
  S2::NodeExpr, S2/NodeExpr.pm, 46
  S2::NodePrintStmt, S2/NodePrintStmt.pm, 55
  S2::NodeStmtBlock, S2/NodeStmtBlock.pm, 108
  S2::NodeFunction, S2/NodeFunction.pm, 230
  S2::Checker, S2/Checker.pm, 374
  S2::Compiler, S2/Compiler.pm, 34
  
Context
1326:     """
1327: 
1328:     /* Comments with connecting lines */
1329:     .commenttrace_x {
1330:       border-top: 1px solid $*border_color;
1331: } 1332: .commenttrace_y { 1333: border-left: 1px solid $*border_color; 1334: }


Thanks in advance!

Comments

( 8 comments — Leave a comment )
av8rmike
May. 29th, 2009 01:02 pm (UTC)
Yeah, you can't just copy code intended for one layout layer into another; it won't compile properly. There are other ways to affect comment indenting that don't involve layer code, but it may not be the same effect you're looking for.
flummy_pumpkin
May. 30th, 2009 09:10 am (UTC)
Would have been too easy huh -sigh- Well as long as it will stop indenting not immediately but after let's say 10 comments it will be great. What ways do you mean?
stivewaugh
Jun. 18th, 2009 05:33 am (UTC)
yaa right its not possible to copy code intended for one layout into another..and ya it wont complete properly..
what should i do please tell me?
waiting for reply

---------
stive
---------
Fort Lauderdale Real Estate--Fort Lauderdale Real Estate
flummy_pumpkin
Jun. 18th, 2009 07:00 am (UTC)
You want to do the same? Cool two is always better :D I still do not know what to do if you find something I'd be grateful to hear it :)
av8rmike
Jun. 24th, 2009 01:51 pm (UTC)
I think I figured out how to do this, if you're still interested. But I've had so little time lately, I didn't completely figure out how to duplicate all the tweaks in the s2flexisquares post.
flummy_pumpkin
Jun. 24th, 2009 06:11 pm (UTC)
Wow that would be most awesome :) Surely I am, I am too stupid to figure out myself, so every brain is more than welcome :D
But of course take your time, as long as you do not forget :D
av8rmike
Jun. 25th, 2009 03:40 pm (UTC)
OK, here's what I came up with. First, you'll have to delete the EntryPage::print_comments() function in your theme layer that's from the Flexible Squares tutorial, because that one isn't going to work.
Copy the EntryPage::print_comment(Comment e) function from the Expressive source layer into your theme layer.
Find this line in that function:
    var string indent = ($e.depth - 1) * 25 + "px";
and replace it with this:
    var int depthmax = 4;
    var string indent = ($e.depth < $depthmax) ? ($e.depth - 1) * 25 + "px;" : ($depthmax - 1) * 25 + "px;";
Change the highlighted 4 to whatever number you want to be the maximum depth. Let me know if you have any problems.
flummy_pumpkin
Jun. 25th, 2009 06:20 pm (UTC)
You're my personal hero :) It works great, thank you so much, really -bows-
( 8 comments — Leave a comment )

Latest Month

March 2016
S M T W T F S
  12345
6789101112
13141516171819
20212223242526
2728293031  

S2 Help Communities

Tags

Powered by LiveJournal.com
Designed by chasethestars