Comment indent

May 29, 2009 11:08

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 ( Read more... )

comments, s2:theme layer, advanced

Leave a comment

Comments 8

av8rmike May 29 2009, 13:02:59 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.

Reply

flummy_pumpkin May 30 2009, 09:10:46 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?

Reply

stivewaugh June 18 2009, 05:33:23 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

Reply

flummy_pumpkin June 18 2009, 07:00:33 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 :)

Reply


av8rmike June 25 2009, 15:40:50 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.

Reply

flummy_pumpkin June 25 2009, 18:20:04 UTC
You're my personal hero :) It works great, thank you so much, really -bows-

Reply


Leave a comment

Up