To this to work you need to create a new theme and a new skin. Also needed is a path where customer user pictures are stored that match the userlogin. In our case we use the intranet and since we already store them with userlogin-namne i.e. 1234.jpg its very easy.
Create a new theme and make a copy of AgentCustomerTableView.tt and then modify it
right after:
Code: Select all
[% RenderBlockEnd("CustomerImageRealname") %]
<div>
<img src="[% Data.URL %]" />
</div>
[% RenderBlockEnd("CustomerImage") %]
Code: Select all
<center>
<img class="UserPicture" src="http://URL TO WHERE IMAGES IS STORED/[% Data.UserLogin%].jpg" onerror='this.style.display = "none"'/>
</center>
Now to get the circle effect we need to create a new skin. If you already have custom skin you just need to add this code to Core.Default.css else create a new Core.Default.css.
Code: Select all
/* Border for CustomerUserPicture */
img.UserPicture {
width: 120px;
height: 120px;
-webkit-border-radius: 150px;
-moz-border-radius: 150px;
-ms-border-radius: 150px;
-o-border-radius: 150px;
border-radius: 150px;
}
Hope someone finds it useful