Is there a way to avoid using ajax with certain nodetypes (ie. forums?)

CommentFileSizeAuthor
#3 ajax_comments.txt10.11 KBMPiccinato

Comments

youkho’s picture

I think it's possible if you hide the comment form it'll turn to the normal comment module but when you show the form below the node it turns to the Ajax module, that's the simpliest solution i know.

MPiccinato’s picture

I had been looking at a why to implement this into the module but I can not find a way to grab the current node type within the form_alter function. Anyone know a way to do this?

MPiccinato’s picture

StatusFileSize
new10.11 KB

I have made a modified version of the module to handle node type settings. It could use some reviewing as I am sure it is not the best way of doing it, but it currently works for my purpose which was to disable it on the forums.

Rosamunda’s picture

Thanks for the patch!!
I´ll try it and really hope that the functionality could became part of the module itself.

neochief’s picture

Version: 6.x-1.6 » 6.x-1.x-dev
Status: Active » Fixed

Added this feature to the latest DEV. Thanks for the patch, Mathew.

Status: Fixed » Closed (fixed)

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