#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
Show Likers with th...
 
Share:
Share
Tweet
Share
Notifications
Clear all

Style Show Likers with their avatar

    Last Post
RSS

Tutrix
Posts: 614
 Tutrix
Topic starter
May 14, 2022 8:16 am
(@tutrix)
Honorable Member
Joined: 2 years ago

Hi,

i have mudified the mentioned members and the likers (in a separate line) so that the avatar is also shown.

everything works fine for the members mentioned

but the Likers only avatars are displayed that were uploaded via the upload function of wpForo
Gravatars or Letters Avatar (plugin) are not displayed

example post

i use this code for the likers, adjusted to the number of likers [0][1][2]

' . esc_url(WPF()->member->get_avatar_url($l_usernames[0]['ID'])) . '

can someone give me the correct code that all avatars are displayed 😉 

Forum Page URL
https://www.tutrix.de/forum/

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Topic Tags
likers avatar
6 Replies
Chris
Posts: 1368
 Chris
Admin
May 18, 2022 2:14 pm
(@chris)
Support Team
Joined: 10 months ago

Hi @tutrix,

Try this methods in Members Class

WPF()->member->get_avatar()

or

WPF()->member->avatar()

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
Tutrix liked
1 Reply
Tutrix
 Tutrix
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 614
May 18, 2022 3:27 pm
Reply toChrisChris

Hi @chris 

thanks for your help
but what do you mean by "members class"?

my complete avatar code above currently looks like this

first liker

<span class="nickname-ava"><img src="' .esc_url(WPF()->member->get_avatar_url($l_usernames[0]['ID'])) . '"/></span>

second liker

<span class="nickname-ava"><img src="' .esc_url(WPF()->member->get_avatar_url($l_usernames[1]['ID'])) . '"/></span>

etc.

have now tested different versions with your code, but always gives an error 😉 

 

for the mentioned members I use this code

<span class="nickname-ava">' . WPF()->member->avatar( $member ).' </span>

but it does not work for the Likers

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Reply
fawp
Posts: 104
 fawp
May 19, 2022 9:31 am
(@fawp)
Estimable Member
Joined: 3 years ago
Posted by: @tutrix

have now tested different versions with your code, but always gives an error

What error are you getting?

Reply
1 Reply
Tutrix
 Tutrix
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 614
May 19, 2022 10:32 am
Reply tofawpfawp

@fawp 

  • a half crashed forum
  • a fully crashed forum
  • syntax error if I forget a character 😀 
  • an empty image path like the code used so far

    if you know the right code, just post it 😉 

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Reply
fawp
Posts: 104
 fawp
May 19, 2022 7:33 pm
(@fawp)
Estimable Member
Joined: 3 years ago
Posted by: @tutrix

if you know the right code, just post it

No, I don't use any such function. The reason I asked is I thought you were getting a php error which might have been helpful to wpForo support, but it seems you are not getting those.

Reply
Tutrix liked
1 Reply
Tutrix
 Tutrix
(@tutrix)
Joined: 2 years ago

Honorable Member
Posts: 614
May 20, 2022 3:40 am
Reply tofawpfawp

@fawp 

ok, thanks for trying to help

visit my wpForo > Tutrix.de with lots of customization & modification, inclusive chat

Reply
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • Ongoing issue with Avatar Images
    2 months ago
  • Avatars Not Uploading
    2 months ago
  • How to fix user details spacing in post (MOBILE only)
    4 months ago
  • Avatars copyright
    4 months ago
  • Avatar Image Too Big Maximum Allowed Size is 2MB
    4 months ago
Topic Tags:  likers (1), avatar (40),

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • purchase of add on and it says payment pending

    By ReddBeard, 12 hours ago

  • Costume text and image on every forum

    By Vijiki, 1 day ago

  • Forum topics and pages not indexing

    By Vijiki, 2 days ago

  • Can't send confirmation email from topics when suscribe for new topic

    By gilbau, 2 days ago

  • Can't add shortcodes to wpForo

    By avorai, 2 days ago

  • New Feature H1 title for tags

    By annushka, 2 days ago

Topic Tags

  • translation49
  • css49
  • plugin conflict48
  • seo45
  • new features44
  • buddypress42
  • ultimate member40
  • avatar40
  • forum40
  • moderation38
  • login38
  • registration36
  • threaded layout35
  • cache33
  • editor32
  • menu32
  • shortcode31
  • spam29
  • phrases28
  • forum accesses28
View all tags (2163)

Recent Posts

  • RE: Costume text and image on every forum

    @vijiki There is no wpForo2 for the moment. Also forget...

    By dimalifragis, 9 hours ago

  • RE: Can't add shortcodes to wpForo

    @avorai So, SAC.PHP is crashing and it is wpForo the ca...

    By dimalifragis, 9 hours ago

  • RE: purchase of add on and it says payment pending

    Hi @reddbeard, Please move this topic to gVectors Sup...

    By Robert, 11 hours ago

  • RE: Show Likers with their avatar

    @fawp ok, thanks for trying to help

    By Tutrix, 23 hours ago

  • RE: Can't send confirmation email from topics when suscribe for new topic

    @gilbau, wpForo uses WordPress wp_mail() function. wp...

    By Robert, 2 days ago

  • RE: Forum topics and pages not indexing

    So all is ok from wpForo site. I have nothing to add he...

    By Robert, 2 days ago

  • RE: Can users be in multiple forums?

    @monimair, wpForo has secondary usergroups function so...

    By Chris, 2 days ago

Share:
Share
Tweet
Share
  Forum Statistics
20 Forums
9,756 Topics
49.5 K Posts
6 Online
43.6 K Members

Latest Post: Costume text and image on every forum Our newest member: Easy Points To Consider Womens... Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation