Closed (fixed)
Project:
Drupal core
Component:
comment.module
Priority:
Critical
Category:
Bug report
Assigned:
Reporter:
Created:
8 Sep 2004 at 21:05 UTC
Updated:
30 Oct 2004 at 08:20 UTC
Jump to comment: Most recent file
If I choose "collapsed - threaded" for the comment options, the links on each comment are invalid. For example, the URL http://www.demolicious.org/node/410/152#comment-152 just leads back to the front page instead of displaying (or expanding?) the comment.
| Comment | File | Size | Author |
|---|---|---|---|
| #12 | collapsed-comment-fix.patch | 1.93 KB | TDobes |
| #6 | comment-fix.patch | 1.95 KB | TDobes |
Comments
Comment #1
ixis.dylan commentedAnybody? This makes comment moderation pointless, because collapsed comments are inaccessible. Is this a known or repeatable bug/problem, or is it just my site?
Comment #2
dries commentedI can reproduce this problem. I'm marking this 'critical'.
Comment #3
dries commentedFrom what I can tell, collapsed comments are not very popular. Maybe we are better off removing this feature?
Comment #4
ixis.dylan commentedAnd comment moderation? I for one would like to allow the option of collapsed comments, and have negative moderated comments collapsed. It's a nice feature.
Comment #5
dries commentedI just fixed this bug.
Comment #6
TDobes commentedAs reported in this duplicate, this bug is not completely fixed.
I've attached a patch with an alternate fix. I'm pretty sure this restores collapsed comments to their previous functionality. If not, please tell me what's wrong.
Comment #7
dmjossel commentedWorks here. Sorry about the duplicate; I intentionally created it because I thought bug reports for the RC and CVS were supposed to be kept separate, and as I'm not currently using CVS I couldn't verify if this was actually fixed.
Comment #8
dmjossel commentedJust a followup: when viewing a node with comments in collapsed mode, after this patch, clicking the comment subject will bring you to the body of that comment.
However, avatars don't display on that page. If you switch to viewing the thread in expanded mode, all the avatars display as usual.
Since my custom theme_comment function is correctly loading the profile values and displaying the avatars in expanded modes, I'm guessing that somehow having the mode set to collapsed (folded) is somehow interfering with its ability to load these values; the image link is in the HTML with an empty string supplied.
Comment #9
TDobes commentedI can't seem to reproduce the avatar problem. It sounds like a separate problem to me.
Comment #10
dries commentedTwo thinks I'd like you to investigate more:
Comment #11
dmjossel commentedTDobes,
I suspect you may be right; however, I don't think (please correct me if I'm wrong" that any of the themes that come with 4.5 display avatars, so the problem may be with the way in which I've updated my theme to work with 4.5.
Can you point me to a fully 4.5-compliant theme that supports avatars?
Comment #12
TDobes commentedDries: Addressing your two points:
I don't really see any easier way to choose the correct $op than what we currently use. For 4.6, we might consider eliminating the node_page function entirely and instead turning the individual node.module functions into callbacks.
dmjossel: Both bluemarine and pushbutton themes in core support avatars (now called "user pictures"). In your own themes, you can use theme('user_picture', $node) or theme('user_picture', $comment), which will generate the appropriate img tag for you. Note that both pushbutton and bluemarine respect the new theme settings which can be modified by navigating to admin->themes->configure. The test site on which I tested this patch has avatars enabled (both in comments and nodes), and they seem to work fine for me.
Comment #13
dries commentedThanks for the follow up, Tom. Committed your patch.
I agree that we should consider to split node_page() using menu handler. Maybe we start compiling a list of code beautifications we want to make? Or add it as a task to the issue tracker.
Comment #14
dries commentedOops, marking this fixed.
Comment #15
(not verified) commented