Add option to disable signatures in node content but not in node comments

Matafleur - December 22, 2008 - 04:56
Project:Signatures for Forums
Version:5.x-2.4
Component:Code
Category:feature request
Priority:normal
Assigned:Unassigned
Status:active
Description

Currently the module allows to show signatures in either both a node type and its comments or not show signatures at all. It would be good to separate the node and comment options so that you can enable signatures for comments but not for the node content itself, or vice versa.

My use case is that I would like to have signatures in a node's comments but not in the actual node itself -- for example, a news article would look inappropriate with the author's signature appended to it, but it would be perfectly fine for comments on that news article.

#1

guygg - March 10, 2009 - 08:24

I second this request. Would like to use signatures in comments, but not on most node types themselves. Am using the 6.x branch.

#2

nicholas.alipaz - March 12, 2009 - 19:48

This request is the exact reason I came to the issues section today! I third this request and suggest 6.x compatibility as well!

#3

aharown07 - March 20, 2009 - 22:29

Me too. ... using 6.x

#4

esllou - May 20, 2009 - 17:37

I agree. Using 5.x here. At the moment, I can only use this module for Forum because the first post in a forum thread, it's ok to have a signature. To have a signature on a blog post looks awful, but not in the comments that follow.

#5

aharown07 - May 21, 2009 - 03:50

CSS workaround...

I can't guarantee this code will work for you but the same principle should work (and there's probably a tidier way to do it in my own install also).

The idea is to hide the signature using css display:none to hide signatures in nodes but not in comments. In my own case, that involved hiding them everywhere, then overriding to display them again in the comments (at least, so far, that seems to be necessary)

#content .signature {
display: none;
}

#forum-comments .signature {
display: inline;
}

Result for me is signatures don't show in nodes but do in comments. (I'm using Advanced Forum and that probably affects what css selectors are available)

 
 

Drupal is a registered trademark of Dries Buytaert.