Automatically enters the chat
4 posters
Page 1 of 1
Automatically enters the chat
Can be done by registered user enter my site to automatically enter the chat without having to press the button input.
If you can do everything written in the chat to stay in chat without pressing the button archive.
If you can do everything written in the chat to stay in chat without pressing the button archive.
- Code:
#chatbox_members, #chatbox .date-and-time, a.cattitle[href="/chatbox/index.forum"], #chatbox_option_autorefresh { display:none; }[color=#2e8b57][size=1][font=Courier, CourierNew, sans-serif][/font][/size][/color]
.gen label { position:absolute; left:-68px; }[color=#2e8b57][size=1][font=Courier, CourierNew, sans-serif][/font][/size][/color]
#chatBox { width:180px; height:360px; }[color=#2e8b57][size=1][font=Courier, CourierNew, sans-serif][/font][/size][/color]
#chatbox_main_options { float:left; }[color=#2e8b57][size=1][font=Courier, CourierNew, sans-serif][/font][/size][/color]
#message.post { width:125px; }[color=#2e8b57][size=1][font=Courier, CourierNew, sans-serif][/font][/size][/color]
#chatbox { left:0; bottom:60px; }[color=#2e8b57][size=1][font=Courier, CourierNew, sans-serif][/font][/size][/color]
/*Chatbox options*/[color=#2e8b57][size=1][font=Courier, CourierNew, sans-serif][/font][/size][/color]
#divbold { position:absolute; bottom:5px; right:147px; }[color=#2e8b57][size=1][font=Courier, CourierNew, sans-serif][/font][/size][/color]
#divitalic { position:absolute; bottom:5px; right:123px; }[color=#2e8b57][size=1][font=Courier, CourierNew, sans-serif][/font][/size][/color]
#divunderline { position:absolute; bottom:5px; right:99px; }[color=#2e8b57][size=1][font=Courier, CourierNew, sans-serif][/font][/size][/color]
#divstrike { position:absolute; bottom:5px; right:75px; }[color=#2e8b57][size=1][font=Courier, CourierNew, sans-serif][/font][/size][/color]
#divcolor { position:absolute; bottom:5px; right:40px; }[color=#2e8b57][size=1][font=Courier, CourierNew, sans-serif][/font][/size][/color]
#divsmilies { position:absolute; bottom:5px; right:5px; }[color=#2e8b57][size=1][font=Courier, CourierNew, sans-serif][/font][/size][/color]
/*Height and style for footer*/[color=#2e8b57][size=1][font=Courier, CourierNew, sans-serif][/font][/size][/color]
#chatbox_footer .catBottom { background:none; border:none; }[color=#2e8b57][size=1][font=Courier, CourierNew, sans-serif][/font][/size][/color]
#chatbox_footer { height:60px; }
Re: Automatically enters the chat
Are you asking how to do this or explaining how it is done? Can you please help me understand what it is you are saying/asking?
Guest- Guest
Re: Automatically enters the chat
If you are looking to have your members automatically be logged into the chat box upon logging in, try clicking the link below
http://www.avacweb.com/t217-chatbox-auto-logging-in
This is a tutorial on how to do this.
If you need any more assistance, let me know!
Regards,
Jadster
http://www.avacweb.com/t217-chatbox-auto-logging-in
This is a tutorial on how to do this.
If you need any more assistance, let me know!
Regards,
Jadster
Guest- Guest
Re: Automatically enters the chat
Just put that only in HOMEPAGE
- Code:
$(function(){
if(document.getElementById('logout')) $.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent=');
});
Last edited by Marios94 on December 10th 2013, 12:06 am; edited 1 time in total
Re: Automatically enters the chat
Here you go
Steps:
Administration Control Panel --> Module --> Javascript codes management --> Create a new Javascript --> Title: Chatbox Auto-Login --> Placement: In the home page --> Enter code below and then save!
I hope this helps you out!
Steps:
Administration Control Panel --> Module --> Javascript codes management --> Create a new Javascript --> Title: Chatbox Auto-Login --> Placement: In the home page --> Enter code below and then save!
I hope this helps you out!
- Code:
$(function(){ if([size="2"]document[/size].getElementById('logout')) $.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent=');});
Guest- Guest
Re: Automatically enters the chat
Did you add the code to the javascript and make sure that javascript is active on your website.
Guest- Guest
Re: Automatically enters the chat
javascript is enabled. Check alone. Chat is the bottom of the forum on the left.
http://smurfa.bulgarianforum.net/
http://smurfa.bulgarianforum.net/
Re: Automatically enters the chat
The issue may be because you are using the chatbox as a widget and not as it is default set to be. It is defaulted to be in the homepage alone, not the widgets.
Guest- Guest
Re: Automatically enters the chat
I do not think you can do that as your chatbox is a widget, the code I provided would work if you had the default chatbox and not the widget chatbox.
Guest- Guest
Re: Automatically enters the chat
There was bbcodes in the code provided ? Removing them should make it work as I've tested.
Administration Panel > Modules > Javascript codes management > create new script
Name : what you wish
Placement : In all the pages
Administration Panel > Modules > Javascript codes management > create new script
Name : what you wish
Placement : In all the pages
- Code:
$(function(){ if(document.getElementById('logout')) $.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent=');});
Re: Automatically enters the chat
I put the code you gave me but it does not work. After 10 minutes, it shows that I was outside chatting.
Re: Automatically enters the chat
Try this instead :
AP > Modules > Javascript codes management > Create a script
Name : What you wish
Placement : In all the pages
I had to set a reload for the chatbox iframe to update the login. It should work from what I tested.
AP > Modules > Javascript codes management > Create a script
Name : What you wish
Placement : In all the pages
- Code:
$(function(){ if(document.getElementById('logout')) $.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent=');
setTimeout(function(){ jQuery('#chatBox')[0].contentWindow.location.reload(true); },600);
});
I had to set a reload for the chatbox iframe to update the login. It should work from what I tested.
Re: Automatically enters the chat
And this code does not work. After 10 minutes, it shows that I was outside chatting.
Re: Automatically enters the chat
You want to get rid of the timeout ?
You could try this then :
Replace the old code
You could try this then :
Replace the old code
- Code:
jQuery(function(){ if(document.getElementById('logout')) $.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent=');
setTimeout(function(){ jQuery('#chatBox')[0].contentWindow.location.reload(true); },600);
setInterval(function(){ jQuery.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent='); }, 5000);
});
Re: Automatically enters the chat
And this code does not work.You can check. Chat is ATT bottom of the forum on the left.
http://smurfa.bulgarianforum.net/
http://smurfa.bulgarianforum.net/
Re: Automatically enters the chat
Hi all,
smurfavr I have phpbb2 version and its working fine, Try this javascript:
Administration Panel > Modules > Javascript codes management >
1. Create a new javascript and add the name of the script etc. Shoutbox Auto-Login
2. tick in The Home Page and In The Portal
3. Then put the following code:
and then press submit. Dont forget to refresh your forum in the browser.
Thats it.
Best Regards,
Dark-Avenger
smurfavr I have phpbb2 version and its working fine, Try this javascript:
Administration Panel > Modules > Javascript codes management >
1. Create a new javascript and add the name of the script etc. Shoutbox Auto-Login
2. tick in The Home Page and In The Portal
3. Then put the following code:
- ChatBox Auto-Login Script:
- Code:
if(my_getcookie('cb_login') != '1') {
$.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent=');
my_setcookie('cb_login', '1', false);
}
and then press submit. Dont forget to refresh your forum in the browser.
Thats it.
Best Regards,
Dark-Avenger
Re: Automatically enters the chat
Does not work
IHateYou has been disconnected on 10 2013 - 22:13 (session timeout)
IHateYou has been disconnected on 10 2013 - 22:13 (session timeout)
Re: Automatically enters the chat
Have you installed other javascripts? Sometimes a script maybe conflict another script.
Re: Automatically enters the chat
Have you install the google analytics javascript? At the past this javascript conflicts me another javascript. Copy the Google Analytics Javascript in a text file to backup it and try uninstall it temporary to check if login javascipt works.
Re: Automatically enters the chat
I deleted javascript code gogle but chat does not work
Again indicates that the user has left the chat.
NoiZeR has been disconnected on 11 2013 - 13:59 (session timeout)
Again indicates that the user has left the chat.
NoiZeR has been disconnected on 11 2013 - 13:59 (session timeout)
Re: Automatically enters the chat
I want when a registered user logs on to my site to automatically enter in the chat.
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum