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.

Automatically enters the chat

4 posters

Go down

In progress Automatically enters the chat

Post by smurfavr 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.

Automatically enters the chat 6836406q


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
smurfavr
Active Poster

Male Posts : 1883
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Guest 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?
avatar
Guest
Guest


Back to top Go down

In progress Re: Automatically enters the chat

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

I want to do it right
smurfavr
smurfavr
Active Poster

Male Posts : 1883
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Guest 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
avatar
Guest
Guest


Back to top Go down

In progress Re: Automatically enters the chat

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

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

Male Posts : 1883
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by TheCrow 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
TheCrow
TheCrow
Manager
Manager

Male Posts : 6898
Reputation : 794
Language : Greek, English

https://forumote.forumotion.com

Back to top Go down

In progress Re: Automatically enters the chat

Post by Guest 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=');});
avatar
Guest
Guest


Back to top Go down

In progress Re: Automatically enters the chat

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

Did not.
smurfavr
smurfavr
Active Poster

Male Posts : 1883
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Guest December 10th 2013, 12:14 am

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


Back to top Go down

In progress Re: Automatically enters the chat

Post by smurfavr 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
smurfavr
Active Poster

Male Posts : 1883
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Guest 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.
avatar
Guest
Guest


Back to top Go down

In progress Re: Automatically enters the chat

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

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

Male Posts : 1883
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Guest 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.
avatar
Guest
Guest


Back to top Go down

In progress Re: Automatically enters the chat

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

I think SethC1995   help me with this problem
smurfavr
smurfavr
Active Poster

Male Posts : 1883
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Ange Tuteur 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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Automatically enters the chat

Post by smurfavr 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
smurfavr
Active Poster

Male Posts : 1883
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Ange Tuteur 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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Automatically enters the chat

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

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

Male Posts : 1883
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Ange Tuteur 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
Ange Tuteur
Forumaster

Male Posts : 13246
Reputation : 3000
Language : English & 日本語
Location : Pennsylvania

https://fmdesign.forumotion.com

Back to top Go down

In progress Re: Automatically enters the chat

Post by smurfavr 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
smurfavr
Active Poster

Male Posts : 1883
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Van-Helsing 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:

and then press submit. Dont forget to refresh your forum in the browser.
Thats it.

Best Regards,
Dark-Avenger
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

In progress Re: Automatically enters the chat

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

Does not work

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

Male Posts : 1883
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

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

Have you installed other javascripts? Sometimes a script maybe conflict another script.
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

In progress Re: Automatically enters the chat

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

Yes JavaScript is installed.
Automatically enters the chat 6839540m
smurfavr
smurfavr
Active Poster

Male Posts : 1883
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

Post by Van-Helsing 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
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

In progress Re: Automatically enters the chat

Post by smurfavr 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
smurfavr
Active Poster

Male Posts : 1883
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

In progress Re: Automatically enters the chat

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

Do you want to stay connected always?
Van-Helsing
Van-Helsing
Hyperactive

Male Posts : 2431
Reputation : 116
Language : English, Greek

http://itexperts.forumgreek.com/

Back to top Go down

In progress Re: Automatically enters the chat

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

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

Male Posts : 1883
Reputation : 22
Language : Bulgarian

http://smurfa.bulgarianforum.net/

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum