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.

chat box log in/out

View previous topic View next topic Go down

Solved chat box log in/out

Post by zenzo on Thu 16 Mar - 21: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/
avatar
zenzo
Forumember

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

Back to top Go down

Solved Re: chat box log in/out

Post by Draxion on Thu 16 Mar - 22: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.
avatar
Draxion
Helper
Helper

Male Posts : 973
Reputation : 146
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

Solved Re: chat box log in/out

Post by zenzo on Thu 16 Mar - 22: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...
avatar
zenzo
Forumember

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

Back to top Go down

Solved Re: chat box log in/out

Post by Draxion on Thu 16 Mar - 22: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){}})
});
avatar
Draxion
Helper
Helper

Male Posts : 973
Reputation : 146
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

Solved Re: chat box log in/out

Post by zenzo on Thu 16 Mar - 23:07

well done thank you, topic solve
avatar
zenzo
Forumember

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

Back to top Go down

Solved Re: chat box log in/out

Post by Draxion on Thu 16 Mar - 23:08

You're very welcome.

Have a good night! Smile
avatar
Draxion
Helper
Helper

Male Posts : 973
Reputation : 146
Language : English
Location : USA

http://dawnofthedragons.forumotion.com/

Back to top Go down

Solved Re: chat box log in/out

Post by SLGray on Fri 17 Mar - 1:22

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


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

avatar
SLGray
Administrator
Administrator

Male Posts : 38226
Reputation : 2576
Language : English
Location : United States

http://ztwds.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