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.

CommentFileSizeAuthor
#8 signiture-weights-drupal.gif8.36 KBZ2222
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Niklas Fiekas’s picture

Can you try to reorder the fields on Structure > Content types > Forum topic > Manage comment display?

Steel Rat’s picture

It'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.

Steel Rat’s picture

Also, 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.

bcobin’s picture

I 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.

Steel Rat’s picture

I'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.

phreadom’s picture

I 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;

    if (isset($user->signature) && drupal_strlen($user->signature) >= 1) {
      $node->content['signature_forum'] = array(
        '#signature' => '<div class="sff-signature">'.check_markup($user->signature, $user->signature_format, '', TRUE).'</div>',
        '#theme' => 'user_signature',
        '#pre_render' => array('signature_forum_pre_render_user_signature'),
        '#user' => $user,
      );
    }

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...

.forum-post-panel-main .forum-post-content div.clear div:first-child {
  display: none;
}

.forum-post-panel-main .forum-post-content div.sff-signature  {
  background: -moz-linear-gradient(center top , #FFFFFF 0px, #EEEEEE 100%) repeat scroll 0 0 transparent;
  border: 1px solid #D4D4D4;
  border-radius: 3px 3px 3px 3px;
  margin: 15px 0 0;
  opacity: 0.6;
  font-size: 0.85em;
  padding: 0px 8px;
}

As they say, "It works for me."

Z2222’s picture

I have this same problem:

  • Signatures for Forums 7.x-1.x-dev
  • Advanced Forum 7.x-2.0

The signature appears above the text on nodes, but below the text on comments.

Z2222’s picture

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.

I 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.