Signatures not showing up in comments

ianshafer - June 25, 2008 - 21:11
Project:Advanced Forum
Version:6.x-1.x-dev
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

User signatures are not showing up in comments. I tracked this down to signature_forum-6.x-1.0-alpha1. Looks like the variable name to use should be 'signature_forum' instead of 'signature'. Here's the relevant snippet from the hook_user function of signature_forum:

    case 'load':
      $signature = db_result(db_query('SELECT signature FROM {users_signature} WHERE uid=%d', $account->uid));
      // Bug #190446 OG puts $account->signature into comments
      $account->signature_forum = $signature;
      break;

#1

Michelle - September 2, 2008 - 16:25
Version:6.x-1.0-alpha2» 6.x-1.x-dev
Status:active» fixed

That code was just copied from D5. I've fixed it so it works properly now with and without the module installed.

Michelle

#2

Anonymous (not verified) - September 16, 2008 - 16:52
Status:fixed» closed

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

 
 

Drupal is a registered trademark of Dries Buytaert.