#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
wpForo Integration
Add forum signature...
 
Share:
Share
Tweet
Share
Notifications
Clear all

Add forum signature through Ultimate Member profile

Page 1 / 2 Next
    Last Post
RSS

annabwashere
Posts: 38
 annabwashere
Topic starter
January 23, 2019 8:37 pm
(@annabwashere)
Eminent Member
Joined: 4 years ago

I'm using Ultimate Member to replace the profile pages on the forum and everything is working well except I don't know how to let people add a signature to their forum posts.

I know how to create custom fields in UM profile form but how do I connect it to the forum signature?

@anonymous3542, maybe you are familiar with this?

 

Topic Tags
ultimate member forum signature
19 Replies
Anonymous3542
Posts: 393
 Anonymous3542
January 24, 2019 9:39 am
(@anonymous3542)
Reputable Member
Joined: 5 years ago

@annabwashere this isn't something I've tried. My thought here would be to create a function that replaces the wpForo signature with the custom field in UM. @robert - any thoughts on this ?

Thanks

Reply
annabwashere and Sofy liked
Sofy
Posts: 4057
Sofy - Facebook Sofy - Twitter
 Sofy
Admin
January 24, 2019 2:10 pm
(@sofy)
Support Team
Joined: 4 years ago

Hi @annabwashere, @anonymous3542,

We'll take this into consideration for future releases. 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
annabwashere liked
hshah
Posts: 63
 hshah
December 9, 2019 6:20 am
(@hshah)
Trusted Member
Joined: 3 years ago

I've just managed to do this with Ultimate Member.  I created a custom field on my UM Profile page (entitled "um_forum_signature" and then have this function.  I know there are a number of unnecessary lines of code, but I have done that for the benefit of the less technical people I have also working on the website.

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));
}
Reply
5 Replies
hshah
 hshah
(@hshah)
Joined: 3 years ago

Trusted Member
Posts: 63
January 7, 2020 3:41 pm
Reply tohshahhshah

@Sofy 

If you guys think this is a viable option, could you publish this as a guide or something? 

Reply
Martin
 Martin
Moderator
(@martin)
Joined: 6 years ago

Support Team
Posts: 851
Martin - Facebook Martin - Twitter
January 30, 2020 10:50 am
Reply tohshahhshah
hshah

Thank you @hshah,

This looks good but need lots of testing. wpForo user signatures are under hard control of HTML tags. With this code you allow adding anything in signature area. This is not secure for sure. 

Also, this is one direction solution. If user changed signature in wpForo Profile Page the new signature will not be displayed in UM Profile page.

 

Powered by gVectors Team. our popular plugins:
wpForo, wpDiscuz

Reply
BigBatT
 BigBatT
(@bigbatt)
Joined: 2 years ago

Active Member
Posts: 12
BigBatT - Facebook
March 9, 2020 9:06 am
Reply tohshahhshah

@hshah

Where do you add this code?

Thanks

 

Excusatio non petita, accusatio manifesta
Mala tempora currunt sed peiora parantur

Reply
hshah liked
Robert
 Robert
Admin
(@robert)
Joined: 6 years ago

Support Team
Posts: 9090
Robert - Twitter
March 10, 2020 8:19 am
Reply toBigBatTBigBatT
hshah

@bigbatt,

In your active WordPress theme functions.php file, if you have a child theme, in the child functions.php file. How to Easily Add Custom Code in WordPress (without Breaking Your Site).

 

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
hshah and BigBatT liked
Sapere Aude
 Sapere Aude
(@sapere-aude)
Joined: 4 years ago

Trusted Member
Posts: 56
Sapere Aude - Facebook
April 10, 2020 6:11 pm
Reply tohshahhshah

@hshah

 

Can you tell me the specific settings for the custom field in UM?

“I must stop him from being one of those who call themselves good because they have no claws.” ― Irvin D. Yalom, When Nietzsche Wept

Reply
hshah
Posts: 63
 hshah
February 11, 2020 11:09 pm
(@hshah)
Trusted Member
Joined: 3 years ago

@martin

It works in terms of functionality but I have not really looked into it from a security perspective. 

However, I think you are making this sound more complicated than it actually is. It would probably take me all of 15 minutes (I barely know this stuff and have been figuring it out by Googling, along with repeated trial and error attempts) to:

  1. ensure that my signature field editor has the same properties as the wpForo signature field
  2. run the field contents through all the "hard controls" you have in function wpforo_signature

 

That makes it as secure as using the wpForo field, and with a little more time could probably improve on this by actually using your function directly. 

 

Am I missing something obvious with regards to this being a one direction solution? This solution is only really needed when Replace Forum Profile with Ultimate Member Profile is enabled because the existing integration doesn't support this field. 

 

If for some reason people wanted two profiles at the same time, there is no reason why you couldn't update the other way as well. 

 

Reply
7 Replies
hshah
 hshah
(@hshah)
Joined: 3 years ago

Trusted Member
Posts: 63
March 11, 2020 9:30 pm
Reply tohshahhshah

@martin - You never replied to this.  The points you raised don't seem as significant as you made them out to be, so can you please provide further clarification?  I would just like to make sure I have not overlooked something here.

Reply
Martin
 Martin
Moderator
(@martin)
Joined: 6 years ago

Support Team
Posts: 851
Martin - Facebook Martin - Twitter
March 12, 2020 10:41 am
Reply tohshahhshah
hshah

