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.

Automatically enters the chat

View previous topic View next topic Go down

In progress Automatically enters the chat

Post by smurfavr on December 9th 2013, 9:57 pm

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.

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; }

smurfavr
Active Poster

Male Posts : 1416
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Soul on December 9th 2013, 11:48 pm

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?

Soul
Forumember

Male Posts : 673
Reputation : 79
Language : English
Location : United States

http://adminvortex.forumotion.com

Back to top Go down

In progress Re: Automatically enters the chat

Post by smurfavr on December 9th 2013, 11:50 pm

I want to do it right

smurfavr
Active Poster

Male Posts : 1416
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Soul on December 9th 2013, 11:53 pm

If you are looking to have your members automatically be logged into the chat box upon logging in, try clicking the link below Smile

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

Soul
Forumember

Male Posts : 673
Reputation : 79
Language : English
Location : United States

http://adminvortex.forumotion.com

Back to top Go down

In progress Re: Automatically enters the chat

Post by smurfavr on December 9th 2013, 11:58 pm

If you can me make the code that I gave because I can not.

smurfavr
Active Poster

Male Posts : 1416
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Luffy on December 10th 2013, 12:05 am

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

Luffy
Manager
Manager

Male Posts : 4245
Reputation : 424
Language : Greek, English
Location : Greece

http://helpgr.forumgreek.com/forum

Back to top Go down

In progress Re: Automatically enters the chat

Post by Soul on December 10th 2013, 12:05 am

Here you go Smile

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=');});

Soul
Forumember

Male Posts : 673
Reputation : 79
Language : English
Location : United States

http://adminvortex.forumotion.com

Back to top Go down

In progress Re: Automatically enters the chat

Post by smurfavr on December 10th 2013, 12:11 am

Did not.

smurfavr
Active Poster

Male Posts : 1416
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Soul on December 10th 2013, 12:14 am

Did you add the code to the javascript and make sure that javascript is active on your website.

Soul
Forumember

Male Posts : 673
Reputation : 79
Language : English
Location : United States

http://adminvortex.forumotion.com

Back to top Go down

In progress Re: Automatically enters the chat

Post by smurfavr on December 10th 2013, 12:24 am

javascript is enabled. Check alone. Chat is the bottom of the forum on the left.

http://smurfa.bulgarianforum.net/

smurfavr
Active Poster

Male Posts : 1416
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Soul on December 10th 2013, 12:26 am

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.

Soul
Forumember

Male Posts : 673
Reputation : 79
Language : English
Location : United States

http://adminvortex.forumotion.com

Back to top Go down

In progress Re: Automatically enters the chat

Post by smurfavr on December 10th 2013, 12:29 am

Is there no way to do as I want this code I've given you.

smurfavr
Active Poster

Male Posts : 1416
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Soul on December 10th 2013, 12:52 am

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.

Soul
Forumember

Male Posts : 673
Reputation : 79
Language : English
Location : United States

http://adminvortex.forumotion.com

Back to top Go down

In progress Re: Automatically enters the chat

Post by smurfavr on December 10th 2013, 1:18 am

I think SethC1995 help me with this problem

smurfavr
Active Poster

Male Posts : 1416
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Ange Tuteur on December 10th 2013, 7:33 am

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
Code:
$(function(){ if(document.getElementById('logout')) $.post('/chatbox/chatbox_actions.forum?archives','mode=send&sent=');});

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: Automatically enters the chat

Post by smurfavr on December 10th 2013, 2:13 pm

I put the code you gave me but it does not work. After 10 minutes, it shows that I was outside chatting.

smurfavr
Active Poster

Male Posts : 1416
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Ange Tuteur on December 10th 2013, 3:01 pm

Try this instead :
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.

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: Automatically enters the chat

Post by smurfavr on December 10th 2013, 4:17 pm

And this code does not work. After 10 minutes, it shows that I was outside chatting.

smurfavr
Active Poster

Male Posts : 1416
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Ange Tuteur on December 10th 2013, 4:26 pm

You want to get rid of the timeout ?

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);
});

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: Automatically enters the chat

Post by smurfavr on December 10th 2013, 4:51 pm

And this code does not work.You can check. Chat is ATT bottom of the forum on the left.


http://smurfa.bulgarianforum.net/

smurfavr
Active Poster

Male Posts : 1416
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Van-Helsing on December 10th 2013, 5:12 pm

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:
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

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

In progress Re: Automatically enters the chat

Post by smurfavr on December 10th 2013, 8:43 pm

Does not work

IHateYou has been disconnected on 10 2013 - 22:13 (session timeout)

smurfavr
Active Poster

Male Posts : 1416
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Van-Helsing on December 10th 2013, 9:37 pm

Have you installed other javascripts? Sometimes a script maybe conflict another script.

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

In progress Re: Automatically enters the chat

Post by smurfavr on December 10th 2013, 9:42 pm

Yes JavaScript is installed.

smurfavr
Active Poster

Male Posts : 1416
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Van-Helsing on December 10th 2013, 9:47 pm

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.

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

In progress Re: Automatically enters the chat

Post by smurfavr on December 11th 2013, 1:07 pm

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)

smurfavr
Active Poster

Male Posts : 1416
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Van-Helsing on December 11th 2013, 1:12 pm

Do you want to stay connected always?

Van-Helsing
Hyperactive

Male Posts : 2222
Reputation : 82
Language : English, Greek

http://helpgr.forumgreek.com/

Back to top Go down

In progress Re: Automatically enters the chat

Post by smurfavr on December 11th 2013, 1:18 pm

I want when a registered user logs on to my site to automatically enter in the chat.

smurfavr
Active Poster

Male Posts : 1416
Reputation : 11
Language : Bulgarian

http://smurfa.bulgarianforum.net/

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