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

[Solved] User avatars in comments

3 Posts
2 Users
0 Reactions
2,077 Views
(@mariia-smolina)
Member Customer
Joined: 6 years ago
Posts: 9
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
  [#6019]

Hello! I am using "WP User Avatar" on my site. To display the avatar in the comments, they recommend using the function:

Comments
For comments, you might have in your template:

<? php echo get_avatar ($comment, 32); ?>
Replace this function with:

<? php echo get_wp_user_avatar ($comment, 32); ?>
For comments, you must specify the $comment variable.

How do I change the class.WpdiscuzWalker.php code to replace the avatar output function? Tnx!



   
Quote
Topic Tags
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
 

@mariia-smolina,

Just find the get_avatar function in the class.WpdiscuzWalker.php file and replace it with the code provided by the plugin support. 

Customization doc can be found here: https://wpdiscuz.com/docs/wpdiscuz-documentation/customization/custom-template-and-style/



   
ReplyQuote
(@mariia-smolina)
Member Customer
Joined: 6 years ago
Posts: 9
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
 

Yes it worked! Thank!



   
ReplyQuote
Share:
Scroll to top