0 Replies Latest reply: Aug 29, 2012 2:51 AM by hhansell RSS

    Updating profile to use an internal AD URL for photos

    hhansell

      1. Under Admin -> People -> Settings -> Profile Settings

      create a custom field, Company Photo, type URL, mapping to the value in AD that holds the url for the photo

       

      2. Under Admin -> System -> Settings -> Themes

      edit your current theme, and create a custom template for /template/global/include/profile-macros.ftl


      3. Locate <div id="jive-profile-photo">

       

      and replace the it with:

       

      <div id="jive-profile-photo">

        <#if (showImage)>

        <#list profileImages as pImage>

        <#list fields as field>

        <#if field.visibleToUsers>     

         <#if (field.name == 'Company Photo')>

          <#if profile.get(field.ID)?exists>

        <#assign p=profile.get(field.ID) />          

        <img src="${p.value}" id='photo_${pImage.index?c}' class="jive-profile-photo" <#if (pImage_index > 0)>style="display:none"</#if> />

        <#else>

        <img src="<@resource.url value='/images/jive-profile-default-portrait.png' />" alt="<@s.text name='profile.noImageSelected.text'><@s.param><@jive.displayUserDisplayName user=targetUser/></@s.param></@s.text>" width="320" border="0" class="jive-profile-photo" />

        </#if>

          </#if>

        </#if>

        </#list>

        </#list>

        <#else>

        <img src="<@resource.url value='/images/jive-profile-default-portrait.png' />" alt="<@s.text name='profile.noImageSelected.text'><@s.param><@jive.displayUserDisplayName user=targetUser/></@s.param></@s.text>" width="320" border="0" class="jive-profile-photo" />

        </#if>

      </div>