On the "My Account" > "Edit" page, users always have the "Signature" text box, even if "Signature supprt" is selected as "disabled" on admin/user/settings .
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | nodecomment-signature-345531.patch | 8.24 KB | robbiethegeek |
On the "My Account" > "Edit" page, users always have the "Signature" text box, even if "Signature supprt" is selected as "disabled" on admin/user/settings .
| Comment | File | Size | Author |
|---|---|---|---|
| #4 | nodecomment-signature-345531.patch | 8.24 KB | robbiethegeek |
Comments
Comment #1
OneTwoTait commentedhow did I post that under Node Comments... I don't know. :P
Comment #2
wrb123 commentedI am having the same problem: at /admin/user/settings, under Signatures I have "Signature support: Disabled", and yet users still think they can use signatures because the option appears on their profile/edit page. I think this is indeed a nodecomment bug, that may have to do with disabling the original Comment module (the option for Signature shows up under "Comment Settings." I would like to disable nodecomment, enable comment, enable signatures, disable signatures, disable comment, and enable nodecomment, however I'm afraid that will cause some damage to my site (database maybe). I'm afraid that even if it temporarily works when Comment is enabled, when I then re-enable NodeComment it will be broken again.
Comment #3
wrb123 commentedokay, so...
i switched:
to:
in nodecomment.module (just commented out the line "return $form;" and now the signature field totally disappears in user profile -> edit! :)
that function is just hooking or intercepting the user form for their account so it can add its own field (signature option), and im letting it intercept it, yet preventing it from actually adding the form to the page. i hope this doesnt cause any unforseen problems, but i think it's pretty harmless.
maybe the maintainer or someone with more knowledge of modules than me could figure out how to patch this... im thinking it might be something like changing:
to
or maybe
to
although i definitely havent tested that and i dont know if the code is valid, so for now i would recommend the hack of commenting out the return of the form rather than modifying all the other code, although i would love to see this implemented as a patch by someone more knowledable than me!
-bill
Comment #4
robbiethegeek commentedHere is a patch that makes the node comment module recognize and abide by the choosing of whether there are signatures on the site.
Please review
Comment #5
wrb123 commentedthank you robbiethegeek! i will review this in the next few days. i appreciate it.
Comment #6
zroger commentedcommitted: http://drupal.org/cvs?commit=188002