Yeah, the developers introduced some weirdness in people's custom theme layers when they changed the way "full" and "collapsed" comments printed. I don't suppose you remember what you changed with your EntryPage::print_comment() function?
I'm having this same problem and am either not understanding the fix or something else is wrong with my layout. Can you give me a hand (since you seem to know what you're doing)?
I changed it back since it hadn't fixed the problem and I didn't want to screw up anything.
I found the line with: if (not $e.full) { And I removed the sections you recommended in this comment, but the problem persisted. Any help you can give is appreciated since this problem is pretty much intolerable.
OK, gotcha. You also need to remove the section towards the end of the function that I specified in the same comment, otherwise it will keep printing doubles.
OK, there are a lot of changes that you'll need to make because that code you're using is pretty out of date. Rather than try to list them individually, I'll just give you a big segment to find & replace. The part to remove:
function EntryPage::print_comment_full(Comment e) { var string barc = "comment-" + ($e.depth % 2 ? "odd" : "even"); var string screenbarc = ""; var string borderwidth = ""; if ($e.screened) { $screenbarc = "style=\"border-width: 3px; border-style: dashed\""; } var int num = 0;
var string id = $e.dom_id ? " id=\"comment-$e.talkid\"" : "";
"""
""";
The part to insert:
function EntryPage::print_comment_full(Comment e
( ... )
Thank you so much! And, yes, I've had this layout coming up on forever and am not the person who originally created it so I'm a bit lost on making changes to it.
Reply
Compiled with no errors, fixed like a boss! THANK YOU SO MUCH \o/
Reply
Reply
Reply
Reply
Reply
I found the line with:
if (not $e.full) {
And I removed the sections you recommended in this comment, but the problem persisted. Any help you can give is appreciated since this problem is pretty much intolerable.
Reply
Reply
Reply
Rename EntryPage::print_comment(Comment e) {
to EntryPage::print_comment_full(Comment e) {
Reply
Reply
The part to remove:
function EntryPage::print_comment_full(Comment e) {
var string barc = "comment-" + ($e.depth % 2 ? "odd" : "even");
var string screenbarc = "";
var string borderwidth = "";
if ($e.screened) {
$screenbarc = "style=\"border-width: 3px; border-style: dashed\"";
}
var int num = 0;
var string id = $e.dom_id ? " id=\"comment-$e.talkid\"" : "";
"""
""";
The part to insert:
function EntryPage::print_comment_full(Comment e ( ... )
Reply
You're the hero of the day! \o/
Reply
Leave a comment