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

Where does wpDiscuz get the name of a logged-in commenter

2 Posts
2 Users
1 Reactions
2,822 Views
(@yoelshortz)
Active Member
Joined: 7 years ago
Posts: 6
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
  [#3450]

Hi,

I'm not sure if I've found a bug. Can someone please tell me where wpDiscuz gets the name of a logged-in commenter? The name of the SQL table and column is what I'm looking for.
Check out the attached screenshot to see what name I'm referring to.

For some reason, it looks like wpDiscuz takes the nicename for some users and the first name+last name for others, and the email for others.

I don't understand why this is happening so I would like to check the values in the database, but it doesn't look like wpDiscuz is taking it from where I think it is.

 

Thanks!

The Detainee s Tale as told to Ali Smith   Ali Smith   The Short Story Project


   
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 @yoelshortz,

wpDiscuz gets it from the display_name field in the wp_users table.

display name

If this field is empty, it gets from the  comment_author  in the wp_comments

comment author


   
shortstory reacted
ReplyQuote
Share:
Scroll to top