News:

Join the Facebook Fan Page.

Main Menu

SA Chat

Started by Diego Andrés, July 21, 2010, 10:36:59 PM

Previous topic - Next topic

SA™

#980
Quote from: sunilimon on January 10, 2014, 09:53:35 AM
Suggestion: could appear a little box with color green/red when an user is connected/disconnected at chat window near the name? I is useful when you need to know if an user is connected when you will talk to him by chat. Also I would translate send button like other properties :D. If you like I can translate the languaje file to helping you :D

sure this is in the next version actualy is there just not added to the new template yet also next version displays Sent at after x minutes of inactivity from the last message kinda like the way fb does things

there is a few hardcoded strings in therei need to sort for the next version

Quote from: crustybum on January 10, 2014, 11:41:10 AM
Great mod, but still slows everything down on a large forum  :-\

y yes it will do as kindred said
the next version has a  auto back off polling policy (heart beat slows when chat activity is low) this might help somewhat

also i shouls say there is a bug in last version wich means the heatbeat beats twice each time  this is fixed in next version changed to setTimeout instead of setinterval << is a big pitta
setTimeout seem a lot more stable at least in testing
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

SA™

=====SA Chat 0.1 Relesed=====
added auto back off polling policy(heart beat slows when chat activity is low)
displays x says when window is not in focus
displays Sent at after x minutes of inactivity from the last message
added typing listener displayes x is typing in chat(not fully impleamented as of yet it is WIP)
added new page in admin for chat settings
removed hard coded txt strings
show buddy online/offline in chat (updates automaticly never used to)
added option to set max heart beat aswell as min heartbeat
added option to set heatbeat timeout
removed setInterval in favar of setTimeout (this fixes issue where the rather erratic behavior it presents when being forced to miss a beat or two)
chat windows now take into accout brouser width and on resize  and stops anymore opening and shows left and right arrows to cycle thru chat boxes simular to facebook
fixed issue with sound and firefox asking for a plugin now uses jquery play() function
fixed issues with ie compat mode (bar was not showing complained about a stray , comma)

if your upgrading from last version after install it is recomended to purge all old messages in sachat/maintenance/ Purge all messages
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

sunilimon

Hi! thanks for new version, it works great! I attach the spanish_es_utf8 translation, I hope you serve! :D
SMF version: 2.0.14

http://www.hookahspain.com your hookah / shisha comunity at Spain

sunilimon

Also I have a ¿bug? when I reload the page, two arrows are shown at the bottom of the page:


Also chat still opens if I don't close the chat window at the page where I opened. For example, I start to chat at portal page, I change to the forum list page and close the chat window where I'm talking, I return to portal page and chat still opened, but if I close the chat window at portal page, when I go to another page it works.
SMF version: 2.0.14

http://www.hookahspain.com your hookah / shisha comunity at Spain

SA™

QuoteAlso I have a ¿bug? when I reload the page, two arrows are shown at the bottom of the page:

hmm they should only show if all chat windows excide browser width there for cycling thru open chat windows

QuoteAlso chat still opens if I don't close the chat window at the page where I opened. For example, I start to chat at portal page, I change to the forum list page and close the chat window where I'm talking, I return to portal page and chat still opened, but if I close the chat window at portal page, when I go to another page it works.

ill look into this one later
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

SA™

so i spent most of today thinking how i can imporove the minimised chats the current way is fugly :P

this is what i come up with they are fixed to the bar actuly is the chat window with messages and form hidden doing it this way saves looping thru minimised chat boxes with each() cos now i can just use

if($sachat.cookie(\''.$modSettings['2sichat_cookie_name'].'_min\'+id)){
    $sachat(\'#cmsg\'+id).hide();
    $sachat(\'#bddy\'+id).hide();
}


inside the chatto function saves a lot of extra code this way
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

sunilimon

The problem could be in bigger forums, I usually speak with several members at the same time and this solution may create a conflict. I think you can do more FB appearance, without minimize. Actually you can't minimize the chat window at FB, only close and when you reopen you can see the chat history. I think this is more efficient and it can earn more system resources.
SMF version: 2.0.14

http://www.hookahspain.com your hookah / shisha comunity at Spain

Kindred

Quote from: sunilimon on January 13, 2014, 02:56:09 PM
The problem could be in bigger forums, I usually speak with several members at the same time and this solution may create a conflict. I think you can do more FB appearance, without minimize. Actually you can't minimize the chat window at FB, only close and when you reopen you can see the chat history. I think this is more efficient and it can earn more system resources.

you would be completely incorrect.
Doing it that was is definitely LESS "efficient" and would likely use MORE system resources.... because the window would ALWAYS be "open" on every page and would need to query the database for history with every single page load.
Слaва
Украинi

Please do not PM, IM or Email me with support questions.  You will get better and faster responses in the support boards.  Thank you.

"Loki is not evil, although he is certainly not a force for good. Loki is... complicated."

SA™

kindred has a point there  maybe i can add another option to allow windows to be minimised i personly like the new way
the chat boxes can get in the way somtimes
the main reason to not use each() to loop thru the minimised chat boxes is cos each() can actualy make things slower

resorce issue shouldent be that bad now as the heart beat does slow when there is no chat activity or when chat boxes are minimised thats what this is in the last version
added auto back off polling policy

the idea there is if no new items are found after say 10 heart beats it slows down to the max heart beat set in admin then when chat activlty starts it speads up again to the min heart beat

http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Arantor

What you could always do, for the whole multi tab thing is to store it in localStorage, for browsers which support localStorage. You store the last time retrieved in localStorage as well as the last part of the chat history, and then each of the tabs queries *that*. Gets a bit messy in terms of preventing race conditions because you need to have whichever tab is doing a query to the server also flag it in localStorage that it's doing it (to prevent two tabs doing it at the same time) but it's certainly possible.

sunilimon

Quote from: Kindred on January 13, 2014, 03:05:07 PM
Quote from: sunilimon on January 13, 2014, 02:56:09 PM
The problem could be in bigger forums, I usually speak with several members at the same time and this solution may create a conflict. I think you can do more FB appearance, without minimize. Actually you can't minimize the chat window at FB, only close and when you reopen you can see the chat history. I think this is more efficient and it can earn more system resources.

you would be completely incorrect.
Doing it that was is definitely LESS "efficient" and would likely use MORE system resources.... because the window would ALWAYS be "open" on every page and would need to query the database for history with every single page load.

I refer for windows minimized, not for system efficient, sorry for my english  :-[
SMF version: 2.0.14

http://www.hookahspain.com your hookah / shisha comunity at Spain

SA™

Quote from: Sir Cumber-Patcher on January 13, 2014, 03:36:53 PM
What you could always do, for the whole multi tab thing is to store it in localStorage, for browsers which support localStorage. You store the last time retrieved in localStorage as well as the last part of the chat history, and then each of the tabs queries *that*. Gets a bit messy in terms of preventing race conditions because you need to have whichever tab is doing a query to the server also flag it in localStorage that it's doing it (to prevent two tabs doing it at the same time) but it's certainly possible.

when you say localStorage do you mean this
http://diveintohtml5.info/storage.html
http://www.w3schools.com/html/html5_webstorage.asp

seems doable indeed thanks
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Arantor

Yup, that's exactly what I mean. Something that can be accessed equally from all tabs without having to go to the server.

SA™

what bother me is older browsers should i just leave them in the past??  i can do this and remove all cookie traces aswell
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Arantor

Well, that's a good question. I don't know what you should do for the best, but it is a viable solution for modern browsers.

rosewillrnx

Hello, With the newest update I have an issue. The chat bar shows all users logged in even if they are hidden. Is there a fix or setting I have missed to restrict this?

Thanks,


Rose

SA™

your using the 0.1 version? it shouldent be doing that in 0.1
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Arantor

Moved to the Chat/Shoutboxes category on the mod site.

SA™

thanks are these new catagorys ?
http://samods.github.io/SAChatBar/

Xbox Live: smokerthecheese 360 or xbone
My Work
Piano Movers / Delivery service
QuoteMy allies are dead.
I'm 'bout to be too.
Zombies are chasing me.
F*** it, I'm screwed -___-

Arantor

Yup, the Chat/Shoutbox category was only added yesterday.

Advertisement: