Skip to Content Skip to Menu

[solved] How are users avatars generated ?

11 years 6 months ago - 11 years 6 months ago #225593 by 0360136016
[solved] How are users avatars generated ? was created by 0360136016
Hi CB users,

I'm developping a new J3.0.3 website linked with a foreign database from where my users are authenticated (I've writed a custom auth plugin for this). I've got also a custom php script that synchronisze users details in CB fields (like adress, country and so on wich are fetched from the foreign database). Everything works as expected. In the foreign database, users profile images are base64 encoded.

I want that my batch script also creates users profile images in the images/comprofiler folder.

Can someone tell me how CB creates these images (and especially names them, it looks something like 1234_jgh12sflh.png where 1234 is the CB userID) ?

Thanks in advance.
Last edit: 11 years 6 months ago by 0360136016.

Please Log in or Create an account to join the conversation.

11 years 6 months ago #225595 by 0360136016
Replied by 0360136016 on topic [solved] How are users avatars generated ?
Forget it,
easy in fact, just put the base64 decoded image in the images/comprofiler folder and set the avatar field of comprofiler table to image name. (i'm using also PHPThumb to generate thumbnail)

Please Log in or Create an account to join the conversation.

Moderators: beatnantkrileon
Powered by Kunena Forum