Once a user adds a comment to a node, the link to "Add new comment" disappears, and only the option to reply to existing comments remains.

Problem occurs in FF3 mac/lin/win and IE6/7.

Cause:
- as of the D7 version of Garland, comments are displayed through the $comments var in node.tpl.php
- $comments now placed inside "node" div causing it to partially cover the preceding "links" div.

Solution 1: css fix
- in garland/style.css, line 711: change "margin: -1.5em -25px 0;" to "margin: 1.5em -25px 0;"
- patch provided (d7-garland-comment-links.patch)

Solution 2:
- Place $comments outside of the "node" div to avoid the overlap.
- This would also make it consistent with the D6 version again, where comments are rendered outside the "node" div.
- patch provided (d7-garland-comment-links-node-tpl.patch)

I'm providing 2 patches since I'm not sure which solution is prefered. Personally, I prefer the second solution for consistency reasons (with Garland D6) and because I don't like the comments being part of the "node" div.

Both patches tested on FF3 mac/lin/win and IE6/7.

Comments

Status: Needs review » Needs work

The last submitted patch failed testing.

jpoesen’s picture

Status: Needs work » Needs review
StatusFileSize
new516 bytes
new526 bytes

The original patches weren't created in the drupal root directory.
Re-rolled both.

mr.baileys’s picture

Issue tags: +Quick fix

+1 for resolving this via markup (node.tpl.php). Reviewed the node patch (d7-garland-comment-links-node-tpl-2.patch) and found no problems, applied the patch and works as expected (using FF3 on Win).

Testbot doesn't seem to thrilled about it though (re-test requested to see if this was a fluke)

puradata’s picture

+1 for resolving via markup (node.tpl.php)but both patches work fine using ff3 on windows

jpoesen’s picture

StatusFileSize
new526 bytes

Resubmitting the first patch (d7-garland-comment-links-node-tpl-2.patch) since it's stuck in 're-testing' status.

jpoesen’s picture

StatusFileSize
new516 bytes

resubmitting the other patch as well to make testbot happy.

damien tournoud’s picture

- The default node.tpl.php also has the comment inside the node wrapper. I believe that this is the way to go.
- One other issue is that comment-wrapper.tpl.php now always output a

wrapper, even if there are no comments inside, we should fix that too.
- Can you post some screenshots to make clear what the problem is?

damien tournoud’s picture

Status: Needs review » Needs work
johnalbin’s picture

One other issue is that comment-wrapper.tpl.php now always output a wrapper, even if there are no comments inside, we should fix that too.

See #372414: comment-wrapper.tpl.php outputs empty div when no comments exist

The CSS solution looks the best to me. Moving the $comment variable is something we could consider in #382870: Update and Polish Node Template Output, but not in this issue.

jpoesen’s picture

Status: Needs work » Needs review

Since both the default node.tpl.php and garland's node.tpl.php have $comments inside the node wrapper, I agree the css solution looks like the best way to go.

Provided patch http://drupal.org/node/371649#comment-1389974 still works correctly when applied to HEAD.

Re-checked in FF3/Mac, FF3/win, Safari, IE6/7

kjay’s picture

Have reviewed the first patch (applies a CSS repair). The patch applies well and works in FF3.0.10/Mac and Safari 3.2.3/Mac - no IE available just not to check further.

Since I can't see why there needed to be a negative top margin on the #comments block anyway I would say this is the right way to fix this.

Will check again more thoroughly when with a PC

catch’s picture

Status: Needs review » Reviewed & tested by the community
StatusFileSize
new513 bytes

Re-attaching the CSS patch - if we want to change markup let's do that in another issue. No credit on commit please, just really hard to know which patch is being referred to which and want the test bot to have chance to check if this still applies.

Status: Reviewed & tested by the community » Needs work

The last submitted patch failed testing.

quicksketch’s picture

Status: Needs work » Needs review
StatusFileSize
new494 bytes

Another reroll, from the Drupal root.

catch’s picture

Status: Needs review » Reviewed & tested by the community
webchick’s picture

Status: Reviewed & tested by the community » Fixed

Committed to HEAD. Thanks!

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.

silverwing’s picture

Issue tags: -CSS, -Quick fix

Closing comments (spam)