Closed (fixed)
Project:
AJAX Comments
Version:
7.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
5 Jul 2012 at 21:14 UTC
Updated:
5 Apr 2015 at 01:14 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
paulhudson commentedManually applying the patch worked like a charm. +1 from me for this functionality.
Unfortunately the patch failed when I applied it to the latest 7.x-1.x-dev so I guess it needs to be recreated but as I say, manually applying it works.
Additionally, it would be nice to have the option of the comment form displaying at the top of the comments.
Comment #2
paulhudson commentedTo that end, here's the code I'm using to prepend the comment form to the top of the wrapper if comments are ordered newest first:
I think actually this would need fine grained control as you can't make the assumption that the site owner wishes the form to be at the top when displaying newest comments first. Would be easy to build on Georgique's work to add a setting for this though.
Another thought... what about comment preview display?
I'm happy to make a combined patch if that's alright with you Georgique?
Paul
Comment #3
Georgique commented@drupaul.co.uk I haven't understood you completely about an option, I guess option is implemented in my patch.
Comment #4
g10 commentedpatch does not apply neither against latest dev
manually added the changes and made a new patch (against 7.x-1.0-alpha1+6-dev)
as for the suggestion of #1 : this is a logical addition, to add the comment form at the top (instead of the bottom), as it is all a bit detached ui-wise: post comment button at top, form at bottom of comments, new comment back at top :/
Comment #5
g10 commented+ patch made from #2
although it works, the logic seems flawed at first sight (2am here, so I might be missing something)
to clarify: you check if the ajax_comments module is activated for a given node type, and based on that you determine the place?
Comment #6
paulhudson commentedYes it's not that obvious, the function name is now misleading after my suggested addition.
ajax_comments_node_type_active() previously returned a boolean value which was set at /admin/config/content/ajax_comments to enable/disable ajax comments per node type.
However it now returns one of our three constants:
I guess we should change the function name. :-)
Comment #7
andrew_mallis commentedCan someone please re-roll a single patch against dev?
This functionality is important. For the time being I'm just prepending the form for my use-case
since the patches don't apply, and/or are a little tangled.
Comment #8
andrew_mallis commented(happy to test a a new patch)
Comment #9
Georgique commentedThis patch was made against latest dev, please test it.
In this patch included:
* Subject opportunities;
* Small code improvements;
* Function ajax_comments_node_type_active() renamed to ajax_comments_new_comments_mode() and it's logic improved.
Haven't implemented changes for the form (not needed for me), so if somebody can participate, please do it.
Comment #10
andrew_mallis commentedThere is nothing in the master branch.
Shouldn't the latest DEV be there?
I checked out 7.x-1.x and the patch applied cleanly.
In the options available at admin/config/content/ajax_comments
I selected "placed at the top", but the comments were still "placed at the bottom"
disabling ajax comments works as expected
I'm not sure where the issue is.
Variables table does not show any of the options that are saved from the form, only wether ajax comments are enabled or disabled.
Since our defaults are to set them to the bottom, that's where they end up.
suggested wording change:
placed at the top -> placed above existing comments
placed at the bottom -> placed below existing comments
Comment #11
atiba commentedjust to let you know that Georgique's (#9) patch worked for me.
thanks a lot!
Comment #12
mstef commentedDoesn't work at all for me. I chose 'placed at the top' for each node type. Comments go to the bottom...
Comment #13
Berliner-dupe commented#9 dont work by me ... all new comments are in bottom furthermore ....
Is another fix available?
Comment #14
muschpusch commentedOk this seems like a useful feature! Could you guys agree on if this is working or not? Setting it to "needs work" for the time being...
Comment #15
formatC'vt commentedPlease, try Comment goodness module for this
Comment #16
formatC'vt commentedOr Comment sort by created