Notifications
Clear all

Signature not pulling through

5 Posts
2 Users
0 Likes
185 Views
Posts: 33
Topic starter
(@themegroup)
Trusted Member
Joined: 9 months ago

Hi there.
I added some code the other day to enable Ultimate Member to add a signature to the profile (as this wasn't there as standard). However, it's not pulling through to members' posts in the forum - do I need to do anything to enable this to be pulled in?

Cheers,
Nick.

wpForo Version
2.1.6
WordPress Version
6.1.1
4 Replies
Posts: 3653
Admin
(@chris)
Support Team
Joined: 2 years ago

Hi @themegroup,

What code have you added?

Reply
Posts: 33
Topic starter
(@themegroup)
Trusted Member
Joined: 9 months ago

add_action('um_user_after_updating_profile', 'my_user_updating_profile_signature', 10, 2);
function my_user_updating_profile_signature($user_id, $args)
{
$userid = $args;
$signature = $user_id['um_forum_signature'];
global $wpdb;
$table = 'wpforo_profiles';
$data = array(
'signature' => $signature,
);
$wpdb->update($table, $data, array('userid' => $userid));
}

That came from a Ultimate Member forum and worked in as much as it added the field to the profile section in UM, but it's not appearing anywhere.

 

Cheers,

Nick.

Reply
1 Reply
Admin
(@chris)
Joined: 2 years ago

Support Team
Posts: 3653

@themegroup,

I'm sorry but I cannot help you with that custom code, you can contact with Gvectors Custom Work Team with your request, they can help you with it.

Contact email: sales[at]gvectors.com

Reply
Posts: 33
Topic starter
(@themegroup)
Trusted Member
Joined: 9 months ago

Ok, I'll ask them. Is another way to get signatures added via Ultimate Member to WP Foro that doesn't require custom code?

If not, I'll message them directly to ask.

Reply