The forum of the forums
Welcome to the Official Support Forum of Forumotion!

To take full advantage of everything offered by our forum, please log in if you are already a member, or join our community if you've not yet.



Create a free forum like this one.

Chatbox problem

View previous topic View next topic Go down

Solved Chatbox problem

Post by Suwun on 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

Suwun
New Member

Female Posts : 12
Reputation : 1
Language : Hungarian

Back to top Go down

Solved Re: Chatbox problem

Post by Ange Tuteur on 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 :

Ange Tuteur
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Chatbox problem

Post by Guest on 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

Guest
Guest


Back to top Go down

Solved Re: Chatbox problem

Post by Suwun on 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.

Suwun
New Member

Female Posts : 12
Reputation : 1
Language : Hungarian

Back to top Go down

Solved Re: Chatbox problem

Post by Ange Tuteur on 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
Forumaster

Male Posts : 13021
Reputation : 2683
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

Solved Re: Chatbox problem

Post by Suwun on 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

Suwun
New Member

Female Posts : 12
Reputation : 1
Language : Hungarian

Back to top Go down

Solved Re: Chatbox problem

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

Topic solved and archived


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


SLGray
Administrator
Administrator

Male Posts : 35627
Reputation : 2372
Language : English
Location : United States

http://fmthemes.forumotion.com/

Back to top Go down

View previous topic View next topic Back to top


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