Notifications
Clear all

[Closed] Signature not pulling through

5 Posts
2 Users
0 Reactions
436 Views
Posts: 47
Topic starter
(@themegroup)
Trusted Member
Joined: 2 years 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.

4 Replies
Chris
Posts: 3649
(@chris)
Famed Member
Joined: 3 years ago

Hi @themegroup,

What code have you added?

Posts: 47
Topic starter
(@themegroup)
Trusted Member
Joined: 2 years 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.

1 Reply
Chris
(@chris)
Joined: 3 years ago

Famed Member
Posts: 3649

@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

Posts: 47
Topic starter
(@themegroup)
Trusted Member
Joined: 2 years 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.