The forum of the forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Chatbox problem

3 posters

Go down

Solved Chatbox problem

Post by Suwun November 8th 2014, 10:25 pm

Greetings!
i haven't found a topic about this one. If there is one, please, tell me, but I could'nt find one.
Recently we experience a chat problem in our forum. I'm not the admin here, but the founder asked me to report this problem, so we will be able to see if there is a solution for this.
This problem occured to me, and for several users too. When I send a message to the chatbox, it stops refreshing. The message is still sent however, but the chat does not refresh itself. If I refresh the whole page, the chatbox is fine again for a few moments.
This is happening since the server change of forumotion.
Link to our forum:
http://swordartonline.lifeme.net/

Thanks in advance. Very Happy
EDIT: Solved


Last edited by Suwun on November 10th 2014, 7:27 pm; edited 1 time in total
avatar
Suwun
New Member

Female Posts : 15
Reputation : 1
Language : Hungarian

Back to top Go down

Solved Re: Chatbox problem

Post by Ange Tuteur November 8th 2014, 11:22 pm

Hello Suwun,

As far as I know I believe it has been reported, but I'll double check to make sure. For the moment you can force refresh the chatbox by clicking this button :
Chatbox problem Captur48
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Chatbox problem

Post by Guest November 8th 2014, 11:22 pm

I'd try to deactivate and then activate the chatbox from within the ACP. Did you already try that?

It's in the MODULES tab -> Chatbox -> Configuration. Select "Activate the chatbox" > NO, press VALIDATE, then select "Activate the chatbox" > YES, press VALIDATE.

It may come back to life again! Smile
avatar
Guest
Guest


Back to top Go down

Solved Re: Chatbox problem

Post by Suwun November 8th 2014, 11:26 pm

I'm going to ask he admins to do that. We will see if that fixes the problem. ^^

Force refresh works, but it would be uncomfortable to always do that.
avatar
Suwun
New Member

Female Posts : 15
Reputation : 1
Language : Hungarian

Back to top Go down

Solved Re: Chatbox problem

Post by Ange Tuteur November 8th 2014, 11:55 pm

It works, but it's not ideal. ^^

I wrote a quick script that will click the refresh button every second, but it can be adjusted. If the problem still persists you may tell them this :

Go to Administration Panel > Modules > JavaScript codes management

Make sure JS management is enabled and create a new script.

Title : Your choice
Placement : In the homepage ( if the chat is in the homepage )
Paste the code below and submit :
Code:
$(function() {
  var refresh_rate = 1000, // 1000 = 1 second, 5000 = 5 seconds..
      
  fa_chat = document.getElementById('frame_chatbox'), frame;
  if (!fa_chat) return;
  
  fa_chat.onload = function() {    
    if (fa_chat.contentDocument) frame = fa_chat.contentDocument;
    else if (fa_chat.contentWindow) frame = fa_chat.contentWindow.document;
    var a = frame.getElementsByTagName('A'),i;
    for (i=0; i<a.length; i++) if (/archives/.test(a[i].href)) a[i].onclick = function() { window.clearInterval(_chat_refresh) };
    _chat_refresh = window.setInterval(function() {
    var ref = frame.getElementsByTagName('A'),j;
      for (j=0; j<ref.length; j++) if (/ajax_refresh_chatbox/.test(ref[j].onclick)) ref[j].click();
    },refresh_rate);
  }
});

In the script is this variable :
Code:
var refresh_rate = 1000,

It determines how often the chat is refreshed. 1000 = 1 second, 2000 = 2 seconds, and so on..
Ange Tuteur
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

Solved Re: Chatbox problem

Post by Suwun November 10th 2014, 7:15 pm

Thank you for the help. Very Happy It seems like disabling, then enabling the chatbox worked fine. If anything goes wrong again, I'll tell the admins to use this script. They don't really like codes at all, even though it's not a problem for me. xD But well, I'm just a user there, who is there to help. Very Happy
Problem solved. ^^ Thank you for the responses. Very Happy
avatar
Suwun
New Member

Female Posts : 15
Reputation : 1
Language : Hungarian

Back to top Go down

Solved Re: Chatbox problem

Post by SLGray November 10th 2014, 7:35 pm

Topic solved and archived


Chatbox problem Slgray10

When your topic has been solved, ensure you mark the topic solved.
Never post your email in public.
SLGray
SLGray
Administrator
Administrator

Male Posts : 51482
Reputation : 3519
Language : English
Location : United States

https://forumsclub.com/gc/128-link-directory/

Back to top Go down

Back to top

- Similar topics

 
Permissions in this forum:
You cannot reply to topics in this forum