Hi,

I've just installed your module, in admin/settings/contact_form_on_node checked:

System-wide contact form
Add a form to contact the author in full view?
+ one content type.

Result: contact form is displayed everywhere, in full body and teaser fo every content type. Please, fix immediatelly and in the future test properly before you release. Thanks.

Comments

petiar’s picture

Even when I unclick all content types, the form is still being displayed everywhere. Oh, common...

hovel’s picture

I have the same problem!

Vc Developer’s picture

Same problem! I would like to have control of selecting what node to have the contact form on during creation. Also the ability to send the reader back to the node after sending the message. Thanks!

vitch’s picture

Hello,
Just ran into that issue of contact form on node showing on all node types and figured out what was wrong.
I apologize for not issuing a patch as I have no idea what tools are being used to do that.

in the file
contact_form_on_node_module
in the function
function contact_form_on_node_nodeapi(&$node, $op, $teaser, $page)
at line 112
move the lines
// we get the enabled types
$enabledTypes = variable_get('contact_form_on_node_types', array());
to line 108 outside the the switch case.

Vc Developer’s picture

Kewl! Can you also add this feature? Send the reader back to the node after sending the message....

Vc Developer’s picture

How is it going?

ErwinS’s picture

thx Vitch,
You saved my day!

danny_joris’s picture

#4 is the solution

Thanks Vitch!