Closed (fixed)
Project:
Node Comments
Version:
6.x-2.x-dev
Component:
Code
Priority:
Normal
Category:
Task
Assigned:
Reporter:
Created:
26 May 2009 at 16:17 UTC
Updated:
13 Sep 2010 at 14:58 UTC
Jump to comment: Most recent file
We should provide a comments pane similar to the default comments pane that can render either comments or node comments as a ctools content type for full Panels 3 compatibility.
| Comment | File | Size | Author |
|---|---|---|---|
| #21 | 473354-nodecomment_form_panels2.patch | 4.37 KB | andrewlevine |
| #20 | 473354-nodecomment_form_panels.patch | 4.33 KB | andrewlevine |
| #3 | nodecomment_ctools.zip | 9.23 KB | electricmonk |
Comments
Comment #1
ayalon commentedSounds very interessting!
Comment #2
electricmonk commentedI need this so I'm starting development on a bridge module. I'll post a ZIP file here so that it can be integrated into the Nodecomment CVS repository.
I'm only going to implement the Nodecomment Form (add comment form) content type, as the comment display for a node can be added using the Nodecomment default view.
Comment #3
electricmonk commentedThat wasn't so difficult, it appears.
I've encountered a problem with getting the currently logged in user into the context. Merlin - am i missing something? I've tried to define 'required context' as an indexed array with two required contexts, 'node' and 'user'. Panels then refused to show my content type in the content types list...
Anyway, this should go into the Node Comments code base, I guess. No reason to release it as a separate module.
Comment #4
merlinofchaos commentedQuick note: Making the attachment a .zip prevents me from just clicking on it and scanning. =)
Comment #5
electricmonk commentedSorry, I'm on win32. Can you handle it, or should I post a tar.gz file?
On another note, this is mainly intended for the Node comment maintainer, I don't think it belongs inside CTools...
Comment #6
merlinofchaos commentedI'm more or less maintaining nodecomment 2.x right now =)
And I can handle it but it just means it'll take me longer to get to it to look at it.
Comment #7
friolator commentedFWIW, we installed this last night and have tested it successfully on our setup. Haven't really banged on it very hard yet, but it does seem to work as expected here.
Comment #8
friolator commentedOk, i take it back ;-) We were in the middle of testing advanced forum and panels with nodecomments when I posted that last message about this module getting the nodecomment form to work for us in panels. I think I may have been thinking that we were looking at the correct form, when in fact we weren't.
In any case, I'm completely unable to make this work with a plain vanilla custom content type. WITHOUT using panels, node comment works as expected. However, in Panels, we're unable to get the node comment Comment Form from this module to show up. it's just not appearing, even though it's an option available to us in Panels.
Is there a trick to getting this to work? we're passing it "node being viewed" in the settings window, which is the only option available to us. We would really like to get this working ASAP, or we're going to have to scrap nodecomments for a large part of our site, which we'd really rather not do.
and yes, Comments are set to read/write, so it's not that :-)
Thanks!
Comment #9
friolator commentedand if it helps merlin to scan... ;-)
Here's the nodecomment_form.inc content type plugin file from the posted module:
Comment #10
michelleYeah, I took a peek at it and I don't see any reason to have that as a submodule. Haven't tested it, yet. Just eyeballed the code. Maybe you could re-roll it as a patch?
Michelle
Comment #11
electricmonk commented@friolator - Can you try to debug this and see where it fails? are you sure that the user trying to see the comment add form has the correct permissions (create content) and that the content type and content itself has comment status set to read/write?
@michelle - sure, I'll do that when I'm in the office tomorrow. But let's make sure it works first :)
- Shai
Comment #12
friolator commentedI've so far only tested this as user 1, so I would have full permissions to create/edit the content (though, there are three roles that do have permission to create/edit these content types as well, and it doesn't work with them either). Comments are read/write on both the base content type and the comment content type attached to it (both use node comments).
Everything that surrounds the form is appearing (my view that shows the node you're responding to and a pane that contains a divider/button bar, as well as the nodecomments that already exist, using the supplied nodecomment view.
Everything is stock, in that I haven't modified anything - latest Views 6.x-2.x-dev, Panels RC1, Ctools RC1, Node Comment 6.x-2.x-dev. However, I have applied (manually) this patch: http://drupal.org/node/502714 to re-enable the "disabled" setting on comment read/write, because it was always coming up disabled.
if there's any more info you need, let me know.
Comment #13
electricmonk commented@friolator - please verify that the note being viewed (not the content type) has comment status set to read/write.
Can you try using a debugger on the module and see where it fails? it would probably help a lot.
Comment #14
friolator commentedI just checked again, and everything including the base node has comment status set to read/write. As I posted earlier, outside of Panels, nodecomments are behaving as expected. but within Panels, they don't.
We have worked around this, by the way, by using Panels to override the node/add page for the nodecomment type, and to display the node add form for the node being viewed. We've set nodecomments so that the comment form is always on a separate page, and this seems to work for us, though it's obviously not ideal in that we can't have an inline comment form below comments.
I don't have any debuggers installed, sorry.
Comment #15
dark.o commentedSince nobody is reading my other posts and questions regarding node comments for months, i will post this here, since there is some actions. Simple problem, after a while of using node comments, it changes comment settings on the node type that uses node comments. I can not set read/write setting for node comment type! Any idéas why? Each time I set it to read/write, and than check back, the setting is back to "disabled", resulting the link "comment here" on the blog entry disappears. This happens only with 6.x-2.x-dev version (if i understand it right, i need regular comments module enabled with this, it is required?)
And I will not use the old one, since the great thing about 2.version is that node comment title actually links as the comment, not the node. So, any help, suggestions? Thanx
Comment #16
michelle@dark.o: That has nothing to do with this issue. Just because the other issue hasn't been addressed, yet, is not a reason to post completely off topic here. Node comments 2.x is still in development, not even alpha, not even listed on the project page, yet. The bugs will get fixed but you need to be patient.
Michelle
Comment #17
dark.o commentedoki, thanx for the reply michelle. Tell me where and I will provide you with bug-list since I have been testing it lately quite a lot. no more off topics here. cheers.
Comment #18
michelle@dark.o: Just file issues for the bugs here in this queue, one issue per bug.
Michelle
Comment #19
electricmonk commented@friolator - definitely works for me. Can you either:
a) place some print_r or var_dump instructions in strategic places inside the code and see where it fails or
b) send me a complete DB dump + codebase for your project so that I can debug it myself
Thanks
- Shai
Comment #20
andrewlevine commentedI took electricmonk's patch, cleaned it up a bit, and made it work with comment.module when necessary like earl requested. Also integrated it with nodecomment instead of making a separate module with one hook.
Comment #21
andrewlevine commentedone small mistake with previous patch
Comment #22
merlinofchaos commentedThanks for the work on this everyone! Committed!
Comment #24
gabash commentedwhen implementing the Nodecomment form on panels I am getting this error:
"warning: call_user_func_array() [function.call-user-func-array]: First argument is expected to be a valid callback, '_node_form' was given in /var/www/guysadot.com/includes/form.inc on line 371."
nodecomment 6.x-2.0-beta1
panels 6.x-3.2
ctools 6.x-1.2
Comment #25
gabash commentedOK, found this patch, http://drupal.org/node/600898
Comment #26
crea commentedComment #27
sheise commentedHi,
Sorry to post on this older issue.
I can't find the option to add the nodecomment form in the panel? I can only find the option for Node->Comment form but that simply gives me the Drupal comments form and not my nodecomment content type.
I'm using
Panels 6.x-3.5
Node Comment 6.x-2.0-beta5
Ctools 6.x-1.7
What am I missing? Is this only available in the dev version?
Comment #28
sheise commentedSorry, that was a stupid question! Of course all I needed was the dev version of nodecomments!