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

In progress Chatbox problem

Post by Hazelowa on April 30th 2014, 1:59 pm

Hi! I've got a question about the chatbox available on the forumotion. It is really annoying that the users are logged out after 5 minutes because of the information on the cbox. Would it be possible to change the time when the user is logged out ? Or get rid of this info who's logged out ?

Thanks for attention Smile

Hazelowa
New Member

Posts : 5
Reputation : 1
Language : English, Polish, German, French
Location : Poland

http://fallen-races.forumpolish.com/

Back to top Go down

In progress Re: Chatbox problem

Post by Ange Tuteur on April 30th 2014, 3:23 pm

Hello Hazelowa,

You can try this to get rid of the timeout :
Administration panel > modules > javascript codes management > create a new script

Title : what you wish
Placement : in all the pages, or homepage (it depends where your chat is)
Paste the code below and save :
Code:
setInterval(function(){ $.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent='); }, 5000);

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Chatbox problem

Post by Hazelowa on April 30th 2014, 4:00 pm

I pasted it and I think it didn't work SadAnd I have enabled js. But I really thank you for tryin' <3

Hazelowa
New Member

Posts : 5
Reputation : 1
Language : English, Polish, German, French
Location : Poland

http://fallen-races.forumpolish.com/

Back to top Go down

In progress Re: Chatbox problem

Post by Ange Tuteur on April 30th 2014, 4:20 pm

You're just wanting to stop users from being logged out, correct ?

Ange Tuteur
Forumaster

Male Posts : 13028
Reputation : 2704
Language : EN10, FR5
Location : Pennsylvania

http://fmdesign.forumotion.com

Back to top Go down

In progress Re: Chatbox problem

Post by Hazelowa on April 30th 2014, 7:16 pm

Exactly! Is there any chance that they would stay logged in on cbox till they leave forum or at least 30 min? Smile

Hazelowa
New Member

Posts : 5
Reputation : 1
Language : English, Polish, German, French
Location : Poland

http://fallen-races.forumpolish.com/

Back to top Go down

In progress Re: Chatbox problem

Post by Hazelowa on May 2nd 2014, 5:22 pm

Anybody? Sad

Hazelowa
New Member

Posts : 5
Reputation : 1
Language : English, Polish, German, French
Location : Poland

http://fallen-races.forumpolish.com/

Back to top Go down

In progress Re: Chatbox problem

Post by LGforum on May 7th 2014, 10:22 pm

The code above should disable the time out for you. By posting an empty message to the chatbox every 5 seconds the user stays logged into it. Your users will still appear as "Away" after a certain amount of time however.

Try lowering the sending rate, put this into a Javascript and tick "In all pages"
Code:
setInterval(function(){ $.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent='); }, 2500);

LGforum
Hyperactive

Male Posts : 2260
Reputation : 258
Language : English
Location : UK

http://www.avacweb.com/

Back to top Go down

In progress Re: Chatbox problem

Post by Hazelowa on May 11th 2014, 10:32 pm

Unfortunately it didn't work, because still users are logged out. I've changed duration, but still... So i guess there's no another way to solve my problem ?

Hazelowa
New Member

Posts : 5
Reputation : 1
Language : English, Polish, German, French
Location : Poland

http://fallen-races.forumpolish.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