I recently upgraded from D5.7 to D5.10 and I noticed that my comment form code (on a custom template) no longer works. I had tested it before in 5.7 and if definitely worked, so I'm wondering if anyone could ched some light on what changed in D5.10.

In my 'node-contenttype.tpl.php' file I had the following code (which worked in D5.7):
print drupal_get_form('comment_form', array('nid' => $nid), t('Post new comment'));

In the comments settings I had the comment_form set to show on a separate page (because I hard coded the form into the template with the above code.

I also have a module that uses hook_form_alter to make a few adjustments to the form (only taking out some fields I didn't want to show, no effecting the operation of the form.

What do I need to change to the above code to get this to work in D5.10?

Thanks very very much!

Comments

ainigma32’s picture

Status: Active » Postponed (maintainer needs more info)

Just tried this on 5.12 and it works like a charm (although I did get a comment form beneath every single blog item.
Are you still experiencing this problem using the latest version?

- Arie

ainigma32’s picture

Status: Postponed (maintainer needs more info) » Fixed

Looks like tflmike won't be posting any feedback so I'm setting this to fixed.

Feel free to reopen if you think that is wrong.

- Arie

Status: Fixed » Closed (fixed)

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