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 |
Jump to:
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
That code was just copied from D5. I've fixed it so it works properly now with and without the module installed.
Michelle
#2
Automatically closed -- issue fixed for two weeks with no activity.