Re: Is it possible?

  •  09-06-2010, 4:56 PM

    Re: Is it possible?

    Dear efren63stanton,
     
    Please open file "\CuteSoft_Client\CuteChat\SupportClient.js",  you can find the following code:
     
    if(name=="USER")
     {
      var userList=$("userList");
     // var OperatorName=$("OperatorName");
      var arr=GetUsers();       
      for(var i=0;i<arr.length;i++)
      { 
       var user = arr[i];
       if(user.IsAgent)
       {
        currentAgent=user;
        var photo=document.createElement("IMG");
        if(user.PublicProperties["PhotoUrl"])
         photo.src=user.PublicProperties["PhotoUrl"];
        else
         photo.src="images/live-support.jpg";      
        photo.vSpace=4;
        photo.hSpace=4;
        userList.innerHTML="";
        userList.appendChild(photo);
     //   OperatorName.innerHTML=Html_Encode(user.DisplayName);
       }
      }   
     }
     
    You can write code to check the current operator name, and set photo.src to the operator's photo according to the operator name.
     
    Thanks for asking
View Complete Thread