By NeoID on
On my drupal forum I've chosen to have the reply-box underneath the comments, on the same page. I'm quite happy with it, but I don't to display the name and title to my users, only the textbox. I can't deactivate the title in the node-type commenting-settings as I still want drupal to display the title on the comments.
So.. how may I edit/remove some fields from the reply-box for a certain node-type? :)
Comments
CCK
Hi,
May I know have you try CCK (Content Construction Kit) module?
I think that might help :)
Sure, I have it, but as far
Sure, I have it, but as far as I know CCK is only for nodes and not for comments (or the reply box), but correct me if I'm wrong... :)
Automatic Nodetitles
Will this do what you want: http://drupal.org/project/auto_nodetitle?
Thanks, but I'm afraid no...
Thanks, but I'm afraid no... this module if useful for content-types like stories or pages, but not comments...
Here's a picture for what I want to remove (but the info should still be added to the comment, just not visible for the users):
http://img111.imageshack.us/img111/5360/picp.png
Is there no way of overriding that particular form like you can override theme files or by a function override?
After some hours I figured it
After some hours I figured it out, thanks to Keyz
Main problem was that I had to put it into a module and not my template.php
Only problem remaining is that the title changes when I unset it...
I normally use this module: http://drupal.org/project/comment_subject
Solution would be to hide the field and not unset it.... somehow...
$form['subject'] = array('#type' => 'hidden', '#default_value' => $subject);That one did the trick, Yeah! :D