Photos vCard view and validation in Web interface

Hi,

First is it possible to add the photo of the vCard of each user when we consult the list of users and users connected in the Web Administration interface ? If it's possible, is it simple, hard to do ? I'm newbie in Erlang, Mnesia and Ejabberd.

Second thing, for my ejabberd server, I'd like to add a function to validate the photo of the vCard of each user. Same question, is it simple or very complex ? What are the solutions ? Maybe someone has already made that but I find nothing on Internet.

Regards

Julien

The only way to modify the

The only way to modify the photo on the vcard is the user sending an XMPP packet, as Jabber clients do.

I think adding that feature to web admin would be 'medium' difficulty :)

'Validate the photo', do you mean to check if the user modified it?

Do you want all users to have exactly the same photo, or each one may have a different one? Do you want to prevent users from changing the photo you selected for them?

Ok to modify the photo. In

Ok to modify the photo. In fact, it's not a modification but simply a consultation of the photo that I'd like. I just want that our administrator for the ejabberd server can see the photo of each user in the Web interface.

About 'validate the photo', yes we want check if it's not a pornographic photo for example. So, our administrator needs a list of users who have modified their photo, and for each user, he could accept or refuse it.

I hope it's more precise than the first post.

Julien

PS : I'm french and don't speak English fluently, so I hope it's understandable.

Someone to help me ?

Someone could help me for my questions and problems ?

I've an Erlang program (http://www.julienbarbedette.com/ejabberd/ejabberd_users.erl) which dumps info about users registered on server (with some vcard info) from mnesia to html file. But for the photo, I've a problem. The HTML file obtained looks like to http://julienbarbedette.com/ejabberd/usersList.html . The photo is not the jpeg photo, but it's the binary code or something like that.

After I could re-use that for the Web administration interface.

Julien

I added two small functions:

I added two small functions: get_user_photo and write_user_photo, and now it stores images on JPEG files.

Try the modified source code and compiled binary: ejabberd_users

Syndicate content