• Lorenz Hörner
  • NEWBIE
  • 0 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 1
    Replies
Hi there,
i am trying to add the Live Agent to my Community for several days now...

FIrst i tried to implement the Chat Button to my Community site by trying this: https://help.salesforce.com/articleView?id=000247349&type=1
Although every ID was implemented correctly, this button just always shows "Chat Unvailable".

So i tried to make a button on my own via a Visualforce Page and then i wanted to add it to my community. It works fine when i just save it as an HTML file and open it in the browser, but when i want to implement it via Visualforce into my Community it just shows the picture of the Offline/Online status, but i am not able to click it.

Any idea what is wrong there? I also tried it with the "Automated Inivation" Code instead of the Chat Button Code, but still doesnt work :(

Thank you for your help!


This is my Code: 
 
<apex:page >
<img id="liveagent_button_online_5730Y000000Cdn1" style="display: none; border: 0px none; cursor: pointer" onclick="liveagent.startChat('5730Y000000Cdn1')" src="https://esaas-developer-edition.eu11.force.com/b2c/resource/1493552309000/Online" /><img id="liveagent_button_offline_5730Y000000Cdn1" style="display: none; border: 0px none; " src="https://esaas-developer-edition.eu11.force.com/b2c/resource/1493552255000/Offline" />
<script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('5730Y000000Cdn1', document.getElementById('liveagent_button_online_5730Y000000Cdn1'));
liveagent.showWhenOffline('5730Y000000Cdn1', document.getElementById('liveagent_button_offline_5730Y000000Cdn1'));
});</script>



<script type='text/javascript' src='https://c.la1-c2-par.salesforceliveagent.com/content/g/js/39.0/deployment.js'></script>
<script type='text/javascript'>
liveagent.init('https://d.la1-c2-par.salesforceliveagent.com/chat', '5720Y000000CdFk', '00D0Y000001etN6');
</script>
</apex:page>
Hi there,
i am trying to add the Live Agent to my Community for several days now...

FIrst i tried to implement the Chat Button to my Community site by trying this: https://help.salesforce.com/articleView?id=000247349&type=1
Although every ID was implemented correctly, this button just always shows "Chat Unvailable".

So i tried to make a button on my own via a Visualforce Page and then i wanted to add it to my community. It works fine when i just save it as an HTML file and open it in the browser, but when i want to implement it via Visualforce into my Community it just shows the picture of the Offline/Online status, but i am not able to click it.

Any idea what is wrong there? I also tried it with the "Automated Inivation" Code instead of the Chat Button Code, but still doesnt work :(

Thank you for your help!


This is my Code: 
 
<apex:page >
<img id="liveagent_button_online_5730Y000000Cdn1" style="display: none; border: 0px none; cursor: pointer" onclick="liveagent.startChat('5730Y000000Cdn1')" src="https://esaas-developer-edition.eu11.force.com/b2c/resource/1493552309000/Online" /><img id="liveagent_button_offline_5730Y000000Cdn1" style="display: none; border: 0px none; " src="https://esaas-developer-edition.eu11.force.com/b2c/resource/1493552255000/Offline" />
<script type="text/javascript">
if (!window._laq) { window._laq = []; }
window._laq.push(function(){liveagent.showWhenOnline('5730Y000000Cdn1', document.getElementById('liveagent_button_online_5730Y000000Cdn1'));
liveagent.showWhenOffline('5730Y000000Cdn1', document.getElementById('liveagent_button_offline_5730Y000000Cdn1'));
});</script>



<script type='text/javascript' src='https://c.la1-c2-par.salesforceliveagent.com/content/g/js/39.0/deployment.js'></script>
<script type='text/javascript'>
liveagent.init('https://d.la1-c2-par.salesforceliveagent.com/chat', '5720Y000000CdFk', '00D0Y000001etN6');
</script>
</apex:page>