@hshah,

I have nothing to add here. I'm sorry but I can't find time for debugging the code and approving it. if you have an exact question please ask it. 

 

Powered by gVectors Team. our popular plugins:
wpForo, wpDiscuz

Reply
hshah
 hshah
(@hshah)
Joined: 3 years ago

Trusted Member
Posts: 63
March 12, 2020 12:16 pm
Reply toMartinMartin
hshah
hshah

@martin

My last post had nothing to do with debugging or approving the code. I don't actually need you to do any of that since there is nothing wrong with it.

 

My last post was regarding what you said in this post:

https://wpforo.com/community/wpforo-integration/add-forum-signature-through-ultimate-member-profile/#post-35864

 

What you said is essentially wrong and I have explained why, so I think you do actually have more to add, unless you are agreeing that what I'm saying is correct. 

 

Reply
Martin
 Martin
Moderator
(@martin)
Joined: 6 years ago

Support Team
Posts: 851
Martin - Facebook Martin - Twitter
March 12, 2020 12:22 pm
Reply tohshahhshah
Martin
hshah
hshah

@hshah,

Ok, if I wrong you can use it without any worry. Just make sure that the HTML is filtered from wpForo side on displaying. Also make sure if you change the signature from wpForo side it'll also be changed in UM profile page.

 

Powered by gVectors Team. our popular plugins:
wpForo, wpDiscuz

Reply
hshah
 hshah
(@hshah)
Joined: 3 years ago

Trusted Member
Posts: 63
March 12, 2020 12:26 pm
Reply toMartinMartin
hshah
Martin
hshah
hshah

@martin

 

Can you please actually read what I posted here, because you've clearly haven't already done so:

https://wpforo.com/community/wpforo-integration/add-forum-signature-through-ultimate-member-profile/#post-36680 

 

 

Reply
Martin
 Martin
Moderator
(@martin)
Joined: 6 years ago

Support Team
Posts: 851
Martin - Facebook Martin - Twitter
March 12, 2020 1:28 pm
Reply tohshahhshah
Martin
hshah
Martin
hshah

@hshah,

I've already read it. And again I have nothing to add. If you're going to use it with disabled wpForo profile it'll work and you'll not worry about two-way update. Is this what you want to hear?

 

Powered by gVectors Team. our popular plugins:
wpForo, wpDiscuz

Reply
hshah
 hshah
(@hshah)
Joined: 3 years ago

Trusted Member
Posts: 63
March 12, 2020 4:46 pm
Reply toMartinMartin
hshah
Martin
hshah
hshah

@martin

I already know it works... I just wanted clarification on why you thought that the reverse update was even necessary? 

 

This "mod" is only required when you have the UM integration enabled and the wpForo profile disabled, because that's when the usual signature field is not available.

 

The reverse update is something that wouldn't even be required because you wouldn't have both profiles enabled at the same time. 

 

Reply
Page 1 / 2 Next
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Ultimate Member integration - Social activity
    8 months ago
  • wpForo forums for specific Ultimate member user role
    10 months ago
  • After deactivating Ultimate Member, all users' avatars previously uploaded in UM are gone
    10 months ago
  • Ultimate Member integration documentation
    11 months ago
  • [Ultimate Member] Redirection after Login/Register
    1 year ago
Topic Tags:  ultimate member (40), forum signature (1),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • Attachments not showing on forums posts after migration

    By Formicid, 22 hours ago

  • New Feature About Plugin Customization and Integration

    By z14165899, 1 day ago

  • WordPress Email sending function wp_mail() doesn't work!

    By feassistant, 2 days ago

  • Import users from IPBoard

    By jesusdlg, 2 days ago

  • Intruder signing in to wpforo without approval

    By plaurits, 2 days ago

  • How to make new user to get approve manually before creating post and profile.

    By Adhyansh21, 4 days ago

Topic Tags

  • css52
  • translation50
  • plugin conflict48
  • seo47
  • new features45
  • buddypress43
  • avatar41
  • moderation40
  • ultimate member40
  • login40
  • forum40
  • registration37
  • threaded layout35
  • cache34
  • spam33
  • editor33
  • menu33
  • shortcode32
  • forum accesses30
  • widget29
View all tags (2195)

Recent Posts

  • RE: replacing create_function() with something else for PHP8 [duplicate]

    @douglajonson you have got the solution here > Sta...

    By Tutrix, 13 hours ago

  • Member Reputation with Likes?

    Currently members can level up by posting messages in t...

    By Marco Panichi, 14 hours ago

  • Hide user roles from Members list

    Hi, Is it possible to hide a specific group of users ...

    By Marco Panichi, 14 hours ago

  • RE: There are versions of wpforo functions that return string?

    Amazing 👍

    By Marco Panichi, 15 hours ago

  • RE: Description for each topic?

    @christine, wpForo does not have a topic description ...

    By Chris, 22 hours ago

  • RE: About Plugin Customization and Integration

    Hi @z14165899, Please send your request to sales[at]g...

    By Chris, 22 hours ago

  • Attachments not showing on forums posts after migration

    Hello I just did a manual migration and the older forum...

    By Formicid, 22 hours ago

Share:
Share
Tweet
Share
  Forum Statistics
21 Forums
9,942 Topics
50.3 K Posts
7 Online
48.5 K Members

Latest Post: replacing create_function() with something else for PHP8 [duplicate] Our newest member: daftarspin88 Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation