AI Search
Classic Search
 Search Phrase:
 Search Type:
Advanced search options
 Search in Forums:
 Search in date period:

 Sort Search Results by:

Filter by custom fields

Topic prefix

AI Assistant
Notifications
Clear all

[Closed] Unlink user Display Name and About Me

5 Posts
2 Users
0 Reactions
1,686 Views
Posts: 76
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@hypematrix)
Estimable Member
Joined: 5 years ago
[#16514]

Hello,

Is there away to unlink user Display Name and About Me from the website?

For example when I change the Display Name and About Me section on the forum it also changes it in other places on the website and I would like to keep them separate?

Thanks


4 Replies
Robert
Posts: 10730
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 2 months ago

Hi @motorhype,

I'm sorry, but there is no way to unlink them.

As an alternative solution you can remove the Display Name and About fields from Forum Account fields and prevent them to edit that data. You should put this hook code in the functions.php file of your current WordPress active theme or use the Code Snippet plugin:

function wpforo_custom_remove_user_fields( $fields ){
$remove_fields = array('about', 'display_name');
if( !empty($fields) ){
foreach( $fields as $r => $rows ){
foreach( $rows as $c => $cols ){
foreach( $cols as $f => $field ){
if( $field && in_array($field, $remove_fields) ){
unset($fields[$r][$c][$f]);
}
}
}
}
}
return $fields;
}
add_filter( 'wpforo_get_account_fields', 'wpforo_custom_remove_user_fields');

2 Replies
(@hypematrix)
Joined: 5 years ago

Estimable Member
Posts: 76
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@robert

Thank you for getting back to me, I don't really want to remove them.

If I brought the User Custom Fields addon, could I remove the "About Me" section using code and then create a new section similar but call it something else maybe "About"? and then remove "Display Name" with code and make a new section called "Name" and then use code to display is where "Display" Name used to be?

If this would work, could you please provide the code and I will purchase the addon?

Or if you have any other ideas please let me know.

Thanks


(@hypematrix)
Joined: 5 years ago

Estimable Member
Posts: 76
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian

@robert Could you please let me know a.s.a.p because I would like to buy a couple of addons and need to know weather or not to also buy the Custom Fields addon?


Robert
Posts: 10730
Admin
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
(@robert)
Support Team
Joined: 2 months ago
Posted by: @motorhype

If I brought the User Custom Fields addon, could I remove the "About Me" section using code and then create a new section similar but call it something else maybe "About"? and then remove "Display Name" with code and make a new section called "Name" and then use code to display is where "Display" Name used to be?

No, you cannot. You can remove the Display name, then create new fields, but the new fields will not change the display name in forum posts. Forum posts populate the display name field, they not use any custom fields.

The "About" field can be removed and changed to another field. Just make sure the new field is inserted in both "Profile home" and Account pages.

Next time please use the Pre-Sale Tab or the gVectors Forum for addons related questions. Here we only support the main wpForo plugin.


Share: