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

 Sort Search Results by:

AI Assistant
Notifications
Clear all

Users Name shows both first and last name

3 Posts
2 Users
0 Reactions
2,131 Views
(@lisaew)
New Member
Joined: 8 years ago
Posts: 2
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
  [#2629]

In order to keep our users private,  we'd like to only show the users first name when the post in the form on memberium.   Is there a setting I can use to change this? 



   
Quote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6645
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
 

Hi lisa@EW,

I'm sorry, but I don't follow you. Please explain using some screenshots. 

 



   
ReplyQuote
(@lisaew)
New Member
Joined: 8 years ago
Posts: 2
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
 

HI Astghik thans for responding!

 

I've attached a screen shot. 

FIRST & LAST NAME


   
ReplyQuote
Astghik
(@astgh)
Illustrious Member Admin
Joined: 8 years ago
Posts: 6645
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
 

Hi lisa@EW,

I'm sorry, but wpDiscuz doesn't have such an option. You need to use the following code. Put it in your current active theme function.php file:

add_filter('wpdiscuz_comment_author', 'custom_comment_author_name', 10,2);

if (!function_exists('custom_comment_author_name')) {
function custom_comment_author_name($authorName, $comment){
if (strpos($authorName, ' ') !== false) {
$authorNameData = explode(' ', $authorName);
$authorName = $authorNameData[0];
}
return $authorName;
}
}


   
ReplyQuote
Share:
Scroll to top