#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...
How to call the cus...
 
Share:
Share
Tweet
Share
Notifications
Clear all

Script How to call the custom WPForo avatar in the frontend?

    Last Post
RSS

lucasvlc
Posts: 15
 lucasvlc
Topic starter
February 7, 2022 10:52 pm
(@lucasvlc)
Active Member
Joined: 5 months ago

Hello, I'd like to know what is the name of the custom field used as an avatar for users. I need to call it in a different page and I don't know the name.... thanks in advance

wpForo Version
1.9.9.1
PHP Version
7.4
Topic Tags
avatars call avatars
3 Replies
Chris
Posts: 1437
 Chris
Admin
February 8, 2022 1:16 pm
(@chris)
Support Team
Joined: 12 months ago

Hi @lucasvlc,

wpForo is well integrated with WordPress, and if you Enable Replace Author Avatar with Forum Profile Avatar from Dashboard > Forums > Settings > Features you can call Avatars using the below WordPress Function code:

get_avatar( mixed $id_or_email, int $size = 96, string $default = '', string $alt = '', array $args = null )

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
lucasvlc
Posts: 15
 lucasvlc
Topic starter
February 8, 2022 5:20 pm
(@lucasvlc)
Active Member
Joined: 5 months ago

Ok, but I need to change the avatar from a form in the account page... I am building a dashboard and it has a form where user can update the data from his profile. For this I need to know where is the avatar data managed by WPForo saved...

Reply
1 Reply
Chris
 Chris
Admin
(@chris)
Joined: 12 months ago

Support Team
Posts: 1437
February 9, 2022 11:00 am
Reply tolucasvlclucasvlc

@lucasvlc,

prefix_wpforo_profiles > avatar column.

You need to reset wpForo User Cache after the Data update. Call the below php funtion to reset wpForo User Cache:

WPF()->member->reset( $userid );

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
  All forum topics
  Previous Topic
Next Topic  
Related Topics
  • API] Problem with avatar link
    1 year ago
  • Profile Images not updating
    2 years ago
  • All Profile Pictures on Forums are of the Owner (Me)
    3 years ago
Topic Tags:  avatars (4), call avatars (1),

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

  • Editors assign users to groups

    By mike_netinfo, 21 mins ago

  • Set password link opens forum login page instead of set password page

    By JanJan, 47 mins ago

  • User banned for using icons?

    By JanJan, 1 hour ago

  • Font Awesome Icons

    By seancallahan, 2 days ago

  • Notification bell order

    By teepeenomad, 3 days ago

  • Not İndexing

    By selinahub, 3 days ago

Topic Tags

  • css52
  • translation50
  • plugin conflict48
  • seo47
  • new features45
  • buddypress43
  • avatar41
  • moderation40
  • ultimate member40
  • login40
  • forum40
  • registration37
  • threaded layout35
  • cache34
  • editor33
  • menu33
  • shortcode32
  • spam31
  • forum accesses30
  • widget29
View all tags (2188)

Recent Posts

  • Editors assign users to groups

    Hi, Only administrator can add members to usergro...

    By mike_netinfo, 21 mins ago

  • RE: Set password link opens forum login page instead of set password page

    Which other information to you require to check this? I...

    By JanJan, 36 mins ago

  • User banned for using icons?

    Hi, One of our legitimate forum users got banned. He ...

    By JanJan, 1 hour ago

  • Font Awesome Icons

    To start, I do not have any caching setup on the site o...

    By seancallahan, 2 days ago

  • RE: Is there a way to add safety features?

    @chris Is there a way for me to install 2.0 on my site ...

    By seancallahan, 2 days ago

  • RE:

    By Anonymous, 53 years ago

  • RE: Notification bell order

    @tutrix Brilliant, thank you for this! Although, it ...

    By teepeenomad, 2 days ago

Share:
Share
Tweet
Share
  Forum Statistics
21 Forums
9,929 Topics
50.2 K Posts
2 Online
47.8 K Members

Latest Post: Editors assign users to groups Our newest member: Audience One 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