Quantcast
Channel: LivePerson Connect : Popular Discussions - All Communities
Viewing all articles
Browse latest Browse all 2324

Custom agent images not showing up

$
0
0

Hi:

 

I have followed the steps to allow for customized agent pictures to show up, with no luck. I see others have had this issue, but haven't found a real solution in any of the discussions.

 

I have updated and published these changes, the little check mark is green. I have named the images found here by nickname. I have an image for each user. They are the only images in the folder.

http://www.sea.edu/images/sea_images/chat/agent_pics/Elizabeth.jpg

 

The file type is right. The campaign is a pop up, but I'm testing it as the end user, clicking to chat.

 

Still getting the default chat image. Please help!

 

Here is my chat_event_handlers code:

## this template is the extended chat API function calls

## DO NOT change this template's filename, since its used in ChatLibrary.refreshAndCompleteDefaults()

#set($eventHandlersIncluded = true)

 

 

<script type="text/javascript">

/* event handlers section */

 

 

/* when chat starts with rep (either after click or after transfer) */

function lpceStartChat( repid, nickname ) {

     dynamicBranding(nickname);

 

}

 

function dynamicBranding(nickname)

{

     var needRightIFrame=${chat.needRightIFrame};

     if (needRightIFrame) //Branding area is an Iframe

          displayAgentPicture("chatImageIfr",nickname);

     else //Branding area is an image

          displayAgentPicture("chatImage",nickname);

}

 

function displayAgentPicture(elemID, nickname)

{

     var branding=document.getElementById(elemID);

     var imageLocation="http://www.sea.edu/images/sea_images/chat/agent_pics"; //Location of your agent's pictures.

     var imageSuffix="jpg"; //Default image type is JPG. You can adjust this per your requirements.

 

 

     branding.src=imageLocation+"/"+nickname+"."+imageSuffix+""

}

 

 

/* when rep stops chat */

function lpceStopChat(){

}

 

 

/* when a line comes from the server (either by rep or system) */

function lpceChatLine(text,by,type,time) {

}

 

 

/*  when rep starts typing */

function lpceRepTyping(isType) {

}

 

 

/* when visitor sends a line */

function lpceVisitorLine(str) {

}

 

 

/* when visitor clicks the close button (and before everything else) */

function lpceCloseButtonClick() {

}

 

 

/* when chat window finished loading */

function lpceWindowLoaded() {

}

 

 

/* when chat window calls window unload */

function lpceWindowUnload() {

}

 

 

/* when print button clicked */

function lpcePrintChat() {

}

 

 

/* when visitor submits email */

function lpceEmailSubmit(email) {

}

 

 

/* when the text area of the chat window changes from nothing to something and vice versa */

function lpceVisitorTyping(isTyping) {

}

 

 

/* when a2a event arrive from server */

function lpceA2ATransfer(remoteSiteid, remoteSkill) {

}

 

 

</script>

<noscript><p>

This functionality requires JavaScript. Please enable JavaScript and try again.

To read the LivePerson accessibility policy, please go to the <a href='http://www.liveperson.com/help/accessibility.asp'>Liveperson accessibility policy page</a>.</p>

</noscript>

 


Viewing all articles
Browse latest Browse all 2324

Trending Articles