Active
Project:
LDAP Contact Manager
Version:
6.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
12 Aug 2010 at 11:28 UTC
Updated:
12 Aug 2010 at 11:28 UTC
Hi,
I know by default image/picture integration is not there in this module, but it can be achieved y using ldapdirectory module.
download this module http://drupal.org/project/ldapdirectory and enable it and also "view ldap directory block" permission
then edit ldapab.display.inc
after this code
if ($entry->exists('cn')) {
drupal_set_title($entry->getValue('cn', 'single'));
}
add the following code
$photouid=$entry->getValue('uid', 'single');
if ($entry->exists('jpegPhoto'))
{
$rows[]=array(
array('data' =>'Photo', 'header' => TRUE),
'<img src="'. url("ldapdirectory/picture/1/$photouid") .'" height="150px"></center>',
);
where "uid" is the ldap attribute containing one user details.
although ldapdirectory itself can be used instead of ldapcm, this is just for information, for those who like ldapcm.