Early Bird Registration for DrupalCon Portland 2024 is open! Register by 23:59 PST on 31 March 2024, to get $100 off your ticket.
Just installed this on Drupal 7.12 with Advanced forums. This was needed only because D7 isn't displaying signatures on nodes, only on comments.
I can see all the options, but when creating a new forum topic the user's signature is showing above their entered text, but is only obvious once the node is saved.
This is a pretty big error, but I see no open issues for it.
Comment | File | Size | Author |
---|---|---|---|
#8 | signiture-weights-drupal.gif | 8.36 KB | Z2222 |
Comments
Comment #1
Niklas Fiekas CreditAttribution: Niklas Fiekas commentedCan you try to reorder the fields on Structure > Content types > Forum topic > Manage comment display?
Comment #2
Steel Rat CreditAttribution: Steel Rat commentedIt's not a problem on comments, but on nodes. And looking in the manage fields for forum topics, only the checkbox field is shown, not the actual signature display field.
Comment #3
Steel Rat CreditAttribution: Steel Rat commentedAlso, when I enable the module, existing signatures are no longer displayed, even though I've selected to always show signatures in the account settings. I have to edit a topic or comment and check the box for sigs to display on existing content.
Comment #4
bcobin CreditAttribution: bcobin commentedI have the same problem, with the signature displaying above the node body. In my case, this is with Enterprise Blog posts.
Any ideas? Thanks much!
Update: Workaround for display placement is to set weights in Manage Display (using show row weights) to set fields to a lesser value; e.g., with a body weight of -4, signatures display below body, as desired. Duh.
Signature also displays in teaser and can't be turned off (workaround here is to hide via CSS) - overall, while there's control for the signature checkbox in the form, there are no controls for the output. It seems to me that better-formed output control (including a class other than "clear") would solve both of these issues.
Comment #5
Steel Rat CreditAttribution: Steel Rat commentedI'd just as soon not have to use this module and display signatures on forum nodes via the tpl. Don't know if that can be done, but the module just isn't ready for prime time.
Comment #6
phreadom CreditAttribution: phreadom commentedI just altered two lines to get some more CSS friendly markup for the signatures...
In
signature_forum_node_view()
I changed'#signature' => check_markup($user->signature, $user->signature_format, '', TRUE),
to
'#signature' => '<div class="sff-signature">'.check_markup($user->signature, $user->signature_format, '', TRUE).'</div>',
but I also had to wrap the
$node->content['signature_forum'] = array
part like so;otherwise it would drop in empty signature markup on nodes that didn't have signatures. This is probably not the best way to do it, but it works for me.
Also in
signature_forum_comment_view()
I changed'#signature' => check_markup($comment->signature, $comment->signature_format, '', TRUE),
to
'#signature' => '<div class="sff-signature">'.check_markup($comment->signature, $comment->signature_format, '', TRUE).'</div>',
This at least let me theme up the signatures in a way that didn't lead to odd side effects.
I use the following CSS to hide the line before the signature and theme the signature itself...
As they say, "It works for me."
Comment #7
Z2222 CreditAttribution: Z2222 commentedI have this same problem:
The signature appears above the text on nodes, but below the text on comments.
Comment #8
Z2222 CreditAttribution: Z2222 commentedI just realized what you meant.
I've attached a screenshot for anyone else with this problem who wants a workaround. "Show row weights" is an option on the top right of the table (not shown in the screenshot).
Edit: sorry for the misspelled typo in the file name.