Notifications
Clear all

[Solved] Since using RegistrationMagic the Biographical Info of new WP-Users is not transfered into "About me" of the wpForo-Profile

6 Posts
3 Users
0 Likes
942 Views
Posts: 8
 bvsc
Topic starter
(@bvsc)
Active Member
Joined: 4 years ago

Earlier I used "User Registration"-Plugin for frontend registration of new WP-Users.

When a new user registered and filled in the "Biographical info" field, this data was stored in the WP-User-Profile and was transfered in to the "About me"-Field of the corresponding wpForo-Profile

Now I deactivated "User Registration"-Plugin and use "RegistrationMagic"-plugin instead.

When a new user registers and fills in the "Biographical info" field, this data is also stored in the WP-User-Profile but is NOT transfered in to the "About me"-Field of the corresponding wpForo-Profile.

Anyone got any ideas how to figure out what's going wrong?

Kind regards,
Mirko

5 Replies
Alvina
Posts: 1869
Moderator
(@alvina)
Member
Joined: 4 years ago

Hi @bvsc

I've just asked our developers about it and currently, I'm waiting for the response from them. I'll update the topic asap.

Alvina
Posts: 1869
Moderator
(@alvina)
Member
Joined: 4 years ago

Hi @bvsc,
The "User Registration" plugin saves "Biographical info" data in the Wordpress corresponding fields, so the wpForo make synchronization, and in the "About me" the date is visible.  It seems that the "RegistrationMagic" plugin doesn't save the date in the Wordpress corresponding fields, thus the "About me" field is not visible.
However, we don't recommend to use the plugin for registration. The wpForo has your own the registration Form.
Also, we may suggest you check out the wpForo – User Custom Fields add-on to customize the tegistration form as you like.

3 Replies
 bvsc
(@bvsc)
Joined: 4 years ago

Active Member
Posts: 8

@alvina Dear Alvina,

thank you very much for your quick reply!

I must admit I love wpForo and I would like to use it with integrated polls and embeds in the future.

And of course your registration process and profile page etc. are fine but unfortunately "RegistrationMagic" is essential for my website.

You might be right that the "RegistrationMagic" plugin doesn't save the date in the Wordpress corresponding fields and thus the "About me" field is not visible in wpForo but don't you think wpForo should make a synchronization of the "Biographical info" field nevertheless?

I think this is a bug and I would be very grateful if you could ask your developers if it is really absolutely necessary that wpForo finds the registration date in the Wordpress corresponding fields and what is contradicting to just show the "Biographical info" anyway.

Kind regards

 

 

Robert
Admin
(@robert)
Joined: 8 years ago

Support Team
Posts: 10499

@bvsc,

Please note, that there are hundreds of plugins which interacts with user fields. All these plugins may save those data in X fields of Y tables. This is something that cannot be predicted and integrated.

wpForo doesn't have to support all those hundreds of plugins. The RegistrationMagic is one of those hundred plugins.

The solution is asking for integration. We may do that or not, and we'll be right in both cases. In the same way you should ask RegistrationMagic developers to integrate their fields with wpForo. And they may do this or not, and again, they'll be right in both cases. The developers of plugins don't have to integrate any plugin with any other plugin. So if one plugin is not integrated with second plugin it's not a bug. It's normal.

I can provide you a small code to try to integrate the "Biographical info" field. But I can't support other custom fields. To make the "Biographical info" field working with wpForo you should insert this PHP code in your current active theme functions.php file:

function registrationmagic_wpforo_integration( $user ){
if( !empty($user) ){
$user['about'] = get_user_meta( $user['ID'], 'description', true );
}
return $user;
}
add_filter('wpforo_profile_header_obj', 'registrationmagic_wpforo_integration', 10, 1);

 

How to Easily Add Custom Code in WordPress (without Breaking Your Site).

 

This code will integrate RegistrationMagic "Biographical info" field in forum user My Profile > Account fields. If you want to display the "Biographical info" field information on My Profile > Profile Home page you should  add a small code in wpForo core file. Use some FTP client or your Hosting cPanle > File Manage, open this file: wp-content/plugins/wpforo/wpf-includes/functions-template.php

Find this function:

function wpforo_profile_page_field_values( $fields ){
if( isset(WPF()->current_object['user']) && !empty(WPF()->current_object['user']) ){
$user = WPF()->current_object['user'];
WPF()->data['value'] = $user;
}
}

Change it to this:

function wpforo_profile_page_field_values( $fields ){
if( isset(WPF()->current_object['user']) && !empty(WPF()->current_object['user']) ){
$user = WPF()->current_object['user'];
$user = apply_filters('wpforo_profile_header_obj', $user);
WPF()->data['value'] = $user;
}
}

This change is already added in wpForo core, so you'll be able to update it in the future without any issue.

 bvsc
(@bvsc)
Joined: 4 years ago

Active Member
Posts: 8

@robert Thanks a lot! Your solution worked very well!
Kind regards