Support

  1. thusby
  2. Features Request
  3. Saturday, December 28 2013, 03:50 PM
I have 250 avatars in a existing system (Community Builder) which is stored in the format

102_4cac62b9dccf7.jpg which is userid_some-random-string.jpg

Could you suggest a strategy for moving those images into to easyprofile?

I see the structure in EP is <images/profiler/avatar63_2222ddce1bf9b2d43c9a97c716be9921.jpg> with mini added to the name for thumbnail.

- Maybe some php code from the solution which I can use as a basis for a script ?

or is as simple as

- Can filename be anything unique with avatar<userid>_ and avatar<userid>mini_, and I just update the database field avatar with link ? Any sideeffects?

Seems to work in test


Regards
Terje
Accepted Answer
thusby Accepted Answer
Pro
It's weekend here also, so I didn't expect an answer today :-)

I have already testet it so it works, but just wanted to check if there were any reason for your naming structure.

Have a nice weekend.
T
  1. more than a month ago
  2. Features Request
  3. # Permalink
admin Accepted Answer
Admin
Hi, sorry for the late reply, but for us is weekend.

Simple, try this:
- Copy the DB values of column 'avatar' from #__comprofiler to 'avatar' in #__jsn_users for each user

Aftermath:
- When user upload or delete image, the community builder avatar file not removed
- The system not use the thumb image. (user lists might be a little heavier, but nothing that worries)

Note: I have not tested, but probably works. FIRST TRY WITH 1 USER
  1. more than a month ago
  2. Features Request
  3. # 1
  • Page :
  • 1


There are no replies made for this post yet.
However, you are not allowed to reply to this post.
Sorry, the discussion is currently locked. You will not be able to post a reply at the moment.

Request Support

Support is currently Offline

Support Availability

Working days: Monday to Friday. The support staff is not available on weekends; in the most of cases tickets will not be answered during that time.

Reply time: Depending on the complexity of your support issue it's usually between a few minutes and 24 hours for paid members and about one week for free members. When we expect longer delays we will notify you.

Guidelines

Before you post: read the documentation and search the forums for an answer to your question.

When you post: include Site Details if you request a support (you can use the form below the reply in Site Details tab).

Auto Solved Question: If after a week the author of the post does not reply to a request by moderator, the question will be marked as resolved.

Language: only English

Search Users

Easy Profile® is not affiliated with or endorsed by Open Source Matters or the Joomla Project. Joomla is Free Software released under the GNU/GPL License.