PDA

View Full Version : Poster's Username in signature


Daryn
08-20-2019, 04:22 PM
Hi folks.

I'm hoping someone can help me out here. I remember having done this a long time ago, but I forgot how I did it.

I want to have the member's username show up in the signature header, like:

Bob's Signature

I could use the memberaction_dropdown, but I don't want a menu there, just the username.

Any thoughts?

Thanks.

Dave
08-20-2019, 05:22 PM
The signature HTML structure should be present in the postbit/postbit_legacy template in which you can use {vb:raw post.username}.

MarkFL
08-20-2019, 05:24 PM
You could create a plugin hooked at 'postbit_display_complete" with the code:

if ($post['signature'])
{
$post['signature'] = ($post['username'] . '\'s Signature<br />' . $post['signature']);
}