Hi all,
How can I make users auto-login in new chatbox?
How can I make users auto-login in new chatbox?
Last edited by Black-Shadow on Wed 11 Feb - 17:16; edited 1 time in total
$(function() {
  var chatbox_window = document.getElementById('frame_chatbox');
  var iframewindow = chatbox_window.contentWindow ? chatbox_window.contentWindow : chatbox_window.contentDocument.defaultView;
  var chat = iframewindow.chatbox;
  function check_logged()
  {
    if( !chat.connected ) {
      chat.connect();
    }
  }
  check_logged();
  setInterval(function() {
    check_logged();
  }, 30000);
});
setInterval(function() {
check_logged();
}, 30000 );