• Resolved stkostis

    (@stkostis)


    Hallo,
    Im having trouble configuring the history page in my website. The chat history appears boxed on the right of the page, without pagination etc.

    Could you help?
    Screenshot: https://postimg.org/image/b4uf2gad5/

    I have added the following in my history page:

    <div id=”chatbroHistory”></div>
    <script id=”chatBroEmbedCode”>
    /* Chatbro Widget Embed Code Start */
    function ChatbroLoader(chats,async) {async=async!==false;var params={embedChatsParameters:chats instanceof Array?chats:[chats],needLoadCode:typeof Chatbro===’undefined’};var xhr=new XMLHttpRequest();xhr.withCredentials = true;xhr.onload=function(){eval(xhr.responseText)};xhr.onerror=function(){console.error(‘Chatbro loading error’)};xhr.open(‘POST’,’//www.chatbro.com/embed_chats/’,async);xhr.setRequestHeader(‘Content-Type’,’application/x-www-form-urlencoded’);xhr.send(‘parameters=’+encodeURIComponent(JSON.stringify(params)))}
    /* Chatbro Widget Embed Code End */
    ChatbroLoader({
    encodedChatId: ’95ic’,
    containerDivId: ‘chatbroHistory’,
    useStandardHistoryWidgetSettings: true
    });
    </script>

    • This topic was modified 8 years, 3 months ago by stkostis.
Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author ChatBro

    (@yozeg)

    Will fix this issue in nearest release. Thank you for reporting.

    Plugin Author ChatBro

    (@yozeg)

    Problem fixed

    Thread Starter stkostis

    (@stkostis)

    works ok but now I’m having trouble with pagination.
    The chat history is showing but without pagination

    My script is the following:

    <script id=”chatBroEmbedCode”>
    /* Chatbro Widget Embed Code Start */
    function ChatbroLoader(chats,async) {async=async!==false;var params={embedChatsParameters:chats instanceof Array?chats:[chats],needLoadCode:typeof Chatbro===’undefined’};var xhr=new XMLHttpRequest();xhr.withCredentials = true;xhr.onload=function(){eval(xhr.responseText)};xhr.onerror=function(){console.error(‘Chatbro loading error’)};xhr.open(‘POST’,’//www.chatbro.com/embed_chats/’,async);xhr.setRequestHeader(‘Content-Type’,’application/x-www-form-urlencoded’);xhr.send(‘parameters=’+encodeURIComponent(JSON.stringify(params)))}
    /* Chatbro Widget Embed Code End */
    ChatbroLoader({
    encodedChatId: ’95ic’,
    containerDivId: ‘chatbroHistory’,
    useStandardHistoryWidgetSettings: true
    });
    </script>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘History’ is closed to new replies.