1 (edited by NarinNil 2012-05-30 10:53:12)

Topic: how to view jpegPhoto attribute in roundcube in address book

OK I successfuly about to show more user detail in roundcube addressbook that integrated with AD

http://www.iredmail.org/forum/topic3463 … th-ad.html

But I have a little question because I want to show picture of user that contain in jpegPhoto attribute
I tried it first like previous topic but not work, Can anyone explain about this, Thanks again for advance

my system
iredmail 0.8.0 on ubuntu 12.04 + windows 2003 std r2 sp2 x64 on vmware esxi 5.1

----

Spider Email Archiver: On-Premises, lightweight email archiving software developed by iRedMail team. Supports Amazon S3 compatible storage and custom branding.

2 (edited by NarinNil 2012-05-30 11:59:22)

Re: how to view jpegPhoto attribute in roundcube in address book

OK i success it by my self and nedd to share to all

First add user photo by this tool (I try with free edition and it's work)

http://www.cjwdev.co.uk/Software/ADPhotoEdit/Info.html

After install this tool (on your AD server or setup to connect to your AD server)
Next step just see at top right of main screen, You can select for attribute that
contain user picture [jpegPhoto] or [thumbnailPhoto]

Then upload photo to selected user

go to main config/main.inc.php and add this line same as my previous topic

'photo_field' => 'jpegPhoto',
(or thumbnailPhoto that's you select on tool)

In the end just save your file and see in your roundcube addressbok, That's finish

(I think it's so small and I will try to edit for resize that view picture again)

3 (edited by NarinNil 2012-05-30 12:36:46)

Re: how to view jpegPhoto attribute in roundcube in address book

edit file /skins/default/addressbook.css to change size that's show in address book
change below all 60px to 120px or that you want

#contactphoto
{
    float: right;
    width: 120px;
    margin-left: 3em;
    margin-right: 4px;
}

#contactpic
{
    width: 120px;
    min-height: 120px;
    border: 1px solid #ccc;
    background: white;
}

#contactpic img {
    width: 120px;