Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8121469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 6, 20262026-06-06T05:29:51+00:00 2026-06-06T05:29:51+00:00

I am working on a migration work to WordPress for a site where all

  • 0

I am working on a migration work to WordPress for a site where all user images of old site has to set as avatars in WordPress buddypress profile.

I wrote a PHP script to migrate all users along with passwords and working fine.

My problem is how to set user avatar using PHP code (not WordPress code). I didn’t understand how it is storing and where in tables it is storing. I know the location it is storing be in format like,

wp_content/uploads/avatars/userid/randomtext.jpg

How this randomtext.jpg is generating and where this information is saving?

Can anyone help me?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-06T05:29:53+00:00Added an answer on June 6, 2026 at 5:29 am

    Thats it you dont have to create any random text. Just create a directory with userid as name in inside “avatars” folder and save two images like say for userid (22),

    wp_content/uploads/avatars/22/22-bpfull.jpg (150x150px)
    wp_content/uploads/avatars/22/22-bpthumb.jpg (50x50px)

    or
    wp_content/uploads/avatars/22/anyname-bpfull.jpg
    wp_content/uploads/avatars/22/anyname-bpthumb.jpg

    Thats it. No need to store in any table. Just create images in respective directories.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a blog migration from a custom built blog to Wordpress. One
I'm working on migrating a static site to a new one based on Wordpress
I am working on migration of data from an old system to a new
So I am currently working on a migration from an old Advantage database server
I'm working on migration of data from a legacy system into our new app(running
I am working on database migration tool in java. The tool is copying database
I'm working on database migration program and I'm trying to migrate one database to
So I'm working on this VB to C# web application migration and came across
For source control we currently use Team Coherence 7.1.3.25, which has been working great
I have a very strange error happening in an App that has been working

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.