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.