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.

chat box log in/out

3 posters

Go down

Solved chat box log in/out

Post by zenzo Fri Mar 17 2017, 03:52

hello,..how to remove chat box log in/out

is it possible when you log in to the forum you will automatically log in to chatbox permanently until you will log out.

http://gsmcotabato.forumotion.com/
zenzo
zenzo
Forumember

Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: chat box log in/out

Post by Draxion Fri Mar 17 2017, 04:35

Hi there, there is one code that allows it to forcefully log users into the chatbox every time they visit the index page but as to force them in there 'permanently' until they log out isn't possible since they will be timed out regardless after being idle for so long.
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Solved Re: chat box log in/out

Post by zenzo Fri Mar 17 2017, 04:46

Draxion wrote:Hi there, there is one code that allows it to forcefully log users into the chatbox every time they visit the index page but as to force them in there 'permanently' until they log out isn't possible since they will be timed out regardless after being idle for so long.

what is that code...
zenzo
zenzo
Forumember

Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: chat box log in/out

Post by Draxion Fri Mar 17 2017, 04:56

Here you are.

Code:
$(window).load(function() {
  var chatbox_script = function() {
    setTimeout(function(){ $('#chatbox_option_co:visible').click() }, 1000);
  };
  var s=document.createElement('script');s.text="("+chatbox_script.toString()+")();";$('object[data^="/chatbox/index.forum"],iframe[src^="/chatbox/index.forum"]').each(function(){try{$(this.contentDocument||this.contentWindow.document).find("#chatbox").closest("html").find("head").first().each(function(){this.appendChild(s.cloneNode(true))})}catch(a){}})
});
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Solved Re: chat box log in/out

Post by zenzo Fri Mar 17 2017, 05:07

well done thank you, topic solve
zenzo
zenzo
Forumember

Posts : 564
Reputation : 13
Language : english,tagalog
Location : philippines

Back to top Go down

Solved Re: chat box log in/out

Post by Draxion Fri Mar 17 2017, 05:08

You're very welcome.

Have a good night! Smile
Draxion
Draxion
Helper
Helper

Male Posts : 2518
Reputation : 321
Language : English
Location : USA

https://www.talesoftellene.com/

Back to top Go down

Solved Re: chat box log in/out

Post by SLGray Fri Mar 17 2017, 07:22

Problem solved & topic archived.
Please read our forum rules:  ESF General Rules


chat box log in/out 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 : 51464
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