Simple Machines Community Forum

Customizing SMF => Modifications and Packages => Topic started by: Diego Andrés on July 21, 2010, 10:36:59 PM

Title: SA Chat
Post by: Diego Andrés on July 21, 2010, 10:36:59 PM
Link to the mod (https://custom.simplemachines.org/index.php?mod=2534)

SA Chat Bar

Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2534)

MySpace/Facebook style chat bar for Simple Machines Forum.

SMF 2.0x - Chat Bar

Developed for SMF forums c/o SA @ http://www.facebook.com/devsamods            
Copyright 2013 Wayne Mankertz (SA)                            

SA Chat bar software integrates with SMF and works with SMF without working within SMF. This is done by loading the SMF cookie from the browser and verifying it against data saved in the database. This way of working allows SA Chat to run inside and outside of SMF and throughout your website as long as the user is logged into SMF.

The integration codes can be put into any html code. One in the head and one in the body. The install script however installs the JavaScript codes by default in the default theme, but you can add these codes into whatever template you like SMF or not.

here is so far a quite bit of possibilities left for you to explore with the custom template and chat sound system SA Chat has to offer. I am looking forward to what theme designers might have to add to this equation.

You can also customize how SA Chat works from the SMF Admin Panel. You can set the chat heart beat, message window heart beat and set how many days until the chat purges old messages.

SA Chat also comes with share links to MySpace, Facebook and Twitter. This allows your site visitors to post the page they are at to any of these social networks.

In the Who's Online section of the chat you will see all of your buddies. Just click on a buddy to start a chat session.

Licence

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

Disclaimers:

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

Please read all other license agreements contained within this package.
Title: Re: 2-SI Chat
Post by: crustybum on July 22, 2010, 06:29:16 AM
will this work on 1.1.11?
Title: Re: 2-SI Chat
Post by: haito on July 22, 2010, 10:04:34 AM
interesting mod, i will try it  ;)
Title: Re: 2-SI Chat
Post by: hadesflames on July 22, 2010, 10:06:07 AM
Quote from: crustybum on July 22, 2010, 06:29:16 AM
will this work on 1.1.11?

No.
Title: Re: 2-SI Chat
Post by: nend on July 22, 2010, 12:47:17 PM
Quote from: crustybum on July 22, 2010, 06:29:16 AM
will this work on 1.1.11?

So far what the mod page says, SMF 2.0 RC3. May be compatible with other versions of the SMF 2 branch but currently untested.

However older versions where compatible. I had to switch the chat to use smcFunc to get approved here, so revision 17 and down with a little work will work with SMF1. Only bad part is it is not as feature rich, bugs and is not optimized.
Title: Re: 2-SI Chat
Post by: just.eno on July 23, 2010, 01:09:58 AM
I have installed this mod into my forum but after I went to the home does not happen right? anyone can tell me?
Title: Re: 2-SI Chat
Post by: Nirose on July 23, 2010, 03:10:55 AM
The mod installed correctly but nothing happens there is no bar or anything showing up on the forum.
Title: Re: 2-SI Chat
Post by: NaYa on July 23, 2010, 05:35:39 AM
Hello there ,

I installed this mod on my forum,Installed correctly with out any errors.

But nothing happens ,No chat ,nothing,I am running SMF 2.0 RC3  .

Thank you .
Title: Re: 2-SI Chat
Post by: diamondred123 on July 23, 2010, 05:50:01 AM
i had same problem as everyone else
Title: Re: 2-SI Chat
Post by: m1993 on July 23, 2010, 10:26:26 AM
it works on Smf 1.1.1?
Title: Re: 2-SI Chat
Post by: Joker™ on July 23, 2010, 10:40:31 AM
Quote from: m1993 on July 23, 2010, 10:26:26 AM
it works on Smf 1.1.1?
nope


In SMF2.0 RC3 the settings path is here
?action=admin;area=2sichat; (not the one shown in pic on the mod page ) , also there is a gadget button which shows some values in broken way.Also when you try to save them you get error

Object not found!

and i was also not able to get it working
Title: Re: 2-SI Chat
Post by: NaYa on July 23, 2010, 10:50:33 AM
@ nend .........

A reply may be MUST .
Title: Re: 2-SI Chat
Post by: Joker™ on July 23, 2010, 10:53:55 AM
Quote from: NaYa on July 23, 2010, 10:50:33 AM
@ nend .........

A reply may be MUST .

have Patience boy , he may be out .This will get sorted soon ;)
Title: Re: 2-SI Chat
Post by: nend on July 23, 2010, 10:55:34 AM
The problem is custom themes, The chat usually only installs to the default theme's index.template.php. During the install you can select to install to additional themes but this does not always work.

Here is the manual way to install the chat on custom themes.

Open index.template.php in the theme you want 2-SI Chat to work in.

Find
</head>

Add Before
<script type="text/javascript" src="http://www.your-site.com/path_to_forum/2sichat/index.php?action=head"></script>

Find
<body>

Add After
<script type="text/javascript" src="http://www.your-site.com/path_to_forum/2sichat/index.php?action=body"></script>

Be sure to replace the path in the codes from http://www.your-site.com/path_to_forum to your site and path to your forum.
Title: Re: 2-SI Chat
Post by: nend on July 23, 2010, 11:16:25 AM
@NaYa

Well visited your site and the code seems to be in place in the template. This isn't a new issue and even though the mod installed correctly it usually means the PHP files for the chat can not execute.

So the problem is usually folder and file permissions. FTP to your site and try this.

2sichat 755
2sichat/index.php 755
2sichat/body.js.php 755
2sichat/head.js.php 755
2sichat/cache 755
2sichat/themes/default/index.php 755
Title: Re: 2-SI Chat
Post by: diamondred123 on July 23, 2010, 02:03:58 PM
thanks man the premissions helped me alot
Title: Re: 2-SI Chat
Post by: Joker™ on July 23, 2010, 03:28:16 PM
i installed it on my test site and im using default curve theme on it.
Title: Re: 2-SI Chat
Post by: Dysfunctional Monkey on July 23, 2010, 04:28:23 PM
I was able to install it without any problems but when I click who's online to try to start a chat the box this blank.  Any ideas why?
Title: Re: 2-SI Chat
Post by: Dysfunctional Monkey on July 23, 2010, 04:50:42 PM
sorry forgot to list my site www.unitedfitnessguide.com/forums
Title: Re: 2-SI Chat
Post by: GQCritic on July 23, 2010, 06:05:49 PM
Oh wow, what a neat mod!

Thank you nend!
Title: Re: 2-SI Chat
Post by: Threepwud on July 23, 2010, 08:12:47 PM
I too am having issues. This mod does look absolutely lovely though! When installed it doesn't show and the bottom left of the browser shows an error sign. Could this be due to a portal installation?
Title: Re: 2-SI Chat
Post by: nend on July 24, 2010, 12:07:09 AM
Quote from: Dysfunctional Monkey on July 23, 2010, 04:28:23 PM
I was able to install it without any problems but when I click who's online to try to start a chat the box this blank.  Any ideas why?
The who's online section is made to be a buddy list of buddies online. I can see how this can cause some confusion.

My beta tester has ported it out by editing the query in function genBudList in 2sichat/index.php to show who's online. I may in future revisions make it optional in the control panel.

Quote from: Threepwud on July 23, 2010, 08:12:47 PM
I too am having issues. This mod does look absolutely lovely though! When installed it doesn't show and the bottom left of the browser shows an error sign. Could this be due to a portal installation?
Check this post out - http://mods.2-si.net/2si_chat_support/2si_chat_installation_trouble_shooter_29.0.html - to see if any of the steps solve any problems you may have. ;)

Also on a side note I made a little post at my support site with tips and tricks - http://mods.2-si.net/2si_chat_support/2si_chat_tips_tricks_18.0.html -. This site also has a working demo of 2-SI Chat.

Title: Re: 2-SI Chat
Post by: just.eno on July 24, 2010, 01:53:49 AM
I have installed this mod but there's something not right when there are two members of their online is not listed in the bar who's online? that why? Can help me.
Title: Re: 2-SI Chat
Post by: NaYa on July 24, 2010, 01:58:28 AM
@ nend .....
Ahhh thank you .It really help me alot .

I am sorry if you feel hearts .

Your mod is realy good .
Title: Re: 2-SI Chat
Post by: NaYa on July 24, 2010, 02:31:19 AM
Nend one more issues ,i can see the bar .but i cant see the online list .the online list in empty  ,but i have buddies online that time .

anyway ?
Title: Re: 2-SI Chat
Post by: nend on July 24, 2010, 11:07:35 AM
Quote from: NaYa on July 24, 2010, 02:31:19 AM
Nend one more issues ,i can see the bar .but i cant see the online list .the online list in empty  ,but i have buddies online that time .

anyway ?

The problem may be that they haven't added you as a buddy back. You can check the member tables to see if they added you or you can just create a test account and add your account as a buddy from there and log into your account and add your test account as a buddy.

I registered at your site, add me as a buddy to see if you can see me, I have already added the two admin accounts as my buddy, don't know which one is yours.

Me and a buddy had a talk about what is considered as a buddy. At first the mod had it as soon as you added someone and they haven't added you back that they where on your chat list. But then we considered this to not be a true buddy and I made it two directional meaning they have to add you also.

It may be a little confusing though since SMF's buddy system has not matured. But if you look at it sites like Facebook and MySpace are the exact same way, you have to wait until they add you back before they are truly your buddy. I wish SMF did a notification every time someone has removed a user or made a request but it does not, making it more confusing to know if you are added on their list or not.

Title: Re: 2-SI Chat
Post by: InfoStrides on July 25, 2010, 01:07:40 AM
Good job nend! I have it working fine on my forum http://www.theinfostrides.com (http://www.theinfostrides.com). I changed permission for all folders and files in 2-Si Chat folder from 666 to 755.

Meanwhile, I want to modify it in the following:
- Change toolbar colour
- Enlarge chat message width

Can you give me a hint where to go?

Thank you.
Title: Re: 2-SI Chat
Post by: NaYa on July 25, 2010, 02:34:54 AM
@ nend

Thanks yaaar . Its helped me a lot .

I think that it i s a better idea to provide all the common erros or mistakes ..

So that the admin can easily find what they are missing . . .

And also i have some Suggestion that to give some more options in the admin cp ,more styles

and also the sound is making me some problems (it's IDM ) ...

And also some other idea ,can u make chat which is from Gmail,facebook also ....

It will be very helpfull ,Usefull !!
Title: Re: 2-SI Chat
Post by: diamondred123 on July 25, 2010, 06:23:00 AM
hi, what file do i need to edit (in the install) to make it so that it is anyone who is online and not just the buddy list
Thanks man
Title: Re: 2-SI Chat
Post by: SA™ on July 25, 2010, 10:45:52 AM
great work nend nice to see this approved at last :)
Title: Re: 2-SI Chat
Post by: nend on July 25, 2010, 12:10:57 PM
Please note though features will be added when I do that feature. May be a couple of revisions from the current one. They will however be published as they are added at - http://mods.2-si.net/project,1/

Quote from: InfoStrides on July 25, 2010, 01:07:40 AM
Good job nend! I have it working fine on my forum http://www.theinfostrides.com (http://www.theinfostrides.com). I changed permission for all folders and files in 2-Si Chat folder from 666 to 755.

Meanwhile, I want to modify it in the following:
- Change toolbar colour
- Enlarge chat message width

Can you give me a hint where to go?

Thank you.

ftp to your site and go to forum_path/2sichat/themes/default

You got mp3 sound files to remove or replace, a style sheet, language file, images folder and a template there. ;)

Quote from: diamondred123 on July 25, 2010, 06:23:00 AM
hi, what file do i need to edit (in the install) to make it so that it is anyone who is online and not just the buddy list
Thanks man

File is not in the install it is in forum_path/2sichat/index.php. I plan however to make this optional in a future relase, so waiting may be the key. But if you need it now edit that file with the appropriate query and there you go.

Be careful though, more is not always better, the chat system like most chat systems has a potential to overload your db or server. The more users you let chat to each other the more db connections and file request.

Quote from: NaYa on July 25, 2010, 02:34:54 AM
And also some other idea ,can u make chat which is from Gmail,facebook also ....

It will be very helpfull ,Usefull !!

Do you mean to chat to people from Facebook and Gmail or to send social bookmarks? Can you clarify your request?

More social bookmark request are welcome, if anybody submits one please post the landing page of the site so I can figure out how the particular social site works.
Title: Re: 2-SI Chat
Post by: diamondred123 on July 25, 2010, 12:43:25 PM
ok that confused me
what bit of code do i change?
Title: Re: 2-SI Chat
Post by: Threepwud on July 25, 2010, 03:37:48 PM
Thanks for the advice, however I am still having issues. I have also re-installed this on a fresh install of 2.0 RC3 and get the exact same issues.

I have CHMOD the files to 755 and the lines are correct (in <head> and <body>) and I removed the cache option too.

Sadly I still get the internet explorer error, saying this:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
Timestamp: Sun, 25 Jul 2010 19:37:21 UTC


Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://www.threepwud.com/test/2sichat/index.php?action=head


Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://www.threepwud.com/test/2sichat/index.php?action=body

Title: Re: 2-SI Chat
Post by: nend on July 26, 2010, 01:16:39 AM
Quote from: Threepwud on July 25, 2010, 03:37:48 PM
Thanks for the advice, however I am still having issues. I have also re-installed this on a fresh install of 2.0 RC3 and get the exact same issues.

I have CHMOD the files to 755 and the lines are correct (in <head> and <body>) and I removed the cache option too.

Sadly I still get the internet explorer error, saying this:

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
Timestamp: Sun, 25 Jul 2010 19:37:21 UTC


Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://www.threepwud.com/test/2sichat/index.php?action=head


Message: Syntax error
Line: 1
Char: 1
Code: 0
URI: http://www.threepwud.com/test/2sichat/index.php?action=body



Your server is not executing the files as PHP code but outputting the source. Does not make any sense and I would have to say it has to be the server configuration.
Title: Re: 2-SI Chat
Post by: Threepwud on July 26, 2010, 06:56:23 PM
Indeed... the server does run every php script thrown at it though, apart from this one. Php is version 5.3.1 also.

Any suggestions / ideas where to check for the cause of these errors?

Thanks for your time.
Title: Re: 2-SI Chat
Post by: Roo on July 26, 2010, 09:39:37 PM
Some of the files are using Short Tags (http://www.simplemachines.org/community/index.php?topic=201049.0), perhaps that's causing problems on your server?
Title: Re: 2-SI Chat
Post by: nend on July 26, 2010, 09:59:10 PM
Quote from: Roo on July 26, 2010, 09:39:37 PM
Some of the files are using Short Tags (http://www.simplemachines.org/community/index.php?topic=201049.0), perhaps that's causing problems on your server?


That probably will do it, will use <?php in revision 26.
Title: Re: 2-SI Chat
Post by: Threepwud on July 27, 2010, 02:52:29 AM
So very appreciated! Short tage enabled and I'm now laughing. Superb mate.
Title: Re: 2-SI Chat
Post by: More-to-life on July 27, 2010, 11:07:04 AM
Ive installed the mod but had a few problems
1st I had to chmod the files which I did & the bar worked except for "who's online" which throws this error

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; GTB6.5; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C)
Timestamp: Tue, 27 Jul 2010 15:04:01 UTC


Message: 'document.all.friends.style' is null or not an object
Line: 402
Char: 5
Code: 0
URI: http://www.myforum.co.uk/forum/2sichat/index.php?action=body

Any ideas?
Title: Re: 2-SI Chat
Post by: More-to-life on July 27, 2010, 11:32:26 AM
SOLVED
For some reason I had double script entries
Title: Re: 2-SI Chat
Post by: Threepwud on July 27, 2010, 06:08:55 PM
Interesting error, now. Anyone know the cause, perhaps?

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
Timestamp: Tue, 27 Jul 2010 21:59:50 UTC


Message: Expected ')'
Line: 1
Char: 17
Code: 0
URI: http://www.threepwood.co/index.php?action=forum


Message: Invalid argument.
Line: 323
Char: 7
Code: 0
URI: http://www.threepwood.co/2sichat/index.php?action=body


Message: Expected ')'
Line: 1
Char: 17
Code: 0
URI: http://www.threepwood.co/index.php?action=forum

Title: Re: 2-SI Chat
Post by: Marsh on July 27, 2010, 11:26:59 PM
Anyway that i can just make this work for everyone instead of just buddies? Also a option for users to disable it that dont like it would be nice.

Awesome mod btw
Title: Re: 2-SI Chat
Post by: nend on July 28, 2010, 12:23:50 AM
Quote from: Threepwud on July 27, 2010, 06:08:55 PM
Interesting error, now. Anyone know the cause, perhaps?

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
Timestamp: Tue, 27 Jul 2010 21:59:50 UTC


Message: Expected ')'
Line: 1
Char: 17
Code: 0
URI: http://www.threepwood.co/index.php?action=forum


Message: Invalid argument.
Line: 323
Char: 7
Code: 0
URI: http://www.threepwood.co/2sichat/index.php?action=body


Message: Expected ')'
Line: 1
Char: 17
Code: 0
URI: http://www.threepwood.co/index.php?action=forum



Line 323 of the php code 2sichat/index.php does not contain any code but a line break. Line 323 of the output is... doCookies();..., which is JavaScript calling function doCookies. The output of that action should all be JavaScript which is called by the script tags in the index.template.php. These script tags declare the output of the file as script even though the file extension is not of a js. If this file is called for validation by itself as a PHP document then it will fail because there is nothing declaring it as a script so the testing program will not know what to process it as.

Line 1 of index.php is SMF, the chat does not touch that file. Line 1 of your output is...<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
...,which is correct.

What are you using to get these results? I am guessing whatever your testing with is not giving creditable results, looks like a IE test tool to me. I do most of my testing in Firefox with Firebug, which is a great little tool. I wouldn't be able to make the chat if it wasn't for Firebug. Maybe I should put them in my credits. :D

I have tested with the following browsers, which I believe to be the most popular - Firefox, Opera, Safari, IE and Chrome. Please note though if you have compatibility mode turned on in IE turn that junk off. Allot of JavaScript code in the chat system is custom tailored for IE(Stupid IE) since it does not work like the rest and Opera is really picky so it is a good final testing environment. And Netscape, will you can forget about Netscape, it is gone IMHO so no Netscape testing was done.
Title: Re: 2-SI Chat
Post by: nend on July 28, 2010, 12:46:29 AM
Quote from: Marsh on July 27, 2010, 11:26:59 PM
Anyway that i can just make this work for everyone instead of just buddies? Also a option for users to disable it that dont like it would be nice.

Awesome mod btw
Showing everyone option is coming up in a future revision for sure, don't know which one, but it will be there. If you read some threads however at http://mods.2-si.net you will get a idea of how to do this yourself withing SMF. I may post something though when I get time. ;)

However I am not too sure about disabling the chat for individual users, I will probably add the possibility to disable it for everyone, because there are times you may want to disable it.

The main problem with this idea is it is diving into SMF, when I started this project the whole idea was to stay out of SMF's code. As you can see the only edits to SMF code is the admin panel for the chat and the two script tags in index.template.php. Other than that the chat is independent, it pulls SMF's resources and information without being loaded in SMF or loading SMF. The idea behind this is the ability to be displayed in non SMF pages. The chat will work outside of SMF as long as the user is logged in. So it is more of a bridge application than a SMF modification.

So I will have to consider this as a hack, not impossible but not going to be implemented. Not saying though I will not make the hack but it will not be considered for being part of the main package.

2-SI Chat Revision 25 index.php lines 3 & 4
This is the chat backend. It should only load chat junk.
It should be allot better than loading all that other junk.


2-SI Chat Revision 1 (aka Developmental 1) lines 3 & 4
This is the chat backend. It should only load messages.
It should be allot better than loading all that other junk.
Title: Re: 2-SI Chat
Post by: Marsh on July 28, 2010, 01:21:36 AM
I just made separate themes that dont load the bar. Cant wait for the version that allows everyone. Thanks for making the mod :). The Gadgets to the bar is sweet.
Title: Re: 2-SI Chat
Post by: Threepwud on July 28, 2010, 07:53:50 AM
Thanks for the quick reply!

It works well in Chrome and Firefox but displays an error in the bottom left of the screen in IE8 which I have attached. Clicking on it brings up the error I posted above. It still works but of course you want it to not have that error!

I installed it on a fresh install (http://www.threepwud.com/test) and it works very well. Then on my main test site http://www.threepwood.co it displays the error. I do have other themes there and another quick chat mod so it may be that...
Title: Re: 2-SI Chat
Post by: Boricua012 on July 29, 2010, 01:04:05 AM
Hi, i just installed the chat and everything is working fine BUT... it shows the same 3 members online when they aren't online. It doesn't show anyone else but those three. Anyways to fix this?
Title: Re: 2-SI Chat
Post by: Cutter65 on July 29, 2010, 12:26:42 PM
Im running SMF 2.0 RC3 with 2-SI_Chat_rev25 installed without any errors.

Purge all messages causes the following database error.

http://www.website.com/forum/index.php?action=admin;area=2sichat;save;sa=config
Database Error: Table 'name_smf.smf_chat' doesn't exist
File: /home/name/public_html/forum/Sources/2sichatAdmin.php
Line: 69

Line 69 has the following:

$smcFunc['db_query']('', 'DELETE FROM {db_prefix}chat',array());

Mod seems to work great other than one other issue I have noticed. If you add new buddies in SMF to your buddy list after the mod was installed they don't show up in the chat window only the ones that were on your list before you installed it are there. Thats how mine is anyways.

Hope to see the bugs ironed out on this great mod.

Thanks!
Cutter
Title: Re: 2-SI Chat
Post by: Marsh on July 29, 2010, 12:47:39 PM
Quote from: Boricua012 on July 29, 2010, 01:04:05 AM
Hi, i just installed the chat and everything is working fine BUT... it shows the same 3 members online when they aren't online. It doesn't show anyone else but those three. Anyways to fix this?

It shows people even if they are offline but it should have a little red dot instead of a green one. It probably only shows 3 because they are your buddies.
Title: Re: 2-SI Chat
Post by: Cutter65 on July 29, 2010, 01:11:32 PM
Quote from: Cutter65 on July 29, 2010, 12:26:42 PM
Im running SMF 2.0 RC3 with 2-SI_Chat_rev25 installed without any errors.

Purge all messages causes the following database error.

http://www.website.com/forum/index.php?action=admin;area=2sichat;save;sa=config
Database Error: Table 'name_smf.smf_chat' doesn't exist
File: /home/name/public_html/forum/Sources/2sichatAdmin.php
Line: 69

Line 69 has the following:

$smcFunc['db_query']('', 'DELETE FROM {db_prefix}chat',array());

Mod seems to work great other than one other issue I have noticed. If you add new buddies in SMF to your buddy list after the mod was installed they don't show up in the chat window only the ones that were on your list before you installed it are there. Thats how mine is anyways.

Hope to see the bugs ironed out on this great mod.

Thanks!
Cutter

I fixed the database error. 2sichatAdmin.php needs line 69 and 70 edited.

From:
Line 69 = $smcFunc['db_query']('', 'DELETE FROM {db_prefix}chat',array());
Line 70 =   $smcFunc['db_query']('', 'ALTER TABLE {db_prefix}chat AUTO_INCREMENT = 0',array());

To:
Line 69 = $smcFunc['db_query']('', 'DELETE FROM {db_prefix}2sichat',array());
Line 70 =   $smcFunc['db_query']('', 'ALTER TABLE {db_prefix}2sichat AUTO_INCREMENT = 0',array());

Cutter
Title: Re: 2-SI Chat
Post by: Boricua012 on July 29, 2010, 02:00:12 PM
Quote from: Marsh on July 29, 2010, 12:47:39 PM
Quote from: Boricua012 on July 29, 2010, 01:04:05 AM
Hi, i just installed the chat and everything is working fine BUT... it shows the same 3 members online when they aren't online. It doesn't show anyone else but those three. Anyways to fix this?

It shows people even if they are offline but it should have a little red dot instead of a green one. It probably only shows 3 because they are your buddies.

Ah, so it will show my buddies? I'm a bit confused because i have more than 3 buddies, so if it's like that, then it should show all my buddies even if they are offline right?
Title: Re: 2-SI Chat
Post by: theguise on July 29, 2010, 02:31:29 PM
QuoteAh, so it will show my buddies? I'm a bit confused because i have more than 3 buddies, so if it's like that, then it should show all my buddies even if they are offline right?

No, you have to be buddies with each other.  You can add someone as a buddy and if they don't add you as a buddy back then you two don't truly connect.  2SI Chat works off of SMF's buddy system so the only way someone appears on your Who's Online list is if you both have added each other as a buddy.  It would be nice if SMF had a notification feature when someone adds you as a buddy, but they don't.  Maybe someone will eventually add a mod for this although I would feel like they would have done it already.
Title: Re: 2-SI Chat
Post by: Cutter65 on July 29, 2010, 02:40:28 PM
Quote from: theguise on July 29, 2010, 02:31:29 PM
QuoteAh, so it will show my buddies? I'm a bit confused because i have more than 3 buddies, so if it's like that, then it should show all my buddies even if they are offline right?

No, you have to be buddies with each other.  You can add someone as a buddy and if they don't add you as a buddy back then you two don't truly connect.  2SI Chat works off of SMF's buddy system so the only way someone appears on your Who's Online list is if you both have added each other as a buddy.  It would be nice if SMF had a notification feature when someone adds you as a buddy, but they don't.  Maybe someone will eventually add a mod for this although I would feel like they would have done it already.

Thanks for the info!

Thats why in my post above the new buddies were not showing in the chat window! Didn't know they both had to have each other as buddies!

Thanks again!
Cutter
Title: Re: 2-SI Chat
Post by: theguise on July 29, 2010, 02:54:33 PM
Yeah, I'd love to be able to figure out a way to send a notification through ENotify or PM when someone adds you.  The Buddy Page mod let's you know if someone you have added as a buddy has added you or not.  But, if you haven't added someone as a buddy you have no idea that you yourself have been added as a buddy to someone.
Title: Re: 2-SI Chat
Post by: nend on July 30, 2010, 01:21:02 AM
Quote from: Cutter65 on July 29, 2010, 01:11:32 PM
Quote from: Cutter65 on July 29, 2010, 12:26:42 PM
Im running SMF 2.0 RC3 with 2-SI_Chat_rev25 installed without any errors.

Purge all messages causes the following database error.

http://www.website.com/forum/index.php?action=admin;area=2sichat;save;sa=config
Database Error: Table 'name_smf.smf_chat' doesn't exist
File: /home/name/public_html/forum/Sources/2sichatAdmin.php
Line: 69

Line 69 has the following:

$smcFunc['db_query']('', 'DELETE FROM {db_prefix}chat',array());

Mod seems to work great other than one other issue I have noticed. If you add new buddies in SMF to your buddy list after the mod was installed they don't show up in the chat window only the ones that were on your list before you installed it are there. Thats how mine is anyways.

Hope to see the bugs ironed out on this great mod.

Thanks!
Cutter

I fixed the database error. 2sichatAdmin.php needs line 69 and 70 edited.

From:
Line 69 = $smcFunc['db_query']('', 'DELETE FROM {db_prefix}chat',array());
Line 70 =   $smcFunc['db_query']('', 'ALTER TABLE {db_prefix}chat AUTO_INCREMENT = 0',array());

To:
Line 69 = $smcFunc['db_query']('', 'DELETE FROM {db_prefix}2sichat',array());
Line 70 =   $smcFunc['db_query']('', 'ALTER TABLE {db_prefix}2sichat AUTO_INCREMENT = 0',array());

Cutter

The old database table was just called chat. I figured it was too generic, but it looks like I forgot to change a couple lines to the new db table. This will be fixed in revision 26.
Title: Re: 2-SI Chat
Post by: ukhalik2 on July 30, 2010, 05:54:03 AM
superb mod.. worked great...
EXcellent JOB!! thanks very much!
Title: Re: 2-SI Chat
Post by: theguise on July 31, 2010, 03:03:26 PM
I think people may want to think it over as to whether they want the option to show everyone who is online.  This may become a bit of a privacy/nuisance issue, because I know there are people I wouldn't want directly messaging me whenever they felt like it.  As of now I use the profile icon on post to where any user can click and talk to any user and I still feel like that's a bit intrusive.  In my opinion it should stick to just "buddies" but there needs to be some kind of notification for users when someone adds a member as a buddy, like i've said before and I wish I had the knowledge to figure this out.  I have been looking through SMF files though and if I ever figure it out (which is doubtful) I will post it somewhere. 
Title: Re: 2-SI Chat
Post by: Shole on July 31, 2010, 07:49:51 PM
I just need help with one thing how to make it that it shows all the online members? I can't find the tut where it is shown anymore and anyhow I couldn't understand it :(
Can someone help me make all the members visibile in the who is online?
Title: Re: 2-SI Chat
Post by: Mystery? on July 31, 2010, 10:53:42 PM
The mod is awesome, but is it possible to make it look EXACTLY like the facebook chat bar? The thing I don't like is that the design/theme/skin/color of the chat its too dull like make it look like its a part of the new default curve theme or something, can you change that? Otherwise, its one of the best mods out there.
Title: Re: 2-SI Chat
Post by: theguise on August 01, 2010, 12:53:26 AM
Why don't you just go back in time and re-invent facebook? Just kidding.  Cometchat found here (http://www.cometchat.com/) is the exact same chat bar as what facebook has pretty much.  But, it ranges from $49 to $500 to use it.  2SI Chat on the other hand is free thanks to nend and I greatly appreciate that, he has obviously put a lot of time and work into it.   The current design he has fits his own website very well, so obviously he built this for himself and took the time and went through all the hoopla to let everyone else at SMF use it.  All I'm saying is you can't really ask someone to change a design because you don't like it, he has a section on his personal support site for people to share their themes, so he's more than open to allowing anyone to alter his work specific to how they see fit. 
Title: Re: 2-SI Chat
Post by: nend on August 01, 2010, 01:36:49 AM
I was not going to say it but might as well since there is a great amount of post about it. The option to show members online is going to be released in revision 26, it is already in the code and working perfectly. This is optional in revision 26, you must enable it in the control panel for the mod. But this is once again in revision 26 which currently is unreleased at this time.

I also want to clear up some things too, no I will not provide support by PM. I am real busy right now and sad to say I don't have much time for 2-SI Chat. I am on Hiatus right now, it will not be permanent though, you just have to wait a little longer for things to get finished.

Plus if anyone wants to create custom themes they are welcomed to do so. You can copy the contents of the default theme to start with and create your own theme by editing them. Then store the contents in 2sichat/themes/your_theme_name. Then you can call it from the JavaScript code below the body tag like so...

<script type="text/javascript" src="http://your_site.com/2sichat/index.php?action=body;theme=your_theme_name"></script>

... So all your adding is ;theme=your_theme_name to the end of the source in the script tags. This tells the chat what theme to use.

So yes you can make it like Facebook.
Title: Re: 2-SI Chat
Post by: Hj Ahmad Rasyid Hj Ismail on August 01, 2010, 05:42:54 AM
I would say: Great Mod! Keep it up. I've looking and waiting for this.
Title: Re: 2-SI Chat
Post by: Nirose on August 01, 2010, 10:39:56 AM
I have installed this without problem. fixed the index.template.php and chmods of the files.

Still the chat bar don't appear on the site. and there is no error desplayed.

i am on SMF 2 RC2

Title: Re: 2-SI Chat
Post by: redbaby92 on August 04, 2010, 07:28:48 PM
when i try to talk to someone this pops up...

Fatal error: Call to undefined function: array_combine() in /homepages/29/d335423707/htdocs/public_html/Sources/Subs-Db-mysql.php on line 641
Title: Re: 2-SI Chat
Post by: nend on August 04, 2010, 11:50:08 PM
Quote from: redbaby92 on August 04, 2010, 07:28:48 PM
when i try to talk to someone this pops up...

Fatal error: Call to undefined function: array_combine() in /homepages/29/d335423707/htdocs/public_html/Sources/Subs-Db-mysql.php on line 641


Which PHP version are you using? array_combine is a PHP function.
Title: Re: 2-SI Chat
Post by: nend on August 04, 2010, 11:58:03 PM
Quote from: Nirose on August 01, 2010, 10:39:56 AM
I have installed this without problem. fixed the index.template.php and chmods of the files.

Still the chat bar don't appear on the site. and there is no error desplayed.

i am on SMF 2 RC2



For a better response please post your site url and any error messages. If not possible then please navigate to these locations and tell me the output of the source in a code box. I need the source not what is shown on the browser. To view the source on most browsers go to view then source.

Locations
http://www.your_site.com/path_to_smf/2sichat/index.php?action=head
http://www.your_site.com/path_to_smf/2sichat/index.php?action=body

If there are any problems it might be easier to spot in those files.

Also if you haven't done so try to disable the optimizer. If your PHP fopen is disable and optimizers are enabled 2-SI Chat will not work.

Please visit this topic for more help - http://mods.2-si.net/2si_chat_support/2si_chat_installation_trouble_shooter_29.0.html
Title: Re: 2-SI Chat
Post by: !RFAN on August 05, 2010, 01:38:52 AM
hey great mod .. thanx a lot...

a suggestion: ... u have added the option for the owner/admin of forum to choose whether only buddies should be shown or all the online users.. plz add an option for the user to choose this.... sorry if it is ridiculous :)
Title: Re: 2-SI Chat
Post by: Threepwud on August 05, 2010, 11:24:09 AM
Quote from: nend on July 28, 2010, 12:23:50 AM
Quote from: Threepwud on July 27, 2010, 06:08:55 PM
Interesting error, now. Anyone know the cause, perhaps?

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
Timestamp: Tue, 27 Jul 2010 21:59:50 UTC


Message: Expected ')'
Line: 1
Char: 17
Code: 0
URI: http://www.threepwood.co/index.php?action=forum


Message: Invalid argument.
Line: 323
Char: 7
Code: 0
URI: http://www.threepwood.co/2sichat/index.php?action=body


Message: Expected ')'
Line: 1
Char: 17
Code: 0
URI: http://www.threepwood.co/index.php?action=forum



Line 323 of the php code 2sichat/index.php does not contain any code but a line break. Line 323 of the output is... doCookies();..., which is JavaScript calling function doCookies. The output of that action should all be JavaScript which is called by the script tags in the index.template.php. These script tags declare the output of the file as script even though the file extension is not of a js. If this file is called for validation by itself as a PHP document then it will fail because there is nothing declaring it as a script so the testing program will not know what to process it as.

Line 1 of index.php is SMF, the chat does not touch that file. Line 1 of your output is...<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
...,which is correct.

What are you using to get these results? I am guessing whatever your testing with is not giving creditable results, looks like a IE test tool to me. I do most of my testing in Firefox with Firebug, which is a great little tool. I wouldn't be able to make the chat if it wasn't for Firebug. Maybe I should put them in my credits. :D

I have tested with the following browsers, which I believe to be the most popular - Firefox, Opera, Safari, IE and Chrome. Please note though if you have compatibility mode turned on in IE turn that junk off. Allot of JavaScript code in the chat system is custom tailored for IE(Stupid IE) since it does not work like the rest and Opera is really picky so it is a good final testing environment. And Netscape, will you can forget about Netscape, it is gone IMHO so no Netscape testing was done.
Quote from: Threepwud on July 28, 2010, 07:53:50 AM
Thanks for the quick reply!

It works well in Chrome and Firefox but displays an error in the bottom left of the screen in IE8 which I have attached. Clicking on it brings up the error I posted above. It still works but of course you want it to not have that error!

I installed it on a fresh install (http://www.threepwud.com/test) and it works very well. Then on my main test site http://www.threepwood.co it displays the error. I do have other themes there and another quick chat mod so it may be that...

Sorry to bump this, but I'm not sure what is causing it. I may have to go about starting again but that's a wee kicker!

Thanks unreservedly!!
Title: Re: 2-SI Chat
Post by: nend on August 05, 2010, 11:54:06 AM
Quote from: Threepwud on August 05, 2010, 11:24:09 AM
Quote from: nend on July 28, 2010, 12:23:50 AM
Quote from: Threepwud on July 27, 2010, 06:08:55 PM
Interesting error, now. Anyone know the cause, perhaps?

Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; InfoPath.2; .NET4.0C)
Timestamp: Tue, 27 Jul 2010 21:59:50 UTC


Message: Expected ')'
Line: 1
Char: 17
Code: 0
URI: http://www.threepwood.co/index.php?action=forum


Message: Invalid argument.
Line: 323
Char: 7
Code: 0
URI: http://www.threepwood.co/2sichat/index.php?action=body


Message: Expected ')'
Line: 1
Char: 17
Code: 0
URI: http://www.threepwood.co/index.php?action=forum



Line 323 of the php code 2sichat/index.php does not contain any code but a line break. Line 323 of the output is... doCookies();..., which is JavaScript calling function doCookies. The output of that action should all be JavaScript which is called by the script tags in the index.template.php. These script tags declare the output of the file as script even though the file extension is not of a js. If this file is called for validation by itself as a PHP document then it will fail because there is nothing declaring it as a script so the testing program will not know what to process it as.

Line 1 of index.php is SMF, the chat does not touch that file. Line 1 of your output is...<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
...,which is correct.

What are you using to get these results? I am guessing whatever your testing with is not giving creditable results, looks like a IE test tool to me. I do most of my testing in Firefox with Firebug, which is a great little tool. I wouldn't be able to make the chat if it wasn't for Firebug. Maybe I should put them in my credits. :D

I have tested with the following browsers, which I believe to be the most popular - Firefox, Opera, Safari, IE and Chrome. Please note though if you have compatibility mode turned on in IE turn that junk off. Allot of JavaScript code in the chat system is custom tailored for IE(Stupid IE) since it does not work like the rest and Opera is really picky so it is a good final testing environment. And Netscape, will you can forget about Netscape, it is gone IMHO so no Netscape testing was done.
Quote from: Threepwud on July 28, 2010, 07:53:50 AM
Thanks for the quick reply!

It works well in Chrome and Firefox but displays an error in the bottom left of the screen in IE8 which I have attached. Clicking on it brings up the error I posted above. It still works but of course you want it to not have that error!

I installed it on a fresh install (http://www.threepwud.com/test) and it works very well. Then on my main test site http://www.threepwood.co it displays the error. I do have other themes there and another quick chat mod so it may be that...

Sorry to bump this, but I'm not sure what is causing it. I may have to go about starting again but that's a wee kicker!

Thanks unreservedly!!

I can not reproduce these results. Not with a fresh install of PortaMx and 2-SI Chat, Not with a fresh install of 2-SI Chat or not even on your website with Internet Explorer 8.

This is the error I get which is associated with the shoutbox JavaScript and not 2-SI Chat.
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.0; Trident/4.0; GTB6.5; SLCC1; .NET CLR 2.0.50727; Media Center PC 5.0; InfoPath.2; .NET CLR 3.5.30729; .NET CLR 3.0.30729; .NET4.0C; OfficeLiveConnector.1.5; OfficeLivePatch.1.3)
Timestamp: Thu, 5 Aug 2010 15:48:05 UTC


Message: Object required
Line: 122
Char: 4
Code: 0
URI: http://www.threepwood.co/Themes/default/shoutbox.js



A perfect clean JavaScript on the other hand can spit out errors when perfectly error free. This does not mean there is a problem with the script though. More commonly most errors that I encounter is resources not being available. Is this error intermittent or all the time?
Title: Re: 2-SI Chat
Post by: redbaby92 on August 06, 2010, 04:19:29 PM
How i know which php version im using?
Title: Re: 2-SI Chat
Post by: theguise on August 06, 2010, 04:47:20 PM
You'd have to look at your webhosts Cpanel.  Mine has it listed with a bunch of other statistics. 
Title: Re: 2-SI Chat
Post by: diamondred123 on August 07, 2010, 04:57:27 AM
ok im going to see if i can make a theme for it
Title: Re: 2-SI Chat
Post by: crustybum on August 10, 2010, 05:48:19 AM
Seems like all the good stuff goes on the 2.0.....anything like this for the 1.11.1? ;D
Title: Re: 2-SI Chat
Post by: Boricua012 on August 10, 2010, 11:36:51 AM
Quote from: amigozone on August 05, 2010, 01:38:52 AM
hey great mod .. thanx a lot...

a suggestion: ... u have added the option for the owner/admin of forum to choose whether only buddies should be shown or all the online users.. plz add an option for the user to choose this.... sorry if it is ridiculous :)

Good idea. That's the only reason why i don't have mines activated on my forum right now.
Title: Re: 2-SI Chat
Post by: theguise on August 10, 2010, 01:57:48 PM
It is now included in Revision 26 which I believe is available here now.
Title: Re: 2-SI Chat
Post by: crustybum on August 10, 2010, 02:56:27 PM
I get this when i send a message

Fatal error: Call to undefined function: array_combine() in /home/content/c/r/u/crusty1/html/forum/Sources/Subs-Db-mysql.php on line 641

any ideas?
Title: Re: 2-SI Chat
Post by: PastorMartin on August 10, 2010, 04:06:06 PM
Quote from: crustybum on August 10, 2010, 02:56:27 PM
I get this when i send a message

Fatal error: Call to undefined function: array_combine() in /home/content/c/r/u/crusty1/html/forum/Sources/Subs-Db-mysql.php on line 641

any ideas?

I am getting the same error.
PHP5 -- I think that's the version.
Title: Re: 2-SI Chat
Post by: lucas-ruroken on August 10, 2010, 04:07:31 PM
Perfect man, i love it

It's a excelent mod. Congrats.
Title: Re: 2-SI Chat
Post by: !RFAN on August 10, 2010, 10:56:00 PM
i just installed it... working flawlessly..

after my experience i got some ideas..and i want to share them here..

the "who's online" shud be updated automatically as soon as a members comes online... rite now it will update on refreshing the page..

the chat window should be resizeable while chatting...
there must be an option to select a theme for bar if more than one themes are installed...

thanks for the mod though
Title: Re: 2-SI Chat
Post by: theguise on August 11, 2010, 12:00:17 AM
Posted a little edit you can do to make the 2sichat bar a little more unobtrusive on your website at the 2si mod site http://mods.2-si.net/2si_chat_themes/making_2si_chat_bit_more_opague_44.0.html
Title: Re: 2-SI Chat
Post by: nend on August 11, 2010, 12:40:58 AM
Quote from: PastorMartin on August 10, 2010, 04:06:06 PM
Quote from: crustybum on August 10, 2010, 02:56:27 PM
I get this when i send a message

Fatal error: Call to undefined function: array_combine() in /home/content/c/r/u/crusty1/html/forum/Sources/Subs-Db-mysql.php on line 641

any ideas?

I am getting the same error.
PHP5 -- I think that's the version.

array_combine is a PHP function which is part of PHP. This function is not part of SMF or the chat.

This post may give some information - http://www.simplemachines.org/community/index.php?topic=287480.0

More than likely the PHP distro does not have that particular PHP function. 2-SI Chat does not load Subs-Compat.php which has a work around for that PHP function. Instead of loading Subs-Compat.php it looks like a work around in 2-SI Chat is required. Post phoned though until revision 27. A simple work around though would be selecting the code below, which I took from the link above, and putting it in 2-SI Chats index.php

if (!function_exists('array_combine'))
{
   function array_combine($keys, $values)
   {
      $ret = array();
      if (($array_error = !is_array($keys) || !is_array($values)) || empty($values) || ($count=count($keys)) != count($values))
      {
         trigger_error('array_combine(): Both parameters should be non-empty arrays with an equal number of elements', E_USER_WARNING);

         if ($array_error)
            return;
         return false;
      }

      // Ensure that both arrays aren't associative arrays.
      $keys = array_values($keys);
      $values = array_values($values);

      for($i=0; $i < $count; $i++)
         $ret[$keys[$i]] = $values[$i];

      return $ret;
   }
}

Title: Re: 2-SI Chat
Post by: crustybum on August 11, 2010, 04:04:22 AM
Sorry, were do i actually put that?
Title: Re: 2-SI Chat
Post by: PastorMartin on August 11, 2010, 04:13:20 PM
Thank you Nend for your reply but I also do not know where exactly to put that code.  I don't find anything about "array combine" in the file.
Title: Re: 2-SI Chat
Post by: nend on August 11, 2010, 10:44:57 PM
Try inserting it towards the top under <?php
Title: Re: 2-SI Chat
Post by: crustybum on August 12, 2010, 02:43:43 AM
Yep......that worked..Ta!!!
Title: Re: 2-SI Chat
Post by: crustybum on August 12, 2010, 02:40:09 PM
For some reason it works for some members....and not others?  its not just one membergroup either, some mods can see it....and some cant... :o
Title: Re: 2-SI Chat
Post by: nend on August 12, 2010, 07:46:08 PM
Quote from: crustybum on August 12, 2010, 02:40:09 PM
For some reason it works for some members....and not others?  its not just one membergroup either, some mods can see it....and some cant... :o

Possible reasons could be cache or script blockers. Have them empty their browser cache and see if that works. If not then it is possible they are using some sort of script or ad blocker that is blocking the JavaScript code. Can you see if you can get their browser setup including add-ons they may have installed with their browser.
Title: Re: 2-SI Chat
Post by: PastorMartin on August 12, 2010, 10:23:52 PM
Nend,

Thank you so much.  That seems to have it fixed on my forum.  Thank you for your quick replies!
Title: Re: 2-SI Chat
Post by: crustybum on August 13, 2010, 08:36:00 AM
Shame...i just cant get it to work perfect... :-[ :-[ and it also slows the forum down a bit....
Title: Re: 2-SI Chat
Post by: Dharshan on August 13, 2010, 11:35:57 AM
Nend,

can we have these changes updated on the package files... Plz... :)
Title: Re: 2-SI Chat
Post by: nend on August 13, 2010, 11:59:05 AM
Quote from: Dharshan on August 13, 2010, 11:35:57 AM
Nend,

can we have these changes updated on the package files... Plz... :)

I'm not sure what you are talking about. Revision 26 was released a couple days ago with requested features.
Title: Re: 2-SI Chat
Post by: PastorMartin on August 13, 2010, 10:46:02 PM
I'm having trouble with some.

If I start the conversation, the other user can use the chat.  When he closes the chat and goes to click on the "Who's Online" it says:

"Error on Page" just below "Who's Online"

It gives this if you double click on the error:
Message: 'document.all.friends.style' is null or not an object
Line: 408
Char: 5
Code: 0
URI: http://cavespringsgbchurch.com/2sichat/index.php?action=body

We've cleared the cookies, temp files, history multiple times.  I'm at a loss with it Nend.
Title: Re: 2-SI Chat
Post by: nend on August 14, 2010, 12:43:11 AM
Looks like IE error message again.

Thanks for the more in dept information, I just can't reproduce the error to get any idea of what may be going on with their setup. I'm not saying that there is no problem with the script, may or may not be, I just need to look what is going on with their version of IE. Parts of the script are custom tailored to IE because it does not do scripts the same way as other browser, IE is buggy  ;D. More than likely though it may be IE's compatibility mode set to on.
Title: Re: 2-SI Chat
Post by: crustybum on August 14, 2010, 03:06:39 AM
Quote from: redbaby92 on August 04, 2010, 07:28:48 PM
when i try to talk to someone this pops up...

Fatal error: Call to undefined function: array_combine() in /homepages/29/d335423707/htdocs/public_html/Sources/Subs-Db-mysql.php on line 641


I uninstalled this mod last night, because it slowed the forum down a bit.......i installed it again this morning, and now i get the same mesage.....same on firefox

Title: Re: 2-SI Chat
Post by: nend on August 14, 2010, 11:59:31 AM
Quote from: crustybum on August 14, 2010, 03:06:39 AM
Quote from: redbaby92 on August 04, 2010, 07:28:48 PM
when i try to talk to someone this pops up...

Fatal error: Call to undefined function: array_combine() in /homepages/29/d335423707/htdocs/public_html/Sources/Subs-Db-mysql.php on line 641


I uninstalled this mod last night, because it slowed the forum down a bit.......i installed it again this morning, and now i get the same mesage.....same on firefox

This has been covered. http://www.simplemachines.org/community/index.php?topic=391961.msg2740290#msg2740290 - Your either going to have to apply the manual hack for revision 26 or wait until revision 27.

This url [ http://mods.2-si.net/project,1/ ] will give you more information what is being worked on for revision 27.
Title: Re: 2-SI Chat
Post by: crustybum on August 14, 2010, 12:15:11 PM
Thanks..when will 27 be ready?
Title: Re: 2-SI Chat
Post by: nend on August 14, 2010, 12:19:08 PM
Quote from: crustybum on August 14, 2010, 12:15:11 PM
Thanks..when will 27 be ready?

Soon I hope.
Title: Re: 2-SI Chat
Post by: Dharshan on August 14, 2010, 12:42:07 PM
Quote from: nend on August 13, 2010, 11:59:05 AM
Quote from: Dharshan on August 13, 2010, 11:35:57 AM
Nend,

can we have these changes updated on the package files... Plz... :)

I'm not sure what you are talking about. Revision 26 was released a couple days ago with requested features.

thanks. i installed..so far so good. like it!

thank you
Title: Re: 2-SI Chat
Post by: nend on August 14, 2010, 01:13:13 PM
Just dabbed the last feature onto revision 27, next testing, then a release. Should not be too much longer.

Quick recap on what is different on revision 27, so most may or may not want to update. The undefined function error is fixed, this was caused by older versions of PHP. Also introduced is load checking, disables some aspects of the chat or entire thing when server loads are high.

That is it for now, have to investigate some possible IE problems but will not know if these IE errors are a bug or just browser setup problems, like IE compatibility mode. If I find anything that would be revision 28.
Title: Re: 2-SI Chat
Post by: PastorMartin on August 14, 2010, 01:19:57 PM
Thank you Nend.  I'll check his system to see if IE is the compatibility is the issue.
Title: Re: 2-SI Chat
Post by: nend on August 14, 2010, 01:54:50 PM
Quote from: PastorMartin on August 14, 2010, 01:19:57 PM
Thank you Nend.  I'll check his system to see if IE is the compatibility is the issue.

If possible can you get me their OS version, IE version and any add-ons they may have installed. I don't use IE but I know a couple of Firefox add-ons that can kill the chat, like NoScript, I am thinking this may be a possibility.
Title: Re: 2-SI Chat
Post by: crustybum on August 14, 2010, 03:31:47 PM
Thanks for all your hard work on this...a great mod, i only had it working for a bit, but our members loved it..

Chris
Title: Re: 2-SI Chat
Post by: !RFAN on August 16, 2010, 09:33:57 AM
i applied my old database on a new forum.. on new forum widgets are not working although they were working on old site.. what should i do???
Title: Re: 2-SI Chat
Post by: Dharshan on August 16, 2010, 09:58:55 AM
Quote from: amigozone on August 16, 2010, 09:33:57 AM
i applied my old database on a new forum.. on new forum widgets are not working although they were working on old site.. what should i do???

what do you mean by widgets?? is it this mods? or another portal?
Title: Re: 2-SI Chat
Post by: SA™ on August 16, 2010, 10:12:34 AM
you can add widgets to this mod eg google gadgets
Title: Re: 2-SI Chat
Post by: nend on August 16, 2010, 12:57:50 PM
Quote from: amigozone on August 16, 2010, 09:33:57 AM
i applied my old database on a new forum.. on new forum widgets are not working although they were working on old site.. what should i do???

You sure you didn't overwrite any information that was used before. This would be the only cause I know of.
Title: Re: 2-SI Chat
Post by: nend on August 16, 2010, 02:30:50 PM
A security risk has been identified in the chat system. I am asking all users to disable the chat or uninstall it until revision 28 public beta is released. I will try to get revision 28 out today. Be patient, I will not disclose this vulnerabilities details until revision 28 is released. A fix has already been made, so just doing the final touches to the chat system.

This vulnerability will be undocumented to not give any advance users the idea of how to use it.
Title: Re: 2-SI Chat
Post by: !RFAN on August 16, 2010, 03:36:05 PM
Quote from: nend on August 16, 2010, 12:57:50 PM
Quote from: amigozone on August 16, 2010, 09:33:57 AM
i applied my old database on a new forum.. on new forum widgets are not working although they were working on old site.. what should i do???

You sure you didn't overwrite any information that was used before. This would be the only cause I know of.

actually when i installed the mod on new forum the one gadget i had on old was still there on new forum.. i checked the gadget and it was not showing .. i mean  i was able to click on it..a window appear but does not show any thing... then i removed the gadget and made a new gadget for the same code... the code is below...

<iframe src="http://www.facebook.com/plugins/likebox.php?id=110929655606430&width=350&connections=12&stream=true&header=true&height=600" scrolling="yes" frameborder="0" style="border:none; overflow:hidden; width:350px; height:600px;background-color: #ffffff;" ></iframe>

i think i shud uninstall this mode.. remove the database tables and then reinstall it???

will this solve the problem or not???
Title: Re: 2-SI Chat
Post by: nend on August 16, 2010, 06:56:41 PM
Revision 28 is now released, this is a quick release so it might be a little buggy. It is very highly recommended to upgrade.

Please note the load checking is not fully bug free yet. You can enable if you want but there might be some problems. Like if a user is already on the website and the server load goes higher than your setting and they click a gadget or something there is a possibility they will get a invisible div. This will not look like much but might cover links on the page.
Title: Re: 2-SI Chat
Post by: diamondred123 on August 17, 2010, 06:25:59 AM
we still need to change the premissionsa to make it work
can you not make it so i dont need to do that
because that wont work on my site because its hosted with a friend and he has set premissins he cant change but i can change on the test server
Thanks
Title: Re: 2-SI Chat
Post by: nend on August 17, 2010, 11:22:04 AM
I have made one in the past, just it didn't work with SMF's Package Manager. Will however look into this.
Title: Re: 2-SI Chat
Post by: diamondred123 on August 17, 2010, 04:59:03 PM
it shows my blocked cursed words
Title: Re: 2-SI Chat
Post by: crustybum on August 17, 2010, 05:09:19 PM
Re installed this great mod....butttttttttttttttttttttttt it still slows down the whole forum...i suppose this is due to being on a shared server.... :-[
Title: Re: 2-SI Chat
Post by: uzumbaba on August 17, 2010, 10:46:28 PM
Quote from: nend on August 16, 2010, 06:56:41 PM
Revision 28 is now released, this is a quick release so it might be a little buggy. It is very highly recommended to upgrade.

I upgraded but now I could not succeed for the guests.
It is not visible for guests.
Tried to detect the error but did not succeed.

Here is the message:

"Detailed information about the error on the website

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2;. NET CLR 2.0.50727;. NET CLR 3.5.30729;. NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0 ;. NET4.0C;. NET4.0E; AskTbCLM/5.8.0.12304)
Time stamp: Fri, August 18 2010 01:09:25 UTC


Message: ',' expected
Row: 1
Character: 10
Code: 0
URI: http://www.xxxxxx.com/2sichat/index.php?action=head


Message: ',' expected
Row: 1
Character: 10
Code: 0
URI: http://www.xxxxxxx.com/2sichat/index.php?action=body"

How should I inform the Bar will visible for guests as well?
Once you have logged in, there is no problem.

--------
I have tried several times, uninstalled and reinstalled, went into the forum database and cleared the table appearing "2sichat" variables, then installed clean, but the same error occurs.

Title: Re: 2-SI Chat
Post by: nend on August 17, 2010, 11:00:35 PM
Quote from: uzumbaba on August 17, 2010, 10:46:28 PM
Quote from: nend on August 16, 2010, 06:56:41 PM
Revision 28 is now released, this is a quick release so it might be a little buggy. It is very highly recommended to upgrade.

I upgraded but now I could not succeed for the guests.
It is not visible for guests.
Tried to detect the error but did not succeed.

Here is the message:

"Detailed information about the error on the website

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2;. NET CLR 2.0.50727;. NET CLR 3.5.30729;. NET CLR 3.0.30729; Media Center PC 6.0; Tablet PC 2.0 ;. NET4.0C;. NET4.0E; AskTbCLM/5.8.0.12304)
Time stamp: Fri, August 18 2010 01:09:25 UTC


Message: ',' expected
Row: 1
Character: 10
Code: 0
URI: http://www.xxxxxx.com/2sichat/index.php?action=head


Message: ',' expected
Row: 1
Character: 10
Code: 0
URI: http://www.xxxxxxx.com/2sichat/index.php?action=body"

How should I inform the Bar will visible for guests as well?
Once you have logged in, there is no problem.

--------
I have tried several times, uninstalled and reinstalled, went into the forum database and cleared the table appearing "2sichat" variables, then installed clean, but the same error occurs.



Its a bug, please refer to this post.
http://mods.2-si.net/2si_chat_support/a_bug_firefox_49.msg133.html#msg133
Title: Re: 2-SI Chat
Post by: Marsh on August 18, 2010, 02:22:01 AM
Any word on making this work for everyone online and not just buddies?
Title: Re: 2-SI Chat
Post by: crustybum on August 18, 2010, 03:57:36 AM
Quote from: Marsh on August 18, 2010, 02:22:01 AM
Any word on making this work for everyone online and not just buddies?

It does..there is an option in the config.
Title: Re: 2-SI Chat
Post by: !RFAN on August 19, 2010, 04:14:50 AM
whats new in rev29???

Title: Re: 2-SI Chat
Post by: !RFAN on August 19, 2010, 04:39:54 AM
Quote from: nend on August 16, 2010, 12:57:50 PM
Quote from: amigozone on August 16, 2010, 09:33:57 AM
i applied my old database on a new forum.. on new forum widgets are not working although they were working on old site.. what should i do???

You sure you didn't overwrite any information that was used before. This would be the only cause I know of.


now i deleted 2-SI Chat database tables and intalled the mod again... but again my widgets are not working :(
Title: Re: 2-SI Chat
Post by: nend on August 19, 2010, 11:23:40 AM
Quote from: amigozone on August 19, 2010, 04:14:50 AM
whats new in rev29???



Not much, just one bug fix.
Title: Re: 2-SI Chat
Post by: Afro on August 19, 2010, 11:40:39 AM
Good mod. Congrats
Title: Re: 2-SI Chat
Post by: drhamza on August 19, 2010, 02:55:40 PM
hello there, thank you very very much for the great mod, i've been waiting for such a mod for long time

arabic names are being viewed as ???? instead of arabic characters, i checked 2sichat and 2sichat_gadgets and it's utf8 general, i suppose the script gets the information from settings.php, but character set there is utf8 as well... soo, any what should i do? thank you very much
Title: Re: 2-SI Chat
Post by: nend on August 19, 2010, 06:34:19 PM
Quote from: drhamza on August 19, 2010, 02:55:40 PM
hello there, thank you very very much for the great mod, i've been waiting for such a mod for long time

arabic names are being viewed as ???? instead of arabic characters, i checked 2sichat and 2sichat_gadgets and it's utf8 general, i suppose the script gets the information from settings.php, but character set there is utf8 as well... soo, any what should i do? thank you very much

Yes your right, utf8 support should be default, however I think the ???? marks may be caused by jQuery. I'll have to check this out though. Thanks for the input.
Title: Re: 2-SI Chat
Post by: drhamza on August 20, 2010, 04:37:16 AM
thanks to you
Title: Re: 2-SI Chat
Post by: Afro on August 20, 2010, 11:38:11 AM
How the you make the chat box stay fixed at the bottom like fb?

Title: Re: 2-SI Chat
Post by: nend on August 20, 2010, 12:24:14 PM
Quote from: Afro on August 20, 2010, 11:38:11 AM
How the you make the chat box stay fixed at the bottom like fb?



There is no way to do this at this time due to how the JavaScript is coded. You can however change the position of the drag-able chat windows when they open in the chats style sheet.
Title: Re: 2-SI Chat
Post by: nend on August 22, 2010, 01:24:16 PM
50 downloads to 1,000. It has been exactly 1 month 1 day after the mod got approved. Not bad it was needed, but still a long ways to go.

The main problem in the chat at this time and my main concern is the stuttering. I know some may suggest doing it the XML way would of been allot better and could of eliminated the stuttering, I agree. Now am I going to add XML support, No.

That may seems a little harsh but XML barfs and I am looking for something more stable like JSON or JavaScript Object Notation. Most newer versions of PHP have it built in, but backwards compatibility can be added to older versions of PHP. So the future of JSON in future releases of 2-SI Chat looks good.
Title: Re: 2-SI Chat
Post by: nend on August 22, 2010, 01:46:19 PM
Revision 30 uploaded here.

Fixes

Workaround for IE UTF-8 Bug, encode before sending.
Fix for chat window online status wrong.
More session support.
Title: Re: 2-SI Chat
Post by: !RFAN on August 23, 2010, 12:02:41 AM
going well... we can xpect lot of betterment in future.. keep it up.. :)
Title: Re: 2-SI Chat
Post by: nend on August 23, 2010, 12:33:39 AM
Already made some real big strides with JSON in the chat. Just reworking the code to support it and removing old code that will no longer be supported. Like the session thing put in revision 30, it is gone, lol, long live that idea.

The stuttering issue is completely fixed in revision 31. Just have to wait though.

A JSON response from 2-SI Chat revision 31+
{"ID" : "105", "DATA" : "\n\t\t\t\t<div id=\"u4i105\">\n\t\t\t\t\t<img width=\"20px\" height=\"20px\" src=\"http:\/\/www.2-si.net\/avatarsu\/avatar_4_1280630777.png\" \/>\n\t\t\t\t\t<strong>Informer: <\/strong>\n\t\t\t\t\t<img src=\"http:\/\/www.2-si.net\/Smileys\/2-SI\/tongue.gif\">\n\t\t\t\t<\/div>"}

and another one that makes the heartbeats more efficient.
{"ids" : [{"id" : "4","id" : "8","id" : "2"}]}

and anther one, no data, the plug was pulled by the optimizers(aka DB lease function), but still a response was made.
{"ID" : null, "DATA" : null}

Isn't that prettier than XML. :D
Title: Re: 2-SI Chat
Post by: DarkflameQ on August 24, 2010, 08:39:42 AM
Finally got this awesome mod working.

The mod installed into my custom theme correctly but it didn't take into account simple portal.

Now i've got this bad boy working, is there a place for providing feedback / suggestions for future releases? :D
Title: Re: 2-SI Chat
Post by: !RFAN on August 24, 2010, 08:43:27 AM
yes..u can see links in sigi of nend
Title: Re: 2-SI Chat
Post by: drhamza on August 25, 2010, 05:37:26 PM
nend my friend, wanna ask about the language problem am getting, what are the news?
(i already asked about it but am too excited and i still can't apply the mod due to this issue =( )
Title: Re: 2-SI Chat
Post by: dkharp on August 25, 2010, 07:15:54 PM
Great mod!  When I clicked on the face book one it shows code. I'm using default curve theme. Any ideas?
Title: Re: 2-SI Chat
Post by: nend on August 25, 2010, 10:42:30 PM
Quote from: drhamza on August 25, 2010, 05:37:26 PM
nend my friend, wanna ask about the language problem am getting, what are the news?
(i already asked about it but am too excited and i still can't apply the mod due to this issue =( )

The language problem I believe was fixed in revision 30. There has been quite a few fixes lately.

This post contains allot manual fixes. http://mods.2-si.net/2si_chat_support/a_bug_firefox_49.0.html

I am not going to provide a update real soon because revision 31 already has quite a few changes and need to finish those up first. However revision 31 will have all fixes found so far.
Title: Re: 2-SI Chat
Post by: tfs on August 26, 2010, 09:06:55 PM
Looking very nice!  One cool feature would be to allow ignoring individual users.

I'd also like to be able to turn off the bottom bar, and then make a SimplePortal block that would display the online users with the ability to chat them from there, and also have access to the sound on/off button.
Title: Re: 2-SI Chat
Post by: x.Silencer.x on August 28, 2010, 01:04:02 PM
Hello,

I have installed this mod on RC3,  and on the Default theme, it successfully installed, but for some reason there's no chat Bar or anyone to chat with other members! Please let me know if there are any extra things need to be done after installation, i have also checked the Settings for Config of SI Chat and everything is enabled.
Title: Re: 2-SI Chat
Post by: x.Silencer.x on August 28, 2010, 08:42:57 PM
oh its working now , problem with folder and file permissions
I have some other problem
Language Arabic Online does not work now can not read the names and box damaged
As in the picture

What is the problem
Title: Re: 2-SI Chat
Post by: nend on August 29, 2010, 12:30:55 AM
Confirmed about Arabic usernames not showing correctly. Bug logged - http://mods.2-si.net/issue,18.0/

This however in test I have done does not miss up the style sheet. For some reason your style sheet for the chat is not loading up correctly.
Title: Re: 2-SI Chat
Post by: x.Silencer.x on August 29, 2010, 06:05:00 AM
Okay, thanks a lot for your Feedback, Do you happen to have any suggestions regarding the Style sheet?
Title: Re: 2-SI Chat
Post by: nend on August 29, 2010, 11:13:07 AM
I need a closer look, I never seen this behavior before. It looks like the chat was flipped around but how? If you can PM me or post a link to the site.
Title: Re: 2-SI Chat
Post by: x.Silencer.x on August 29, 2010, 11:29:41 AM
i can't pm you 

my site is

http://www.proegy.com
Title: Re: 2-SI Chat
Post by: nend on August 29, 2010, 12:24:03 PM
I don't know whether to consider this as a bug or a incompatibility. I have not worked with any right to left sites in the past and the html declaration of the site being right to left is the problem.
<html xmlns="http://www.w3.org/1999/xhtml" dir="rtl">
Since 2-SI Chat appends its data to the html via JavaScript it has to follow the rules of the document. This is what is causing the problem. I will need to research this further. Recorded and logged as a bug - http://mods.2-si.net/issue,19.0/
Title: Re: 2-SI Chat
Post by: x.Silencer.x on August 29, 2010, 01:05:15 PM
can send me  link for ver 31 if finshed to try

i can send you pass cepanel to show what's the problem but i can't send here

im pm i can't send msg

any other way to send my user and pass cpanel

Title: Re: 2-SI Chat
Post by: nend on August 29, 2010, 03:37:14 PM
Sure, but will have to wait until it is finished. I need someone who can test this release on different setups such as site language.
Title: Re: 2-SI Chat
Post by: x.Silencer.x on August 29, 2010, 04:26:20 PM
oky nend i wait you

thx for help

this mod is very good i hop to work in my site
Title: Re: 2-SI Chat
Post by: x.Silencer.x on September 02, 2010, 03:26:33 PM
nend

how much you can finshed ver31
Title: Re: 2-SI Chat
Post by: nend on September 02, 2010, 03:37:59 PM
Well the character encoding bug was thought to be stomped until I upload rev31 on 2-SI Mod site. For some reason the usernames looked to be stored wrong in the database. I am trying to sort this out but sort of hard when MySql returns ??? marks from the start.

Rev31 will be released soon but no fix for the usernames yet. Sorry, but hey the template is fixed. ;)
Title: Re: 2-SI Chat
Post by: nend on September 02, 2010, 04:33:39 PM
Well looks like the username is fixed now, thanks to Oya a member here at SMF who helped me greatly fixing this problem before revision 31 release.

So revision 31 will be bug free.

Silencer since you encountered some of the problems and bugs in revision 31 can you register at my mod site. http://mods.2-si.net, once registered I will appoint you a temporary beta so you can get a running version. But remember though revision 31 may still have some bugs. Hopefully we all got the bugs worked out this time. :D
Title: Re: 2-SI Chat
Post by: x.Silencer.x on September 02, 2010, 10:12:42 PM
Im register but name is alsaka  :)

i wait you to try ver 31 i hop to fixed this problem
Title: Re: 2-SI Chat
Post by: dkharp on September 03, 2010, 12:44:21 AM
Is there a way to move the bar uptop?
Title: Re: 2-SI Chat
Post by: SilverKnight on September 03, 2010, 01:41:01 AM
Good mod, i joined the forums and posted my suggestions there.
Title: Re: 2-SI Chat
Post by: !RFAN on September 03, 2010, 02:53:25 AM
waiting for final release :D
Title: Re: 2-SI Chat
Post by: nend on September 03, 2010, 12:09:41 PM
Quote from: dkharp on September 03, 2010, 12:44:21 AM
Is there a way to move the bar uptop?

The postition of the bar, online list and initial location of chat or gadget window is controlled by the style sheet. ;)
Title: Re: 2-SI Chat
Post by: dkharp on September 03, 2010, 04:49:39 PM
Thank you.. Where is the style sheet?
Title: Re: 2-SI Chat
Post by: CapadY on September 03, 2010, 04:55:20 PM
I've installed this MOD and it seems to work fine, except one little thing.

When using the defalt curve theme there is a language selector shown.
As soon as I switch over to the Facebook theme the language selector disappaers.

Is this a bug or is there a possibilty to set this somewhere ?

When needed a can give an URL and an test account to have a look.


In addition to this,
When using the Facebook Theme the "Who is online"- link works properly in Firefox but doesn't work when using Internet Explorer.
Title: Re: 2-SI Chat
Post by: nend on September 03, 2010, 07:49:27 PM
Quote from: capady on September 03, 2010, 04:55:20 PM
I've installed this MOD and it seems to work fine, except one little thing.

When using the defalt curve theme there is a language selector shown.
As soon as I switch over to the Facebook theme the language selector disappaers.

Is this a bug or is there a possibilty to set this somewhere ?

When needed a can give an URL and an test account to have a look.


In addition to this,
When using the Facebook Theme the "Who is online"- link works properly in Firefox but doesn't work when using Internet Explorer.


The theme can be incompatible with 2-SI Chat meaning some of the vars in the JavaScript or names of containers might be the same. It can also be if the facebook theme uses jQuery and does not use the no conflict statement then there may be a conflict. However, there are allot of things that can conflict.

The language selector can also can be set in the admin panel, make sure that the setting didn't change.

I don't want to guess what is wrong, I hate guessing, but more than likely it is going to be the first one if it works on one theme and not the other. Something is butting heads with the chat.
Title: Re: 2-SI Chat
Post by: !RFAN on September 05, 2010, 12:43:11 PM
i'm using this mod and it is working fine... but there is one problem...
when any member is "Appearing offline" 2-SI Chat bar still shows that the member is online...
hey nend... plz do something with this one also...
btw.. going very well.. :)
Title: Re: 2-SI Chat
Post by: nend on September 05, 2010, 12:56:53 PM
Maybe the next version, not the one coming up, that is already in testing for any bugs.

The who's online section part of the bar is not AJAX, it only refreshes only on a new page load. But now that 2-SI Chat is supporting JSON we can do a few things. This may be optional though, because making request to a server to check who is online is allot of unnecessary load IMHO, but hey some people can cope handle this load.

I will give you the tools to overload your MySql or hosting server at your desecration, and ways to disable them of coarse.  ;D
Title: Re: 2-SI Chat
Post by: !RFAN on September 05, 2010, 03:01:27 PM
wow... great things are coming up.... :D
Title: Re: 2-SI Chat
Post by: nend on September 05, 2010, 09:19:45 PM
Yup, I picked JSON over XML because it is allot easier way to communicate back and forth with the JavaScript.
Title: Re: 2-SI Chat
Post by: nend on September 05, 2010, 10:26:36 PM
Ok, here is the deal.

If the beta team does not report any problems with revision 31 within at least a week from now I will release it on SMF. If one problem no go, lets see if this can happen.
Title: Re: 2-SI Chat
Post by: !RFAN on September 05, 2010, 11:27:51 PM
hmmm... we are waiting then...


btw i made some changes to look of this mod... u can see on my forum.. link is in sigi...

may i share it here???
Title: Re: 2-SI Chat
Post by: nend on September 09, 2010, 01:31:00 PM
Revision 31 is now available for download.

Fixes
Usernames not displaying correctly for certain characters.
Right to left sites display chat wrong.
Invisible divs.
Stuttering issue.

Features / Changes
Enable chat window heartbeat - Allows for one heartbeat now instead of multiple.
JSON support.
Template no longer echo's content but must return $data.

Allot of these fixes wouldn't be possible if it wasn't for JSON support being added, which was greatly needed.

Revision 30 and lower templates are not compatible with Revision 31+ templates. I am hoping this is the last change to the template system.

For more details about the changes please visit.
http://mods.2-si.net/project,1/
Title: Re: 2-SI Chat
Post by: MC73 on September 12, 2010, 03:16:05 PM
Great Mod ... After inputing the information in my custom themes, it works real well for my site .... Thanks for a job well done on this mod . Thank you ... MC
Title: Re: 2-SI Chat
Post by: Afro on September 12, 2010, 04:14:15 PM
Good job nend.
Title: Re: 2-SI Chat
Post by: drhamza on September 13, 2010, 10:12:27 AM
i shall say again; that's one of the best mods ever
Title: Re: 2-SI Chat
Post by: MordyT on September 13, 2010, 01:07:08 PM
Wow, shall test...
Title: Re: 2-SI Chat
Post by: !RFAN on September 16, 2010, 01:33:28 AM
i was using rev 30.. then i uninstalled it and installed rev 31... now i cant see any bar...

i cant see themes folder for bar... 2sichat/themes/default/index.php

??
Title: Re: 2-SI Chat
Post by: Hj Ahmad Rasyid Hj Ismail on September 16, 2010, 05:50:00 AM
Go to OP and see there is a troubleshoot guide there. Basically the main problem is the relevant files and folders permission which you should change to 755. If you are using custom theme, make sure there the 2 SI Chat script is there before and after body opening tag.
Title: Re: 2-SI Chat
Post by: !RFAN on September 16, 2010, 07:39:20 AM
i did everything... but the problems is that there is no Themes folder??
Title: Re: 2-SI Chat
Post by: Hj Ahmad Rasyid Hj Ismail on September 16, 2010, 08:43:31 AM
It can't be. If you are installing correctly, there must be urforumroot/2sichat/themes. Otherwise, you can try uninstall and reinstall again (and troubleshoot again).
Title: Re: 2-SI Chat
Post by: nend on September 16, 2010, 11:54:08 AM
That is strange, try downloading the package again. Maybe something didn't download right and the package is corrupt.
Title: Re: 2-SI Chat
Post by: x.Silencer.x on September 16, 2010, 10:35:43 PM
Was a very good solution to the problem of names and profile pictures appear too, and I still have a problem



See photo

Arabic language shows her destination image Yellow

The problem of the emergence of Arabic Language


Please help me solve them
Title: Re: 2-SI Chat
Post by: nend on September 17, 2010, 01:10:41 AM
I thought the problem was solved. :(

Can you send me something in Arabic at mods.2-si.net via IM. I can't reproduce the problem and I am guessing it is because I am copying and pasting Arabic to test this. Lets see if we can figure this one out.
Title: Re: 2-SI Chat
Post by: x.Silencer.x on September 18, 2010, 04:34:39 AM
 i send in mods.2-si.net 

in ver 30 or 29 i can write arabic  but name's and pic is error
but in 31 i can't  write arabic but name's and pic its ok problem was solved

i wait you to try fixed

thx nend

Title: Re: 2-SI Chat
Post by: nend on September 18, 2010, 11:51:49 AM
I am still having trouble reproducing the problem you are having. When I copy and paste the Arabic it works fine. Since I am not able to reproduce the problem it is difficult track it down. If you can send me a IM via chat in Arabic at mods.2-SI.net. I think something more is going on when I copy and paste the code into my computer back to the chat. It may be getting convert there, don't know, we will find out though.

I attached a image of the results I get.
Title: Re: 2-SI Chat
Post by: x.Silencer.x on September 18, 2010, 01:09:06 PM
OK nend when you copy this is pic ok

try to closed who's online and open again you can't see again arabic

you see this ?????? and face yelow
Title: Re: 2-SI Chat
Post by: timmytimmy on September 18, 2010, 02:54:43 PM
ok, so i installed the latest version of this mod and i don't see any bar? 

i have a custom SMF theme but i made sure i checked the box for it during the install.  help?
Title: Re: 2-SI Chat
Post by: John1 on September 18, 2010, 04:29:10 PM
Hi Nend, Thanks for this wonderful mod.
Meanwhile, if i stay invisible as the admin on the forum, Members still see me online from the chat list.
Is there a way to avoid that ?
Title: Re: 2-SI Chat
Post by: nend on September 19, 2010, 01:22:05 AM
Please no PM's about installation of 2-SI Chat, most information on installation can be found at http://mods.2-si.net

@x.Silencer.x - Can you PM or post the URL to your site, I don't seem to remember the it. I can't reproduce the problem you are having but it doesn't mean there isn't any bugs, it could be a configuration difference.

@John1 - If you go to the site mentioned you can request it in as a feature, I like this idea also, invisible should be invisible. Please post it in the 2-SI Chat Bugs and Features area as a feature request. I tend to forget things lately, so if you post it there it will be remembered.

Also I would like to mention things in the works, live updating of the friends/online list with optimizers off, semi live updating of the friends/online with optimizers on, simple bbc, better JSON and permissions.
Title: Re: 2-SI Chat
Post by: x.Silencer.x on September 19, 2010, 03:17:46 AM
http://www.proegy.com/smf

ok nend and if you want my pass and user cpanel to see what's the problem

i can send pm in mods.2-si.net
Title: Re: 2-SI Chat
Post by: nend on September 19, 2010, 12:27:16 PM
Quote from: x.Silencer.x on September 19, 2010, 03:17:46 AM
http://www.proegy.com/smf

ok nend and if you want my pass and user cpanel to see what's the problem

i can send pm in mods.2-si.net


I think I may have found it, just I am unsure. You know how to use phpMyAdmin? Can you log into your phpMyAdmin and get me a screen shot of the table structure of {db_prefix}_2sichat? I think there may be a structure difference that may not be getting set right.

A real quick test to do though is to change the msg field collation to utf8_general_ci and see what happens if it is already there then get me the contents of Settings.php for SMF, be sure to take out your db information out of the file before posting it. ;)
Title: Re: 2-SI Chat
Post by: x.Silencer.x on September 19, 2010, 06:48:41 PM
i change msg text collation from latin_general_ci to utf8_general_ci
and arabic its ok now

You are a serious
The problem  is resolved
Thank you nend
your mod very beautiful from one of a professional
Thank you nend  for all the help and support

Title: Re: 2-SI Chat
Post by: x.Silencer.x on September 21, 2010, 02:28:21 PM
hi nend

I need help on some of the additions

Example

Visible and invisible like facebook

No one can see me must [Add To Buddy List ]
Title: Re: 2-SI Chat
Post by: nend on September 21, 2010, 02:54:41 PM
Quote from: x.Silencer.x on September 21, 2010, 02:28:21 PM
hi nend

I need help on some of the additions

Example

Visible and invisible like facebook

No one can see me must [Add To Buddy List ]

I was actually wondering how that should be set up. If your invisible should you be invisible to everyone or just people who are not your buddy?

I know how I am going to do it, you will be visible if you set your status to "Show others my online status" in your profile. I think buddies should be able to see you though, so this is a feature for the show everyone online option in 2-SI Chat.
Title: Re: 2-SI Chat
Post by: x.Silencer.x on September 21, 2010, 05:47:41 PM
yes , i konw

but i need to Visible in forum  but i don't need talking in chat

in need to invisible only chat



Title: Re: 2-SI Chat
Post by: improv on September 23, 2010, 02:23:38 AM
Just a stupid question and not sure if this has been asked already but what if you "ignored" an user on the forums?
Will they still be able to chat with each other, or?
Title: Re: 2-SI Chat
Post by: Hj Ahmad Rasyid Hj Ismail on September 23, 2010, 05:44:05 AM
I don't think ignored user can chat with us at all. But give a test and try it out. Who knows...
Title: Re: 2-SI Chat
Post by: nend on September 23, 2010, 12:38:32 PM
Quote from: ahrasis on September 23, 2010, 05:44:05 AM
I don't think ignored user can chat with us at all. But give a test and try it out. Who knows...

Yes they can, it was never thought about building this type of thing into 2-SI Chat in the beginning. Will be adding this however to the next release.
Title: Re: 2-SI Chat
Post by: John1 on September 23, 2010, 02:07:57 PM
I dont know if someone already asked this question.

Can you set the time frame for which online people can be shown.
Something like -

Set the time [in minutes or seconds] for the online people to show :
Title: Re: 2-SI Chat
Post by: nend on September 23, 2010, 03:11:06 PM
Quote from: John1 on September 23, 2010, 02:07:57 PM
I dont know if someone already asked this question.

Can you set the time frame for which online people can be shown.
Something like -

Set the time [in minutes or seconds] for the online people to show :

I'm not sure what you mean, if your talking about updating the Online List this will be available on the next release.
Title: Re: 2-SI Chat
Post by: improv on September 23, 2010, 05:06:56 PM
Okay awesome.
I like this mod already and I will be following it up!
Title: Re: 2-SI Chat
Post by: Sweetwater on September 25, 2010, 05:44:57 AM
Quote from: nend on July 23, 2010, 11:16:25 AM

Well visited your site and the code seems to be in place in the template. This isn't a new issue and even though the mod installed correctly it usually means the PHP files for the chat can not execute.

So the problem is usually folder and file permissions. FTP to your site and try this.

2sichat 755
2sichat/index.php 755
2sichat/body.js.php 755
2sichat/head.js.php 755
2sichat/cache 755
2sichat/themes/default/index.php 755
Quote from: nend on July 23, 2010, 11:16:25 AM
@NaYa

Well visited your site and the code seems to be in place in the template. This isn't a new issue and even though the mod installed correctly it usually means the PHP files for the chat can not execute.

So the problem is usually folder and file permissions. FTP to your site and try this.

2sichat 755
2sichat/index.php 755
2sichat/body.js.php 755
2sichat/head.js.php 755
2sichat/cache 755
2sichat/themes/default/index.php 755

Same issue with mine, but for some reason I can't change the permissions on these files.... but can on everything else on the server.
Can see who is on line, but no chat window to be found.

Any tips?

Regards,

Sweetwater
Title: Re: 2-SI Chat
Post by: Galatea on September 27, 2010, 12:01:26 AM
Quote from: nend on September 19, 2010, 01:22:05 AM
@John1 - If you go to the site mentioned you can request it in as a feature, I like this idea also, invisible should be invisible. Please post it in the 2-SI Chat Bugs and Features area as a feature request. I tend to forget things lately, so if you post it there it will be remembered.

Quick fix for this is in 2sichat/index.php:
Find

function genOnList() {

global $smcFunc, $member_id, $context;

$results = $smcFunc['db_query']('', '
SELECT m.id_member, m.member_name, m.real_name, o.session
FROM {db_prefix}members AS m
LEFT JOIN {db_prefix}log_online AS o ON o.id_member = m.id_member
ORDER BY m.real_name DESC',
array()
);


Replace with:

function genOnList() {

global $smcFunc, $member_id, $context;

$results = $smcFunc['db_query']('', '
SELECT m.id_member, m.member_name, m.real_name, o.session
FROM {db_prefix}members AS m
LEFT JOIN {db_prefix}log_online AS o ON o.id_member = m.id_member
WHERE m.show_online = 1
ORDER BY m.real_name DESC',
array()
);


This hardcodes in so that members who have set themselves to "invisible" remain invisible.  Bear in mind that even admins cannot access invisible members to chat with using this method.  I'm sure this could be remedied with a quick conditional statement and some SSI that checks for $context['user']['is_admin'].
Title: Re: 2-SI Chat
Post by: x.Silencer.x on September 27, 2010, 05:03:38 AM

if i need to show who the friends list ( Buddy  list ) only can i do that

Title: Re: 2-SI Chat
Post by: nend on September 27, 2010, 10:54:55 AM
Revision 32 has been delayed a bit lately. I have been real busy lately, my sons birthday and getting burned by a charcoal grill, because someone put too much lighter fluid in it. Don't worry I am ok, just first degree burns on my face, not too bad, but is sure did hurt around the sensitive parts like the eyes, nose and mouth at the time.

Here is the list code as it is for next revision.
function genOnList() {

    global $smcFunc, $member_id, $context;

    $results = $smcFunc['db_query']('', '
        SELECT m.id_member, m.member_name, m.real_name, o.session
        FROM {db_prefix}members AS m
        LEFT JOIN {db_prefix}log_online AS o ON o.id_member = m.id_member
        WHERE NOT FIND_IN_SET({int:member_id}, m.pm_ignore_list) AND m.show_online = 1 OR FIND_IN_SET({int:member_id}, m.buddy_list) AND m.show_online = 0
        ORDER BY m.real_name DESC',
        array(
            'member_id' => $member_id,
        )
    );

    if ($results){
        while ($row = $smcFunc['db_fetch_assoc']($results)) { //show_online
            if (isset($row['session']) && $row['id_member'] != $member_id){
                  $context['friends'][] = $row;
            }
        }
        $smcFunc['db_free_result']($results);
    }
    $data = buddy_list_template();
    return $data;
}
Title: Re: 2-SI Chat
Post by: Aktoraman on September 29, 2010, 08:24:05 AM
Quote from: More-to-life on July 27, 2010, 11:32:26 AM
SOLVED
For some reason I had double script entries

I get the same error in internet explorer although firefox is working fine.
Can you please inform me about the changes that you made there?
Title: Re: 2-SI Chat
Post by: drhamza on October 04, 2010, 11:06:52 AM
for some unknown reason, I opened my forum today to find that the bar was hidden completely, I checked the admin panel and it's not disabled, I also asked the other admin if he did anything new; negative
any idea please?
Title: Re: 2-SI Chat
Post by: drhamza on October 05, 2010, 01:34:03 PM
^^ help please
Title: Re: 2-SI Chat
Post by: nend on October 06, 2010, 12:50:47 AM
I am in the middle of moving so any support will take time, please check your the load settings in the chat, if enabled then disable that feature and see if it works.
Title: Re: 2-SI Chat
Post by: alsaka on October 07, 2010, 04:17:42 AM
hi nend

what's about  ( on - off ) to si caht )

===> im was join befor by my friend user (x.Silencer.x) but now i have a one  ;D



Title: Re: 2-SI Chat
Post by: drhamza on October 09, 2010, 04:57:05 AM
Quote from: nend on October 06, 2010, 12:50:47 AM
I am in the middle of moving so any support will take time, please check your the load settings in the chat, if enabled then disable that feature and see if it works.
nop, it's unchecked, any other ideas?
thank you
Title: Re: 2-SI Chat
Post by: nend on October 09, 2010, 11:03:34 PM
Website please.
Title: Re: 2-SI Chat
Post by: worldnet on October 18, 2010, 06:05:25 PM
I have one minor problem. I use an old theme, and I did get it going fine, except the Gadjets do not work right on the old theme. They did work on the new theme. What I do is make them links that open a new window. The window pops open, but the page does not load in the old theme. Could I have made a mistake making the changes that you posted in the beginning of this thread? The forum is below:
http://www.claytonadvocate.com/forum/
The Gadjet is "The AJC" which used to open http://www.ajc.com  in the old theme.

Thank you in advance!
Title: Re: 2-SI Chat
Post by: worldnet on October 18, 2010, 06:12:38 PM
Update:
Seems the Chat window works in Internet Explorer, but not in Firefox, and the Gadjets work in Firefox, but not Internet Explorer.
Title: Re: 2-SI Chat
Post by: mxcape21 on October 19, 2010, 05:10:02 PM
This looks like a great mod but I cant get anything but a blank gray chat window when I click "who's online".
It installed without any errors.
I followed the trobleshooting tips, checked the java script code in the head and body of index.template.php, edit the cache setting in the index file and set read and write permissions to the folder and all children and no change.
Is it something i'm missing in the configuration settings?

thanks
Title: Re: 2-SI Chat
Post by: nend on October 19, 2010, 11:43:18 PM
Quote from: mxcape21 on October 19, 2010, 05:10:02 PM
This looks like a great mod but I cant get anything but a blank gray chat window when I click "who's online".
It installed without any errors.
I followed the trobleshooting tips, checked the java script code in the head and body of index.template.php, edit the cache setting in the index file and set read and write permissions to the folder and all children and no change.
Is it something i'm missing in the configuration settings?

thanks

Depends on your settings, if no one is online then it will be blank, if you have no buddies and it is set to buddies only it will be blank. ;)

@worldnet - Should work in all newer browsers, haven't tested in any real old browsers though. Maybe this is the problem.
Title: Re: 2-SI Chat
Post by: mxcape21 on October 20, 2010, 12:48:42 AM
OK it looks like only an online buddy will show, I had the tick box checked to "show everyone online" but that seems to have no effect.
How do I make it show everyone and I see no setting from the chat admin (2.0 RC3) to show buddys only.
Also do you have a link to instructions for gadget setup?

Very nice mod...thanks
Title: Re: 2-SI Chat
Post by: nend on October 20, 2010, 09:41:39 AM
I don't have any tutorials on gadget setup at this time. It is pretty simple though how a gadget works, the gadget code is contained in a object container, if you put a url in the gadget code area it will pick it up and show the page in the gadget. If you supply html code it will do the same. Also be sure to set the gadgets width and height or the content may not be shown at all.
Title: Re: 2-SI Chat
Post by: worldnet on October 23, 2010, 10:43:44 PM
Another update. I have everything working perfectly on Firefox including the Gadjets(Links that open in Java). In IE version 8, everything except the gadjets work. The gadjet  "links" pop open a Java window with an "X" in them. The links do not load.
http://claytonadvocate.com/forum/index.php
Title: Re: 2-SI Chat
Post by: nend on October 24, 2010, 03:08:13 PM
Some bugs have been identified for IE7 & IE8, these have been fixed in the unreleased revision 34. Revision 33 has these bugs also so it will be unreleased.

Changes in revision 33.

Group Permissions for the chat.
Fixed problem with gadgets launching due to Live Update feature for the Who's Online list.

Changes in revision 34.

Fixed various IE7 & IE8 bugs. No bugs where detected in any other browsers using spoon to test.
http://mods.2-si.net/2si_chat_support/browser_compatibility_86.msg266.html
Title: Re: 2-SI Chat
Post by: worldnet on October 24, 2010, 06:57:05 PM
Quote from: nend on October 24, 2010, 03:08:13 PM
Some bugs have been identified for IE7 & IE8, these have been fixed in the unreleased revision 34. Revision 33 has these bugs also so it will be unreleased.

Changes in revision 33.

Group Permissions for the chat.
Fixed problem with gadgets launching due to Live Update feature for the Who's Online list.

Changes in revision 34.

Fixed various IE7 & IE8 bugs. No bugs where detected in any other browsers using spoon to test.
http://mods.2-si.net/2si_chat_support/browser_compatibility_86.msg266.html



Thanks for the info! will be watching for the revisions.
Title: Re: 2-SI Chat
Post by: !RFAN on October 25, 2010, 12:11:26 AM
i think "wh is online" should show number of online members/buddies on its face. :s
Title: Re: 2-SI Chat
Post by: nend on October 25, 2010, 03:34:23 PM
This can be done in the theme. I will probably add support though inside the script to count. I think I will add this to 2-SI Chat dark theme, which hasn't been released with any version of 2-SI Chat for a long while. Needs a few updates to the dark theme to make it compatible though. I may resurrect the classic 2-SI Chat theme also.
Title: Re: 2-SI Chat
Post by: alsaka on October 26, 2010, 03:52:49 PM
nend i have ver 31  how can update  to  34
Title: Re: 2-SI Chat
Post by: nend on October 26, 2010, 09:16:20 PM
Uninstall the old one and install the new one.
Title: Re: 2-SI Chat
Post by: alsaka on October 27, 2010, 06:31:59 AM
thx nend for replay , i update chat its ok , but i see chat in internet Explorer 7 in up not down

in firefox its ok very nice but erorr in Explorer 7

what's the problem ?
Title: Re: 2-SI Chat
Post by: Baloch on October 31, 2010, 06:55:44 AM
After upgrading to the 2-SI_Chat_rev34.zip CHAT bar is missing.
Title: Re: 2-SI Chat
Post by: Baloch on October 31, 2010, 11:13:58 AM
Quote from: nend on July 23, 2010, 11:16:25 AM
@NaYa

Well visited your site and the code seems to be in place in the template. This isn't a new issue and even though the mod installed correctly it usually means the PHP files for the chat can not execute.

So the problem is usually folder and file permissions. FTP to your site and try this.

2sichat 755
2sichat/index.php 755
2sichat/body.js.php 755
2sichat/head.js.php 755
2sichat/cache 755
2sichat/themes/default/index.php 755

cache file is missing????????????????????????
Title: Re: 2-SI Chat
Post by: rhack382 on November 03, 2010, 04:47:57 PM
I have read this thread with  great interest... 

Does any one use this with AjaxChat Integration? - and E-Z Portal...? 

I am curious how does it work with these additional mods? 

Has anyone uninstalled AjaxChat Integration in favor of this mod?

Thanks in advance for your input...
Title: Re: 2-SI Chat
Post by: Alarm on November 06, 2010, 10:46:03 PM
I install this,everything is ok..but when i do chat with somebady that window is not moveable ? Please help..
Title: Re: 2-SI Chat
Post by: nend on November 08, 2010, 09:55:18 AM
Quote from: Alarm on November 06, 2010, 10:46:03 PM
I install this,everything is ok..but when i do chat with somebady that window is not moveable ? Please help..

Can you give more details about the problem you are experiencing?
Title: Re: 2-SI Chat
Post by: LotusRS on November 10, 2010, 10:59:10 AM
how to insert a long link to me you see a horizontal scroll?
Title: Re: 2-SI Chat
Post by: SN on November 23, 2010, 12:27:29 PM
I have installed this mod on RC4.... but the bar isn't showing.

can anybody help??
Title: Re: 2-SI Chat
Post by: marwan on November 25, 2010, 07:21:02 PM
Can we have a way to chat with our facebook friends while on forums using this mod?
Title: Re: 2-SI Chat
Post by: eyo on November 25, 2010, 08:22:29 PM
i get these install errors, using rc4. any ideas what's wrong?

5.    Execute Modification    ./Sources/ManagePermissions.php    Test failed
      1.    Add Before    ./Sources/ManagePermissions.php    Test failed
      2.    Add Before    ./Sources/ManagePermissions.php    Test successful
      3.    Add Before    ./Sources/ManagePermissions.php    Test successful
      4.    Add Before    ./Sources/ManagePermissions.php
Title: Re: 2-SI Chat
Post by: nend on November 27, 2010, 12:34:38 PM
Installation with a fresh copy of SMF 2 RC4 and default theme was tested and installed successfully. Most problems with installation are mainly due to mod incompatibility or theme edits.

@ggman, the problem here is most likely that 2-SI Chat installer is trying to edit something that has been changed by a previously installed package. You may have to edit these lines manually.

@SN, if your not using the default theme then you must manually add the script codes to your index.template.php for that template.

@marwan, there is no support at this time for the chat to communicate with other chat applications on other websites.
Title: Re: 2-SI Chat
Post by: PPowerHouseK on November 28, 2010, 12:49:17 PM
I love this mod.
How can I simply change the color from blue to black?
Thanks in advance!
Title: Re: 2-SI Chat
Post by: nend on November 28, 2010, 09:23:23 PM
Quote from: PPowerHouseK on November 28, 2010, 12:49:17 PM
I love this mod.
How can I simply change the color from blue to black?
Thanks in advance!

smf_folder/2sichat/themes/default

Browse to this folder, edit images, css and templates as you see fit.
Title: Re: 2-SI Chat
Post by: boazor on December 03, 2010, 07:33:14 PM
hello

I install 2-Si chat and all look ok no error on install like everyone els i so everyone had
the problem with "who is online" i try all the 3 step to fix it and still not working
btw i try on default theme to still not work.

on the error_log i find this error
[03-Dec-2010 17:25:33] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-zts-20060613/ixedts.lin' - /usr/local/lib/php/extensions/no-debug-zts-20060613/ixedts.lin: undefined symbol: executor_globals_id in Unknown on line 0

is that connect to the chat system and what is the problem ?

and if its not connect to the chat what is my problem?

http://www.orbks.com

thank you
Title: Re: 2-SI Chat
Post by: nend on December 03, 2010, 09:44:47 PM
It looks like the files are not executable. Please make all php files executable and it should work.
Title: Re: 2-SI Chat
Post by: boazor on December 04, 2010, 04:49:48 AM
i try it to not work all the file are 755

i even install pure SMF and still not work


http://smf.orbks.com clean install  only 2-SI Chat installed
Title: Re: 2-SI Chat
Post by: ntr2ntr on December 04, 2010, 06:46:46 AM
Hello frnds,

I m currently using 2.0 RC4 and my 2-SI Chat is not working for members when they change their Display name, and when they change back their Display name to previous name its again working, why is this so???   does this happen if they include any special character in their display name???  like ©

Members are able to see them online but when they click on their name it doest open.....

Pls Pls frnds help me out.......  P.S: i m not using default theme.

my forum is www.kammafriends.com
Title: Re: 2-SI Chat
Post by: nend on December 04, 2010, 09:47:16 AM
Quote from: ntr2ntr on December 04, 2010, 06:46:46 AM
Hello frnds,

I m currently using 2.0 RC4 and my 2-SI Chat is not working for members when they change their Display name, and when they change back their Display name to previous name its again working, why is this so???   does this happen if they include any special character in their display name???  like ©

Members are able to see them online but when they click on their name it doest open.....

Pls Pls frnds help me out.......  P.S: i m not using default theme.

my forum is www.kammafriends.com

That is a awkward one since 2-SI Chat goes by user id and display name has nothing to do with how the data is stored or chat session creation. Maybe it could be a browser cache problem, I don't see how though but try clearing your browser cache.

Quote from: boazor on December 04, 2010, 04:49:48 AM
i try it to not work all the file are 755

i even install pure SMF and still not work


http://smf.orbks.com clean install  only 2-SI Chat installed

The files are returning a blank page still, for some reason it looks like they are not executing.
Title: Re: 2-SI Chat
Post by: h4k on December 13, 2010, 03:04:49 PM
Quote from: nend on November 08, 2010, 09:55:18 AM
Quote from: Alarm on November 06, 2010, 10:46:03 PM
I install this,everything is ok..but when i do chat with somebady that window is not moveable ? Please help..

Can you give more details about the problem you are experiencing?


Same problem here, the popup chat window is not moveable, i tried on Mozilla, Chromium, etc... is not a browser problem, but the chat. It show the hand pointer but when I select the window, i cant move it.


Also, sometimes, If i have closed a popup and open other page of the forum, then the window comes invisible but i cant click on a link behind the "invisible popup". This mod is awesome, but is not ussable for me for the moment... what can i do?

Title: Re: 2-SI Chat
Post by: nend on December 13, 2010, 08:09:53 PM
Which revision of the chat have you installed? Also what version of PHP do you have, I believe I added some compatibility for older versions of PHP but without a test site running older versions of PHP there is no way for me to check that if functions available in the 5 branch are available in the 4 branch.

Also please note 2-SI Chat uses the class msg_win for its movable divs. If anything in your template uses msg_win then it will conflict with the chat application.

There are many other possible conflicts since the space 2-SI Chat executes. More than likely it is a conflict because the chat works perfect on the default theme. If possible in the future I may release a version with more unique functions, variables, classes and ids so these conflicts will not occur.

It may be a while though, I haven't had much time lately to touch any 2-SI Chat code. I am also thinking about releasing the chat mod under a free open source license or having someone take over the mod. I am more leaning to open source since I feel like the mod should belong to everyone.
Title: Re: 2-SI Chat
Post by: Baloch on December 23, 2010, 06:25:40 AM
2-SI Chat is not supporting Unicode. Is there any solution?
Title: Re: 2-SI Chat
Post by: Baloch on December 24, 2010, 09:58:27 AM
It seems nobody is here to response on issues :(
Title: Re: 2-SI Chat
Post by: JoeB on December 30, 2010, 07:23:19 PM
Installed on SMF 2.0 RC4
No bar!
Eddit filed manually
no joy
The package is not visable in modfication settings.
Please advice
Title: Re: 2-SI Chat
Post by: nend on December 30, 2010, 11:29:46 PM
Settings are not in modification settings, check configuration menu in the admin panel.

Also please note with this revision if you enable group permissions you must edit each one of your permissions for each group so the chat will show for all membergroups you wish the chat to show for.

Once again if your using a custom theme then it may be likely the chat JavaScript code didn't get inserted into the template file. Please check your template files to be sure if the chat installed its code in there.

I would like to mention there has been found a small bug in the method 2-SI Chat uses to send messages to the PHP end of the script. This bug is the cause of various problems with special characters. The JavaScript function is jsubmit in body.js.php and in that function a method was not defined to submit messages to the PHP end so jQuery defaults to get which causes allot of problems with special characters. If you know enough jQuery then you can define the method as POST and this will save allot of problems with special characters.

In that function just add this to the jQuery AJAX call.
type: "post",
Title: Re: 2-SI Chat
Post by: 楚君 on January 01, 2011, 05:20:52 AM
 :D 你們在做什麼???
Title: Re: 2-SI Chat
Post by: colej2k on January 04, 2011, 10:08:30 AM
Tried it on RC3 and couldn't see any chat, nothing.  Just tried it on RC4 and still nothing.

Is this a joke  :-\
Title: Re: 2-SI Chat
Post by: SA™ on January 04, 2011, 01:23:40 PM
take a look at this

http://mods.2-si.net/2si_chat_support/2si_chat_installation_trouble_shooter_29.0.html
Title: Re: 2-SI Chat
Post by: impreza on January 04, 2011, 02:34:22 PM
An interesting modification, test it
Title: Re: 2-SI Chat
Post by: Baloch on January 06, 2011, 08:53:06 AM
Quote from: Baloch on December 23, 2010, 06:25:40 AM
2-SI Chat is not supporting Unicode. Is there any solution?

I am still waiting for the answer :(
Title: Re: 2-SI Chat
Post by: nend on January 06, 2011, 12:41:58 PM
Quote from: Baloch on January 06, 2011, 08:53:06 AM
Quote from: Baloch on December 23, 2010, 06:25:40 AM
2-SI Chat is not supporting Unicode. Is there any solution?

I am still waiting for the answer :(
Quote from: nend on December 30, 2010, 11:29:46 PM
I would like to mention there has been found a small bug in the method 2-SI Chat uses to send messages to the PHP end of the script. This bug is the cause of various problems with special characters. The JavaScript function is jsubmit in body.js.php and in that function a method was not defined to submit messages to the PHP end so jQuery defaults to get which causes allot of problems with special characters. If you know enough jQuery then you can define the method as POST and this will save allot of problems with special characters.

In that function just add this to the jQuery AJAX call.
type: "post",
Title: Re: 2-SI Chat
Post by: nend on January 06, 2011, 12:45:59 PM
I would also like to note SA is taking over this modification, I have requested the Simple Machines team to transfer this mod over about a week ago I believe, it has been a while but still no action. But in any matter SA will be taking over this modication, I will still stop by when I have time and give help when needed but I don't have enough time lately to continue development and support for this modification.

@SA I will get those files to you today.
Title: Re: 2-SI Chat
Post by: SA™ on January 06, 2011, 01:42:00 PM
thanks nend i was wondering what was going on lol
Title: Re: 2-SI Chat
Post by: DirtRider on January 13, 2011, 01:00:09 AM
I could not get this mod to work so I uninstalled it but since then I have been getting the following server error and don't know where to look for this. I have gone through all the files and cannot find any code left after the uninstall


However, examining your page loads more closely revealed the following errors appearing multiple times throughout the load:
[Sat Jan 08 17:22:20 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/

Title: Re: 2-SI Chat
Post by: SA™ on January 13, 2011, 02:04:40 PM
your custom theme still has

<script type="text/javascript" src="http://triumphtalk.com/2sichat/index.php?action=body"></script>

and

<script type="text/javascript" src="http://triumphtalk.com/2sichat/index.php?action=head"></script>

Title: Re: 2-SI Chat
Post by: tesser on January 13, 2011, 03:42:50 PM
Is there any way to change the color of the blue bar to a color of choice ?

As good as this mod is  the color is to much for me.
Title: Re: 2-SI Chat
Post by: nend on January 13, 2011, 09:24:53 PM
Quote from: tesser on January 13, 2011, 03:42:50 PM
Is there any way to change the color of the blue bar to a color of choice ?

As good as this mod is  the color is to much for me.

Browse to your forum directory then 2sichat/themes/default/images and replace cbar.png to whatever image you want.

You can also change the style in 2sichat/themes/default/style.css

Hope that helps.
Title: Re: 2-SI Chat
Post by: DirtRider on January 13, 2011, 10:24:10 PM
Can anyone help me with this please?

Quote from: DirtRider on January 13, 2011, 01:00:09 AM
I could not get this mod to work so I uninstalled it but since then I have been getting the following server error and don't know where to look for this. I have gone through all the files and cannot find any code left after the uninstall


However, examining your page loads more closely revealed the following errors appearing multiple times throughout the load:
[Sat Jan 08 17:22:20 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/


Title: Re: 2-SI Chat
Post by: nend on January 13, 2011, 11:43:06 PM
Quote from: DirtRider on January 13, 2011, 10:24:10 PM
Can anyone help me with this please?

Quote from: DirtRider on January 13, 2011, 01:00:09 AM
I could not get this mod to work so I uninstalled it but since then I have been getting the following server error and don't know where to look for this. I have gone through all the files and cannot find any code left after the uninstall


However, examining your page loads more closely revealed the following errors appearing multiple times throughout the load:
[Sat Jan 08 17:22:20 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/


The mod didn't uninstall all the way, it looks like Aeva pushed the script tags to different positions in the code which caused errors during the uninstall. Please remove the script tags from your index.template.php file. We can't do this for you unless you provide us your index.template.php.

A small note though that will save you headaches with other modules in the future. Next time when uninstalling modules if there are ANY ERRORS you must uninstall all mods you installed after that module before it can be removed. This is a sad truth of the SMF package manager and can not be avoided. After you removed the module you can reinstall the modules you uninstalled.
Title: Re: 2-SI Chat
Post by: nend on January 14, 2011, 12:23:30 AM
Want to share these social network links for 2-SI Chat. Manual editing required.

Here are the html links for your template.php for function guest_bar_template and function chat_bar_template. You work them in how you want. also I didn't provide images, don't have any that match the current release theme sorry.

<a href="javascript:void(0)" onclick="javascript:getSocial(\'mailto\');">
<img src="'.$themeurl.'/images/email.png" alt="Email this to a friend" title="Email this to a friend" border="0">
</a>
<a href="javascript:void(0)" onclick="javascript:getSocial(\'digg\');">
<img src="'.$themeurl.'/images/digg.png" alt="Digg" title="Post this to Digg" border="0">
</a>
<a href="javascript:void(0)" onclick="javascript:getSocial(\'googlebuzz\');">
<img src="'.$themeurl.'/images/google-buzz.png" alt="Google Buzz" title="Post this to Google Buzz" border="0">
</a>
<a href="javascript:void(0)" onclick="javascript:getSocial(\'stumbleupon\');">
<img src="'.$themeurl.'/images/stumbleupon.png" alt="StumbleUpon" title="Post this to StumbleUpon" border="0">
</a>
<a href="javascript:void(0)" onclick="javascript:getSocial(\'yahoobuzz\');">
<img src="'.$themeurl.'/images/yahoo-buzz.png" alt="Yahoo Buzz" title="Post this to Yahoo Buzz" border="0">
</a>


Now in body.js.php add these lines to the JavaScript function getSocial.
if (social == \'digg\') {
pupUP("http://digg.com/submit?phase=2&url="+window.location+"&title="+document.documentElement.getElementsByTagName("TITLE")[0].innerHTML);
}
if (social == \'googlebuzz\') {
pupUP("http://www.google.com/buzz/post?url="+window.location+"&title="+document.documentElement.getElementsByTagName("TITLE")[0].innerHTML+"&message="+metadescription);
}
if (social == \'yahoobuzz\') {
pupUP("http://buzz.yahoo.com/submit/?urlsubmission-input="+window.location);
}
if (social == \'stumbleupon\') {
pupUP("http://www.stumbleupon.com/submit?url="+window.location+"&title="+document.documentElement.getElementsByTagName("TITLE")[0].innerHTML);
}
if (social == \'mailto\') {
document.location.href="mailto:?subject="+document.documentElement.getElementsByTagName("TITLE")[0].innerHTML+"&body="+document.documentElement.getElementsByTagName("TITLE")[0].innerHTML+"%0D%0A%0D%0A"+metadescription+"%0D%0A%0D%0ALink%0D%0A"+window.location;
}


Now you have a few extra social networks,  ;D.

*edit

Almost forgot this new part of the code. Add this line before function getSocial in body.js.php. If you don't the description var will be empty.
var metadescription;
var metas = document.getElementsByTagName(\'meta\');
for (var x=0,y=metas.length; x<y; x++) {
if (metas[x].name.toLowerCase() == "description") {
metadescription = metas[x].content;
}
}
Title: Re: 2-SI Chat
Post by: DirtRider on January 14, 2011, 12:28:10 AM
Quote from: nend on January 13, 2011, 11:43:06 PM
Quote from: DirtRider on January 13, 2011, 10:24:10 PM
Can anyone help me with this please?

Quote from: DirtRider on January 13, 2011, 01:00:09 AM
I could not get this mod to work so I uninstalled it but since then I have been getting the following server error and don't know where to look for this. I have gone through all the files and cannot find any code left after the uninstall


However, examining your page loads more closely revealed the following errors appearing multiple times throughout the load:
[Sat Jan 08 17:22:20 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/
[Sat Jan 08 17:22:31 2011] [error] [client xxx.xxx.xxx] File does not exist: /home/triumphtalk/public_html/2sichat, referer: http://triumphtalk.com/


The mod didn't uninstall all the way, it looks like Aeva pushed the script tags to different positions in the code which caused errors during the uninstall. Please remove the script tags from your index.template.php file. We can't do this for you unless you provide us your index.template.php.

A small note though that will save you headaches with other modules in the future. Next time when uninstalling modules if there are ANY ERRORS you must uninstall all mods you installed after that module before it can be removed. This is a sad truth of the SMF package manager and can not be avoided. After you removed the module you can reinstall the modules you uninstalled.

Ok here is my index.template.php. thanks
Title: Re: 2-SI Chat
Post by: SA™ on January 14, 2011, 01:30:53 PM
that file is for the default theme we need the index.template.php from you custom theme

Quote from: SA™ on January 13, 2011, 02:04:40 PM
your custom theme still has

<script type="text/javascript" src="http://triumphtalk.com/2sichat/index.php?action=body"></script>

and

<script type="text/javascript" src="http://triumphtalk.com/2sichat/index.php?action=head"></script>


Title: Re: 2-SI Chat
Post by: DirtRider on January 15, 2011, 12:23:23 PM
Quote from: SA™ on January 14, 2011, 01:30:53 PM
that file is for the default theme we need the index.template.php from you custom theme

Quote from: SA™ on January 13, 2011, 02:04:40 PM
your custom theme still has

<script type="text/javascript" src="http://triumphtalk.com/2sichat/index.php?action=body"></script>

and

<script type="text/javascript" src="http://triumphtalk.com/2sichat/index.php?action=head"></script>



Ok I have a few themes running so here they are
Title: Re: 2-SI Chat
Post by: SA™ on January 16, 2011, 05:20:01 PM
been a hectic weekend :/
here you go pls back up before adding these just incase
Title: Re: 2-SI Chat
Post by: DirtRider on January 19, 2011, 12:43:18 PM
Quote from: SA™ on January 16, 2011, 05:20:01 PM
been a hectic weekend :/
here you go pls back up before adding these just incase

Thanks it's been a hectic week have hardly been able to do any work on my site at all  ;D
Title: Re: 2-SI Chat
Post by: puntalanza on January 23, 2011, 01:05:47 PM
IE error.

Iexplorer 8.0.7600.16385
Windows 7

This is the error, login user:

Detalles de error de página web

Agente de usuario: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDC; .NET4.0C; .NET4.0E)
Fecha: Sun, 23 Jan 2011 17:43:14 UTC


Mensaje: Argumento no válido.
Línea: 378
Carácter: 7
Código: 0
URI: http://www.suazoservice.com/bomberos/2sichat/index.php?action=body


This is the error, logout user:

Detalles de error de página web

Agente de usuario: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; MDDC; .NET4.0C; .NET4.0E)
Fecha: Sun, 23 Jan 2011 18:08:47 UTC


Mensaje: Se esperaba un objeto
Línea: 173
Carácter: 7
Código: 0
URI: http://www.suazoservice.com/bomberos/2sichat/index.php?action=body


Thank you very much!
Title: Re: 2-SI Chat
Post by: Jeet Chowdhury on January 25, 2011, 03:30:32 AM
installed this mod in rc4. installed sucessfully but nothing happen in homescreen.
Title: Re: 2-SI Chat
Post by: SA™ on January 25, 2011, 03:46:19 PM
take a look at this

http://mods.2-si.net/2si_chat_support/2si_chat_installation_trouble_shooter_29.0.html
Title: Re: 2-SI Chat
Post by: SA™ on January 25, 2011, 04:18:08 PM
Rev 35 realsed

mod taken over by SA from nend
sanatised all inputs when adding gadgets
added error checks when adding gadgets
now uses no index.temlate.php edits
added missing closing php tags to language files
Title: Re: 2-SI Chat
Post by: JoeB on January 25, 2011, 04:56:42 PM
Wonderful!!!!
At last it is working now
(SMF 2.0 RC4)

well done & keep the good work

Only one error:
Who's Online
javascriptvoid(0)

Title: Re: 2-SI Chat
Post by: Jeet Chowdhury on January 28, 2011, 11:16:32 AM
the mod is working on another server not in my x10hosting. i see that he mention to set cpu throttling. how to do that?

i cant see even the bar.
Title: Re: SA Chat
Post by: SA™ on January 28, 2011, 11:38:21 PM
please see the stickys here

http://www.sa-mods.info/index.php?board=50.0
Title: Re: SA Chat
Post by: ironhide1 on January 31, 2011, 01:18:31 PM
Love this MOD but having some user issues. Runs fine in Firefox, Safari but user in IE8 is seeing the following error:
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.1; WOW64; Trident/4.0; GTB6.6; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.5; OfficeLivePatch.1.3; .NET4.0C; .NET4.0E; MSSDMC2.5.2219.1)
Timestamp: Mon, 31 Jan 2011 18:15:48 UTC


Message: Invalid argument.
Line: 378
Char: 7
Code: 0
URI: http://sundowntiki.net/forum/2sichat/index.php?action=body

Running 2.0 RC4 would really like to resolve this so my users are able to use this function when I update my live forum. I've attached the file that the error is called from. Sorry still new @ all the modifications. Thanks for any help you can provide.
Title: Re: SA Chat
Post by: DirtRider on February 01, 2011, 12:18:13 PM
I have installed this mod on just about every forum I have created and I still have yet to see it working. So what am I doing wrong? Install the mod no errors go to the setting set it all up and still nothing. Even looked on the SMF default theme also nothing  :-\
Title: Re: SA Chat
Post by: hcfwesker on February 05, 2011, 03:31:20 AM
Can this MOD and Ajax Chat both work on the same forum?

I just want this 2siChat for staff communication on the forum.
Title: Re: SA Chat
Post by: allthumbz on February 05, 2011, 10:53:15 AM
I installed it- then decided I did not like it.

It refuses to uninstall properly- leaves the word "chat" in the menu.

I tried to reinstall them remove it and got an error in a source file.

Why didn't this uninstall correctly and how to I manually remove it?

Thanks,

Nelson
www.Hobby-Machinist.com
Title: Re: SA Chat
Post by: hcfwesker on February 05, 2011, 01:55:10 PM
Quote from: allthumbz on February 05, 2011, 10:53:15 AM
It refuses to uninstall properly- leaves the word "chat" in the menu.

You mean in the AdminCP menu on the forum?  Doesn't look like this makes a chat button in the main menu of the forum.

Sources/Admin.php

Find & REMOVE

'2sichat' => array(
'label' => $txt['2sichat'],
'file' => '2sichatAdmin.php',
'function' => 'twosichatAdmin',
'icon' => 'languages.gif',
'permission' => array('admin_forum'),
'subsections' => array(
      'config' => array($txt['twosichatConfig']),
      'gadget' => array($txt['twosichatGadget']),
),
),
Title: Re: SA Chat
Post by: allthumbz on February 06, 2011, 10:15:47 AM
You are right- it was SideSparks chat that will not uninstall.

I will make a new topic so as not to hijack here.


Nelson
Title: Re: SA Chat
Post by: lankavision on February 07, 2011, 01:27:43 AM
I have apply the mod of 2-si chat to my msf 2.0 rc4 But it not working
but i applied the mod on my local pc XAAMP server its working correctly. why my 2-si chat is not working on my hosting http://www.lankavision.com/forum/  (http://www.lankavision.com/forum/)
Title: Re: SA Chat
Post by: nend on February 07, 2011, 11:28:31 AM
Quote from: lankavision on February 07, 2011, 01:27:43 AM
I have apply the mod of 2-si chat to my msf 2.0 rc4 But it not working
but i applied the mod on my local pc XAAMP server its working correctly. why my 2-si chat is not working on my hosting http://www.lankavision.com/forum/  (http://www.lankavision.com/forum/)

The files are returning internal server error.

http://www.lankavision.com/forum/2sichat/index.php?action=head
http://www.lankavision.com/forum/2sichat/index.php?action=body

Check your file permissions, the install script does not set these automatically and some server setups upon install will default files to non-executable.
Title: Re: SA Chat
Post by: ACAMS on February 07, 2011, 07:33:18 PM
I have SMF 2.0 RC3 and I installed this and it is working fine (best I can tell) but it only shows on the main forum page, and the front page.....I have SimplePortal 2.3.2 ......is this normal and the way it is supposed to work, and if so, how do I make it show on all pages.....even portal pages?

THANKS....great mod


EDIT: It does not work on the portal front page....it is there, but when I click "who's on line" nothing happens.
Title: Re: SA Chat
Post by: SA™ on February 08, 2011, 12:43:00 PM
@ACAMS
see you post on my site
Title: Re: SA Chat
Post by: lankavision on February 09, 2011, 06:24:50 PM
Quote from: nend on February 07, 2011, 11:28:31 AM
Quote from: lankavision on February 07, 2011, 01:27:43 AM
I have apply the mod of 2-si chat to my msf 2.0 rc4 But it not working
but i applied the mod on my local pc XAAMP server its working correctly. why my 2-si chat is not working on my hosting http://www.lankavision.com/forum/  (http://www.lankavision.com/forum/)

The files are returning internal server error.

http://www.lankavision.com/forum/2sichat/index.php?action=head
http://www.lankavision.com/forum/2sichat/index.php?action=body

Check your file permissions, the install script does not set these automatically and some server setups upon install will default files to non-executable.

What changes should i do ?
i set my chmod like 777 but i hv give above error

Im very sorry to my poor english.
Title: Re: SA Chat
Post by: henrik1782 on February 16, 2011, 11:27:37 AM
Hi...

Very impressive mod and installed without problems.

I have two users wich have problems to initiate a chat and to receive a chat. Are there anything one the user side to be aware of.

I think this mod is a very god alternative to all the SMF chat solutions on the market that costs a lot of money. What is your goal with this... are this going to be a real alternative to the commercial chat?
Title: Re: SA Chat
Post by: SA™ on February 16, 2011, 11:30:23 AM
it doesnt play to well with ie at the moment what brousers are these users using?
Title: Re: SA Chat
Post by: henrik1782 on February 16, 2011, 11:33:46 AM
I think they both uses IE...

I have testet in with IE 7,8 and 9 without problems.
Title: Re: SA Chat
Post by: SA™ on February 16, 2011, 11:43:44 AM
try tuning compat mode off with IE 7,8 and 9 they all have errors
Title: Re: SA Chat
Post by: henrik1782 on February 16, 2011, 12:11:38 PM
I will try that a post a note here.
Title: Re: SA Chat
Post by: henrik1782 on February 16, 2011, 12:26:53 PM
I am just a little confused... SA Chat and 2-SI chat is that one and same product...?
Title: Re: SA Chat
Post by: SA™ on February 16, 2011, 01:21:52 PM
yes it was 2-si chat before i took up development
Title: Re: SA Chat
Post by: MC73 on February 19, 2011, 11:18:58 PM
Just thought I would post a little trouble that i have found with your great mod ......

#1) I recently upgraded to rc5 and i went ahead and loaded the 35 version that was compatible ..... as i found out , it does not work right ( at least on my site ) with SP Shoutbox ... the trouble was that every time someone would post on Simple Portal shout , the words that they typed would disappear ( FF3 )till they hit the refresh button from their browser ..... and the word "NULL" would show up via using IE.

#2) According to the package Manager of SMF 2.0 RC5 -- it showed that i downloaded version 34 instead of version 35 for some odd reason --- so i reloaded V35 but it still showed version 34

#3) So i reloaded version 34 back onto my site and your mod worked with SP shout.

I still love this mod of yours, just thought i would let you know ... Thanks , MC
Title: Re: SA Chat
Post by: eyo on February 20, 2011, 01:21:36 AM
installed flawlessly, no errors, enabled it in admin, set permissions. but no chat bar anywhere?!? why is this?
Title: Re: SA Chat
Post by: SA™ on February 20, 2011, 12:00:06 PM
@MC73
so rev 34 works with sp? and rev35 doesnt? i think i know what is causing this it the themeless edits

@eyo
take a look at the trouble shooting topic
http://www.sa-mods.info/index.php?topic=1017.0
Title: Re: SA Chat
Post by: MC73 on February 20, 2011, 03:19:06 PM
Quote from: SA™ on February 20, 2011, 12:00:06 PM
@MC73
so rev 34 works with sp? and rev35 doesnt? i think i know what is causing this it the themeless edits


Correct , I'm using the 34 version on my RC5 Forum and it works fine ... Version 35 caused trouble via using SP Shout.
Title: Re: SA Chat
Post by: eyo on February 21, 2011, 12:24:58 AM
changed permissions to 755 still nothing, i guess its back to ajax lol
Title: Re: SA Chat
Post by: grynmoors on February 22, 2011, 09:11:39 PM
Quote from: MC73 on February 19, 2011, 11:18:58 PM
Just thought I would post a little trouble that i have found with your great mod ......

#1) I recently upgraded to rc5 and i went ahead and loaded the 35 version that was compatible ..... as i found out , it does not work right ( at least on my site ) with SP Shoutbox ... the trouble was that every time someone would post on Simple Portal shout , the words that they typed would disappear ( FF3 )till they hit the refresh button from their browser ..... and the word "NULL" would show up via using IE.

#2) According to the package Manager of SMF 2.0 RC5 -- it showed that i downloaded version 34 instead of version 35 for some odd reason --- so i reloaded V35 but it still showed version 34

#3) So i reloaded version 34 back onto my site and your mod worked with SP shout.

I still love this mod of yours, just thought i would let you know ... Thanks , MC

Same thing here except no chat bar with either the v34 or v35.  Yes, I checked the CHMOD and all that. The only time I was ever able to get this mod to work was on last stable release SMF 1.1.X

Currently using SMF 2.0 RC5 SP 2.3.3
Title: Re: SA Chat
Post by: SA™ on February 23, 2011, 02:28:35 PM
try rev34 but make sure you custom theme if you use one has the edits in place
Title: Re: SA Chat
Post by: nend on February 23, 2011, 02:44:47 PM
Quote from: grynmoors on February 22, 2011, 09:11:39 PM
Quote from: MC73 on February 19, 2011, 11:18:58 PM
Just thought I would post a little trouble that i have found with your great mod ......

#1) I recently upgraded to rc5 and i went ahead and loaded the 35 version that was compatible ..... as i found out , it does not work right ( at least on my site ) with SP Shoutbox ... the trouble was that every time someone would post on Simple Portal shout , the words that they typed would disappear ( FF3 )till they hit the refresh button from their browser ..... and the word "NULL" would show up via using IE.

#2) According to the package Manager of SMF 2.0 RC5 -- it showed that i downloaded version 34 instead of version 35 for some odd reason --- so i reloaded V35 but it still showed version 34

#3) So i reloaded version 34 back onto my site and your mod worked with SP shout.

I still love this mod of yours, just thought i would let you know ... Thanks , MC

Same thing here except no chat bar with either the v34 or v35.  Yes, I checked the CHMOD and all that. The only time I was ever able to get this mod to work was on last stable release SMF 1.1.X

Currently using SMF 2.0 RC5 SP 2.3.3

There has been no release that I know of for the SMF 1.1.x branch. Are you sure it wasn't on another version of SMF 2?
Title: Re: SA Chat
Post by: JoeB on February 25, 2011, 09:24:17 PM
Installed new Rev 35 (comes as Rev 34)  on fresh RC5 (no modes)
Changed files chmod

No chat bar
no radio buttons for these options:
---------------------
Show Everyone Online
Shows everyone online instead of buddies only.
Disable chat list
Removes the Who's Online list.
Enable Simple BBC
Enable Page Translator  Language Code
The Page language translator needs a language code to work.
This should be your websites default language.
Enable Home Icon  Enable PM Icon  Enable Myspace Icon  Enable Twitter Icon  Enable Facebook Icon
Enable load checking  Highest load level
Goes by server load average  On high load disable 2-SI Chat  On high load disable chat list  On high load disable bar
-----------------
These errors only in Explorer ver 9
Looks OK when using Firefox

Please advice
Title: Re: SA Chat
Post by: henrik1782 on February 25, 2011, 09:39:29 PM
Try to run IE 9 in compatible mode.

Has anyone tweaked the chat to have a bigger chat area...?
Title: Re: SA Chat
Post by: SA™ on March 02, 2011, 08:45:05 AM
SA chat bar beta1 rev37 relased

renamed the mod to SA Chat Bar
added missing closing php tags to sevaral files
chnaged shrt php tags in SAchatAmin.php
fixed hard coded text from last realse
now uses integration hooks for less edits
fixed simple portal shoutbox displaying null when shouting
some ie issues fixed

Title: Re: SA Chat
Post by: willerby on March 02, 2011, 10:24:23 AM
Installed on RC4 and all appeared to work ok but visible to guests and all membergroups. Started customising setting in SA Chat Admin and set to allow specific user groups. Went to permissions but can't find SA Chat anywhere.  How can I set this so that only certain user groups can use the chat?

Thanks
Title: Re: SA Chat
Post by: SA™ on March 02, 2011, 11:04:43 AM
it in admin;/permissions
Title: Re: SA Chat
Post by: willerby on March 02, 2011, 11:24:58 AM
Exactly where? I cannot find it anywhere under general permissions. I click modify for any membergroup and there are plenty of options but SA Chat is not one of them...

* Post Ratings    
View Ratings          
Rate Posts          
Edit Own Rating          
Delete Own Rating          
Administrate Post Ratings          
* Contact members using the personal messaging system    
View PM attachments          
Upload PM attachments          
Read personal messages          
Send personal messages          
* SMF Articles    
View Articles          
Add Article          
Edit own Articles          
Delete own Articles          
Rate Articles          
Leave Comments          
Articles Auto Approved          
Auto Approve Comments          
Admin Articles          
* Use SMF Gallery    
View SMF Gallery          
Add Picture          
Bulk Uploads          
Edit own Picture          
Delete own Picture          
Rate Picture          
Leave Comments          
Edit own Comment          
Report Pictures/Comments          
Auto Approve Comments          
Auto Approve Pictures          
Personal Gallery          
Admin Gallery          
* SMF Links    
View Links Page          
Add Links          
Edit Links          
Delete Links          
Manage Categories          
Approve Links          
Links Auto Approved          
Rate Links                    
* Use basic forum functionality    
Never be checked by mod httpBL          
View forum statistics          
View the memberlist and groups          
View Who's Online          
Search for posts and topics          
View the calendar          
View their own profile          
View other people's profiles          
Create bookmarks for topics          
* Moderate the entire forum    
Change other people's karma          
Edit other people's calendar events          
Access the moderation center          
Moderate forum members          
Issue warnings to members          
Edit other people's account settings          
Edit other people's profile options          
Edit other people's custom titles          
Delete other user's accounts          
Give Awards          
* SimplePortal    
Administrate portal          
Manage portal settings          
Manage portal blocks          
Manage portal articles          
Manage portal pages          
Can add article          
* Post events onto the calendar    
Create events in the calendar          
Edit their own calendar events          
* Carry out administrative duties    
Administrate forum and database          
Manage boards and categories          
Manage attachments and avatars          
Manage smileys and message icons          
Edit news          
Manage and assign membergroups          
Manage ban list          
Send a forum email to members          
Manage Thank you mod settings          
* Personalize their profile    
Edit their account settings          
Edit their additional profile options          
Choose a custom title for themselves          
* Delete their account    
Delete their own account          
* Select or upload an avatar    
Select an avatar from the server          
Upload an avatar to the server          
Choose a remotely stored avatar          
* Thank you mod permissions    
Vote on posts (up or down)          
Reveal Bad posts          
Reveal who gave Thanks          
* Moderator tag controls    
Allow this user to use [gmod] ?          
Allow this user to use [admin] ?
Title: Re: SA Chat
Post by: SA™ on March 02, 2011, 01:48:46 PM
hmmm do you get any error in your error logs?
Title: Re: SA Chat
Post by: willerby on March 02, 2011, 04:56:22 PM
No errors on install and nothing in error log...

I have the 'allow deny permissions' enabled - would that change anything? Which file should I be checking in sources/themes?
Title: Re: SA Chat
Post by: henrik1782 on March 02, 2011, 09:10:23 PM
Hi....

Can you please advice how to create a bigger chat window.
Title: Re: SA Chat
Post by: JoeB on March 04, 2011, 09:22:38 PM
Removed Rev 35
Installed new Rev 37 on fresh RC5 (no modes)
Changed files chmod

No chat bar
no radio buttons on IE9 but ok in Firefox
no Chat bar

Please advice
Title: Re: SA Chat
Post by: Baloch on March 06, 2011, 12:31:01 AM
Although I liked your mod but it increased load on SERVER CPU and because of this and Simple portal's Shout box my site had been suspended by the hosting company.
Title: Re: SA Chat
Post by: SA™ on March 07, 2011, 02:55:06 PM
@Willerby...
well this mod uses hooks to show permissions i dont get why you cant see them i see them fine on my test site and my live site?

@JoeB
have you seen the SA Chat Installation Trouble Shooter  (http://www.sa-mods.info/index.php?topic=1017.0)?

@Baloch
this is why Load Average is included in the mod
SA Chat Load Average  (http://www.sa-mods.info/index.php?topic=1019.0)
Title: Re: SA Chat
Post by: f_aston on March 08, 2011, 06:44:25 PM


Hey mate,

I have tried and tried and followed all of the instructions and suggestions and have not been able to get this to work.

I have set the permissions, commented out the optimiser.

I can't figure out if the present version still requires the template edits or not but have tried doing that as well.

I have set all of the permissions in the console, also.

Do you have any other suggestions on how to get this to work.  I would be happy to show you the forum in question.

Although I have installed other mods now, this was the first mod I installed on a clean build and it didn't work at all.

I am browsing with Chrome, if that makes a difference though have tried unsuccessfully in other browsers.

I don't see chat, I don't see a toolbar, I don't see any change to the forum at all.
Title: Re: SA Chat
Post by: Sledgie on March 09, 2011, 10:46:09 PM
White screen. My site is gone. I installed the mod with no problems but when I refreshed all I get is a white screen. I tried different browsers with the same result. I'm extremely alarmed because I have no access even to the admin panel so I can uninstall. Any ideas or solutions?

RC4
Title: Re: SA Chat
Post by: SA™ on March 10, 2011, 12:55:09 PM
in your sources directory theres is a file called SAChatHooks.pho? if it there can you post it up if not add it from the package
Title: Re: SA Chat
Post by: f_aston on March 14, 2011, 09:00:28 PM
Hey Mate,

Weren't sure who you were referring to above.

I am running SMF 2.0 RC 5 with very few other mods.  This was the first mod installed on a clean build with a database import.

I set up the file permissions in my FTP.

I disabled the experimental code manually.

The page does not change at all.

Please assist as I would very much like to use this mod.

Do you require additional information to diagnose?
Title: Re: SA Chat
Post by: SA™ on March 17, 2011, 12:44:29 AM
Quote from: SA™ on March 10, 2011, 12:55:09 PM
in your sources directory theres is a file called SAChatHooks.pho? if it there can you post it up if not add it from the package
Title: Re: SA Chat
Post by: cnywrestling on March 17, 2011, 08:40:58 PM
Great Mod! Looks great everywhere but IE8.  In IE8, I get this message, similar to what others have reported:

Java Script Error
Description: 'document.all.friends.style' is null or not an object
Source: http://www.cnywrestling.com/smd/sachat/index.php?action=body
Line: 462

I'm on rev 37, SMF 2.0 RC5.  Works fine in Chrome, Firefox, and Safari

Thanks!
Title: Re: SA Chat
Post by: f_aston on March 17, 2011, 09:20:06 PM
Yes, the file was there.


Attached...


Thanks so much for your help mate, my users really want this mod!
Title: Re: SA Chat
Post by: f_aston on March 18, 2011, 01:28:03 AM


I have, for another reason, reinstalled the software and rebuilt from the backup.

Mod still won't show :(


Is it do with the fact that I have rebuilt from a backup or that we used to run Ajax-chat and Simple Portal?
Title: Re: SA Chat
Post by: eyeseven on March 19, 2011, 08:58:29 AM
I installed rev 37 everthing works fine but the problem is the gadget, nothings happen when click the gadget.. I think there is an invisible window is poping up because i can't click some of the links..

thanks! hope you can help me..

Title: Re: SA Chat
Post by: SA™ on March 19, 2011, 03:10:23 PM
@ ff_aston
try attached hooks file

@ eyeseven
can you post up your sachat/body.js.php pls
Title: Re: SA Chat
Post by: eyeseven on March 20, 2011, 02:54:51 AM
@ SA here's my body.js.php
Title: Re: SA Chat
Post by: f_aston on March 20, 2011, 08:32:09 AM


Thanks so much for your help mate, but unfortunately I still can't get the toolbar to show with this new hooks file.

Anything else we can do?
Title: Re: SA Chat
Post by: f_aston on March 20, 2011, 11:24:03 AM


Mate - I'd be happy to show you forum in question to get it working...
Title: Re: SA Chat
Post by: SA™ on March 20, 2011, 03:25:22 PM
@eyeseven
try attached file

@ f_aston
sure link to to your site and a temp user account and ill take a look be sure to check out the trouble shooter frst locatd here
http://www.sa-mods.info/index.php?topic=1017.0
Title: Re: SA Chat
Post by: eyeseven on March 20, 2011, 04:12:14 PM
Thanks so much! :D

it works! ! !
Title: Re: SA Chat
Post by: f_aston on March 20, 2011, 06:12:59 PM


Thanks for continuing to help mate!

I have PMed you the forum location and a login.

:)
Title: Re: SA Chat
Post by: SA™ on March 21, 2011, 01:56:53 PM
pls try the package now i just updated it tho i have a feeling your problem is permissions on the files i cant chack that with out ftp accesse
Title: Re: SA Chat
Post by: f_aston on March 22, 2011, 12:31:52 AM


I can assure you that I have double-checked the permissions about 15 times at this point, and unless there are required permissions that are not outlined in your document then they are set as you have required.

I won't be able to upload the new version just now, but will report back when I can!


Thanks so much for your help, you do a great job!  :)
Title: Re: SA Chat
Post by: f_aston on March 22, 2011, 01:06:49 AM


Mate - I tried the new package on a fresh build and no love.

And I did all the troubleshooting steps you outlined.

Be aware - our hosting is on a Zeus server and I found issues with other mods before because of this - for example - prettyurls makes use of Apache specific url rewriting commands.  Could this be a cause of the problem as, after trouble-shooting, most people get it working.  :(
Title: Re: SA Chat
Post by: xrunner on March 25, 2011, 08:41:31 PM
How do more than 2 people chat together?
Title: Re: SA Chat
Post by: Goodman854 on March 27, 2011, 04:29:10 AM
Can you make a GO OFFLINE button?
Title: Re: SA Chat
Post by: !RFAN on April 12, 2011, 07:54:20 AM
i am logged in but SA Chat Bar is showing:  Welcome, Guest. Please login or register. instead of Whos's Online...
what is wrong??

http://www.forum.vlovefun.com

user: testt
pass: 12345678

please check it and help me..

thanks
Title: Re: SA Chat
Post by: cnywrestling on April 12, 2011, 09:47:09 PM
I can't get this to work in any version of internet explorer - 7, 8, or 9.  The javascript error is different in each, but it's always the "index.php?action=body" file.  Personally, I wouldn't care as I use Chrome and it works fine in chrome.  But, 75% of my forum users are still on some version of IE.  Is there anything that can be done to get it working with IE?
Title: Re: SA Chat
Post by: nend on April 13, 2011, 11:11:37 AM
Quote from: cnywrestling on April 12, 2011, 09:47:09 PM
I can't get this to work in any version of internet explorer - 7, 8, or 9.  The javascript error is different in each, but it's always the "index.php?action=body" file.  Personally, I wouldn't care as I use Chrome and it works fine in chrome.  But, 75% of my forum users are still on some version of IE.  Is there anything that can be done to get it working with IE?
This looks like it may be a pain, however I can test in IE8 and say there is no problems with SA Chat on a unmodified IE8. Can you post the errors your are receiving here, it will help diagnose the problems you are receiving a little easier.
Title: Re: SA Chat
Post by: cnywrestling on April 13, 2011, 07:25:09 PM
Thanks for lending a hand.  As an IT troubleshooter, I sympathize when you can't duplicate the error  :-\

IE8 error is attached.  It's slightly different in IE9 and IE7, but I can't get to those machines right now.
Title: Re: SA Chat
Post by: nend on April 14, 2011, 12:02:25 PM
Quote from: cnywrestling on April 13, 2011, 07:25:09 PM
Thanks for lending a hand.  As an IT troubleshooter, I sympathize when you can't duplicate the error  :-\

IE8 error is attached.  It's slightly different in IE9 and IE7, but I can't get to those machines right now.

I heard of this one before but haven't been able to duplicate it. I can't look at it today though, have to go to work in a few minutes. I think it will be best for me to get my IE to duplicate the error and go from there. But if I remember correctly that portion of code still does it the traditional JS way. It may be better to let jQuery handle the style there. The chat system didn't always have jQuery so that part of the code that is giving the error is pretty old.

Once I figure it out I will send my fixes to SA and post a code snippet here until he can get around to working it in.
Title: Re: SA Chat
Post by: nend on April 14, 2011, 12:09:21 PM
May be a quick fix but in your body.js.php , look for this.
if (document.all) { //IS IE 4 or 5 (or 6 beta)
eval( "document.all." + layer_ref + ".style.display = state");
}


May change it to this
if (document.all) { //IS IE 4 or 5 (or 6 beta)
hza = document.getElementById(layer_ref);
hza.style.display = state;
}


Some reason it is detecting them as IE 4,5 or 6. I think it is because backwards compatibility is worked into the newer versions of IE. But I think this code will break the chat for IE 4,5 and 6. I will not know however without testing, so that will be later on. Sorry.
Title: Re: SA Chat
Post by: cnywrestling on April 14, 2011, 02:06:04 PM
You're a genius Nend  ;)  Thank You.

Bet you can't wait for the day when you don't have to program "around" IE  ???
Title: Re: SA Chat
Post by: SA™ on April 14, 2011, 02:29:39 PM
thanks nend i will  try to work on this at the weekend been a little busy in rl with work seems to be slowing down now then again i said this the other week and work picked back up again lol
Title: Re: SA Chat
Post by: nend on April 14, 2011, 10:36:32 PM
Quote from: cnywrestling on April 14, 2011, 02:06:04 PM
You're a genius Nend  ;)  Thank You.

Bet you can't wait for the day when you don't have to program "around" IE  ???

Sad though, I didn't find this out sooner. Some of my other sites use this function for hiding and showing divs. I tend to reuse code from previous projects in other work. It saves allot of time, but now it looks like I have a bug in some of my sites also.

I don't like the work around I posted though, because it takes away support from IE6 which isn't that bad. But the code is just too sloppy. So I will do a rewrite on this function for the chat.
Title: Re: SA Chat
Post by: anakmacan on April 18, 2011, 07:10:08 AM
I installed simple portal, is it possible to disable this mod on main forum, instead in want it to appear only on portal page ?
Title: Re: SA Chat
Post by: SA™ on April 18, 2011, 12:13:39 PM
you can try this

in sources/sachathooks.php

find
$buffer = str_replace('</head>', '<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=head"></script>
</head>', $buffer);

$buffer = str_replace('<body>', '<body>
<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=body"></script>', $buffer);


replace with
if(!isset($_GET['action'])){
$buffer = str_replace('</head>', '<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=head"></script>
</head>', $buffer);

$buffer = str_replace('<body>', '<body>
<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=body"></script>', $buffer);
}
Title: Re: SA Chat
Post by: anakmacan on April 20, 2011, 02:05:40 AM
WOW! THAT WORKS! Thank you  ;D
I reinstalled and i have donated, nice mod!
Title: Re: SA Chat
Post by: anakmacan on April 20, 2011, 03:37:33 AM
btw, i found out that SA Chat bar still appears on thread section.
http://www.loners-club.com/index.php/topic,566.0.html

could you help me so the bar doesnt show up on thread section too ?
Title: Re: SA Chat
Post by: SA™ on April 20, 2011, 12:07:27 PM
ttry changing

if(!isset($_GET['action'])){
to
if(!isset($_GET['action'])  || !isset($_GET['topic'])){
Title: Re: SA Chat
Post by: anakmacan on April 20, 2011, 06:19:23 PM
Nope, not working this time... where do you find !isset($_GET codes ? maybe i can also try it myself, cos i just found out it shows up on profile either (and make the page loads slower) xD
Title: Re: SA Chat
Post by: IME-Matthew on April 20, 2011, 08:31:51 PM
First off, let me say that this mod is by far the best I've seen for SMF, ever. It is way cool, and it will definitely become a permanent fixture of all of my SMF forums in the future.

That said, I am having the strangest issue (r37) with the chat bar not loading on the Message Index ONLY. It loads on everything else, even including admin pages, profiles, a member map mod, etc. I have tried comparing headers with both the MessageIndex source file as well as the template files within the default theme. I have tried replacing stock versions of MessageIndex pages from the SMF 2.0 RC5 source, as well as the stock templates as well, to no avail.

I have tried installing after a clean install with zero mods and I also have the same problem. Is anyone else experiencing this? Again, it loads for every single page except the message index (not the board index, but the message index after clicking into a board). Very strange, please help!!!

Thanks in advance for any suggestions!
Title: Re: SA Chat
Post by: IME-Matthew on April 21, 2011, 04:34:45 PM
I have found by adding the ...index.php?action=head... to a new <head> section, and ...index.php?action=body... to the <body> area in the Message Index template, works perfectly. The only thing is it is loading considerably slower, presumably because I am doubling the <head> area now, along with body.

Why is this not parsed properly through the main index page of the forum template I wonder? Interesting indeed...
Title: Re: SA Chat
Post by: SA™ on April 22, 2011, 01:19:00 PM

@IME-Matthew

in sources/sachathooks.php


// Post preview compatabilty
if (!empty($_REQUEST['board']))
return $buffer;


was added cos post preview wasnt working but if you remve that code it will show but it will also break post preview
ill have to look for another way round the post preview bug

@anakmacan
they come from the url
Title: Re: SA Chat
Post by: IME-Matthew on April 22, 2011, 09:00:47 PM
Quote from: SA™ on April 22, 2011, 01:19:00 PM

@IME-Matthew

in sources/sachathooks.php


// Post preview compatabilty
if (!empty($_REQUEST['board']))
return $buffer;


was added cos post preview wasnt working but if you remve that code it will show but it will also break post preview
ill have to look for another way round the post preview bug
Perfect, thank you! This worked immediately upon commenting out the code. I also tested post preview and it is working fine. I am assume you simply mean when you are replying to any post and hit "Preview", right? Yes, the text still previews just fine right above the text input area. Strange that it does not work for you. Regardless, I am thankful for your support here! This mod is excellent!!!
Title: Re: SA Chat
Post by: SA™ on April 22, 2011, 10:00:05 PM
@anakmacan
uno the last edits i gave you and add

if(isset($_GET['action']) || isset($_GET['topic']))
   return $buffer;


before $buffer = str_replace('</head>', '<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=head"></script>
</head>', $buffer);
Title: Re: SA Chat
Post by: cnywrestling on April 22, 2011, 10:22:14 PM
Could some kind soul please offer a mini-tutorial on how to reposition the default location of the chat window?  I'm having a terrible time getting it to move all of the pieces.  When I change msg_container to fixed so it it at the bottom where I want it, then the rest of the message window stays at the top.  If I try to move those, some move, some disappear.  I'm just plain terrible with css so I was hoping someone would be kind enough to point me to the css variable(s) that need to be changed to move the chat window to the bottom.
Thanks  ;D
Title: Re: SA Chat
Post by: SA™ on April 23, 2011, 01:38:33 PM
id have to dig into the code to find this outt cos i dont know of hand
Title: Re: SA Chat
Post by: nend on April 24, 2011, 12:09:06 PM
Quote from: cnywrestling on April 22, 2011, 10:22:14 PM
Could some kind soul please offer a mini-tutorial on how to reposition the default location of the chat window?  I'm having a terrible time getting it to move all of the pieces.  When I change msg_container to fixed so it it at the bottom where I want it, then the rest of the message window stays at the top.  If I try to move those, some move, some disappear.  I'm just plain terrible with css so I was hoping someone would be kind enough to point me to the css variable(s) that need to be changed to move the chat window to the bottom.
Thanks  ;D

It is in the css file. I don't rember the class name though but all you have to do is change the position values. Somewhere in sachat.themes.default.style.css. Sorry about the sloppy information important on my droid.
Title: Re: SA Chat
Post by: mibodega on April 24, 2011, 08:14:09 PM
I spent hours troubleshooting Sa Chat. It worked when I initially installed it but then I noticed it was not there anymore. So I started removing some MODS and when I removed the SMF Multi Quote mod, boom the SA Chat bar was back.

Just to make sure I re-installed the Multi Quote Mod and Sa Chat Bar disappeared.
Title: Re: SA Chat
Post by: SA™ on April 24, 2011, 08:26:58 PM
it is cos the chat bar uses the buffer hook and that mod moifies the body tag

index.template.php
find
<body '.((isset($context['current_action']) && ($context['current_action'] == 'post') && (isset($context['current_topic']))) ? 'onLoad="post_mquotes();"' : '').'>';

replace with

<body>

in sources/sachathooks.php

find
$buffer = str_replace('<body>', '<body>
<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=body"></script>', $buffer);


replace with
global $context;
$buffer = str_replace('<body>', '<body  '.((isset($context['current_action']) && ($context['current_action'] == 'post') && (isset($context['current_topic']))) ? 'onLoad="post_mquotes();"' : '').'>
<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=body"></script>', $buffer);


both mods should now work as intended
Title: Re: SA Chat
Post by: Arantor on April 24, 2011, 08:28:52 PM
Better still, don't manipulate the buffer hook at all and just add the <script> onto the end of $context['html_headers'] at some point before the templates are invoked, even using the action hook if necessary.
Title: Re: SA Chat
Post by: SA™ on April 24, 2011, 08:38:59 PM
that will work?
Title: Re: SA Chat
Post by: mibodega on April 24, 2011, 08:43:47 PM
Quote from: Arantor on April 24, 2011, 08:28:52 PM
Better still, don't manipulate the buffer hook at all and just add the <script> onto the end of $context['html_headers'] at some point before the templates are invoked, even using the action hook if necessary.

I am not sure I follow how to do what you instruct ... can you show me please?
Title: Re: SA Chat
Post by: Arantor on April 24, 2011, 08:48:11 PM
Quote from: mibodega on April 24, 2011, 08:43:47 PM
I am not sure I follow how to do what you instruct ... can you show me please?

Not really, it wasn't aimed in your direction, but as a suggestion for the mod author.

Quote from: SA™ on April 24, 2011, 08:38:59 PM
that will work?

Can't see why not, $context['html_headers'] should exist at that point and be ripe for extending - and it should be faster than modifying the buffer.
Title: Re: SA Chat
Post by: SA™ on April 24, 2011, 09:25:18 PM
aha i see id have to play about with and  see if i can do this thanks for rhe suggestion
Title: Re: SA Chat
Post by: SA™ on April 25, 2011, 01:20:46 PM
new version realsed

fixed conflics with ajax stuff
removed all edits now soly uses hooks
updated the open close function [thanks nend]
fixed bar not showing on message index
now you can add,edit,remove your own links from the bar
fixed broken admin layout
now uses intergate_load_theme hook and subtemplates to show the bar
Title: Re: SA Chat
Post by: mibodega on April 25, 2011, 09:17:57 PM
 so.... should we uninstall Beta 1 and install Beta 2? ::)
Title: Re: SA Chat
Post by: anakmacan on April 25, 2011, 09:40:17 PM
SA™: It doesnt work, cos i installed the newer version. New version loads faster though!
Title: Re: SA Chat
Post by: anakmacan on April 25, 2011, 09:48:19 PM
Could you give me the code to show this mod inside simpleportal block instead?
Title: Re: SA Chat
Post by: SA™ on April 25, 2011, 11:51:14 PM
@mibodega
yes uninstall then reinstall

@anakmacan
try the atttached package it allowes you to chooss where the bar shows
Title: Re: SA Chat
Post by: Enzofielt on April 26, 2011, 11:57:35 AM
Hello, i have installed SA Chat Bar Beta2 rev38.
Where can i find the code to paste in a EZportal block.
Thanks  ;)
Title: Re: SA Chat
Post by: Yngwiedis on April 26, 2011, 01:07:29 PM
After install the new version i cant see the bar at all.
I forgot to do something ?

Thank you.


EDIT: Problem fixed after i change permissions of sachat folder to 755.

Thank you.

EDIT2: New problem. In the Who Is Online list i see all the members of the forum and not only the online members.
What i do wrong ?

Thank you.
Title: Re: SA Chat
Post by: anakmacan on April 26, 2011, 06:19:39 PM
Quote from: SA™ on April 25, 2011, 11:51:14 PM
@mibodega
yes uninstall then reinstall

@anakmacan
try the atttached package it allowes you to chooss where the bar shows

Ive downloaded, and i uninstalled SA chat, dropped old chat database, and then installed the file you gave me. I dont find any menu or option to choose where the bar will show. I mustve made mistake somwhere :/
Title: Re: SA Chat
Post by: SA™ on April 26, 2011, 08:55:15 PM
@anakmacan
it in sa chat admin

Actions to Show Bar on (separated by comma)
right at the bottom

@Yngwiedis
pos up your sachat/index.php
please

or in that file

find
if ($results){
while ($row = $smcFunc['db_fetch_assoc']($results)) { //show_online
if ($row['id_member'] != $member_id){
          $context['friends'][] = $row;
$user_settings = loadUserSettings($row['id_member']);
}
}
$smcFunc['db_free_result']($results);
}


replace with

if ($results){
while ($row = $smcFunc['db_fetch_assoc']($results)) { //show_online
if (isset($row['session']) && $row['id_member'] != $member_id){
          $context['friends'][] = $row;
$user_settings = loadUserSettings($row['id_member']);
}
}
$smcFunc['db_free_result']($results);
}
Title: Re: SA Chat
Post by: mibodega on April 26, 2011, 08:57:25 PM
I have to figure out how to uninstall Beta 1. I get the following errors

Execute Modification   ./Themes/default/languages/Modifications.english.php   Test failed
   1.   Replace   ./Themes/default/languages/Modifications.english.php   Test failed

I think I am just going to hang with Beta 1 for now until I see more happy faces ;D
Title: Re: SA Chat
Post by: SA™ on April 26, 2011, 09:05:09 PM
there text strings youd be ok to uninstall it still it wont break the forum ;)
Title: Re: SA Chat
Post by: Yngwiedis on April 27, 2011, 10:37:42 AM
Quote from: SA™ on April 26, 2011, 08:55:15 PM

@Yngwiedis
pos up your sachat/index.php
please

or in that file

find
if ($results){
while ($row = $smcFunc['db_fetch_assoc']($results)) { //show_online
if ($row['id_member'] != $member_id){
          $context['friends'][] = $row;
$user_settings = loadUserSettings($row['id_member']);
}
}
$smcFunc['db_free_result']($results);
}


replace with

if ($results){
while ($row = $smcFunc['db_fetch_assoc']($results)) { //show_online
if (isset($row['session']) && $row['id_member'] != $member_id){
          $context['friends'][] = $row;
$user_settings = loadUserSettings($row['id_member']);
}
}
$smcFunc['db_free_result']($results);
}


OK. After this fix the members list is now showing only the online members.
Thank you for that.

Can you tell me now how can i change the dimensions of the chat window ?

Thank you very very much.
Title: Re: SA Chat
Post by: cnywrestling on April 27, 2011, 01:56:08 PM
Quote from: SA™ on March 20, 2011, 03:25:22 PM
@eyeseven
try attached file

I had the same problem with gadgets - they just didn't work at all.  I saved the body.js.php file from the above resolution and now gadgets are "trying" to work, but there are problems in all browsers.  In IE, I get a "404 not found" error.  In Chrome and Firefox, nothing shows.  To simplify things, I just put a little table in the gadget:

<table>
  <tr>
    <td>Test Gadget</td>
  </tr>
</table>


But all I get are the above mentioned errors.  Little Help??

Thanks!
Title: Re: SA Chat
Post by: SA™ on April 27, 2011, 02:03:48 PM
missing global in the chat bar template

in sachat\themes\default/template.php

find
function gadget_template() {

global $themeurl, $context;


replace with
function gadget_template() {

global $boardurl, $themeurl, $context;


it actualy fixed in the package a few post back just i need todo more testing before i realse that package properly
Title: Re: SA Chat
Post by: cnywrestling on April 27, 2011, 11:05:47 PM
Sorry, but that really threw things off.  All that did was cause a JS error:

Script Error
Description: 'document.all.friends.style' is null or not an object
Source: http://www.cnywrestling.com/smd/sachat/index.php?action=body
Line: 383


I changed the one line back, but the javascript error won't go away.  Doesn't make sense.  I had to disable it for now.
Title: Re: SA Chat
Post by: SA™ on April 28, 2011, 12:22:12 AM
that error has nothing todo with what i told you todo hence why it dont go away

beta 2-1 rev39 realsed
now you can define where the bar show
online list now shows avatars
fixed gadgets now showing when clicking them
now has a simple yet powerful theme manager
Title: Re: SA Chat
Post by: Yngwiedis on April 28, 2011, 10:01:08 AM
After installing the new release i get this error when i click on SA Chat Administration:

QuoteFatal error: Cannot redeclare isallowedextension() (previously declared in /home/xxxxxx/public_html/Sources/sachatAdmin.php:209) in /home/xxxxxx/public_html/Sources/FB_Connect/FB_Connect_Subs.php on line 62

Also SA can you tell me how can i change the chat window dimensions ?

Thank you.
Title: Re: SA Chat
Post by: SA™ on April 28, 2011, 11:53:44 AM
QuoteFatal error: Cannot redeclare isallowedextension() (previously declared in /home/xxxxxx/public_html/Sources/sachatAdmin.php:209) in /home/xxxxxx/public_html/Sources/FB_Connect/FB_Connect_Subs.php on line 62
fixed pls download and reinstall

QuoteAlso SA can you tell me how can i change the chat window dimensions ?
look in sachat/themes/yourtheme/style.css
i dont know the excact class  of hand tho
Title: Re: SA Chat
Post by: Yngwiedis on April 28, 2011, 12:34:24 PM
Quote from: SA™ on April 28, 2011, 11:53:44 AM
QuoteFatal error: Cannot redeclare isallowedextension() (previously declared in /home/xxxxxx/public_html/Sources/sachatAdmin.php:209) in /home/xxxxxx/public_html/Sources/FB_Connect/FB_Connect_Subs.php on line 62
fixed pls download and reinstall

OK. Everything is fine now...

Quote from: SA™ on April 28, 2011, 11:53:44 AM
QuoteAlso SA can you tell me how can i change the chat window dimensions ?
look in sachat/themes/yourtheme/style.css
i dont know the excact class  of hand tho

I find it. I am OK now.

Thank you very very much.
Title: Re: SA Chat
Post by: Capion on April 29, 2011, 07:53:29 PM
nice ..nice..
but how do I get rid of that very annoying, and unwanted..unexpected... google translate ---- annoy-me-bar ?
( unexpected..because it has not a thing to do with what I thought I was installing )
Title: Re: SA Chat
Post by: SA™ on April 29, 2011, 08:36:52 PM
in sa chat admin you can disable it
Title: Re: SA Chat
Post by: chinaren on May 01, 2011, 12:41:57 AM
Hi, I've installed this but there's no chat bar showing anywhere? 


I added the lines to the index.template.php as specified on the first page of this mod, but still nothing (probably out of date now). 


The directories are on 755.


I can see the mod settings in admin okay though.


Help?

Title: Re: SA Chat
Post by: SA™ on May 01, 2011, 12:36:34 PM
first off you dont need to make any edits for this mod o work it uses hooks and sub templates to show the bar

second thing
directories and files should be 755 for the chat bar to work
Title: Re: SA Chat
Post by: chinaren on May 03, 2011, 09:12:31 AM
Mmm, well no idea then.   ???
Title: Re: SA Chat
Post by: SA™ on May 03, 2011, 03:12:43 PM
you read my last post?
Title: Re: SA Chat
Post by: chinaren on May 03, 2011, 06:54:56 PM
y
Quoteou read my last post?


I did.  The directories are 755 and I only did the edit because, after I installed the mod, I couldn't see the chat bar and thought it may be that, though I realized later on those were likely out of date.


However, I've just uninstalled and re-installed the mod and it's working now!!??? :o  Go figure!


So... thanks!  Looks good!
Title: Re: SA Chat
Post by: cubansephiroth on May 04, 2011, 01:48:37 PM
I tried rev39 in my forum and works fine, but I want to show the chatbar only to a members of some groups, I've checked the permision based on the main SA chat config but i cant find where to define which groups are allowed to chat and which not.

The mod said that i need to specify permissions in the SMF permision system but there's nothing related to SI-chat there.

Sorry for my english.

Any help will be apreciated
Title: Re: SA Chat
Post by: SA™ on May 04, 2011, 02:33:59 PM
whats your smf version? if you patched rc4 instead of upgrading then the permissions wont work cos the permission hook wasnt added to rc4
Title: Re: SA Chat
Post by: cubansephiroth on May 05, 2011, 09:18:01 AM
I have 2.0 RC4 in my forum i upgraded from RC3 some months ago. Sorry but my english it's no good at all, did you tell me that in RC4 i cant use de the permission system due to a hook limitation of the mod?
Title: Re: SA Chat
Post by: SA™ on May 05, 2011, 01:32:26 PM
yup thats correct you could try adding the permission hook your self i just tryed it on a patched rc4 forum and it seemed to work if you post up your managepermissions.php
Title: Re: SA Chat
Post by: tripplex on May 08, 2011, 12:20:59 AM
Hey, I installed the latest version (Beta 2-1 Revision 39) and I'm using SMF 2.0 RC5.

Everything seems to be working, BUT I can't see anyone in the whose online list. I set all the correct permissions:

sachat 755
sachat/index.php 755
sachat/body.js.php 755
sachat/head.js.php 755
sachat/cache 755
sachat/themes/default/index.php 755

I signed out and signed in, still no one on the list. What can be the problem? Someone please help!

EDIT: Problem fixed. Go to Admin > SA Chat > Config > Checkmark: Show Everyone Online :P
Title: Re: SA Chat
Post by: AcidFMHQ on June 01, 2011, 11:43:50 PM
Would like to say that in the settings I believe "Update Online List Live" doesn't work very sure if it did I wouldn't have to refresh the page to see who's online

Back when I was using 1.1.x I had cometchat and it would update online list in real time really liked that feature but ne way hope this is still supported by the originally creator hope for more updates in the future
Title: Re: SA Chat
Post by: SA™ on June 02, 2011, 01:24:36 PM
thanks for the report ill look into this for the next update
Title: Re: SA Chat
Post by: Apllicmz on June 04, 2011, 12:05:23 AM
Thank you
when update dont forget portuguese linguage


Portuguese and portuguse_brazillian

$txt['home'] = 'Home';
$txt['msgs'] = 'Mensagens';
$txt['myspace'] = 'MySpace';
$txt['twitter'] = 'Tweet';
$txt['facebook'] = 'Facebook';
$txt['whos_on'] = 'Quem est&aacute; Online';
$txt['guest_msg'] = 'Bem-vindo, Visitante. Por favor <a class="white" href="'.$boardurl.'/index.php?action=login">Entrar</a> ou <a class="white" href="'.$boardurl.'/index.php?action=register">registar-se.</a>';
$txt['load_warning'] = 'O Chat n&atilde;o esta disponível, devido à alta carregar do servidor.';

Title: Re: SA Chat
Post by: UKShark on June 06, 2011, 06:36:29 PM
I have only done a quick search on the topic so the warning below should be treated below with some patience until the developers have had time to respond...but...

I have just been suspended by hosting company (Siteground) for excessive CPU usage as a result of installing SAChat!

I really really like the mod but am forced to uninstall it despite being on an 'unlimited share hosting package' as it apparentely exceeds their 'stated thresholds'.

I'd appreciate any feedback both in terms of the mod and how to minimise its CPU and my hosts actions.
Title: Re: SA Chat
Post by: Diddybanks on June 10, 2011, 10:07:39 AM
Quote from: tripplex on May 08, 2011, 12:20:59 AM
Hey, I installed the latest version (Beta 2-1 Revision 39) and I'm using SMF 2.0 RC5.

Everything seems to be working, BUT I can't see anyone in the whose online list. I set all the correct permissions:

sachat 755
sachat/index.php 755
sachat/body.js.php 755
sachat/head.js.php 755
sachat/cache 755
sachat/themes/default/index.php 755

I signed out and signed in, still no one on the list. What can be the problem? Someone please help!

EDIT: Problem fixed. Go to Admin > SA Chat > Config > Checkmark: Show Everyone Online :P


i cant even see the bar below... i have set all those file permissions and even did as you just suggested checked the show everyone online but still nothing is displaying am using the beta version just like you and an RC5 smf platform. have input the code ned talked about on page one yet its still not showing please help ??


Thanks...   waiting??
Title: Re: SA Chat
Post by: Crissm on June 23, 2011, 07:31:07 AM
hello
i installed SA chat and it works fine with the default time, but i'm not able to make it work with the theme i use on my forum (core)...could you help me with this?
this is the index.template of my theme in attachment

i'll thank you with an italian translation for the mode :)

Title: Re: SA Chat
Post by: SA™ on June 23, 2011, 01:49:32 PM
it should work on every theme with out any edits what smf version are you using?
i got an update coming in a bit that fixes some ie issues
Title: Re: SA Chat
Post by: Crissm on June 23, 2011, 08:26:52 PM
Quote from: SA™ on June 23, 2011, 01:49:32 PM
it should work on every theme with out any edits what smf version are you using?
i got an update coming in a bit that fixes some ie issues

smf 2.0 gold ,
SA chat rev 39
btw in the core theme it won't works neither in firefox and google. In the default theme it works perfectly while in core simply it doesn't show the bar...i don't know why
Title: Re: SA Chat
Post by: SA™ on June 24, 2011, 01:19:09 AM
it work in core theme for me
with the  the core theme on can you right click and veiw the page souce and copy it pm me it?
Title: Re: SA Chat
Post by: SA™ on June 24, 2011, 01:42:44 AM
beta 3 realsed

moved load balencing setting to own admin page
added  portuguese linguage [thanks joomlams]
fixed broken html validation
fixed using to much code for the links part
made all images 16 by 16
updated jquery to the ltest version
added online count
mute button still showed if chat was disbled
now has better supprt for just link and gadgets with no chat part
fixed opening gadgets always loaded the default theme
sevaral more template tweeks
who online count counted hidden users
fixed some internet explorer errors
gadgets now support php, html and bbc
Title: Re: SA Chat
Post by: Dark king on June 24, 2011, 03:31:39 AM
Hey im having a problem on my forum with SAchat. I tried using both your rev39 and rev 41 packages on a smf 2.0 forum (upgraded from rc5) and i cant seem to get it to work. There are no install errors the datqabase tables have been written (checked)

ive turned the permisssions to 755 and commented out the cache as stated here http://www.sa-mods.info/index.php?topic=1017.0 and still nothing im at a real loss here any help would be appreciated
Title: Re: SA Chat
Post by: SA™ on June 24, 2011, 03:37:32 AM
in sachat admin there is a page called chmod check it out
Title: Re: SA Chat
Post by: Dark king on June 24, 2011, 04:02:25 AM
Quote from: SA™ on June 24, 2011, 03:37:32 AM
in sachat admin there is a page called chmod check it out

I told you i chmod the  things listed to 755 (maybe i should have said chmod instead of permissions but i already did that is the point)
Title: Re: SA Chat
Post by: SA™ on June 24, 2011, 04:33:26 AM
yes and somtimes it reqires all the files and folder to be 755 not just the ones listed in the topic did you even try it?
Title: Re: SA Chat
Post by: Dark king on June 24, 2011, 04:51:27 AM
Quote from: SA™ on June 24, 2011, 04:33:26 AM
yes and somtimes it reqires all the files and folder to be 755 not just the ones listed in the topic did you even try it?

yes i tried it i wouldnt be asking for help if i didnt i usually like to handle thesse things on my own but im at a genuine loss at the moment
Title: Re: SA Chat
Post by: SA™ on June 24, 2011, 04:54:22 AM
ill take a quick look now  got work in a minuite

got a link to you site?
Title: Re: SA Chat
Post by: Dark king on June 24, 2011, 05:04:03 AM
www.mudascantrad.com

well i installed it on a testboard and it works fine there  and i only had to chmod the whole sa folder. Its a clean install so it should work but if thats the case i litterally just upgraded the forum to 2.0 i did the large upgrade (for site that had mods) currently i have simple portal, smf packs shoutbox, an extra menu button for an off forum link, advanced rep system, and activity bar. Im not sure wich one of these could be affecting it
Title: Re: SA Chat
Post by: SA™ on June 24, 2011, 05:10:45 AM
it is in your template so it is there

undo the chnages you made with the topic then use the chmod thing in admin it has to be a file permission issue if all else fail loginto ftp and chmod sachat dir and all the file and folders inside to 755

if these wasnt in your template wich they are
<script type="text/javascript" src="http://www.mudascantrad.com/sachat/index.php?action=head&amp;theme=default"></script>
<script type="text/javascript" src="http://www.mudascantrad.com/sachat/index.php?action=body&amp;theme=default"></script>
then were no it isnt a chmod problem but cos they are there it can only be a chmod issue wich is the most commen reason for the bar not to show
Title: Re: SA Chat
Post by: SA™ on June 24, 2011, 05:23:12 AM
did you have enotify installed befor cos i see that in your template aswell?
Title: Re: SA Chat
Post by: Dark king on June 24, 2011, 05:30:55 AM
yes i forgot about that i do have enotify first thing i installed back its a pretty popular mod and memberclor links (just installed that a second ago)

I chmoded the whole sa chat still nothing x.x it prob is a mod confilct ill try to uninstall them one by one and see if that helps
Title: Re: SA Chat
Post by: frx on June 24, 2011, 06:27:49 AM
How should i do the update?

Unistall the Beta 2-1 Rev39 ?
And install the Rev 41 ?

Thanks
Title: Re: SA Chat
Post by: cryptic3 on June 24, 2011, 06:55:04 AM
I had problems when upgrading to VPS to handle the extra load but the new version seems to have sorted most of the problems.

I can now see the bar after using CHMOD, thanks for that :)

However members in Opera and firefox can see the bar and members on line but when they press on a name nothing happens...

Works fine for them in other browsers as it does for me.

Any suggestions please?

Cheers.
Title: Re: SA Chat
Post by: SA™ on June 24, 2011, 02:37:55 PM
tested and works in ff not tested opera yet tho i have added some compatability for ie in this version so maybe it broken it someware ill check itout later
Title: Re: SA Chat
Post by: SA™ on June 24, 2011, 04:09:41 PM
can you try this attached file pls

tested with ff, safari, opera, chrome, ie

just upload it to sachat directory
Title: Re: SA Chat
Post by: cryptic3 on June 25, 2011, 03:28:38 PM
Quote from: SA™ on June 24, 2011, 04:09:41 PM
can you try this attached file pls

tested with ff, safari, opera, chrome, ie

just upload it to sachat directory

Replace the one thats there?

Sorry I am not the most advanced at making changes to files so want to make sure I do the right thing :)
Title: Re: SA Chat
Post by: SA™ on June 25, 2011, 03:33:37 PM
yea thats correct
Title: Re: SA Chat
Post by: cryptic3 on June 25, 2011, 03:34:56 PM
OK thanks seems to have work as I can now use it in my firefox, just waiting for other members to verify its ok in their browsers...

Thanks very much, we all love this chat option  ;) :D
Title: Re: SA Chat
Post by: SA™ on June 25, 2011, 03:38:44 PM
thanks can you let me know and ill update the package
Title: Re: SA Chat
Post by: cryptic3 on June 25, 2011, 03:42:53 PM
I just tried it myself on Opera and it was fine...thanks again.
Title: Re: SA Chat
Post by: PLAYBOY on June 26, 2011, 11:13:51 AM
Questions before install...

Can i do group chat?
Can i edit membergroup permissions for access and write?
will there be any copyright on the bar or anywhere on my screen?
Title: Re: SA Chat
Post by: ukhalik2 on June 26, 2011, 07:23:18 PM
I CHOMED the files, but members still can't see the chat bar.. any help?
permissions are also correctly set from Admin>permissions.
Title: Re: SA Chat
Post by: Jessica. on June 27, 2011, 01:54:51 PM
Chat bar not appearing. installed with no errors :/
Title: Re: SA Chat
Post by: frx on June 27, 2011, 03:11:44 PM
Quote from: Jessica. on June 27, 2011, 01:54:51 PM
Chat bar not appearing. installed with no errors :/

see this: http://www.sa-mods.info/index.php?topic=1017.0

:)
Title: Re: SA Chat
Post by: Jessica. on June 27, 2011, 03:42:27 PM
ah it works now! thank you
Title: Re: SA Chat
Post by: sunilimon on June 28, 2011, 07:47:16 AM
I would like to track a "bug". When I install SA Chat, the chat looks great, but my nivoslider banner disapears, it's a block of simple portal. I think thats a conflict between jquery call. Do you know any sollution about this bug? thank you very much!
Title: Re: SA Chat
Post by: Jessica. on June 28, 2011, 10:05:16 AM
I think this might be another bug. I was chatting with someone yesterday and two times it happened, I tried to enter something and instead it came out as "undefined". then I was unable to enter anything else until a few minutes later. then it happened again
Title: Re: SA Chat
Post by: SA™ on June 29, 2011, 04:02:28 PM
@sunilimon
whats the code for you banner?


@Jessica.
thnks for your report this bug i noticed the other day
Title: Re: SA Chat
Post by: PLAYBOY on June 29, 2011, 05:51:22 PM
Quote from: PLAYBOY on June 26, 2011, 11:13:51 AM
Questions before install...

Can i do group chat?
Can i edit membergroup permissions for access and write?
will there be any copyright on the bar or anywhere on my screen?

Can anybody answer my questions?
Title: Re: SA Chat
Post by: SA™ on June 29, 2011, 07:28:44 PM
1 no
2 yes
3 yes
Title: Re: SA Chat
Post by: sunilimon on June 30, 2011, 03:17:57 AM
Hei! I use the code of nivoslider, you can find it here: http://nivo.dev7studios.com/#usage

Thank you very much!
Title: Re: SA Chat
Post by: SA™ on June 30, 2011, 03:27:40 AM
can you post the cod you are using in the block?
Title: Re: SA Chat
Post by: sunilimon on June 30, 2011, 03:45:04 AM
I send you by PM, thanks!

Edit: Please tell me when you receive it!, thank you very much!
Title: Re: SA Chat
Post by: bruce86 on July 03, 2011, 02:01:11 PM
SA chat problem with the package, you do not see, it releases (in the case of distillation) SAChatHooks.php the file. The package has display problems.
Theme default..;)
Title: Re: SA Chat
Post by: SA™ on July 03, 2011, 02:02:11 PM
what?
Title: Re: SA Chat
Post by: bruce86 on July 03, 2011, 02:25:33 PM
Does not display the chat, I just drop the file mentioned in the case of distillation.
Title: Re: SA Chat
Post by: SA™ on July 03, 2011, 02:34:52 PM
see this:
http://www.sa-mods.info/index.php?topic=1017.0
Title: Re: SA Chat
Post by: bruce86 on July 03, 2011, 03:03:04 PM
Thank you very much..;)
Title: Re: SA Chat
Post by: studiowi33 on July 04, 2011, 03:48:10 PM
What's up with the javascript:void() on the windows?

BTW, taking the google translate bar off the chatbar finally got the messages to send & receive. Up until then, no-one could send or receive any IMs.

But aside from my little bit of difficulty, GREAT MOD!
Title: Re: SA Chat
Post by: bruce86 on July 05, 2011, 05:20:12 AM
Chat wonderful! And 'possible to minimize the chat? Thanks (as facebook )..:)
Title: Re: SA Chat
Post by: studiowi33 on July 11, 2011, 09:39:27 AM
It works fine in Firefox, but for some IE users, the IM's never send or receive.

Any insight is appreciated.
Title: Re: SA Chat
Post by: PS4DEV on July 19, 2011, 03:28:38 PM
hello, i´ve a question:
Is it possible to add a own url for displaying this chat ??
I only want to have the chat on this url-> smfsocialnetwork:   www.domain.net/forum/index.php?action=smfsocialnetwork;sa=home

Can someone help me ?
Title: Re: SA Chat
Post by: SA™ on July 19, 2011, 05:55:43 PM
check in sachat admin

Actions to Show Bar on (separated by comma)
Title: Re: SA Chat
Post by: PS4DEV on July 19, 2011, 06:43:35 PM
yep thanks a lot, my mistake ^^
Title: Re: SA Chat
Post by: tuantt on July 21, 2011, 05:04:48 AM
Dear Sir or Madam:

I've installed SAChat and it worked fine. However, when I check my index.php by View Source, the to script for sachat 'head' and 'body' seems not to be at "correct place". (the head script below my forum menu and the body script is not at the end of my body tag).

I looked in sachathook.php and it seem be differed from what I've read this thread (there is no $buffer, just a simple echo' <script...)

Though SAchat still work but this above may lead to a problem of javascript on my page (a yellow critical indecate that javascript get an error but not relate to SAChat, I believe).

I would like to know how to place the script at the "correct place" (to check if there still is an js error). Please give me some information.

Thank in advance.

Tuan Tran
Title: Re: SA Chat
Post by: SA™ on July 21, 2011, 02:10:05 PM
if it is working the script is in the right place :)
Title: Re: SA Chat
Post by: tuantt on July 22, 2011, 11:09:28 AM
Oh, I am not sure about that. Please have a look

<div class="navigate_section">
<ul>
<li class="last">
<a href="http://www.bizad.tk/diendan/index.php"><span>My forum name</span></a>
</li>
</ul>
</div><script type="text/javascript" src="http://www.bizad.tk/diendan/sachat/index.php?action=head&amp;theme=default"></script>
<div class="title_barIC">

the script for 'head' is not in the head section.
Anh here, the script for 'body'

oCookieOptions: {

bUseCookie: false,

sCookieName: 'upshrinkIC'

}

});

// ]]></script><script type="text/javascript" src="http://www.bizad.tk/diendan/sachat/index.php?action=body&amp;theme=default"></script>
<div class="bottom_quicklinks clear">...

the script is not only at the end of body section but also be "commented".
Title: Re: SA Chat
Post by: SA™ on July 22, 2011, 01:03:53 PM
Quote from: SA™ on July 21, 2011, 02:10:05 PM
if it is working the script is in the right place :)

it is in the right place
it uses subtemplates to show the bar so no edits are made
Title: Re: SA Chat
Post by: LC on July 23, 2011, 11:11:49 PM
Got this error on install.

Fatal error: Call to undefined function twosichatAdmin() in /Sources/Admin.php on line 560

Seems that the mod wasn't installed properly, even though the package manager did not report any errors. My error log did however say some files were not writable, but it was the file that comes with the mod, not any edits made to the other few files.

Did I goof somewhere? Should I do a manual install?


2.0 Final with a Custom theme, with some other mods.


Resolved, had to go back in my FTP and manually delete files. Seems I had extra copies.
Title: Re: SA Chat
Post by: tuantt on July 26, 2011, 04:16:23 AM
Quote from: SA™ on July 22, 2011, 01:03:53 PM
it is in the right place
it uses subtemplates to show the bar so no edits are made

Ok, thank for your supporting information
Title: Re: SA Chat
Post by: dj_king on July 26, 2011, 05:44:56 AM
A very good chat! Thank you!
Title: Re: SA Chat
Post by: Hege on July 27, 2011, 01:48:38 PM
hello. i've got a problem with this chat. i installed it without any problem, i did that thing in index.template. now, i can see the bar. BUT. when i'm logged in, it says " Welcome Guest, please login or register. " what should i have to do? please help.!!

check it.
www (dot) nlrp (dot) net ( it's hungarian, but the problem is the same.
Title: Re: SA Chat
Post by: SA™ on July 27, 2011, 03:02:14 PM
try this?

admin/server settings/cookies and sessions

disable
Use subdomain independent cookies
Title: Re: SA Chat
Post by: Hege on July 27, 2011, 03:19:35 PM
it did not work. it's already disabled... :/
Title: Re: SA Chat
Post by: mxcape21 on July 27, 2011, 05:01:53 PM
I get this error http://techraffle.com/forum area=2sichat;sa=gadget;xxxxxxx=xxx .....
Unable to load the '2sichat' template <--- should i still have a "2si chat" template?
I think I have a bad install of SA chat, should I still have 2si chat files after installing?

SMF 2.0 RC5 --  http://techraffle.com/forum/index.php
Title: Re: SA Chat
Post by: Hege on July 27, 2011, 06:41:31 PM
hm... it works in internet explorer ( with many bugs ), and in chrome/firefox dont work. any ideas? :/
Title: Re: SA Chat
Post by: mxcape21 on July 27, 2011, 06:45:53 PM
Ok I removed hooks.php manually and that seems to have fixed it, thanks for a great mod  :D
Title: Re: SA Chat
Post by: Rawn on July 28, 2011, 04:40:45 PM
Hi, I *love* this mod. My users are HUGE fans of it. Easily one of the best additions to my website. I have one question, though, and I;ve dug around everywhere to try and figure out how, but is there a way I can disable the mod for specific themes?

I have a mobile theme for my forums and the bar shows up on it and doesnt work too well on mobile devices.
Title: Re: SA Chat
Post by: divecall on July 30, 2011, 06:59:19 PM
I have the "Ajax Recent Topics"-Mod installed.

Is there any way to create a widget for the SA-Chat-bar, to show the recent topics in realtime (with ajax support)?

Thank you in advance...
Title: Re: SA Chat
Post by: AcidFMHQ on August 02, 2011, 04:43:16 AM
Getting a error after deleting a gadget saying

Fatal error: Cannot redeclare chat_window_template() (previously declared in themes/default/template.php:10) in /themes/dark/template.php on line 59

it pops up and can't be closed please help

Also getting this error with the default SA chat theme

Fatal error: Wrong value type sent to the database. Integer expected. (gid)(index.php-244) in /Sources/Subs-Db-mysql.php on line 684
Title: Re: SA Chat
Post by: studiowi33 on August 04, 2011, 01:48:49 PM
The chat bar covers up the RSS link at the bottom of my index page. And when I create a post, it also covers the last line of my typing.

Are there any easy solutions to these small inconveniences? I LUV the chat mod.

As always, any insight is appreciated.

-s.w
Title: Re: SA Chat
Post by: nend on August 16, 2011, 11:32:57 AM
Quote from: AcidFMHQ on August 02, 2011, 04:43:16 AM
Getting a error after deleting a gadget saying

Fatal error: Cannot redeclare chat_window_template() (previously declared in themes/default/template.php:10) in /themes/dark/template.php on line 59

it pops up and can't be closed please help

Also getting this error with the default SA chat theme

Fatal error: Wrong value type sent to the database. Integer expected. (gid)(index.php-244) in /Sources/Subs-Db-mysql.php on line 684
You may have to delete your cookies for the site in your browser. The cookies are telling the chat to try to load the gadget that you deleted.
Title: Re: SA Chat
Post by: braddasexy on August 21, 2011, 01:18:41 AM
I installed this and it installed beautifully and work on all the themes except the one I need it to work on.  I have helios installed and I have tried everything to make it show up.  If I switch to one of the other themes it shows up fine and works fine.

Any ideas on this?  I would very much appreciate the help!

Thanks.
Title: Re: SA Chat
Post by: SA™ on August 22, 2011, 02:31:20 AM
sachathooks.php

if ($layer == 'body')
replace with
if ($layer == 'body' || $layer == 'main')
Title: Re: SA Chat
Post by: mulch on August 26, 2011, 08:22:57 PM
hey, thanks for a great mod. i really like this bar but i followed the instructions at http://www.simplemachines.org/community/index.php?topic=293441.0 #1 and moved my avatars from the attachments folder to the avs folder and now, avatars are missing from the chat bar (and box)

Is there a way with my new setup to get the avatars back. It looked much nicer than a X?

Thank you in advance for your help
Title: Re: SA Chat
Post by: dayveboy on August 29, 2011, 12:47:42 PM
I have installed the chat and it is showing in my admin panel but nothing else shows anywhere on the site. on the themes tab, all settings a white with no options, could this be the issue?
i have uninstalled and reisntalled with same outcome.
all files in the sachat folder are chmod 777
any help would be great!

I read through this entire post be cant work out what i have done wrong or need to do, to make this work

thanks

Dave
Title: Re: SA Chat
Post by: SA™ on August 29, 2011, 01:46:15 PM
Quote from: mulch on August 26, 2011, 08:22:57 PM
hey, thanks for a great mod. i really like this bar but i followed the instructions at http://www.simplemachines.org/community/index.php?topic=293441.0 #1 and moved my avatars from the attachments folder to the avs folder and now, avatars are missing from the chat bar (and box)

Is there a way with my new setup to get the avatars back. It looked much nicer than a X?

Thank you in advance for your help

id have to install the mod to try this out tho it should work like that ill try to take a look somtime this week for you

Quote from: dayveboy on August 29, 2011, 12:47:42 PM
I have installed the chat and it is showing in my admin panel but nothing else shows anywhere on the site. on the themes tab, all settings a white with no options, could this be the issue?
i have uninstalled and reisntalled with same outcome.
all files in the sachat folder are chmod 777
any help would be great!

I read through this entire post be cant work out what i have done wrong or need to do, to make this work

thanks

Dave

can you take a screen dump for me pls i dont fully uderstand what you mean
Title: Re: SA Chat
Post by: dayveboy on August 29, 2011, 01:56:13 PM
Sorry I uninstalled it, in case it caused problems when i was not there.
I have found a few things that i tried to recify.

1. the themes folder inside the sachat folder was a blank file, i uploaded the themes folder.
2. the cache folder was a blank file, i uploaded the cache folder.

this happened both times i tried to install.

once installed, the themes tab of the sachat admin options, had no options. the drop down was empty.

when i tried the chmod option, blank screen.

I will install again and send a dump asap

thanks

Dave
Title: Re: SA Chat
Post by: dayveboy on August 29, 2011, 02:17:12 PM
I just installed ti again and its working, appart from there is nobody in the userlist.. I will go through the steps you have already expleined and let you know..sorry to have wasted your time.. third time lucky it seems
thanks

Dave
Title: Re: SA Chat
Post by: dayveboy on August 29, 2011, 02:29:14 PM
working flawlessly!

Thanks
Title: Re: SA Chat
Post by: mulch on August 29, 2011, 03:22:38 PM
Quote from: SA™ on August 29, 2011, 01:46:15 PM
id have to install the mod to try this out tho it should work like that ill try to take a look somtime this week for you

thank you, that would be much appreciated, love the mods but its ugly with no avatars

one thing to note, the default SMF avatar shows before people upload their own, and then has an X. you may want install your mod, make a few users, give them custom avatars, then do step 1 of the 24 things, then fix the broken avatars of the users

at that point you should see the problem

thanks again, i appreciate any help you can give me and the very cool and functional mod
Title: Re: SA Chat
Post by: studiowi33 on September 05, 2011, 07:51:56 PM
Hey all! I was looking thru my host account CP, and I found my Error Log completely filled up with:

[Mon Sep 05 18:23:14 2011] [error] [client 12.345.678.90] File does not exist: /home/theozcc1/public_html/sachat/themes/defualt, referer: http://************.cz.cc/index.php
[Mon Sep 05 18:23:05 2011] [error] [client 12.345.678.90] File does not exist: /home/theozcc1/public_html/404.shtml, referer: http://**********.cz.cc/index.php


On line 38 of the sachat/index.php file a misspelling of "default" occurs.

-s.w
Title: Re: SA Chat
Post by: hcfwesker on September 05, 2011, 11:40:11 PM
some members are complaining of an empty box on their screen, and cant get it to remove.

Title: Re: SA Chat
Post by: SA™ on September 06, 2011, 01:22:44 PM
the ghost boxes is a known issue but im unsure what causes this yet  you can try clearing you brouser cookies?
Title: Re: SA Chat
Post by: Dblog on September 06, 2011, 01:51:02 PM
i installed this on 2.0 and forum hung !
pages became dead slow and chat bar was not loading at all

can this be rectified or instead of bar, can there be popup chat window
Title: Re: SA Chat
Post by: hcfwesker on September 06, 2011, 03:59:26 PM
Quote from: SA™ on September 06, 2011, 01:22:44 PM
the ghost boxes is a known issue but im unsure what causes this yet  you can try clearing you brouser cookies?

Yeah, that worked.   Thanx

What would be really great, was when you minimize a chat box, it goes down in the SA chat bar next to "who's online", so you know exactly who all you been chatting with, and can reopen at anytime by clicking it.
Title: Re: SA Chat
Post by: PS4DEV on September 06, 2011, 05:03:59 PM
SA , can you tell me where the javascript code is located , that can move the main chat window ?
I want to make the main chat window static :)

Edit: found it
Title: Re: SA Chat
Post by: nend on September 08, 2011, 12:10:48 AM
It has to do something with garbage in the chat cookie. I am thinking it may be related to deleted members but since I haven't been keeping up with the project since I handed it over the code might of changed so I can be wrong.
Title: Re: SA Chat
Post by: SA™ on September 08, 2011, 10:39:02 AM
Quote from: hcfwesker on September 06, 2011, 03:59:26 PM
Quote from: SA™ on September 06, 2011, 01:22:44 PM
the ghost boxes is a known issue but im unsure what causes this yet  you can try clearing you brouser cookies?

Yeah, that worked.   Thanx

What would be really great, was when you minimize a chat box, it goes down in the SA chat bar next to "who's online", so you know exactly who all you been chatting with, and can reopen at anytime by clicking it.

yeah this is somthing i wanted to add to the mod
Title: Re: SA Chat
Post by: hcfwesker on September 08, 2011, 11:34:04 PM
Quote from: SA™ on September 08, 2011, 10:39:02 AMyeah this is somthing i wanted to add to the mod

This is my temp work around to that, but problem is, when i get a new message chime, I have to pull each one up to see which one i got a new message in lol




Also, I went through the index.php , and found out where to list online members alphabetically in ascending order, but some members were wondering if chat messages could be reversed, instead of being at the top, conversation works downwards in the box.

And, would be really, really, nice, if members could deactivate/activate this from their profile options.   but i think I read somewhere that wasn't possible, atm.



Title: Re: SA Chat
Post by: capncraka on September 10, 2011, 05:08:41 PM
Installed and it's working great! However, when you have a chat window open and you move it around the page it highlights all the text on the page AND the chat window likes to dip behind the main menu bar at the top. I tried messing with the z-index a little but that didn't seem to work. Any help would be appreciated!

Title: Re: SA Chat
Post by: hcfwesker on September 10, 2011, 05:48:33 PM
Quote from: capncraka on September 10, 2011, 05:08:41 PM
Installed and it's working great! However, when you have a chat window open and you move it around the page it highlights all the text on the page AND the chat window likes to dip behind the main menu bar at the top. I tried messing with the z-index a little but that didn't seem to work. Any help would be appreciated!

A work around I found to the entire page highlighting is, just put your cursor on the postbit box of the IM box you're moving, then hold and drag while your cursor is in the postbit box.  won't highlight anything again.   this is a good tip to let your members know as well.
Title: Re: SA Chat
Post by: SA™ on September 10, 2011, 06:54:04 PM
QuoteAnd, would be really, really, nice, if members could deactivate/activate this from their profile options.   but i think I read somewhere that wasn't possible, atm.

it is actualy possible with a couple of edits

profile.template.php

Code (find) Select
if (empty($modSettings['disableCustomPerPage']))

Code (add before) Select
echo '
<li>
<input type="hidden" name="default_options[show_cbar]" value="0" />
<label for="show_cbar"><input type="checkbox" name="default_options[show_cbar]" id="show_cbar" value="1"', !empty($context['member']['options']['show_cbar']) ? ' checked="checked"' : '', ' class="input_check" /> Disable Chat Bar</label>
</li>';


sources/sachathooks.php

uncomment
if(empty($options['show_cbar']))

it is there twice
Title: Re: SA Chat
Post by: hcfwesker on September 10, 2011, 09:27:08 PM
Sweet, it works.  Only thing is other members wont know who has theirs deactivated.  Maybe should had a code that shows them as offline in the messenger online list.  :)

I'm going to donate to this mod on your site once i get some funds.  Very stellar work and upkeeping of this MOD, SA.
Title: Re: SA Chat
Post by: Sci-Fi_Fan on September 12, 2011, 02:13:26 PM
If you're taking suggestions for this mod, it would be awesome to be able to either minimize or manually resize a chat window, just for those with a small monitor. Also, if the chat bar itself could work on top of the forum so it doesn't refresh and have to load up with every page click, that would be another welcome improvement.

Otherwise this is an awesome mod. Keep up the excellent work!
Title: Re: SA Chat
Post by: SA™ on September 15, 2011, 01:24:07 PM
thanks hcfwesker

@Sci-Fi_Fan this is planned for the futer
Title: Re: SA Chat
Post by: studiowi33 on September 19, 2011, 02:36:27 PM
Hi all--
Can anyone help with this? I just got a PM from one of my members that describes his inability to use SA Chat:

QuoteHmmm--what I'm seeing at the bottom is a link and list called USERS Online, not Who's Online--and it doesn't bring a pop-up list up when I click on it, just a list of the online users with options to either send them a regular message or a yahoo IM to the right of the name. I tried it in Safari and Firefox with pop-up blocker off. At least this will cut down on my opportunities to bother you. :)

Any help is much appreciated.

-s.w

EDIT: I'm using 2.0 final.
Title: Re: SA Chat
Post by: JustinG20 on September 25, 2011, 01:44:28 AM
Hey I am having a problem getting this to work, if anyone could help I'd appreciate it big time. I have smf 2.0.1 and tinyportal. I install this and afterward i don't see it anywhere on the site. I used package manager to install it, no errors at all, will do a manual install in the meantime. Thanks in advance for any help, and if someone has tinyportal running and this I'd know its definitely on my end.
Title: Re: SA Chat
Post by: SA™ on September 25, 2011, 07:29:14 PM
see if this helps

SA Chat Installation Trouble Shooter (http://www.sa-smf.com/community/index.php?action=kb;area=article;cont=29)
Title: Re: SA Chat
Post by: mulch on September 25, 2011, 07:31:56 PM
fyi, that is a privileged board, i can't see it

any luck with the avatar thing?
Title: Re: SA Chat
Post by: SA™ on September 25, 2011, 07:52:11 PM
opps sorry i had permission disabled for guest

no not yet im having issue getting it to work on my local server since i reformated my hdd
Title: Re: SA Chat
Post by: vikingsraven on September 28, 2011, 04:26:47 PM
Hi brillaint mod, well done.
Is there anyway it could be made to do mulitiple chats, rather than opening several im boxes you could have mulitple peopl in the one. We need a way of chatting so all the forum members can see it.
any ideas?
Title: Re: SA Chat
Post by: krash661 on September 29, 2011, 12:41:34 PM
    I was able to install it without any problems but when I click who's online to try to start a chat the box this blank.  Any ideas why?

"The who's online section is made to be a buddy list of buddies online. I can see how this can cause some confusion.

My beta tester has ported it out by editing the query in function genBudList in 2sichat/index.php to show who's online. I may in future revisions make it optional in the control panel."

and i don't understand how to fix it. i even checked the option to show members online box in the control panel.i need a detailed walk through to fix this.can you help? im using SMF 2.0.1 and im using the template:insidious (2.0)
im frustrated,please help,thanks
Title: Re: SA Chat
Post by: danthe on October 03, 2011, 02:14:17 PM
great mod,but can I somehow add public channel(something like shoutbox,everyone can see what is written) as addition to this mod?
Title: Re: SA Chat
Post by: tweaka on October 18, 2011, 10:42:23 PM
Quote from: krash661 on September 29, 2011, 12:41:34 PM
    I was able to install it without any problems but when I click who's online to try to start a chat the box this blank.  Any ideas why?

"The who's online section is made to be a buddy list of buddies online. I can see how this can cause some confusion.

My beta tester has ported it out by editing the query in function genBudList in 2sichat/index.php to show who's online. I may in future revisions make it optional in the control panel."

and i don't understand how to fix it. i even checked the option to show members online box in the control panel.i need a detailed walk through to fix this.can you help? im using SMF 2.0.1 and im using the template:insidious (2.0)
im frustrated,please help,thanks


ditto ! very frustrating..
I have a shoutbox, that also doesnt seem to help with the whole Who's Online thing...
If there is such a shout/chat box for 2.0.1 I'd love to give a donation for it...

As for this SAChat, I get mixed and most times inaccurate results from the Who's Online... mostly though it is blank.
Title: Re: SA Chat
Post by: beanflying on November 07, 2011, 12:12:42 AM
Quote from: Sci-Fi_Fan on September 12, 2011, 02:13:26 PM
If you're taking suggestions for this mod, it would be awesome to be able to either minimize or manually resize a chat window, just for those with a small monitor. Also, if the chat bar itself could work on top of the forum so it doesn't refresh and have to load up with every page click, that would be another welcome improvement.

Otherwise this is an awesome mod. Keep up the excellent work!

While I know this is from several weeks ago I have changed the CSS for SA chat to do this sort of thing on my sub 1000px theme. Set width to whatever you like and it should centre on the page. Tweak left or right with padding to suit.

Find at the top of the CSS
#chat_containter{
background: url(./images/cbar.png) repeat-x;
padding-left: 10px;
padding-top: 2px;
width: 100%;
height: 25px;
position: fixed;
bottom: 0px;
left: 0px;
zIndex: 10000;


Replace with
#chat_containter{
    background: url("./images/cbar.png") repeat-x scroll 0 0 transparent;
    bottom: 0;
    height: 25px;
    left: 50%;
    margin: 0 0 0 -497px;
    padding-left: 10px;
    padding-top: 2px;
    position: fixed;
    width: 985px;
z-Index: 10000;


Hope this helps someone else out there.

Also I second the option to allow hidden members to be hidden on chat as standard  :)
The other option or code to do it would be the Google +1 functionality and or G+ posting.

Understanding this is in your "spare time"  ;)
Title: Re: SA Chat
Post by: SA™ on November 07, 2011, 10:29:36 PM
QuoteAlso I second the option to allow hidden members to be hidden on chat as standard
i swear it doesnt show hidden members already?

QuoteThe other option or code to do it would be the Google +1 functionality and or G+ posting.

whats g posting?
Title: Re: SA Chat
Post by: beanflying on November 07, 2011, 10:46:42 PM
Quote from: SA™ on November 07, 2011, 10:29:36 PM
QuoteAlso I second the option to allow hidden members to be hidden on chat as standard
i swear it doesnt show hidden members already?

Mmm possible I have some permission issues then. Hidden members could be seen be regular members and moderators and chatted to but Admins couldn't see or chat to them? Just a strange quirk to resolve. Possibly a database issue as we used to allow hidden members on 1.15 but have stopped them from being hidden on 2.0.1 currently. But it sounds like my problem  :o

Quotewhats g posting?
Like the facebook, twitter links the bar currently has available write the code for a button to do the same for google+ social media platform. I currently have a mod installed that will do the same thing and it appears in the first post of each thread but I would like to remove it and just keep your bar with the same functionality. The mod I mentioned http://custom.simplemachines.org/mods/index.php?mod=3053 (http://custom.simplemachines.org/mods/index.php?mod=3053)
Title: Re: SA Chat
Post by: SA™ on November 07, 2011, 10:57:10 PM
aha i see there some tricks here to add more social icons but no g+ yet

http://www.sa-smf.com/community/index.php?topic=1018.msg6034#msg6034

maybe this will help you to add g+ till i get an update out?
Title: Re: SA Chat
Post by: beanflying on November 08, 2011, 02:39:29 AM
thanks I look forward to it because my Java programming skills are terrible ;)
Title: Re: SA Chat
Post by: nend on November 08, 2011, 05:17:15 PM
Quote from: beanflying on November 07, 2011, 10:46:42 PM
Quote from: SA™ on November 07, 2011, 10:29:36 PM
QuoteAlso I second the option to allow hidden members to be hidden on chat as standard
i swear it doesnt show hidden members already?

Mmm possible I have some permission issues then. Hidden members could be seen be regular members and moderators and chatted to but Admins couldn't see or chat to them? Just a strange quirk to resolve. Possibly a database issue as we used to allow hidden members on 1.15 but have stopped them from being hidden on 2.0.1 currently. But it sounds like my problem  :o

Admins and Global Moderators can see everyone in the chat. Nobody can hide from them because it is hard coded in the chat. There is no permission available that will deny Admins and Global Mods.
Title: Re: SA Chat
Post by: beanflying on November 08, 2011, 08:46:08 PM
Told you it was strange It's a little off topic as your mod is doing it's thing properly ;) I could see and chat to hidden members with my global mod account but couldn't with my admin account to the same users. Regular members were able to chat to the hidden members too.

Since fixed. I have manually changed the regular members accounts to 'visible' who used to hide online status and re enabled the permission to do so in 2.0.1 (suspect it may have been an issue with permissions in 1.1.15 that were changed after the upgrade to 2.0.1 by me to prevent being hidden as a permission. The hidden members wer still showing up in italics in the who's online but the members could still see them.

All happy anyway  :)
Title: Re: SA Chat
Post by: SA™ on November 20, 2011, 12:43:46 AM
Rev 42 realsed

Quote
fixed sevaral errors acumalating in server error logs
fixed Elements in chat were centered and hard to read with body text-align center [thanks nend]
fixed issue with bar not showimg on some servers
fixed issue with uploaded avatars that use a custom avatar dir
Title: Re: SA Chat
Post by: transientangler on December 07, 2011, 03:00:29 PM
Hello there. I was asked to remove the SA chat mod from my shared hosting plan. Apparently its against the rules to have it on there and they are saying my website is taking up to much server resources. So I went to try and uninstall it and I get an error code. I attached the screen shot and my site is http://canadiankayakanglers.com (http://canadiankayakanglers.com) and my package list includes the list below. Can you help me to correctly uninstall this without messing the site up? Or tell me what step I should make to remove this? Thanks so much for your help. Also I am using SMF 2.0 RC5
1.    Google Analytics Code    1.4    
2.    SMF Store    1.4beta2    
3.    TinyPortal    1.102    
4.    Tagging System    2.4.2    
5.    SMF Gallery Lite    3.1b    
6.    Google +1    1.0
7.    SA Chat    Beta 1 Rev37    
8.    Google Member Map    2.0.7    
9.    Aeva Media    1.4a    
10.    Ad Seller Pro    1.0.8    
11.    MetaTags Modification    1.5    
12.    CKA Map    1.0
13.    Pretty URLs    
14.    Show your social networks
Title: Re: SA Chat
Post by: SA™ on December 07, 2011, 04:57:28 PM
there only language strings so you can safely uninstall the mod with this error
Title: Re: SA Chat
Post by: transientangler on December 07, 2011, 06:02:06 PM
sweet thanks for your help.
Title: Re: SA Chat
Post by: butchjax on December 13, 2011, 06:40:36 PM
I can't get this mod to install. I tried installed the Beta 4 but got an error (that I didn't notate, sorry). I'm using 1.15. Also, every link to the documentation is broken. I've tried the tips and tricks, finding the forum, just going to the actual website sa-smf.com. Turns out the site is suspended.

http://www.sa-smf.com/cgi-sys/suspendedpage.cgi

Anyone know what is going on?
Title: Re: SA Chat
Post by: SA™ on December 13, 2011, 07:56:05 PM
this mod is only for smf2.0, 2.0.1 will not work on 1.1.5
Title: Re: SA Chat
Post by: butchjax on December 13, 2011, 09:52:40 PM
Oh, oops. I got confused because there are instructions for everything. Thanks.
Title: Re: SA Chat
Post by: wolfetundra on December 15, 2011, 12:48:06 PM
How do you prevent SA Chat from ever purging messages? I don't want it to delete old messages.
Title: Re: SA Chat
Post by: SA™ on December 16, 2011, 12:27:28 AM
not deleting old messages is probaly a bad idea
Title: Re: SA Chat
Post by: wolfetundra on December 16, 2011, 01:18:19 AM
Can you explain why that is?

If I set it for 7 days, is it every 7 days all records are dumped? Or is it only records that are 7 days old are dumped?
Title: Re: SA Chat
Post by: SA™ on December 16, 2011, 01:31:04 AM
cos your database will get huge wich isnt too good

if it is set to 7 days all chat are deleted
Title: Re: SA Chat
Post by: wolfetundra on December 16, 2011, 01:50:55 AM
Is there a way to change the coding so only messages that are x days old are deleted rather than all messages after x days?
Title: Re: SA Chat
Post by: SA™ on December 16, 2011, 02:32:19 AM
actualy i think it may already do this
Title: Re: SA Chat
Post by: wolfetundra on December 16, 2011, 03:22:09 AM
Hmmm any way to verify? ... other than playing the 24 hour waiting game?
Title: Re: SA Chat
Post by: SA™ on December 16, 2011, 05:26:46 PM
hmm threre probaly is but i dont have no server up to test it properly at the moment
Title: Re: SA Chat
Post by: nend on December 21, 2011, 10:28:42 AM
After X amount of days anything read will be deleted. All unread messages are kept until they are read and then after X days of being read they are deleted.

There is a setting to control the amount of days.
QuotePurge read messages
Purge read messages after how many days?

You can set this to a high value, you have 365 days in a year. So how many days/months/years would you like to keep them. Your message index will get long and there is currently no archive function in the chat. Bad enough the chat, being a chat that is does waste quite a bit resources. With a bigger message index initial load on the message window will be quite big. That is just start up cost though, once it loads the chat only loads what is new, but you still have that initial load.

Basically it isn't impossible to do, but I highly advise setting the value up to high unless you know your chat system isn't being used heavily. I think over a month may be too high for most forum systems. You know your site better than I do, experiment a little and be sure to use your Load Checking in the chats control panel. Some settings in the chat have the potential to bring down your server and/or upset your host.  ;)
Title: Re: SA Chat
Post by: SA™ on December 21, 2011, 10:31:52 AM
ahh thanks for clearing this that up nend
Title: Re: SA Chat
Post by: Get Pumped Saltwater on January 01, 2012, 08:33:02 PM

Ok, I have used the Package Manager to upload this mod.. Everything uploaded fine. But.....

Every time I click:  Gadgets, Links, Theme, CHMOD

The screen goes nuts!

I have insert in the insert this in the head
<script type="text/javascript" src="http://www.your-site.com/path_to_forum/sachat/index.php?action=head"></script>

This in the body
<script type="text/javascript" src="http://www.your-site.com/path_to_forum/sachat/index.php?action=body"></script>

If I put this in the browser I get an error 404
http://ourwebsite/path_to_forum/sachat/index.php

I have changed the permissions on:
public_html/resources/2sichat/index.php 755
public_html/resources/2sichat/body.js.php 755
public_html/resources/2sichat/head.js.php 755
public_html/resources/2sichat/cache ****There is nothing in cache folder****
public_html/resources/2sichat/themes/default/index.php 755

I move these file to public_html/resources/
"sachat" to "the root directory".
"Sources" to "the root directory".
"Themes" to "the root directory".

Thanks for your time, Lance
Title: Re: SA Chat
Post by: Get Pumped Saltwater on January 01, 2012, 08:33:50 PM

Ok, I have used the Package Manager to upload this mod.. Everything uploaded fine. But.....

Every time I click:  Gadgets, Links, Theme, CHMOD

The screen goes nuts!

I have insert in the insert this in the head
<script type="text/javascript" src="http://www.your-site.com/path_to_forum/sachat/index.php?action=head"></script>

This in the body
<script type="text/javascript" src="http://www.your-site.com/path_to_forum/sachat/index.php?action=body"></script>

If I put this in the browser I get an error 404
http://ourwebsite/path_to_forum/sachat/index.php

I have changed the permissions on:
public_html/resources/2sichat/index.php 755
public_html/resources/2sichat/body.js.php 755
public_html/resources/2sichat/head.js.php 755
public_html/resources/2sichat/cache ****There is nothing in cache folder****
public_html/resources/2sichat/themes/default/index.php 755

I move these file to public_html/resources/
"sachat" to "the root directory".
"Sources" to "the root directory".
"Themes" to "the root directory".

Thanks for your time, Lance
Title: Re: SA Chat
Post by: Get Pumped Saltwater on January 01, 2012, 08:43:57 PM
BTW, we are running a custom theme too

I Messed up... Its an Internal Server Error error 500
If I put this in the browser I get an error 404
http://ourwebsite/path_to_forum/sachat/index.php
Title: Re: SA Chat
Post by: hcfwesker on January 01, 2012, 09:08:19 PM
Quote from: Get Pumped Saltwater on January 01, 2012, 08:33:50 PMI have insert in the insert this in the head
<script type="text/javascript" src="http://www.your-site.com/path_to_forum/sachat/index.php?action=head"></script>

This in the body
<script type="text/javascript" src="http://www.your-site.com/path_to_forum/sachat/index.php?action=body"></script>

did you add these edits to the custom theme's index.template.php file as well?

also, "www.your-site.com/path_to_forum"  has to be edited in both lines with YOUR forum url

Example, mine would be 
<script type="text/javascript" src="http://www.brawldomain.com/sachat/index.php?action=body"></script>

Quotehttp://ourwebsite/path_to_forum/sachat/index.php

are you changing "ourwebsite/path_to_forum/"  in the url to YOUR site url and path to the forum?

Title: Re: SA Chat
Post by: Get Pumped Saltwater on January 01, 2012, 09:17:51 PM
This is what I have in public_html/resources/Themes/2011/index.template.php

   <script type="text/javascript" src="http://www.http://getpumpedsaltwater.com/resources/2sichat/index.php?action=head"></script>
</head>
<body><script type="text/javascript" src="http://www.http://getpumpedsaltwater.com/resources/2sichat/index.php?action=body"></script>';
}


yes I tried
http://www.getpumpedsaltwater.com/resources/2sachat/index.php

But, Then I also tried this just to see what happens...
Got a few errors..
http://www.getpumpedsaltwater.com/resources/sachat/index.php
Title: Re: SA Chat
Post by: Get Pumped Saltwater on January 02, 2012, 09:34:03 AM
I This is what I have under SA Chat Admin

Is there anything I need to change?

I still cannot click the Gadgets, Links, Theme, CHMOD without the screen to show a massive amount if this text..

'.$txt['2sichat_ord'].' '.$txt['2sichat_title'].' '.$txt['2sichat_vis'].' Type '; foreach ($context['gadgets'] as $row) { echo' '.$row['ord'].' '.$row['title'].'
'.($row['vis'] == 0 ? $txt['2sichat_vis0'] : '').' '.($row['vis'] == 1 ? $txt['2sichat_vis1'] : '').' '.($row['vis'] == 2 ? $txt['2sichat_vis2'] : '').' '.($row['vis'] == 3 ? $txt['2sichat_vis3'] : '').' '.($row['type'] == 0 ? 'PHP' : '').' '.($row['type'] == 1 ? 'HTML' : '').' '.($row['type'] == 2 ? 'BBC' : '').' '; } echo' '; } function template_twosichatchmod(){ global $txt,$scripturl; if(isset($_GET['done'])){echo'
'.$txt['2sichatchmod3'].'
';} echo' '; echo'
'.$txt['2sichatchmod'].'
'.$txt['2sichatchmod2'].'
'; } function template_twosichatLinks(){ global $context, $txt, $scripturl; echo ' '; foreach ($context['gadgets'] as $row) { echo' '; } echo'
'.$txt['2sichat_ord'].'    '.$txt['2sichat_title'].'    '.$txt['2sichat_vis'].'
'.$row['ord'].'    '.$row['title'].'
   '.($row['vis'] == 0 ? $txt['2sichat_vis0'] : '').' '.($row['vis'] == 1 ? $txt['2sichat_vis1'] : '').' '.($row['vis'] == 2 ? $txt['2sichat_vis2'] : '').' '.($row['vis'] == 3 ? $txt['2sichat_vis3'] : '').'
'; } function template_twosichatLinkAdd(){ global $context, $scripturl, $txt; echo '
'.$txt['2sichat_linkyyy'].'    
'.$txt['2sichat_title'].'    
'.$txt['2sichat_laddu'].'    
'.$txt['2sichat_laddiu'].'    
'.$txt['2sichat_vis'].'    
'.$txt['2sichat_ord'].'    
'.(isset($context['gadget']['id']) ? '':'').'
'; } function template_twosichatGadAdd(){ global $context, $scripturl, $txt; echo '
'.$txt['2sichat_title'].'    
'.$txt['2sichat_url'].'    '.(isset($context['gadget']['url']) ? $context['gadget']['url']:'').'
'.$txt['2sichat_width'].'    
'.$txt['2sichat_height'].'    
'.$txt['2sichat_vis'].'    
Type    
'.$txt['2sichat_ord'].'    
'.(isset($context['gadget']['id']) ? '':'').'
'; } function template_twosichatThemes(){ global $context, $txt, $settings, $modSettings, $scripturl, $dirArray, $indexCount; echo'
'.$txt['2sichat_theme14'].'
'; if(isset($_GET['rdone'])) { echo'
Succesfully removed '.$_GET['rdone'].' theme
'; } if(isset($_GET['done'])) { echo'
'.$txt['2sichat_theme4'].' '.$modSettings['2sichat_theme'].'
'; } if(isset($_GET['udone'])) { echo'
'.$txt['2sichat_theme5'].' '.$_GET['udone'].'
'; } echo'
'; echo''; echo'
'.$txt['2sichat_theme6'].'
'; echo' '.$txt['2sichat_theme15'].'
'.$txt['2sichat_theme7'].'

'.$txt['2sichat_theme8'].' '; // loop through the array of files and echo all for($index=0; $index < $indexCount; $index++) { if (substr($dirArray[$index], 0, 1) != '.' && $dirArray[$index] != "index.php"){ // don't list hidden files echo' '; } } echo'

'; echo'
'; echo'
'; echo'
'; echo'
'.$txt['2sichat_theme9'].'
'.$txt['2sichat_theme10'].'

'.$txt['2sichat_theme11'].'

'.$txt['2sichat_theme12'].' zip


'; echo'
'; echo'
'; echo'
'.$txt['2sichat_theme16'].'
'.$txt['2sichat_theme17'].'

'.$txt['2sichat_theme18'].'

'; echo'
'; echo'
'.$txt['2sichat_theme23'].'
'.$txt['2sichat_theme24'].'

'.$txt['2sichat_theme25'].'
'; if(!empty($dirArray)){ for($index=0; $index < $indexCount; $index++) { if (substr($dirArray[$index], 0, 1) != '.' && $dirArray[$index] != "index.php" && $dirArray[$index] != 'default' ){ // don't list hidden files echo' '.$dirArray[$index].' '.$txt['2sichat_theme27'].'
'; } } } echo'

Title: Re: SA Chat
Post by: Get Pumped Saltwater on January 02, 2012, 11:43:04 AM
Quote from: SA™ on July 21, 2010, 10:36:59 PM

Translations needed
sachat/themes/default/languages/english.php
$txt['home'] = 'Home';
$txt['msgs'] = 'Messages';
$txt['myspace'] = 'MySpace';
$txt['twitter'] = 'Tweet';
$txt['facebook'] = 'Facebook';
$txt['whos_on'] = 'Who's Online';
$txt['guest_msg'] = 'Welcome, Guest. Please <a class="white" href="'.$boardurl.'/index.php?action=login">login</a> or <a class="white" href="'.$boardurl.'/index.php?action=register">register.</a>';
$txt['load_warning'] = 'The chat is not availible due to high server load.';


/Themes/default/language/
$txt['2sichat_mn_heart'] = 'Main heartbeat';
$txt['2sichat_mn_heart_sub'] = 'In ms<br />Example: 30000 = 30 seconds<br />Note: Setting too low may cause database load problems.<hr />';
$txt['2sichat_cw_h_enable'] = 'Enable chat window heartbeat';
$txt['2sichat_cw_h_e_sub'] = 'Have a seperate heartbeat for each chat window';
$txt['2sichat_cw_heart'] = 'Chat window heartbeat';
$txt['2sichat_cw_heart_sub'] = 'In ms<br />Example: 15000 = 15 seconds<br />Note: Setting too low may cause database load problems.<hr />';
$txt['2sichat_purge'] = 'Purge read messages';
$txt['2sichat_purge_sub'] = 'Purge read messages after how many days?<hr />';
$txt['2sichat_purge_all'] = 'Purge all messages';
$txt['2sichat_purge_a_sub'] = '<span style="color:red">Warning! this will delete all chat messages.<br />This will also reset the auto increment.</span><hr />';
$txt['2sichat_gad_trans'] = 'Enable Page Translator';
$txt['2sichat_gad_lang'] = 'Language Code';
$txt['2sichat_gad_lang_sub'] = 'The Page language translator needs a language code to work.<br />This should be your websites default language.<hr />';
$txt['2sichat_ico_home'] = 'Enable Home Icon';
$txt['2sichat_ico_pm'] = 'Enable PM Icon';
$txt['2sichat_ico_myspace'] = 'Enable Myspace Icon';
$txt['2sichat_ico_twit'] = 'Enable Twitter Icon';
$txt['2sichat_ico_fb'] = 'Enable Facebook Icon<hr />';
$txt['2sichat'] = 'SA Chat';
$txt['twosichatConfig'] = 'Config';
$txt['twosichatGadget'] = 'Gadgets';
$txt['2sichat_admin'] = 'SA Chat Admin';
$txt['2sichat_config'] = 'SA Chat Config';
$txt['2sichat_config_des'] = 'Here you can edit the main settings for SA Chat';
$txt['2sichat_gadgets'] = 'SA Chat Gadgets';
$txt['2sichat_gadgets_des'] = 'Add custom gadgets to SA Chat';
$txt['2sichat_gad_add'] = 'Add Gadget';
$txt['2sichat_title'] = 'Title';
$txt['2sichat_url'] = 'URL/Gadget Code';
$txt['2sichat_width'] = 'Width';
$txt['2sichat_height'] = 'Height';
$txt['2sichat_vis'] = 'Visibility';
$txt['2sichat_vis0'] = 'Hidden';
$txt['2sichat_vis1'] = 'Members';
$txt['2sichat_vis2'] = 'Guest';
$txt['2sichat_vis3'] = 'All';
$txt['2sichat_ord'] = 'Order';
$txt['2sichat_preview'] = 'Preview';
$txt['2sichat_edit'] = 'Edit';
$txt['2sichat_delete'] = 'Delete';
$txt['2sichat_link'] = 'Link';
$txt['2sichat_list_type'] = 'Show Everyone Online';
$txt['2sichat_list_t_sub'] = 'Shows everyone online instead of buddies only.<hr />';
$txt['2sichat_dis_list'] = 'Disable chat list';
$txt['2sichat_dis_l_sub'] = 'Removes the Who\'s Online list.<hr />';
$txt['2sichat_disable'] = 'Disable SA Chat';
$txt['2sichat_disable_sub'] = 'Disable SA Chat and all features.<hr />';
$txt['2sichat_dis_bar'] = 'Disable Bar';
$txt['2sichat_dis_b_sub'] = 'Disable chat bar leaving features.<hr />';
$txt['2sichat_load_chk'] = 'Enable load checking';
$txt['2sichat_max_load'] = 'Highest load level';
$txt['2sichat_max_l_sub'] = 'Goes by server load average';
$txt['2sichat_load_dis_list'] = 'On high load disable chat list';
$txt['2sichat_load_dis_chat'] = 'On high load disable SA Chat';
$txt['2sichat_load_dis_bar'] = 'On high load disable bar';
$txt['2sichat_live_online'] = 'Update Online List Live';
$txt['2sichat_simple_bbc'] = 'Enable Simple BBC<hr />';
$txt['2sichat_permissions'] = 'Enable group permissions';
$txt['2sichat_permissions_sub'] = 'Enable group permissions that you can modify in the permission manager in SMF.<br />Note: The settings here overide permission settings.<hr />';


I do not have a /Themes/default/language/ file
Title: Re: SA Chat
Post by: nend on January 02, 2012, 03:43:26 PM
Quote from: Get Pumped Saltwater on January 01, 2012, 09:17:51 PM
This is what I have in public_html/resources/Themes/2011/index.template.php

   <script type="text/javascript" src="http://www.http://getpumpedsaltwater.com/resources/2sichat/index.php?action=head"></script>
</head>
<body><script type="text/javascript" src="http://www.http://getpumpedsaltwater.com/resources/2sichat/index.php?action=body"></script>';
}


yes I tried
http://www.getpumpedsaltwater.com/resources/2sachat/index.php

But, Then I also tried this just to see what happens...
Got a few errors..
http://www.getpumpedsaltwater.com/resources/sachat/index.php
You must of found a old tutorial, that is the old embed codes when I was running the project. The embed code has changed to reflect the new name of the chat. Also the new version uses hooks so there shouldn't be no need for those embed codes unless you plan to embed on another page that is outside of the Simple Machines Forum system.

New code
<script type="text/javascript" src="http://www.your-site.com/path_to_forum/sachat/index.php?action=head"></script>

I notice when I go to your site you have the old code, maybe inserted by 2-SI Chat which is the older version of SA Chat, are you running a older version or had a older version installed before? If you have 2-SI Chat installed uninstall SA Chat, uninstall 2-SI Chat and then reinstall SA Chat.

But from looking at your site it seems like the sachat folder was not created or something because I get a 404. You may have to unzip the package and upload the sachat folder to your forum root folder and chmod.

In any means it would probably be better to remove the chat systems first and start with a fresh install because it seems you have remnants of the two chat systems. The two systems can not work together because they are basically the same code base with the same commands. ;)

Here is the download link...
http://custom.simplemachines.org/mods/index.php?mod=2534
Title: Re: SA Chat
Post by: SA™ on January 02, 2012, 04:16:31 PM
Quote from: Get Pumped Saltwater on January 02, 2012, 11:43:04 AM
Quote from: SA™ on July 21, 2010, 10:36:59 PM

Translations needed
sachat/themes/default/languages/english.php
$txt['home'] = 'Home';
$txt['msgs'] = 'Messages';
$txt['myspace'] = 'MySpace';
$txt['twitter'] = 'Tweet';
$txt['facebook'] = 'Facebook';
$txt['whos_on'] = 'Who's Online';
$txt['guest_msg'] = 'Welcome, Guest. Please <a class="white" href="'.$boardurl.'/index.php?action=login">login</a> or <a class="white" href="'.$boardurl.'/index.php?action=register">register.</a>';
$txt['load_warning'] = 'The chat is not availible due to high server load.';


/Themes/default/language/
$txt['2sichat_mn_heart'] = 'Main heartbeat';
$txt['2sichat_mn_heart_sub'] = 'In ms<br />Example: 30000 = 30 seconds<br />Note: Setting too low may cause database load problems.<hr />';
$txt['2sichat_cw_h_enable'] = 'Enable chat window heartbeat';
$txt['2sichat_cw_h_e_sub'] = 'Have a seperate heartbeat for each chat window';
$txt['2sichat_cw_heart'] = 'Chat window heartbeat';
$txt['2sichat_cw_heart_sub'] = 'In ms<br />Example: 15000 = 15 seconds<br />Note: Setting too low may cause database load problems.<hr />';
$txt['2sichat_purge'] = 'Purge read messages';
$txt['2sichat_purge_sub'] = 'Purge read messages after how many days?<hr />';
$txt['2sichat_purge_all'] = 'Purge all messages';
$txt['2sichat_purge_a_sub'] = '<span style="color:red">Warning! this will delete all chat messages.<br />This will also reset the auto increment.</span><hr />';
$txt['2sichat_gad_trans'] = 'Enable Page Translator';
$txt['2sichat_gad_lang'] = 'Language Code';
$txt['2sichat_gad_lang_sub'] = 'The Page language translator needs a language code to work.<br />This should be your websites default language.<hr />';
$txt['2sichat_ico_home'] = 'Enable Home Icon';
$txt['2sichat_ico_pm'] = 'Enable PM Icon';
$txt['2sichat_ico_myspace'] = 'Enable Myspace Icon';
$txt['2sichat_ico_twit'] = 'Enable Twitter Icon';
$txt['2sichat_ico_fb'] = 'Enable Facebook Icon<hr />';
$txt['2sichat'] = 'SA Chat';
$txt['twosichatConfig'] = 'Config';
$txt['twosichatGadget'] = 'Gadgets';
$txt['2sichat_admin'] = 'SA Chat Admin';
$txt['2sichat_config'] = 'SA Chat Config';
$txt['2sichat_config_des'] = 'Here you can edit the main settings for SA Chat';
$txt['2sichat_gadgets'] = 'SA Chat Gadgets';
$txt['2sichat_gadgets_des'] = 'Add custom gadgets to SA Chat';
$txt['2sichat_gad_add'] = 'Add Gadget';
$txt['2sichat_title'] = 'Title';
$txt['2sichat_url'] = 'URL/Gadget Code';
$txt['2sichat_width'] = 'Width';
$txt['2sichat_height'] = 'Height';
$txt['2sichat_vis'] = 'Visibility';
$txt['2sichat_vis0'] = 'Hidden';
$txt['2sichat_vis1'] = 'Members';
$txt['2sichat_vis2'] = 'Guest';
$txt['2sichat_vis3'] = 'All';
$txt['2sichat_ord'] = 'Order';
$txt['2sichat_preview'] = 'Preview';
$txt['2sichat_edit'] = 'Edit';
$txt['2sichat_delete'] = 'Delete';
$txt['2sichat_link'] = 'Link';
$txt['2sichat_list_type'] = 'Show Everyone Online';
$txt['2sichat_list_t_sub'] = 'Shows everyone online instead of buddies only.<hr />';
$txt['2sichat_dis_list'] = 'Disable chat list';
$txt['2sichat_dis_l_sub'] = 'Removes the Who\'s Online list.<hr />';
$txt['2sichat_disable'] = 'Disable SA Chat';
$txt['2sichat_disable_sub'] = 'Disable SA Chat and all features.<hr />';
$txt['2sichat_dis_bar'] = 'Disable Bar';
$txt['2sichat_dis_b_sub'] = 'Disable chat bar leaving features.<hr />';
$txt['2sichat_load_chk'] = 'Enable load checking';
$txt['2sichat_max_load'] = 'Highest load level';
$txt['2sichat_max_l_sub'] = 'Goes by server load average';
$txt['2sichat_load_dis_list'] = 'On high load disable chat list';
$txt['2sichat_load_dis_chat'] = 'On high load disable SA Chat';
$txt['2sichat_load_dis_bar'] = 'On high load disable bar';
$txt['2sichat_live_online'] = 'Update Online List Live';
$txt['2sichat_simple_bbc'] = 'Enable Simple BBC<hr />';
$txt['2sichat_permissions'] = 'Enable group permissions';
$txt['2sichat_permissions_sub'] = 'Enable group permissions that you can modify in the permission manager in SMF.<br />Note: The settings here overide permission settings.<hr />';


I do not have a /Themes/default/language/2sichat.english.php

the file now is
/Themes/default/language/2sichat.english.php

Title: Re: SA Chat
Post by: Get Pumped Saltwater on January 02, 2012, 04:18:11 PM
Should I use the Package Manager or do it manual for the re-install?
Title: Re: SA Chat
Post by: SA™ on January 02, 2012, 04:18:59 PM
best to use the package manager
Title: Re: SA Chat
Post by: Get Pumped Saltwater on January 02, 2012, 04:20:59 PM
Quote from: SA™ on January 02, 2012, 04:18:59 PM
best to use the package manager

Ok.. we will see what happens..  :-[
Title: Re: SA Chat
Post by: nuri552 on January 02, 2012, 08:22:04 PM
I've installed this modification. One word : Perfect !

But sometimes; when I click on someone in the "Who's online ?" list, the popup doesn't appear. Some kind of a bug ?

Thanks, much appreciated.
  :)
Title: Re: SA Chat
Post by: SA™ on January 03, 2012, 12:43:44 AM
i have notice this one myself in ie tho mainly
Title: Re: SA Chat
Post by: nuri552 on January 03, 2012, 04:20:57 AM
Sir, I've noticed; I see this problem in Google Chrome v16, Mozilla Firefox v8 and Safari v5. In IE v8, toolbar works perfect.

Maybe, this will be a compatibility problem.
Title: Re: SA Chat
Post by: SA™ on January 03, 2012, 04:35:49 AM
yeah maybe i had it working on all brousers cept ie but i musta been dreaming ar e somthing cos it doesnt work any more  :(
Title: Re: SA Chat
Post by: 1stAngel on January 08, 2012, 01:06:49 PM
Hello :)  Using Firefox and cannot see a thing :|   SMF 2.0.2
Title: Re: SA Chat
Post by: SA™ on January 09, 2012, 10:47:10 AM
see if this helps you

http://www.sa-smf.com/community/index.php?action=kb;area=article;cont=29
Title: Re: SA Chat
Post by: 1stAngel on January 10, 2012, 04:34:06 PM
Thank you :)
Title: Re: SA Chat
Post by: chadon on January 12, 2012, 12:09:55 PM
Quote from: SA™ on January 09, 2012, 10:47:10 AM
see if this helps you

http://www.sa-smf.com/community/index.php?action=kb;area=article;cont=29
This didn't help me for my forum but everything works fine with the mod because when I open an html file from my computer with the mod's javascript code the chat bar appears and when I place the same file on my server, it doesn't.

I was wondering if the mod needs server requirement to be functional. ???
Title: Re: SA Chat
Post by: eric1234 on January 12, 2012, 12:49:51 PM
got any guide on how to install it? I find out that those link in the 1st post seem to be unworking
Title: Re: SA Chat
Post by: Psico42 on January 13, 2012, 09:35:05 AM
i've installed this mod, the bar appears correctly and i can see who's online, but when i try to start a chat with someone it doesn't work, the chat windows appears, but i can't drag it and when i send messages nothing happens.

Any idea? :/
Title: Re: SA Chat
Post by: nend on January 13, 2012, 11:28:56 AM
Quote from: eric1234 on January 12, 2012, 12:49:51 PM
got any guide on how to install it? I find out that those link in the 1st post seem to be unworking
It was up yesterday morning, I wonder what gives.
Title: Re: SA Chat
Post by: HR on January 14, 2012, 06:48:09 AM
Well I installed this in 2.0.2 and it worked... then it didnt.. then it did.. chmod worked once but when you click on a chat the box opens and nothing updates you type and nothing shows up and the username in the chat looks greyed out like they are offline.

SEVERAL members love his thing but I cant mess with it until its viably solid :(

Interesting enough I use a Paypal donation link in my forum signature and with SA running it did not work. With SA removed it (the paypal link) does work. *shrugs*
Title: Re: SA Chat
Post by: eric1234 on January 14, 2012, 07:51:01 AM
Quote from: nend on January 13, 2012, 11:28:56 AM
Quote from: eric1234 on January 12, 2012, 12:49:51 PM
got any guide on how to install it? I find out that those link in the 1st post seem to be unworking
It was up yesterday morning, I wonder what gives.
Where is it? @.@ Because i clicked the link in the 1st page, it lead me to a weird site.
Title: Re: SA Chat
Post by: SA™ on January 14, 2012, 11:00:29 AM
Quote from: nend on January 13, 2012, 11:28:56 AM
Quote from: eric1234 on January 12, 2012, 12:49:51 PM
got any guide on how to install it? I find out that those link in the 1st post seem to be unworking
It was up yesterday morning, I wonder what gives.

samei ssue as before lack of money sry but id rather have electrick and food at the end of the day :/ it will be back monday
Title: Re: SA Chat
Post by: eric1234 on January 14, 2012, 03:24:45 PM
Quote from: SA™ on January 14, 2012, 11:00:29 AM
Quote from: nend on January 13, 2012, 11:28:56 AM
Quote from: eric1234 on January 12, 2012, 12:49:51 PM
got any guide on how to install it? I find out that those link in the 1st post seem to be unworking
It was up yesterday morning, I wonder what gives.

samei ssue as before lack of money sry but id rather have electrick and food at the end of the day :/ it will be back monday
haha, is ok. Thank you ! :)
Title: Re: SA Chat
Post by: nend on January 15, 2012, 01:50:37 AM
Quote from: SA™ on January 14, 2012, 11:00:29 AM
Quote from: nend on January 13, 2012, 11:28:56 AM
Quote from: eric1234 on January 12, 2012, 12:49:51 PM
got any guide on how to install it? I find out that those link in the 1st post seem to be unworking
It was up yesterday morning, I wonder what gives.

samei ssue as before lack of money sry but id rather have electrick and food at the end of the day :/ it will be back monday

Not enough off from ads and donations? SA, I think I need to share a few tricks that I use to generate money for my websites. It isn't really a secret but it is best that not much people know how much they can make off from doing this.  ;)
Title: Re: SA Chat
Post by: eric1234 on January 15, 2012, 08:59:15 AM
Quote from: nend on January 15, 2012, 01:50:37 AM
Quote from: SA™ on January 14, 2012, 11:00:29 AM
Quote from: nend on January 13, 2012, 11:28:56 AM
Quote from: eric1234 on January 12, 2012, 12:49:51 PM
got any guide on how to install it? I find out that those link in the 1st post seem to be unworking
It was up yesterday morning, I wonder what gives.

samei ssue as before lack of money sry but id rather have electrick and food at the end of the day :/ it will be back monday
please share it with me too. thank you very much ^^

Not enough off from ads and donations? SA, I think I need to share a few tricks that I use to generate money for my websites. It isn't really a secret but it is best that not much people know how much they can make off from doing this.  ;)
Title: Re: SA Chat
Post by: HR on January 15, 2012, 10:40:12 AM
I'd like that little piece of information nend :) Post it or drop a PM or make a nice tutorial please
Title: Re: SA Chat
Post by: SA™ on January 15, 2012, 12:35:19 PM
Quote from: nend on January 15, 2012, 01:50:37 AM
Quote from: SA™ on January 14, 2012, 11:00:29 AM
Quote from: nend on January 13, 2012, 11:28:56 AM
Quote from: eric1234 on January 12, 2012, 12:49:51 PM
got any guide on how to install it? I find out that those link in the 1st post seem to be unworking
It was up yesterday morning, I wonder what gives.

samei ssue as before lack of money sry but id rather have electrick and food at the end of the day :/ it will be back monday

Not enough off from ads and donations? SA, I think I need to share a few tricks that I use to generate money for my websites. It isn't really a secret but it is best that not much people know how much they can make off from doing this.  ;)

yeah ads aibnt erning nothing realy in the two years ive been doing it i have avaeraged at about 20 pound a year lol still need another 20 just so i cn reach the thresh hold lol and donation well i have had a few but they have mostly been silly money lol
Title: Re: SA Chat
Post by: nend on January 15, 2012, 01:02:05 PM
That is pretty low, if I had it that bad I would have pulled my sites a long time ago. When I started back up on the net after failing, I oath I must be at least breaking even.

Maybe this wasn't the place to talk about this. Sorry to anyone else, some stuff in this business must be acquired. It isn't that I don't want to tell but I don't need any more competition than what I already have. Plus it isn't as easy as I make it out to be, you must have a pretty decent coding knowledge in various languages.

@SA where is the best place to speak, if you get your site up I'll make a post in the staff boards about it. If not hit me via PM on one of my sites.
Title: Re: SA Chat
Post by: SA™ on January 15, 2012, 01:42:50 PM
indeed site will back up later tonight so we can chat in the staff boards ther eif you wanted
Title: Re: SA Chat
Post by: SA™ on January 15, 2012, 01:57:29 PM
site is now back up
Title: Re: SA Chat
Post by: eric1234 on January 16, 2012, 03:25:39 PM
Quote from: SA™ on January 15, 2012, 01:57:29 PM
site is now back up
SA Chat Installation Trouble Shooter
SA Chat tips & tricks

Still down
Title: Re: SA Chat
Post by: SA™ on January 16, 2012, 03:42:04 PM
http://www.sa-smf.com/community/index.php?action=kb;area=cats;cat=3
Title: Re: SA Chat
Post by: JonnyFB421 on January 23, 2012, 05:04:11 AM
Love the mod!  Easy to install, lots of room for customization! 

I seem to be generating a small number of 403s though. 
Error 403 - Forbidden (http://www.myForum.com/sachat/index.php?action=heart&_=1327310809835)

I used the built-in CHMOD feature that came in the mod.   
Title: Re: SA Chat
Post by: SA™ on January 23, 2012, 04:04:04 PM
yes i did notice these in my local server error logs today i dont think it is permmissions tho need todo more diggin realy somthing is wrong with the mod
Title: Re: SA Chat
Post by: Realinfo on January 27, 2012, 08:12:41 AM
When two persons try to chat........... Nothing goes to other one............ see blank page........... 2.0.2 Default Theme
Title: Re: SA Chat
Post by: SA™ on January 27, 2012, 02:14:10 PM
yes im working on these issue it just going to take longer than i intended
Title: Re: SA Chat
Post by: fungku on January 30, 2012, 01:38:59 AM
Quote from: Realinfo on January 27, 2012, 08:12:41 AM
When two persons try to chat........... Nothing goes to other one............ see blank page........... 2.0.2 Default Theme
Ditto.

Looks real nice. Installed without a hitch, but won't send messages.
Title: Re: SA Chat
Post by: SA™ on January 30, 2012, 02:33:25 PM
Quote from: SA™ on January 27, 2012, 02:14:10 PM
yes im working on these issue it just going to take longer than i intended

the thing is i get it working in one brouser then it breaks in another this is why it is taking so long to update the mod after trying things all weekend i had to change to one of my other projects for a change of code but will get back to it later on it one of them things you wanna get done lol cos it is realy buggin me :D
Title: Re: SA Chat
Post by: fungku on January 30, 2012, 05:08:00 PM
Quote from: SA™ on January 30, 2012, 02:33:25 PM
Quote from: SA™ on January 27, 2012, 02:14:10 PM
yes im working on these issue it just going to take longer than i intended

the thing is i get it working in one brouser then it breaks in another this is why it is taking so long to update the mod after trying things all weekend i had to change to one of my other projects for a change of code but will get back to it later on it one of them things you wanna get done lol cos it is realy buggin me :D

No worries.

Looking forward to seeing it working  ;)

I know how frustrating it can be when you fix one thing and it breaks another.
Title: Re: SA Chat
Post by: irayhan on February 01, 2012, 07:02:50 AM
I installed this mod. I really like this. But the problem is it makes my forum slow. I mean when it's disabled the pages load faster. But when i enable it the pages take more time to load. Can you please tell me how can i make it faster? Thanks in advance. :)
Title: Re: SA Chat
Post by: SA™ on February 01, 2012, 03:21:15 PM
it is a chat mod and will eat up resources there isnt realy much more i can do
you could try using the built in load checking feature
Title: Re: SA Chat
Post by: Realinfo on February 03, 2012, 07:44:56 AM
Quote from: SA™ on January 30, 2012, 02:33:25 PM
Quote from: SA™ on January 27, 2012, 02:14:10 PM
yes im working on these issue it just going to take longer than i intended

the thing is i get it working in one brouser then it breaks in another this is why it is taking so long to update the mod after trying things all weekend i had to change to one of my other projects for a change of code but will get back to it later on it one of them things you wanna get done lol cos it is realy buggin me :D

On which Brouser.......... it works........ please tell......... So I will recommend that to my members ( of my Forum)............... I really want this MOD.............. but not working........ as no message is going to others..............
Title: Re: SA Chat
Post by: SA™ on February 03, 2012, 05:36:33 PM
@everyone pls try attached  8)
Title: Re: SA Chat
Post by: Realinfo on February 03, 2012, 09:16:02 PM
Not solved by SA_Chat_Beta_4-1_Rev43.zip............. No message goes no any one.............
Title: Re: SA Chat
Post by: SA™ on February 04, 2012, 12:49:07 AM
brouser?
Title: Re: SA Chat
Post by: Realinfo on February 04, 2012, 05:00:09 AM
Quote from: SA™ on February 04, 2012, 12:49:07 AM
brouser?

I tried on all Browsers ( Like Chrome, IE, FireFox, Opera)............... But I saw someone's else forum........... there this MOD is working ok.............. Is there need of any server (website's Hosting) settings....................
Title: Re: SA Chat
Post by: SA™ on February 04, 2012, 02:06:23 PM
it should work in them brousers i just tested ie ff opera chrome try clearing you brouser cache
Title: Re: SA Chat
Post by: Realinfo on February 04, 2012, 09:35:52 PM
can it work on Linux Hoisting.......... Please someone see at my forum www.realinfo.info is it working for you or not...............
Title: Re: SA Chat
Post by: nend on February 05, 2012, 10:39:09 AM
Quote from: Realinfo on February 04, 2012, 09:35:52 PM
can it work on Linux Hoisting.......... Please someone see at my forum www.realinfo.info is it working for you or not...............
It looks to be working for me. Try to clear your cache, the chat saves stuff in a cookie and when that cookie doesn't match what is on the site then stuff can get a little missed up.

@SA, I notice the hook for the head tag is showing in the body section. I understand though, because there is currently no hook in the head section of a page and must use context['headers'] or something.
Title: Re: SA Chat
Post by: SA™ on February 05, 2012, 01:58:31 PM
Quote@SA, I notice the hook for the head tag is showing in the body section. I understand though, because there is currently no hook in the head section of a page and must use context['headers'] or something.

yep your right thanks nend

changed it to $context['html_headers'] = SAChat_showBar('head');
Title: Re: SA Chat
Post by: nend on February 05, 2012, 10:53:15 PM
Quote from: SA™ on February 05, 2012, 01:58:31 PM
Quote@SA, I notice the hook for the head tag is showing in the body section. I understand though, because there is currently no hook in the head section of a page and must use context['headers'] or something.

yep your right thanks nend

changed it to $context['html_headers'] = SAChat_showBar('head');
Should append it instead of overwrite it because there might be other stuff in there.

Never done it this way, but it should work.

$context['html_headers'].= SAChat_showBar('head');

OR

$context['html_headers'] = $context['html_headers'].SAChat_showBar('head');

Whatever way your comfortable with, ;)
Title: Re: SA Chat
Post by: SA™ on February 06, 2012, 02:35:31 PM
opps i always forget that :P i updated my last post ill wait a few more days then ill realse it properly
Title: Re: SA Chat
Post by: Heardy on February 07, 2012, 05:56:58 PM
Is there any way to keep it static instead of being able to move the chats and stuff?

I kinda like the Facebook chat where it just pops up at the bottom of the screen but this one you can move around and stuff.

Can you tell me how I could make the chat stay still?
Title: Re: SA Chat
Post by: SA™ on February 08, 2012, 07:17:24 AM
you can modify your cha theme css and template to achive this
Title: Re: SA Chat
Post by: SA™ on February 11, 2012, 02:51:38 AM
New version realsed


fixed issue with bar not showimg on some servers
fixed issue with urls not linking properly
moved js stuff before the head tags
Title: Re: SA Chat
Post by: chadon on February 11, 2012, 10:46:44 AM
I have some progress with this new version. The bar is now showing with Firefox but still not with IE and Chrome.

With Firefox, when I click on the username I want to chat with, nothing happens and all links placed under the location where the list of members was located before I minimize it are disabled. I have refresh the page in order to be able to click on a link in the forum and I only have a few seconds to do so before the links are automatically disabled again. ???

I applied all the tips you gave in your "Installation Trouble Shooter"  but nothing changed.
Title: Re: SA Chat
Post by: nend on February 11, 2012, 12:51:28 PM
@SA, I think it is strange how so many users are having so much trouble. However I am thinking that it may not be the mod since the mod works perfect on a fresh install of SMF. I am thinking there must be something installed on these sites that are conflicting with the chat.

@others, check to see if the chat works with load balancing turned off, check your chat permissions and use the CHMOD option in the chat control panel if all else fails.
Title: Re: SA Chat
Post by: SA™ on February 11, 2012, 01:44:46 PM
maybe take a peek in your server error logs it just may hold a clue?
Title: Re: SA Chat
Post by: chadon on February 11, 2012, 06:02:02 PM
I didn't find anything wrong in the server's error logs but I had no problem installing the mod in a different forum on the same server, both running with SMF 2.0.2 so it has to do with a conflict with a mod.

Here is the list of mods I have one the forum giving me troubles that are not installed in the forum where SA Chat is functional. If i am not the only one having problems we can find wich one is giving us troubles.

Topic Descriptions
Smush.it!
Simple .htaccess Cache Mod
nCode Image Resizer
Curve mobile mod
Treasury
Enhancements to purge inactive members
Single Category
Related Topics
Bookmarks
Member NotePad
Birthday Posts
SMF Arcade
BlogBridger
vBulletin Style Meta Tags
Off-Topic BBC Tag
Title: Re: SA Chat
Post by: Heardy on February 11, 2012, 06:55:23 PM
Quote from: SA™ on February 08, 2012, 07:17:24 AM
you can modify your cha theme css and template to achive this

How..?

Is there any chance of maybe implementing a minimize button too?
Title: Re: SA Chat
Post by: SA™ on February 11, 2012, 11:51:39 PM
in sachat/body.js.php

document.onmousedown=selectmouse;

replace with

//document.onmousedown=selectmouse;

that will disable the mouse moving it


QuoteIs there any chance of maybe implementing a minimize button too?

if i knew how i would but so far every attempts ive made at this has faild miserably
Title: Re: SA Chat
Post by: nend on February 12, 2012, 11:37:49 AM
Quote from: chadon on February 11, 2012, 06:02:02 PM
I didn't find anything wrong in the server's error logs but I had no problem installing the mod in a different forum on the same server, both running with SMF 2.0.2 so it has to do with a conflict with a mod.

Here is the list of mods I have one the forum giving me troubles that are not installed in the forum where SA Chat is functional. If i am not the only one having problems we can find wich one is giving us troubles.

Topic Descriptions
Smush.it!
Simple .htaccess Cache Mod
nCode Image Resizer
Curve mobile mod
Treasury
Enhancements to purge inactive members
Single Category
Related Topics
Bookmarks
Member NotePad
Birthday Posts
SMF Arcade
BlogBridger
vBulletin Style Meta Tags
Off-Topic BBC Tag

If I would have to take a educated guess I would say more than likely it is a mod that uses JavaScript. Here I will update your list and take out mods that i know are ok with the mod. Then we have to troubleshoot the rest.

Updated List

Topic Descriptions
Smush.it!
Simple .htaccess Cache Mod
nCode Image Resizer
Curve mobile mod
Treasury
Enhancements to purge inactive members
Single Category
Bookmarks
Member NotePad
Birthday Posts
BlogBridger
vBulletin Style Meta Tags
Off-Topic BBC Tag


I would take off more but I haven't tried any of these mods to see which one it would be. Maybe this will work, on the forum that the chat works install and uninstall each mod on the list until you find which one is causing the problems. After we know which one it is we can take steps into troubleshooting the conflict.

@SA, minimize implementation and bottom chat windows will have to be implemented at the JavaScript and Template levels. However a few new functions will have to be written into the JavaScript to achieve this. Along with this would have to include a cache system sort of like the one that tracks window positions and a template rewrite.

IMHO it will probably be easiest to start with a new template with its own JavaScript file. In index.php you can see if this file exist for the template and include it, if the file doesn't exist then load the default JavaScript. This would keep the compatibility for older themes in the system.

Like on this line
// If we are loading the main javascript lets get it ready based on the user
      if ($_REQUEST['action'] == 'body') {
require_once('body.js.php');
initLink();
initGadgets();
initchat();
initCleanup();
}


We can do something like this
// If we are loading the main javascript lets get it ready based on the user
      if ($_REQUEST['action'] == 'body') {
if (is_file($themedir.'body.js.php')) {require_once($themedir.'body.js.php');} else {require_once('body.js.php');}
initLink();
initGadgets();
initchat();
initCleanup();
}



There are other ways also to do this also. Since the theme is loaded first we can set a global in the theme with the location to it's custom JavaScript file. If it does not have one then the variable will be left blank to support older themes.

Basically I am requesting this as a feature request to support other JavaScript options. Once this or global varible or some similar system is implemented I will get started on the theme that works the traditional Facebook way that people are asking about. However this may take me some time, it is hard to get a chance to get on the computer and get to coding away.
Title: Re: SA Chat
Post by: SA™ on February 12, 2012, 01:30:17 PM
i woulda put it down to this mod but havent had time to test it yet

nCode Image Resizer

there is also a conflict with the fancybox mod for s,e reason this mod doesnt like the latest version of jquery

Quotenew template with its own JavaScript
i was considering this as the templates that come with the mod could be better i was actualy trying to do the minimise thing js side but couldent figar it out :P googling doesnt realy help me eaither unless tere is a decent example i can understand

Title: Re: SA Chat
Post by: chadon on February 12, 2012, 01:37:02 PM
Quote from: SA™ on February 12, 2012, 01:30:17 PM
i woulda put it down to this mod but havent had time to test it yet

nCode Image Resizer
I tried to uninstall this mod but it didn't change anything.

QuoteIf I would have to take a educated guess I would say more than likely it is a mod that uses JavaScript. Here I will update your list and take out mods that i know are ok with the mod. Then we have to troubleshoot the rest.
I will try to uninstall the other mods one by one later to see if it helps and I will let you know if I find the right one.

Thank you guys for your help.  :)
Title: Re: SA Chat
Post by: Heardy on February 12, 2012, 01:51:44 PM
Quote from: SA™ on February 11, 2012, 11:51:39 PM
in sachat/body.js.php

document.onmousedown=selectmouse;

replace with

//document.onmousedown=selectmouse;

that will disable the mouse moving it


QuoteIs there any chance of maybe implementing a minimize button too?

if i knew how i would but so far every attempts ive made at this has faild miserably

This stops it being moved but is there any way to get it like the Facebook chat so it just appears at the bottom then the next conversation appears next to it?
Title: Re: SA Chat
Post by: SA™ on February 12, 2012, 02:29:01 PM
you can ajust the poistion here in sachat/themes/yourtheme/style.css

.msg_win{
   width: 225px;
   height: 300px;
   position: fixed;
   left: 100px;
   top: 30px;
   text-align: left;
}
Title: Re: SA Chat
Post by: kohkikker on February 12, 2012, 10:50:45 PM
Are your help me?

How to config  POPUP automatic ?


Title: Re: SA Chat
Post by: SA™ on February 13, 2012, 04:30:45 PM
Quote from: kohkikker on February 12, 2012, 10:50:45 PM
Are your help me?

How to config  POPUP automatic ?




what
Title: Re: SA Chat
Post by: PS4DEV on February 18, 2012, 04:53:18 PM
Quote from: SA™ on February 13, 2012, 04:30:45 PM
Quote from: kohkikker on February 12, 2012, 10:50:45 PM
Are your help me?

How to config  POPUP automatic ?




what

Maybe he wants to have the chat list (#friends) opened all the time, so you don´t have to click on "Who´s Online" ? Could that be ?
Title: Re: SA Chat
Post by: PS4DEV on February 19, 2012, 08:30:14 AM
Sorry for double post, but i got a problem with your application, i cant write to anyone :/
i get these 2 problems:


$("#" + fobj.id).viewportOffset is not a function

var dpos = $('#'+fobj.id).viewportOffset();


and:


dobj is undefined

dobj.style.zIndex = zdex;


can you solve that for me please ?
Title: Re: SA Chat
Post by: SA™ on February 19, 2012, 01:31:51 PM
what other mods have you got installed that uses jquery?
Title: Re: SA Chat
Post by: PS4DEV on February 19, 2012, 05:04:39 PM
Well i installed these mods:
1.     ENotify
2.    FancyBox 4 SMF
3.     LGF MOD
4.     SA CHAT

I myself used also some jquery on the index.template.php
i have a mootools navigation menu and  jscroller( which is needed for LGF Mod)
Title: Re: SA Chat
Post by: SA™ on February 19, 2012, 05:21:42 PM
there is a issue with FancyBox 4 SMF

see if this this tip helps you
http://www.sa-smf.com/community/index.php?topic=1500.msg8989#msg8989
Title: Re: SA Chat
Post by: PS4DEV on February 19, 2012, 05:37:20 PM
Quote from: SA™ on February 19, 2012, 05:21:42 PM
there is a issue with FancyBox 4 SMF

see if this this tip helps you
http://www.sa-smf.com/community/index.php?topic=1500.msg8989#msg8989

well if i replace that, all other jquery on my site doesn´t work anymore :/
Title: Re: SA Chat
Post by: vinzbomb on February 21, 2012, 10:02:10 AM
Hi i use the SA chat bar, and works like a charm, til yesterday, it disappears
i cannot see it anymore, i did much mod installs last days, i've tried to uninstall and install again, doens't shows up !!!!
It installs, but cannot see it anymore !!!

Thnks for reply
Title: Re: SA Chat
Post by: vinzbomb on February 21, 2012, 11:05:48 AM
Btw i did a update to the last version yesterday !!! Since that it doesn't show up !!!!
Title: Re: SA Chat
Post by: vinzbomb on February 21, 2012, 04:45:30 PM
Quote from: SA™ on July 21, 2010, 10:36:59 PM
Link to Mod (http://custom.simplemachines.org/mods/index.php?mod=2534)




SA Chat Bar
MySpace/Facebook style chat bar for Simple Machines Forum.



If you like this mod please donate by clicking here. (https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=4ECXFSWZSM89U)



SA Chat bar software integrates with SMF and works with SMF without working within SMF. This is done by loading the SMF cookie from the browser and verifying it against data saved in the database. This way of working allows SA Chat to run inside and outside of SMF and throughout your website as long as the user is logged into SMF.

The integration codes can be put into any html code. One in the head and one in the body. The install script however installs the JavaScript codes by default in the default theme, but you can add these codes into whatever template you like SMF or not.

More information and troubleshooting.
Video Demostrations (http://www.youtube.com/user/sicommnend)
SA Chat Installation Trouble Shooter (http://www.sa-mods.info/index.php?topic=1017.0)
SA Chat tips & tricks (http://www.sa-mods.info/index.php?topic=1018.0)

License
You are allowed to use and modified SA Chat on your website, however you are not allowed to distribute SA Chat without permission. Any user who offers download of SA Chat without permission will have proper actions taken against them. This includes a take down notice to their host and maybe legal actions. Currently there are two places you may be able to get SA Chat the SMF Site(http://www.simplemachines.org) and the SA Mod Site(http://sa-mods.info). If you downloaded this file from any other source besides the sources mention please report the site you downloaded this mod at http://sa-mods.info.

As of revision 10 makes use of jQuery JavaScript Library v1.4.2 - http://jquery.com/, Copyright 2010, John Resig. Dual licensed under the MIT or GPL Version 2 licenses - http://jquery.org/license. Which also includes Sizzle.js - http://sizzlejs.com/, Copyright 2010, The Dojo Foundation. Released under the MIT, BSD, and GPL Licenses.

As of revision 16 makes use of jQuery viewportOffset v0.3 - http://benalman.com/projects/jquery-misc-plugins/, Copyright 2010 "Cowboy" Ben Alman. Dual licensed under the MIT and GPL licenses - http://benalman.com/about/license/.

As of revision 17 makes use of jQuery Translate plugin v1.3.2 - http://code.google.com/p/jquery-translate/, Copyright 2009 Balazs Endresz. Dual licensed under the MIT and GPL licenses.

SA Chat default theme images courtesy of BittBox - http://www.bittbox.com/category/freebies/

All other code is copyright 2011 SA Mods/sa-mods.info
Special Thanks
Nend (origanal developer)
Al Capwn (beta testing)

Translations needed
sachat/themes/default/languages/english.php
$txt['home'] = 'Home';
$txt['msgs'] = 'Messages';
$txt['myspace'] = 'MySpace';
$txt['twitter'] = 'Tweet';
$txt['facebook'] = 'Facebook';
$txt['whos_on'] = 'Who's Online';
$txt['guest_msg'] = 'Welcome, Guest. Please <a class="white" href="'.$boardurl.'/index.php?action=login">login</a> or <a class="white" href="'.$boardurl.'/index.php?action=register">register.</a>';
$txt['load_warning'] = 'The chat is not availible due to high server load.';


/Themes/default/language/
$txt['2sichat_mn_heart'] = 'Main heartbeat';
$txt['2sichat_mn_heart_sub'] = 'In ms<br />Example: 30000 = 30 seconds<br />Note: Setting too low may cause database load problems.<hr />';
$txt['2sichat_cw_h_enable'] = 'Enable chat window heartbeat';
$txt['2sichat_cw_h_e_sub'] = 'Have a seperate heartbeat for each chat window';
$txt['2sichat_cw_heart'] = 'Chat window heartbeat';
$txt['2sichat_cw_heart_sub'] = 'In ms<br />Example: 15000 = 15 seconds<br />Note: Setting too low may cause database load problems.<hr />';
$txt['2sichat_purge'] = 'Purge read messages';
$txt['2sichat_purge_sub'] = 'Purge read messages after how many days?<hr />';
$txt['2sichat_purge_all'] = 'Purge all messages';
$txt['2sichat_purge_a_sub'] = '<span style="color:red">Warning! this will delete all chat messages.<br />This will also reset the auto increment.</span><hr />';
$txt['2sichat_gad_trans'] = 'Enable Page Translator';
$txt['2sichat_gad_lang'] = 'Language Code';
$txt['2sichat_gad_lang_sub'] = 'The Page language translator needs a language code to work.<br />This should be your websites default language.<hr />';
$txt['2sichat_ico_home'] = 'Enable Home Icon';
$txt['2sichat_ico_pm'] = 'Enable PM Icon';
$txt['2sichat_ico_myspace'] = 'Enable Myspace Icon';
$txt['2sichat_ico_twit'] = 'Enable Twitter Icon';
$txt['2sichat_ico_fb'] = 'Enable Facebook Icon<hr />';
$txt['2sichat'] = 'SA Chat';
$txt['twosichatConfig'] = 'Config';
$txt['twosichatGadget'] = 'Gadgets';
$txt['2sichat_admin'] = 'SA Chat Admin';
$txt['2sichat_config'] = 'SA Chat Config';
$txt['2sichat_config_des'] = 'Here you can edit the main settings for SA Chat';
$txt['2sichat_gadgets'] = 'SA Chat Gadgets';
$txt['2sichat_gadgets_des'] = 'Add custom gadgets to SA Chat';
$txt['2sichat_gad_add'] = 'Add Gadget';
$txt['2sichat_title'] = 'Title';
$txt['2sichat_url'] = 'URL/Gadget Code';
$txt['2sichat_width'] = 'Width';
$txt['2sichat_height'] = 'Height';
$txt['2sichat_vis'] = 'Visibility';
$txt['2sichat_vis0'] = 'Hidden';
$txt['2sichat_vis1'] = 'Members';
$txt['2sichat_vis2'] = 'Guest';
$txt['2sichat_vis3'] = 'All';
$txt['2sichat_ord'] = 'Order';
$txt['2sichat_preview'] = 'Preview';
$txt['2sichat_edit'] = 'Edit';
$txt['2sichat_delete'] = 'Delete';
$txt['2sichat_link'] = 'Link';
$txt['2sichat_list_type'] = 'Show Everyone Online';
$txt['2sichat_list_t_sub'] = 'Shows everyone online instead of buddies only.<hr />';
$txt['2sichat_dis_list'] = 'Disable chat list';
$txt['2sichat_dis_l_sub'] = 'Removes the Who\'s Online list.<hr />';
$txt['2sichat_disable'] = 'Disable SA Chat';
$txt['2sichat_disable_sub'] = 'Disable SA Chat and all features.<hr />';
$txt['2sichat_dis_bar'] = 'Disable Bar';
$txt['2sichat_dis_b_sub'] = 'Disable chat bar leaving features.<hr />';
$txt['2sichat_load_chk'] = 'Enable load checking';
$txt['2sichat_max_load'] = 'Highest load level';
$txt['2sichat_max_l_sub'] = 'Goes by server load average';
$txt['2sichat_load_dis_list'] = 'On high load disable chat list';
$txt['2sichat_load_dis_chat'] = 'On high load disable SA Chat';
$txt['2sichat_load_dis_bar'] = 'On high load disable bar';
$txt['2sichat_live_online'] = 'Update Online List Live';
$txt['2sichat_simple_bbc'] = 'Enable Simple BBC<hr />';
$txt['2sichat_permissions'] = 'Enable group permissions';
$txt['2sichat_permissions_sub'] = 'Enable group permissions that you can modify in the permission manager in SMF.<br />Note: The settings here overide permission settings.<hr />';


hi,

this mod worked fine until i update the theme blackstorm & sa chat bar, that's latest modifications i've made.

It doesn't show up anymore, i did almost everything i could try in settings and by uninstall and reinstall,  CHKMOD stills the same

When i uninstall and réinstall the settings from SA CHAT were not removed !!!!!?


So i tried the install a new fresh forum to test the latest version of mods, and problem is the same, doesn't show up anymore

So that's not cool since i used SA CHAT on my international forum with translation api. now i'm loosing visitors since yesterday i doesn't work

THANKS FOR FUTURE HELP!!!
Title: Re: SA Chat
Post by: wedderweelde on February 22, 2012, 04:44:51 AM
First i want to say thank you for this mode
but i have one problem maybe it is noticed
install works fine chat also works fine
i use IE 9 and when I turn on the chat my scrolbar is not working
and when i turn it off scrolbar works fine
so when the chat is on I can only scroll down with my mouse
is there a fix for this ?
Title: Re: SA Chat
Post by: SA™ on February 22, 2012, 03:54:54 PM
not tested  this in ie9 yet as i dont have it installed on this pc not sure why it would affect the scroll bar realy i have to wait till next week when i get my pc back to do more testing
Title: Re: SA Chat
Post by: vinzbomb on February 23, 2012, 02:36:34 AM
Quote from: SA™ on February 22, 2012, 03:54:54 PM
not tested  this in ie9 yet as i dont have it installed on this pc not sure why it would affect the scroll bar realy i have to wait till next week when i get my pc back to do more testing

i can already say i doesn't work anymore on latest smf version with latest simpleportal, and with latest theme blackstorm, even with a new fresh install, doens't show up !!!!

Who is guilty ?!!  the portal, the theme, the forum version ?!!, I don't know, but is doens't work and show up anymore

thanks to help me somebody
Title: Re: SA Chat
Post by: wedderweelde on February 23, 2012, 02:58:48 AM
Quote from: vinzbomb on February 23, 2012, 02:36:34 AM
Quote from: SA™ on February 22, 2012, 03:54:54 PM
not tested  this in ie9 yet as i dont have it installed on this pc not sure why it would affect the scroll bar realy i have to wait till next week when i get my pc back to do more testing

i can already say i doesn't work anymore on latest smf version with latest simpleportal, and with latest theme blackstorm, even with a new fresh install, doens't show up !!!!

Who is guilty ?!!  the portal, the theme, the forum version ?!!, I don't know, but is doens't work and show up anymore

thanks to help me somebody

It works fine on smf 2.0.2
Title: Re: SA Chat
Post by: leeman on March 08, 2012, 04:00:00 PM
iE 9 issue- I have 2 users who claim the same thing: Their up/down scroll bar becomes non-functional with chat enabled...
Title: Re: SA Chat
Post by: Ascot on April 12, 2012, 01:44:20 PM
Hi there. Nice mod! i love it.
But some of my users are having an issue. They can't move chat window. Why might this be happening?
Title: Re: SA Chat
Post by: SA™ on April 12, 2012, 02:19:40 PM
what brouser ie?
Title: Re: SA Chat
Post by: leyon533 on April 13, 2012, 10:16:54 AM
Can I install any IRC Chat while this mod is installed?
Title: Re: SA Chat
Post by: Ascot on April 13, 2012, 10:21:27 AM
they've test on chrome and firefox with same results.
It's weird, because it works in my pc, but in others don't.
Title: Re: SA Chat
Post by: hukrtrend on April 17, 2012, 06:56:42 PM
hi i just installed this mod, it wont work for me. i am running smf 2.0.2 and using the custom blackday theme

help ?
Title: Re: SA Chat
Post by: hukrtrend on April 17, 2012, 06:58:30 PM
or maybe it is woring just fine and cant find out where to start the chat

help ?
Title: Re: SA Chat
Post by: Ascot on April 17, 2012, 08:03:40 PM
You have a new menu in your Admin panel called SA Chat .
Make sure to use chmod option to chmod all your files.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I guess moving issue it's cause you may install some plugin. But wich one?
Title: Re: SA Chat
Post by: hukrtrend on April 17, 2012, 08:10:35 PM
Quote from: Ascot on April 17, 2012, 08:03:40 PM
You have a new menu in your Admin panel called SA Chat .
Make sure to use chmod option to chmod all your files.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

I guess moving issue it's cause you may install some plugin. But wich one?

i love you... thank you it worked for me..  i am in debt to you
Title: Re: SA Chat
Post by: hukrtrend on April 18, 2012, 11:43:30 PM
question about sa chat. some of my clan members are saying they cant see the blue bar. do i need to adjust a setting. i told them to enable pop ups , still not working.
Title: Re: SA Chat
Post by: hukrtrend on April 19, 2012, 02:37:23 PM
alright so if i start a chat with one of my members they can see the message window but they cant start a chat with anyone else, they dont see a blue bar, at the bottom of web browser like i can. ive already set the permission to there groups so they can see it. still nothign .  help anyone ?
Title: Re: SA Chat
Post by: drroot on May 08, 2012, 04:23:14 PM
This is a very cool mod.
But there is some compatibility issue.

Quote from: leeman on March 08, 2012, 04:00:00 PM
iE 9 issue- I have 2 users who claim the same thing: Their up/down scroll bar becomes non-functional with chat enabled...

Yes, same story here.
The scroll bar freezes in IE9.
It is worse in IE8, the BoardIndex page and login page could not be fully loaded. Users even could not login.
When loading the forum, I got
"HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)"

After I disabled SA chat bar, everything is back to normal.
Title: Re: SA Chat
Post by: drroot on May 17, 2012, 06:06:25 AM
IETester is a free tool to test the IE compatibility.
http://www.my-debugbar.com/wiki/IETester/HomePage


Quote from: drroot on May 08, 2012, 04:23:14 PM
This is a very cool mod.
But there is some compatibility issue.

Quote from: leeman on March 08, 2012, 04:00:00 PM
iE 9 issue- I have 2 users who claim the same thing: Their up/down scroll bar becomes non-functional with chat enabled...

Yes, same story here.
The scroll bar freezes in IE9.
It is worse in IE8, the BoardIndex page and login page could not be fully loaded. Users even could not login.
When loading the forum, I got
"HTML Parsing Error: Unable to modify the parent container element before the child element is closed (KB927917)"

After I disabled SA chat bar, everything is back to normal.
Title: Re: SA Chat
Post by: PS4DEV on May 25, 2012, 03:30:02 PM
the chatbox displays the text content DESC , but i want to display it ASC , in the index.php i changed it already to ASC but in the body.js.php there i still have to change the ajax function to display a new written chat text at the bottom and not at the top(default), how do i do that ?
Title: Re: SA Chat
Post by: David111567 on May 28, 2012, 08:33:33 PM
After several years of flawless service....this mod displayed the following error when my members tried to talk to each other this morning:

Fatal error: Wrong value type sent to the database. Integer expected. (gid)(index.php-244) in G:\myfakepath\htdocs\myfakepath\Sources\Subs-Db-mysql.php on line 684

This started immediately after I tried to create an HTML gadget...something I have done dozens of times with this mod over the past several years.  ANy help would be appreciated. I have tried everything, including uninstalling the mod, deleting the sql tables and starting over with the same mod...and the error keeps popping up in windows next to the chat windows of my members.
Title: Re: SA Chat
Post by: Realinfo on August 20, 2012, 08:59:42 PM
I want to put SA Chat on just one particular page like this

http://realinfo.tv/index.php?action=chat

How to do that?
Title: Re: SA Chat
Post by: beanflying on August 21, 2012, 12:07:51 AM
Down the very bottom of the SAChat config menu. Enter into the box your choices of page/pages. Mine is set to everywhere because I like it that way ;)

Actions to Show Bar on (separated by comma)
to show on board index use: board_index
to show on message index use: message_index
to show on topic veiw use: topic_index
to show on all pages use: everywhere
default actions below:
post,board_index,message_index,topic_index,help,search,profile,mlist,pm,moderate,admin
Title: Re: SA Chat
Post by: Realinfo on August 21, 2012, 09:06:19 AM
Can we put bar in Block of simple Portal?
if yes
how?
Title: Re: SA Chat
Post by: beanflying on August 21, 2012, 11:15:58 PM
Quote from: Realinfo on August 21, 2012, 09:06:19 AM
Can we put bar in Block of simple Portal?
if yes
how?

If you go back through the thread I am fairly certain there was good instructions and the code needed to run the bar off the forum itself.

Found it Remember Search is your friend ;) (http://www.simplemachines.org/community/index.php?topic=391961.msg3021125#msg3021125)
Title: Re: SA Chat
Post by: beanflying on August 21, 2012, 11:18:48 PM
My turn for a question or request for a mod. More and more of my users are using Tablets for browsing and chatting but as the chat pop ups get in the way of the forum they have asked about a method to enable them to move the chat windows around.

so incorporate ongesturetap or alternatively onclick? on the header to enable dragging of these?
Title: Re: SA Chat
Post by: Realinfo on August 22, 2012, 07:31:17 AM
Quote from: SA™ on April 18, 2011, 12:13:39 PM
you can try this

in sources/sachathooks.php

find
$buffer = str_replace('</head>', '<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=head"></script>
</head>', $buffer);

$buffer = str_replace('<body>', '<body>
<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=body"></script>', $buffer);


replace with
if(!isset($_GET['action'])){
$buffer = str_replace('</head>', '<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=head"></script>
</head>', $buffer);

$buffer = str_replace('<body>', '<body>
<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=body"></script>', $buffer);
}



why i don't get this lines in my file
Title: Re: SA Chat
Post by: SA™ on August 22, 2012, 07:43:57 AM
thats for an old version of the mod so no you wont find that code
Title: Re: SA Chat
Post by: SA™ on August 22, 2012, 07:49:26 AM
Quote from: Realinfo on August 21, 2012, 09:06:19 AM
Can we put bar in Block of simple Portal?
if yes
how?

im not sure i havent tryed this but you can try and use

global $context;
$context['html_headers'] .= SAChat_showBar('head');
echo SAChat_showBar('body');


in a php block?
Title: Re: SA Chat
Post by: beanflying on August 22, 2012, 07:56:45 AM
Oops sorry for the bum steer I a heap of stuff on the go :)

That code didn't work on Simple Portal BTW.
Title: Re: SA Chat
Post by: Realinfo on August 22, 2012, 08:44:00 AM
Quote from: SA™ on August 22, 2012, 07:49:26 AM
Quote from: Realinfo on August 21, 2012, 09:06:19 AM
Can we put bar in Block of simple Portal?
if yes
how?

im not sure i havent tryed this but you can try and use

global $context;
$context['html_headers'] .= SAChat_showBar('head');
echo SAChat_showBar('body');


in a php block?

Syntax error in block code. Please check the code.

I got this When i try to add code in php block of Simple portal
Title: Re: SA Chat
Post by: Realinfo on August 22, 2012, 08:44:42 AM
Quote from: beanflying on August 22, 2012, 07:56:45 AM
Oops sorry for the bum steer I a heap of stuff on the go :)

That code didn't work on Simple Portal BTW.

You mean no way to put Sa chat bar in simple portal blocks
Title: Re: SA Chat
Post by: Realinfo on August 22, 2012, 09:07:30 AM
Load Checking
like
Enable load checking
On high load disable SA Chat
On high load disable chat list
On high load disable bar
Highest load level

are not working for we I can't "tick" any of them also can't write in "Highest load level "
Title: Re: SA Chat
Post by: SA™ on August 22, 2012, 02:22:39 PM
Quote from: Realinfo on August 22, 2012, 09:07:30 AM
Load Checking
like
Enable load checking
On high load disable SA Chat
On high load disable chat list
On high load disable bar
Highest load level

are not working for we I can't "tick" any of them also can't write in "Highest load level "

this is not avliable on windows servers
it should say some stuff on that page in red pls look and tell me what it says?

Quote from: Realinfo on August 22, 2012, 08:44:00 AM
Quote from: SA™ on August 22, 2012, 07:49:26 AM
Quote from: Realinfo on August 21, 2012, 09:06:19 AM
Can we put bar in Block of simple Portal?
if yes
how?

im not sure i havent tryed this but you can try and use

global $context;
$context['html_headers'] .= SAChat_showBar('head');
echo SAChat_showBar('body');


in a php block?

Syntax error in block code. Please check the code.

I got this When i try to add code in php block of Simple portal

maybe this?

global $modSettings, $boardurl;

if(empty($modSettings['2sichat_theme']))
    $modSettings['2sichat_theme'] = 'default';

$saTheme = $modSettings['2sichat_theme'];

echo '<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=head&amp;theme=',$saTheme,'"></script>';
echo '<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=body&amp;theme=',$saTheme,'"></script>';


i have never tryed to add it to a sp block so this maybe a hit and miss i dont have a test site right now so i cant realy test these
Title: Re: SA Chat
Post by: Realinfo on August 22, 2012, 08:13:42 PM
By this global $modSettings, $boardurl;

if(empty($modSettings['2sichat_theme']))
    $modSettings['2sichat_theme'] = 'default';

$saTheme = $modSettings['2sichat_theme'];

echo '<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=head&amp;theme=',$saTheme,'"></script>';
echo '<script type="text/javascript" src="'.$boardurl.'/sachat/index.php?action=body&amp;theme=',$saTheme,'"></script>';


SA Chat bar is started coming on Portal page.........

But it's not inside the block...........

May see at http://realinfo.tv/
Title: Re: SA Chat
Post by: Realinfo on August 22, 2012, 08:14:51 PM
My server is Linux
and nothing in red, but I just click on any box of Load Checking
like
Enable load checking
On high load disable SA Chat
On high load disable chat list
On high load disable bar
Highest load level
Title: Re: SA Chat
Post by: Realinfo on August 22, 2012, 08:50:29 PM
1. What's Main heartbeat and Chat window heartbeat?

2. What change will occur if we change its value?
Title: Re: SA Chat
Post by: SA™ on August 22, 2012, 11:20:37 PM
Quote from: Realinfo on August 22, 2012, 08:50:29 PM
1. What's Main heartbeat and Chat window heartbeat?

2. What change will occur if we change its value?

how often it fetches new messages

new beta 5 version added
fixed undefined server errors this could another possible reson for the bar not shoing on some servers
themes now can use there own body.js.php file this will help with theme making [newer theme may come with minimised feature]

on a side note the source for this mod is now avlible here
https://github.com/SAMods/SAChatBar
Title: Re: SA Chat
Post by: Realinfo on August 23, 2012, 12:00:57 PM
Can member for forum can disable it for himself............. is there any such option as some members just don't want while many others like it...............
Title: Re: SA Chat
Post by: LexusFTW on August 23, 2012, 02:47:50 PM
When I have the chat enabled, the scroll bar doesn't work.  If I disable it through config, the scroll bar works again.  I also have simple portal installed. IE9.

GREAT MOD BTW!!
Title: Re: SA Chat
Post by: SA™ on August 23, 2012, 03:18:58 PM
Quote from: LexusFTW on August 23, 2012, 02:47:50 PM
When I have the chat enabled, the scroll bar doesn't work.  If I disable it through config, the scroll bar works again.  I also have simple portal installed. IE9.

GREAT MOD BTW!!

ie has always had issues with this mod i dont use ie myself cos it suks but i will install ie9 soon cos im gonna overhaul the themes

Quote from: Realinfo on August 23, 2012, 12:00:57 PM
Can member for forum can disable it for himself............. is there any such option as some members just don't want while many others like it...............

in this topic im sure there is some code todo this if not ill add this option to rc1

your find it here https://github.com/SAMods/SAChatBar before i add it to the mod site
Title: Re: SA Chat
Post by: nend on August 23, 2012, 03:55:06 PM
Quote from: SA™ on August 23, 2012, 03:18:58 PM
your find it here https://github.com/SAMods/SAChatBar before i add it to the mod site

Forked, I will be following the development.  ;D
Title: Re: SA Chat
Post by: beanflying on August 23, 2012, 07:01:26 PM
Nice work,

Minimized would be a great option. Either that or what about a pull down menu option off the header? Not sure how the users online would look on a big forum would be the killer if it is set to open chat rather than just buddies.

One thing if you could include it would be the Google + social media integration. It has been on my list to try and hack some of this mod http://custom.simplemachines.org/mods/index.php?mod=3103 into place to the SA Chat bar.
Title: Re: SA Chat
Post by: Realinfo on August 23, 2012, 09:42:54 PM
#chat_containter{
   background: url(./images/cbar.png) repeat-x;
   padding-left: 10px;
   padding-top: 2px;
   width: 205px;
   height: 25px;
   position: fixed;
   bottom: 0px;
   right: 0px;
   text-align: left;
   z-Index: 10000;
I made change in style.css and it works in Firefox and Chrome
But IE still Bar is 100%

and tell how member can disable it for himself
Title: Re: SA Chat
Post by: SA™ on August 23, 2012, 10:18:49 PM
Quoteand tell how member can disable it for himself

sure install the dev build
https://github.com/SAMods/SAChatBar/downloads
Title: Re: SA Chat
Post by: Realinfo on August 24, 2012, 06:12:19 AM
Quote from: SA™ on August 23, 2012, 10:18:49 PM
Quoteand tell how member can disable it for himself

sure install the dev build
https://github.com/SAMods/SAChatBar/downloads

as I install it.......... Now it show "who's online" zero..............

while SA_Chat_Beta_5_Rev44.zip show right number of users online.................

can't we do manual edit in profile.template
Title: Re: SA Chat
Post by: SA™ on August 24, 2012, 11:58:24 AM
that part was modifyed to take into account the users who disabled the bar  if it disabled it wont show them in the list but i do see the issue here the problem is this mod look in the themes table for show_cbar if it is 1 then bar is disabled for that person now the problem is that vlaue probaly wont exsist untill all members set that in there prifule lookand layout so  i need to think on this one for a bit longer to get it right
Title: Re: SA Chat
Post by: hcfwesker on August 24, 2012, 09:02:16 PM
Quote from: Realinfo on August 23, 2012, 12:00:57 PM
Can member for forum can disable it for himself............. is there any such option as some members just don't want while many others like it...............

@ SA, I remember you doing this in the past.  It allowed members to turn it off under their options in look & layout preferences.

EDIT:::

Just found it 9 pages back.  ;)

http://www.simplemachines.org/community/index.php?topic=391961.msg3157578#msg3157578

Title: Re: SA Chat
Post by: SA™ on August 24, 2012, 09:39:55 PM
yeah that code has changed since then tho
Title: Re: SA Chat
Post by: hcfwesker on August 24, 2012, 10:26:10 PM
Derped!  lol.  didn't realize that, haven't checked updates since last year.
Title: Re: SA Chat
Post by: Realinfo on August 24, 2012, 10:36:15 PM
echo ' <li> <input type="hidden" name="default_options[show_cbar]" value="0" /> <label for="show_cbar"><input type="checkbox" name="default_options[show_cbar]" id="show_cbar" value="1"', !empty($context['member']['options']['show_cbar']) ? ' checked="checked"' : '', ' class="input_check" /> Hide chat bar?</label> </li>';
echo '
<li>
<input type="hidden" name="default_options[view_newest_first]" value="0" />
<label for="view_newest_first"><input type="checkbox" name="default_options[view_newest_first]" id="view_newest_first" value="1"', !empty($context['member']['options']['view_newest_first']) ? ' checked="checked"' : '', ' class="input_check" /> ', $txt['recent_posts_at_top'], '</label>
</li>';


I tried to do manual edit............ But this not disable SA Chat bar............

and I also have this issue...............

When I have the chat enabled, the scroll bar doesn't work.  If I disable it through config, the scroll bar works again.  I also have simple portal installed. IE9.

GREAT MOD BTW!!
Title: Re: SA Chat
Post by: SA™ on August 25, 2012, 01:49:05 PM
you need more than that to disable the bar all ou have todo is keep anyu eye here
https://github.com/SAMods/SAChatBar
for any updates wich one has been aded todo just this so download the mod from there
Title: Re: SA Chat
Post by: SA™ on August 26, 2012, 10:02:20 PM
anybody fancy testing this?
https://github.com/SAMods/SAChatBar/downloads

here some of the chnages

two new options in profile look and layout hide chat bar and show only buddies in chat bar
member count auto refresh
removed 2sichat_list_type from admin members can now choose themself
initJs() refactured
custom head js per theme
bug fixes and code changes
Title: Re: SA Chat
Post by: beanflying on August 26, 2012, 10:57:57 PM
Nice new features but if possible I would still like to have Admin control over If the members can use them or not. So can you leave them as additional permission settings such as-

Users hide/show chatbar
Users select buddies/open/off (that is still show the chatbar and the other gadgets)

so rather than an admin setting a permission is more flexible.
Title: Re: SA Chat
Post by: SA™ on August 26, 2012, 11:32:48 PM
so permissions to use this profile features you mean?
Title: Re: SA Chat
Post by: beanflying on August 26, 2012, 11:44:23 PM
Yes. For example I may like to Force all users of a certain group or groups to view the bar so the gadgets are available (including for guests). But allow users to switch on of off the chat side of it (or select buddies only).

I think it just gives more flexibility to customize it for most admins with little to no programming skills needed.
Title: Re: SA Chat
Post by: SA™ on August 26, 2012, 11:51:24 PM
https://github.com/SAMods/SAChatBar/downloads
try that

added two permissions to use the settings
Title: Re: SA Chat
Post by: beanflying on August 27, 2012, 12:53:08 AM
Some strange things going on my Admin account is the only one showing as whos online to regular users. They can chat to me and I can chat back but as I can't see them I can't start a chat?

I suspect maybe a permission around the wrong way  :-\


Cleared the cache on both browsers and all as it should be  :) I will leave it up live on our site and see how it goes.
Title: Re: SA Chat
Post by: SA™ on August 27, 2012, 01:24:30 AM
cool i registerd there as Wine

tho i just pushed another update that will update the users better
Title: Re: SA Chat
Post by: beanflying on August 27, 2012, 01:49:37 AM
I wondered who the stray UK member was when I was approving it :laugh: Tim or Beanflying is me BTW.

Seems our existing members are still stuck with cached versions of the old bar, know of an easy way server or smf side to clear this?
Title: Re: SA Chat
Post by: SA™ on August 27, 2012, 02:11:35 AM
hmm not sure
im only seeing aswell 2 people in chat have the others set there settings to disabled or buddies you know?
Title: Re: SA Chat
Post by: beanflying on August 27, 2012, 02:23:53 AM
Very unlikely all of the others would have run off to disable the settings in the 30 minutes or so it has been up. I did also remove the permissions for member disable to test that too but no change to the members showing online.
Title: Re: SA Chat
Post by: SA™ on August 27, 2012, 02:36:41 AM
yeah i see the issue now 8)
Title: Re: SA Chat
Post by: beanflying on August 27, 2012, 02:48:42 AM
 8) Success thanks to some SA mod work  ;D

The Current version linked above works, still has an issue with new members to be resolved but SA was going to sleep - No dedication at all ;)
Title: Re: SA Chat
Post by: SA™ on August 27, 2012, 05:44:17 PM
Quote from: beanflying on August 27, 2012, 02:48:42 AM
8) Success thanks to some SA mod work  ;D

The Current version linked above works, still has an issue with new members to be resolved but SA was going to sleep - No dedication at all ;)

:D thanks lol

just pushed another update
!new member default settings
Title: Re: SA Chat
Post by: beanflying on August 27, 2012, 06:39:16 PM
Installed the new package and tweaked the CSS a touch over a nice pre breakfast coffee. Working well :)
Title: Re: SA Chat
Post by: SA™ on August 28, 2012, 04:39:09 PM
another update
+simple minamise chat feature
+added gplus

may not look too good with many people minamised and the theme still needs tweeking abit
https://github.com/SAMods/SAChatBar
Title: Re: SA Chat
Post by: beanflying on August 28, 2012, 07:28:06 PM
Installed and tested  ;D Love the G+.

Had a little time to play with it now and a few thoughts I wrote on the forum.

"Also a really nice feature is the minimise to bar the name of an open IM chat and are still chatting you can tuck it out of the way but not closed. If you get a new message from who you were chatting to then it reopens automatically. Not quite the move function the Pad users may have wanted but a lot better than it was. "
Title: Re: SA Chat
Post by: SA™ on August 29, 2012, 12:33:51 AM
QuoteNot quite the move function

what you mean?
Title: Re: SA Chat
Post by: beanflying on August 29, 2012, 01:41:59 AM
Some of our users that browse on ipads asked about being able to grab and move the chat windows elsewhere on the screen so they can keep looking at the forum without necessarily closing the chat window to others.

The minimise to bar will work I think so not a major one but I did start having a look at adding the java ontap or similar but my Java isn't strong ;)
Title: Re: SA Chat
Post by: SA™ on August 29, 2012, 01:52:19 AM
well i would need an  ipad to test this but im poor :D but i get what you mean :)
Title: Re: SA Chat
Post by: beanflying on August 29, 2012, 03:29:27 AM
I have the same issue with cross browser compatibility testing. I have a dumb phone and a windoze laptop and don't speak 'I' so I am ok :) Better integration of SMF with/without Tapatalk for mobiles and pads is becoming an issue but they change generations to quick.

I just tried minimising around 10 open chat windows on my fixed width 1000px forum and after 7 they started disappearing off the bar. While removing them again the bar at one stage went blank so something is a little flakey if you try and have to many open conversations on the bar. Personally 5 or 6 should be heaps so maybe a software limit might be easiest?

thanks for the reworking on this too :)
Title: Re: SA Chat
Post by: SA™ on August 29, 2012, 01:42:10 PM
QuoteI have the same issue with cross browser compatibility testing. I have a dumb phone and a windoze laptop and don't speak 'I' so I am ok  Better integration of SMF with/without Tapatalk for mobiles and pads is becoming an issue but they change generations to quick.

yeah thats the isue these days yu buy some new tablet or somthing and it old with in a week or two

QuoteI just tried minimising around 10 open chat windows on my fixed width 1000px forum and after 7 they started disappearing off the bar. While removing them again the bar at one stage went blank so something is a little flakey if you try and have to many open conversations on the bar. Personally 5 or 6 should be heaps so maybe a software limit might be easiest?

yeah i know i tested that on your site last night the theme needs tweeking
Title: Re: SA Chat
Post by: SA™ on August 30, 2012, 02:54:56 AM
updated the package on git hub with a new wip theme

this new theme save a lot of space on the bar and looks clean to me :D it also has
improved chat minamised feature it also dont pop back up when minamised it changes colour to red

known bugs for some reason the red gets bigger and bigger not sure why yet
Title: Re: SA Chat
Post by: beanflying on August 30, 2012, 04:18:43 AM
No sound on messages on the default_new theme. Colour change is working as you explained and a good idea.

I was having a bit of a look around last night for a means to add a few additional social groups and bumped into http://www.addthis.com/ (http://www.addthis.com/) I haven't really looked to closely at the embed code to see if it could be run off the bar but it would cleanup the post area where it is currently located for a trial. Nice thing from your end is you could strip some code and button room if you could incorporate it into the bar? Might be worth a look anyway.

Main reason to look at it is Pinterest photo sharing to get some additional links in to the forum.
Title: Re: SA Chat
Post by: SA™ on August 30, 2012, 04:34:26 AM
il take a look at the sound issue later  :)
Title: Re: SA Chat
Post by: SA™ on August 30, 2012, 06:08:00 PM
updated package on github

fixed sound issue on new theme missing sound folder
aded suport for addthis script
fixed issue with the red minamised chat growing
fixed hard coded text on new theme
removed other languages as they are now out dated and needed updating

now when a chat is minamised you wil here a bleep but it will keep going untill you read the messgae i need to fix this as it will get anoying lol
Title: Re: SA Chat
Post by: beanflying on August 31, 2012, 06:51:02 AM
Done a little playing with addthis and there is a small glitch with it off the bar. Unless you are at the top of the page or first post then it doesn't trigger the hover popup, onclick still works and brings up the entire list? The embedded addthis I have on my forum works regardless of which post your on.

Other than that working well :)
Title: Re: SA Chat
Post by: SA™ on August 31, 2012, 06:33:53 PM
it does trigger it just you have to scroll upto see it  ill see if i can fix that
Title: Re: SA Chat
Post by: beanflying on September 01, 2012, 05:22:43 AM
Cool I hadn't tried scrolling up. :)
Title: Re: SA Chat
Post by: MotRude on September 01, 2012, 12:33:02 PM
This is a Really great Mod...Thank you to the Developer.
Title: Re: SA Chat
Post by: SA™ on September 01, 2012, 03:32:28 PM
thanks :)
Title: Re: SA Chat
Post by: SA™ on September 01, 2012, 06:41:15 PM
New Version rc1 realsed on modsite

changes since last version
https://github.com/SAMods/SAChatBar/commits/master/
Title: Re: SA Chat
Post by: Realinfo on September 01, 2012, 10:31:32 PM
any way to stop users to send website links............... to avoid spamming.............
Title: Re: SA Chat
Post by: SA™ on September 01, 2012, 10:40:24 PM
yes in sachat/index.php

$data = preg_replace("#((http|https|ftp)://(\S*?\.\S*?))(\s|\;|\)|\]|\[|\{|\}|,|\"|'|:|\<|$|\.\s)#ie", "'<a href=\"$1\" target=\"_blank\">$3</a>$4'", $data);

replace with
$data = preg_replace("#((http|https|ftp)://(\S*?\.\S*?))(\s|\;|\)|\]|\[|\{|\}|,|\"|'|:|\<|$|\.\s)#ie", "'Links are bot allowed here'", $data);

it in the file twice do both
Title: Re: SA Chat
Post by: Realinfo on September 02, 2012, 12:55:44 AM
1. Many send link with "www" instead of (http|https|ftp).............

2. I don't want Chat bar 100% or any PX............ I want it can be as long as many buttons or minimized chat users in it............. I mean not of fix width.............

Title: Re: SA Chat
Post by: beanflying on September 02, 2012, 01:02:13 AM
Quote from: SA™ on August 31, 2012, 06:33:53 PM
it does trigger it just you have to scroll upto see it  ill see if i can fix that

Got a fix for it :)

!@#$ it not working in Chrome !!!! Works fine in IE and FF.

In template.php

'.($modSettings['2sichat_ico_adthis'] ? '<a class="addthis_button" style="position:fixed; !important" addthis:ui_cobrand="xyz Forum" href="http://www.addthis.com/bookmark.php?v=250&amp;pubid=xa-503f263237ff99da">

I have been playing a little with the ui commands from here to tweak add this for my own forum but you might be able to pull the forum name into there using the cobrand one? Lots of others too if you want to look http://support.addthis.com/customer/portal/articles/381263-addthis-client-api#configuration-ui
Title: Re: SA Chat
Post by: SA™ on September 02, 2012, 01:24:30 AM
Quote from: beanflying on September 02, 2012, 01:02:13 AM
Quote from: SA™ on August 31, 2012, 06:33:53 PM
it does trigger it just you have to scroll upto see it  ill see if i can fix that

Got a fix for it :)

!@#$ it not working in Chrome !!!! Works fine in IE and FF.

In template.php

'.($modSettings['2sichat_ico_adthis'] ? '<a class="addthis_button" style="position:fixed; !important" addthis:ui_cobrand="xyz Forum" href="http://www.addthis.com/bookmark.php?v=250&amp;pubid=xa-503f263237ff99da">

I have been playing a little with the ui commands from here to tweak add this for my own forum but you might be able to pull the forum name into there using the cobrand one? Lots of others too if you want to look http://support.addthis.com/customer/portal/articles/381263-addthis-client-api#configuration-ui

lol was just gonna say it not working in chrome
Title: Re: SA Chat
Post by: beanflying on September 02, 2012, 01:29:08 AM
Bring back Netscape I say  ;D 2 out of 3 is a start I suppose

Minor permissions thing too. The Bar can't be made show to Guests currently but it was visible in the earlier version.
Title: Re: SA Chat
Post by: SA™ on September 02, 2012, 01:46:43 AM
it can and it wasnt shoing on your site before eaither have you changed permission for guest to show bar

permissions Disable Bar untick
Title: Re: SA Chat
Post by: SA™ on September 02, 2012, 01:59:02 AM
Quote1. Many send link with "www" instead of (http|https|ftp).............

that will detect any link with our with out www even with or with out  (http|https|ftp). it regex it searches for a pattern dont have to contain  (http|https|ftp).

Quote2. I don't want Chat bar 100% or any PX............ I want it can be as long as many buttons or minimized chat users in it............. I mean not of fix width.............

i dont think it wil work like that the thing it need a max width set in the min chat area so if theres is many it will fit them in i couldent get max width to work myself this is why i made the default_new theme it can hold a few more min chats than the default theme and looks a lot better in my opinion
Title: Re: SA Chat
Post by: Realinfo on September 02, 2012, 04:31:19 AM
1. can't I have 200px width of Chat bar only, and for minimized users it will grow upward (instead of Chat Bar I needed Chat Tower)...........
200px width Chat bar was working fine for me, but now as u added minimized users, so there's problem............

2. Users can still able to send website link like this www.realinfo.tv (may when they try to send http://realinfo.tv then it got failed)

3. Can we also censor some words ( so one user can't send those words to other users)
Title: Re: SA Chat
Post by: SA™ on September 02, 2012, 03:20:34 PM
Quote1. can't I have 200px width of Chat bar only, and for minimized users it will grow upward (instead of Chat Bar I needed Chat Tower)...........
200px width Chat bar was working fine for me, but now as u added minimized users, so there's problem...........

it will probaly be better just to make a new theme your self then or remove the minamised chat feature

Quote2. Users can still able to send website link like this www.realinfo.tv (may when they try to send http://realinfo.tv then it got failed)

oh iim sry i assumed it woulda worked ill look into this later

Quote3. Can we also censor some words ( so one user can't send those words to other users)

ill see cos i would probaly need to write my own function to do this as it seems includng smf files causes loads of errors in server error logs [create a bbc gadget and your see what i mean it dont work] shouldent be too hard to write a censer function tho
Title: Re: SA Chat
Post by: Realinfo on September 02, 2012, 08:52:32 PM
1. How we can remove minimized options

2. Can we have Transparent Bar ( so only written things appear and not bar)

3. Can one day you also add option of Voice chat and video chat

4. Instead of who's Online I just want to make it "online"
Title: Re: SA Chat
Post by: SA™ on September 03, 2012, 12:35:53 AM
Quote2. Users can still able to send website link like this www.realinfo.tv (may when they try to send http://realinfo.tv then it got failed)

try in sachat/index.php

$data = preg_replace("#((http|https|ftp)://(\S*?\.\S*?))(\s|\;|\)|\]|\[|\{|\}|,|\"|'|:|\<|$|\.\s)#ie", "'<a href=\"$1\" target=\"_blank\">$3</a>$4'", $data);

replace with
$data = preg_replace("#(((http|https|ftp)://?|[\w\d]+[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/)))#ie", "'Link aint allowed'", $data);

it in the file twice do both

Title: Re: SA Chat
Post by: beanflying on September 03, 2012, 04:39:27 AM
Failed on finding  fix for the Chrome position:fixed quirk too. Only way around it I suspect is onhover have the page scroll up to meet it but that's not a wonderful look either? Or some sort of javascript scroll offset and a little maths (way beyond my skills) and force the sucker down to meet the position on the page without the 'fixed' ?

Apart from that working well  8)
Title: Re: SA Chat
Post by: Realinfo on September 03, 2012, 06:58:46 AM
Quote from: SA™ on September 03, 2012, 12:35:53 AM
Quote2. Users can still able to send website link like this www.realinfo.tv (may when they try to send http://realinfo.tv then it got failed)

try in sachat/index.php

$data = preg_replace("#((http|https|ftp)://(\S*?\.\S*?))(\s|\;|\)|\]|\[|\{|\}|,|\"|'|:|\<|$|\.\s)#ie", "'<a href=\"$1\" target=\"_blank\">$3</a>$4'", $data);

replace with
$data = preg_replace("#(((http|https|ftp)://?|[\w\d]+[.])[^\s()<>]+(?:\([\w\d]+\)|([^[:punct:]\s]|/)))#ie", "'Link aint allowed'", $data);

it in the file twice do both




Yes............ Now It's ok.............. also guide me about

Quote from: Realinfo on September 02, 2012, 08:52:32 PM
1. How we can remove minimized options

2. Can we have Transparent Bar ( so only written things appear and not bar)

3. Can one day you also add option of Voice chat and video chat

4. Instead of who's Online I just want to make it "online"
Title: Re: SA Chat
Post by: pevanis on September 03, 2012, 11:34:10 AM
Hi,

at first thanks for chat :-)

I have a problem with that window, it suck and i can't get rid of it :-( can You hep ??


Have a nice day
Title: Re: SA Chat
Post by: SA™ on September 03, 2012, 02:20:17 PM
Quote from: Realinfo on September 02, 2012, 08:52:32 PM
1. How we can remove minimized options

2. Can we have Transparent Bar ( so only written things appear and not bar)

3. Can one day you also add option of Voice chat and video chat

4. Instead of who's Online I just want to make it "online"

to remve the minimized sachat/themes/yourtheme/template.php

find and remove
<a href="javascript:void(0)" onclick="javascript:minchat(\''.$buddy_settings['id_member'].'\',\''.$buddy_settings['real_name'].'\'); return false;">
&nbsp;<img name="rollover'.$buddy_settings['id_member'].'" src="'.$themeurl.'/images/minimize.png" border="0" alt="-" />
</a>


and

$data .='&nbsp;&nbsp;<span id="minchats"></span>';

to change the whos online to online it sachat/themes/yourtheme/languages/
$txt['whos_on'] = 'Who&#39;s Online';

Quote from: pevanis on September 03, 2012, 11:34:10 AM
Hi,

at first thanks for chat :-)

I have a problem with that window, it suck and i can't get rid of it :-( can You hep ??


Have a nice day

try clearing you brouser cookie and cache
Title: Re: SA Chat
Post by: pevanis on September 03, 2012, 02:58:32 PM



Quote from: pevanis on September 03, 2012, 11:34:10 AM
Hi,

at first thanks for chat :-)

I have a problem with that window, it suck and i can't get rid of it :-( can You hep ??


Have a nice day

try clearing you brouser cookie and cache
[/quote]
:-( it works :-) thans Stupid me :-(
Title: Re: SA Chat
Post by: Realinfo on September 03, 2012, 09:06:28 PM
As I removed two things from template.php (as u told)

See name goes upward..............
Title: Re: SA Chat
Post by: SA™ on September 03, 2012, 09:33:52 PM
yeah i fogot that one in sachat/themes/yourtheme/style.css

#top_cont_avatar{
position: relative;
bottom: 45px;
right: 5px;
width: 180px;
height: 40px;
}


ajust down
bottom: 45px;
Title: Re: SA Chat
Post by: Tien on September 05, 2012, 02:28:47 AM
I have this SA Chat installed in my forum running on 2.0.2. The scrollbar is not working when chat has been activated. A friend of mine asked me to advise my forum users whose using IE9 to go to "Tools" and clicked on the "Compatibility View" and the scroll bar started working again with the SA Chat on. Hope this little information helps.  ;D
Title: Re: SA Chat
Post by: SA™ on September 05, 2012, 02:43:09 AM
dam ie again huh? im not able to replicate this issue myself ive tryed with ie9 compate and without compat the only thing i did notice is befor the last update it did not work in ie9 with compat mode this was fixed in the last realse


can i have a link to your site to see it hapening? pm if you wanted
Title: Re: SA Chat
Post by: Realinfo on September 05, 2012, 06:25:41 AM
Quote from: Tien on September 05, 2012, 02:28:47 AM
I have this SA Chat installed in my forum running on 2.0.2. The scrollbar is not working when chat has been activated. A friend of mine asked me to advise my forum users whose using IE9 to go to "Tools" and clicked on the "Compatibility View" and the scroll bar started working again with the SA Chat on. Hope this little information helps.  ;D

Yes....... This works on my site also............. But we need to guide all users for it.............. my site is www.realinfo.tv but Guests and Newbie can't see Chatbar..................
Title: Re: SA Chat
Post by: Realinfo on September 05, 2012, 06:27:10 AM
2. Can we have Transparent Bar ( so only written things appear and not bar)

3. Can one day you also add option of Voice chat and video chat
Title: Re: SA Chat
Post by: SA™ on September 05, 2012, 06:51:51 AM
2 yes what theme are you using?

3 maybe one day not sure how to go about this righ tnow so dont expect it anytime soon
Title: Re: SA Chat
Post by: SA™ on September 05, 2012, 06:54:49 AM
try this image i made it tranparent

upload the attached image to sachat/themes/yourtheme/images

Title: Re: SA Chat
Post by: Realinfo on September 05, 2012, 12:35:27 PM
wow........... Seem now all things are ok.............. Censor Words, Transparent Bar, Members can disable bar, no spamming,............ really wanna say thanks to you for such a awesome MOD............
Title: Re: SA Chat
Post by: Realinfo on September 07, 2012, 11:16:47 PM
I want to change position of Mute1,2.............. Want it more closer Right............ where it's in .css
Title: Re: SA Chat
Post by: SA™ on September 09, 2012, 11:41:01 AM
it is not in the css it is in the template.php

'.(empty($modSettings['2sichat_dis_list']) ? ' &nbsp;<a href="javascript:void(0)" onclick="javascript:chatSnd();">
<img id="chat_Snd" src="'.(!empty($_COOKIE["chatSnd"]) ? $themeurl.'/images/mute2.png':$themeurl.'/images/mute1.png').'" />
</a>':'').'
Title: Re: SA Chat
Post by: Banthe on September 12, 2012, 09:16:10 PM
I've installed the latest release RC 1, and all is working great except the Who's Online won't update it always shows (0).
I've checked Update Live setting but still no joy!

What could be the problem?

Fantastic mod by-the-way :)
Title: Re: SA Chat
Post by: SA™ on September 13, 2012, 03:18:59 PM
it should update by itself or when somone send a im to you it works perfect on my local machine

have you tryed the dev build here
https://github.com/SAMods/SAChatBar/downloads
Title: Re: SA Chat
Post by: Banthe on September 13, 2012, 04:26:49 PM
Quote from: SA™ on September 13, 2012, 03:18:59 PM
it should update by itself or when somone send a im to you it works perfect on my local machine

have you tryed the dev build here
https://github.com/SAMods/SAChatBar/downloads

Thanks, will give it a try now :)
Title: Re: SA Chat
Post by: freddosensei on September 13, 2012, 11:20:34 PM
I just installed this on my forum and we love it so far. looking forward to going through this thread and find more out about it.
Thank you so much.
Title: Re: SA Chat
Post by: beanflying on September 14, 2012, 04:09:57 AM
Not sure if your still in a programming mood ;)

Extra functionality - PM icon on the bar to flash or alternate colour on there being a new PM. It would save me and some others a mod (Currently using PM Informer).
Title: Re: SA Chat
Post by: eneru on September 21, 2012, 10:04:30 AM
Quote from: pevanis on September 03, 2012, 11:34:10 AM
Hi,

at first thanks for chat :-)

I have a problem with that window, it suck and i can't get rid of it :-( can You hep ??


Have a nice day



Same problem here, plus the window is not moving anywhere, and the chat obviously doesn't work.
I'm on smf 2.0.2, I tried deleting all cookies, cleaning cache everywhere, with safari, chrome, mozilla, and going back to default core theme but with no results.

BTW Who's online and the networks links do work right.

Please, I need an help!
Title: Re: SA Chat
Post by: pevanis on September 25, 2012, 03:13:35 PM
Hello :-)  again thanks for Your wonderfull job, really nice chat  :)

Quote from: eneru on September 21, 2012, 10:04:30 AM
Quote from: pevanis on September 03, 2012, 11:34:10 AM
Hi,

at first thanks for chat :-)

I have a problem with that window, it suck and i can't get rid of it :-( can You hep ??


Have a nice day



Same problem here, plus the window is not moving anywhere, and the chat obviously doesn't work.
I'm on smf 2.0.2, I tried deleting all cookies, cleaning cache everywhere, with safari, chrome, mozilla, and going back to default core theme but with no results.

BTW Who's online and the networks links do work right.

Please, I need an help!

-  try clearing you brouser cookie and cache it helped for me.
Title: Re: SA Chat
Post by: eneru on September 26, 2012, 06:10:31 AM
Already done, but nothing changes!
Still the same problems as before.
Title: Re: SA Chat
Post by: Realinfo on September 26, 2012, 11:14:11 AM
Can we have "messenger" of this SA Chat.............. In Window and Android............. Like of Facebook Messenger ............ https://play.google.com/store/apps/details?id=com.facebook.orca&feature=search_result
Title: Re: SA Chat
Post by: pevanis on October 04, 2012, 02:00:40 PM


-  try clearing forum cache on Your server in SMF maintance    'This function will empty out the file cache should you need it to be cleared.'

Same problem here, plus the window is not moving anywhere, and the chat obviously doesn't work.
I'm on smf 2.0.2, I tried deleting all cookies, cleaning cache everywhere, with safari, chrome, mozilla, and going back to default core theme but with no results.

BTW Who's online and the networks links do work right.

Please, I need an help!
[/quote]
Title: Re: SA Chat
Post by: beanflying on October 06, 2012, 05:10:36 AM
I am on 2.0.2 and working fine. Running RC1 Rev59 if that helps.

A couple of the slightly earlier revisions of this update being uploaded earlier were giving me live update or users not showing issues?
Title: Re: SA Chat
Post by: SA™ on October 06, 2012, 11:29:44 AM
QuoteA couple of the slightly earlier revisions of this update being uploaded earlier were giving me live update or users not showing issues?

this is an issue still? have you tryed rc2?
https://github.com/SAMods/SAChatBar/downloads
Title: Re: SA Chat
Post by: beanflying on October 07, 2012, 12:53:40 AM
I had been happy with RC1 but I will drop RC2 on and have a look too.

** Installed and working fine :)
Title: Re: SA Chat
Post by: eneru on October 22, 2012, 01:33:52 PM
Quote from: pevanis on October 04, 2012, 02:00:40 PM
-  try clearing forum cache on Your server in SMF maintance    'This function will empty out the file cache should you need it to be cleared.'

I've done it but still no luck.

Maybe I uninstall and reinstall it again, even if it went thru with no problems at first.
Title: Re: SA Chat
Post by: blunted on October 29, 2012, 08:36:48 PM
I really love this mod but have an issue, it for some breaks ssl in both firefox and opera.

ie and chrome it does not.

any possible solution?

I'd hate to have to give up the mod as its great, but it breaks my sites ssl :(
Title: Re: SA Chat
Post by: SA™ on October 31, 2012, 12:57:38 PM
Yes in aware of this but I have no pc right now only my phone
Title: Re: SA Chat
Post by: freddosensei on November 05, 2012, 07:38:39 PM
Hi there,
I added this amazing function to my forum a few months ago but had to disable it.

Basically, I am based in Japan and all of my users are school teachers here. For some of them, when chat was enabled it locked them out of the forum. The error messages are all in Japanese but there always seemed to be some sort of connection error. They were all able to use the forum before chat was enabled.

The computers they use vary from nice new ones to really old ones running windows 2000. The network firewalls all vary and because of this, I have no idea how up-to-date their browsers, java, flash etc are. The only consistent thing is a connection error.

Do you have any ideas how to fix this?
Title: Re: SA Chat
Post by: available on November 06, 2012, 03:52:10 AM
thank for sharing
Title: Re: SA Chat
Post by: freddosensei on November 06, 2012, 08:02:28 PM
an update on my situation.

For some users, when chat is enabled they can access my forum with no issues and the chat bar is present. However, if I start a chat with them, nothing appears. Would this be a Java issue on their computer? Or a flash issue?
Title: Re: SA Chat
Post by: SA™ on November 07, 2012, 10:29:23 AM
this mod dont use java ot flash  maybe the users who have trouble need to clear there brouser cache ?
Title: Re: SA Chat
Post by: sterling1 on November 19, 2012, 09:47:23 PM
Hello,

We just transferred over to a new server and have found the chat bar not working anymore. We had never had any issues with it before the move and I must say our members really love it! I have tried to install the latest version and still have nothing showing up. Any ideas?
Title: Re: SA Chat
Post by: electricwildflower on November 27, 2012, 12:02:52 PM
This mod rocks i just installed it in my forum i am creating but got a few questions.

I am unsure where but could you tell me the correct file which i can edit the colors as blue doesn't really fit with my website :P

Is it possible to add custom buttons that take you to places such as a button to go to profile ?

Thanks again for this rocking mod :)
Title: Re: SA Chat
Post by: electricwildflower on November 27, 2012, 01:20:13 PM
It's cool i figured it out i just needed to edit sachat/themes/default/style.css and Regarding links was as easy as go to forums and admin then click SA Chat and find links button :)

Only problem was adding custom icons which i figured out in the end they needed to be 20x20 and the url to them was as easy as adding the custom icons in themes/default/images and then pointing to them.

Thanks for this very cool mod i know once my forums are up and running i will get alot of happy people :)
Title: Re: SA Chat
Post by: SA™ on November 27, 2012, 01:25:09 PM
Sachat/themes/yourtheme is were the themes are you create a copy of the defult theme in sachat admin and modify ot to your needs

Yea U can add custom links in sa chat admin aswell



Cool glad U sorted it
Title: Re: SA Chat
Post by: electricwildflower on November 28, 2012, 09:55:00 AM
I have another Question.

Would it be possible to swap the buttons and the who is online around IE buttons on left who is online on right ?
Title: Re: SA Chat
Post by: winsoft on November 28, 2012, 04:10:39 PM
i will give it a try, thanks.
Title: Re: SA Chat
Post by: ScottMescudi on November 29, 2012, 08:01:59 AM
Hey SA I have a question for you. I have been using chat bar for awhile now and I recently switched hosting and moved my SMF forum with chat bar over. Now SA chat bar still appears as installed and is in the admin panel, but the bar itself will not show up on the site. I have tried uninstalling and reinstalling with different versions as well. I also tried to CHMOD everytime.

Could there be a problem with maybe another mod pacakage I have installed that won't allow chat bar to function?

Title: Re: SA Chat
Post by: SA™ on December 01, 2012, 09:11:42 AM
did yopu try reinstalling ? can i have a link to t your site?
Title: Re: SA Chat
Post by: valtergomes on December 05, 2012, 07:18:17 AM
Hey SA,

first of all, Grats for such great mod!
But.. I'm having some issues.

I've installed the version RC2 from the github, and I can see the bar, I can see who's online, but when I click to chat with someone.. It just doesn't open the window and closes the "Who's Online" window..

Do you know what's causing this?

Cheers!
Title: Re: SA Chat
Post by: adisz on December 10, 2012, 08:42:56 PM
Hello,
I've got a problem with this mod.
It installed correctly, but there is nothing happening.
I've made a test forum instalation - problem is the same.

CHMOD is changed (755), but bar is not displayed.

As you can see:
http://airweia.home.pl/test/ - no chat bar

but http://airweia.home.pl/test/sachat/index.php gives:
{"STATUS":"ACTIVE"}

and on e.g. http://airweia.home.pl/test/sachat/index.php?action=body&theme=default
gives a lot of (I suppose - working) code.

What may be wrong?
Sorry for my bad english.
Thanks a lot for a help!
Title: Re: SA Chat
Post by: electricwildflower on January 23, 2013, 06:35:48 AM
Got a couple of Questions for you and some ideas.

Will there be any new features in the future ?
Will this be officially updated to support 2.0.3 as in it shows on the mod page compatible with 2.0.3 ?

Note!!! it works like a dream on my current 2.0.3 installation i updated my test forum from 2.0.2 to 2.0.3 and sa chat bar carried on working although not tested installing it straight to 2.0.3

Few ideas that would be cool but there just ideas so see what you think.

how about a drop down menu or it might be a drop up menu of the forums categories such as you open the menu pick general category and it will take you to that part of the forum. Although not sure if it would be easy to implement due to every different SMF forum has different categories.

this would be cool for me and my members and can be easy to navigate :)

Who's online username clickable - not sure if it's already implemented or i carn't use it but how about having the who's online usernames clickable such as i could click a username and it would take me to there profile ?

Popup settings button - how about a settings button when click it opens up a box like the chat box does and you can edit your settings such as you could mute, change language permanently and anything else ?

I know you can do it in admin panel on the forum but this would be cool for a few settings you just want to edit quickly ?



Title: Re: SA Chat
Post by: SA™ on January 26, 2013, 03:11:04 PM
QuoteWill there be any new features in the future ?
maybe a few things

QuoteWill this be officially updated to support 2.0.3 as in it shows on the mod page compatible with 2.0.3 ?
this mod will work on 2.0.3 already but i can update the mod page :)

QuoteWho's online username clickable - not sure if it's already implemented or i carn't use it but how about having the who's online usernames clickable such as i could click a username and it would take me to there profile ?

that is already used to open the chat window? or am i misunderstanding?
Title: Re: SA Chat
Post by: electricwildflower on February 05, 2013, 11:43:49 AM
I think i might of confused my self on the last question.

when you click a username it opens up a chatbox but what about an option to view there profile when the chatbox is open as the little image besides the persons username does nothing.
Title: Re: SA Chat
Post by: SA™ on February 05, 2013, 01:44:08 PM
oh i see what you mean now you could modify the template to do this your self quit easy
Title: Re: SA Chat
Post by: electricwildflower on February 12, 2013, 01:46:34 PM
i will try that thanks.

Also a quick note i updated to smf 2.0.4 and it still works like a dream :)
Title: Re: SA Chat
Post by: Panoulis64 on February 16, 2013, 07:11:37 AM
Hi, SA ™
I installed the chat, but I have some strange  issues, though I have uninstalled and reinstalled several times.
The problem is that sometimes halts and does not display the list of friends (it is empty), or  can see the mine members and not i as a manager. If I do enter a member's profile, from the same computer, most often display the friends list.

Also, if the user has slow internet line, it sees him as a member and says to make entry.

However this tool I like and think are the best for the forum.
Thank you for your time
Title: Re: SA Chat
Post by: SA™ on February 17, 2013, 11:57:50 AM
what brouser you having issue with halts?

QuoteAlso, if the user has slow internet line, it sees him as a member and says to make entry.

lol not much i can about your users having slow internet thats down to your users i have no controll over your users connection
Title: Re: SA Chat
Post by: SA™ on February 17, 2013, 12:08:22 PM
added rc2 version compatible with 2.0.4

minor code refactor in index.php
some code cleanup
moved functions to own file
updated images for new theme
new theme tweeks
thems can now use there own js files
added suport for word censoring
possible issue on some servers fixed [maybe?]
Title: Re: SA Chat
Post by: sunilimon on February 17, 2013, 12:51:37 PM
Could you change the description of the mod here http://custom.simplemachines.org/mods/index.php?mod=2534? the links doesn't work. You could include the change log IMHO :D
Title: Re: SA Chat
Post by: SA™ on February 17, 2013, 01:12:18 PM
the links are dead cos i do not have a site at the moment

QuoteYou could include the change log IMHO

i do i just keep forgetting to update it thanks for reminding me :D
Title: Re: SA Chat
Post by: NightzKung on February 18, 2013, 09:27:48 AM
Hello SA. Thankkk for mod ขอบคุณมากมายจร้าาา
Title: Re: SA Chat
Post by: Panoulis64 on February 22, 2013, 10:30:26 AM
Dear SA,  I am sorry that I'm late to answer you.
I attach a picture to see the problem I see two explorer.
I've posted the new version rc2, but did not change anything!
To inform you that Recently, the server had trouble with hackers thus triggered the mod security.
So when the management I press CHMOD Files,  I get the message...
QuoteMethod Not Implemented

GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Thank you for your time

Title: Re: SA Chat
Post by: SA™ on February 22, 2013, 10:41:36 AM
can you create me a test account on your site pls?

what version of firefox is that?
tested on
latested firefox
no issue found

i also see you have enotify installed have you tryed removing that see if it makes a difference?

try downloading this
https://github.com/SAMods/SAChatBar
then goto
site.com/sachat/sachattest.php

if it works there then it gotta be a issue with another mod
Title: Re: SA Chat
Post by: Panoulis64 on February 22, 2013, 12:02:32 PM
I have the 19.0  firefox, just installed it, but I do not see any change.

uninstalled it sachat rc2 & enotify, and installed what you said (SA Chat RC3 Rev61 ) from https://github.com/SAMods/SAChatBar, now not appear in either the explorer, firefox or chrome.

I did the test at http://www.triglianoi.gr/sachat/sachattest.php I received an error message in both explorer
QuoteInternal Server Error

The server encountered an internal error or misconfiguration and was unable to complete your request.

Please contact the server administrator, [email protected] and inform them of the time the error occurred, and anything you might have done that may have caused the error.

More information about this error may be available in the server error log.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

I do not know if I understood correctly doing, because my angklika is not so good, I write from machine translation.

Title: Re: SA Chat
Post by: SA™ on February 22, 2013, 01:16:29 PM
sachatadmin/CHMOD

click the button
Title: Re: SA Chat
Post by: Panoulis64 on February 22, 2013, 01:58:47 PM
Quote from: Panoulis64 on February 22, 2013, 10:30:26 AM

So when the management I press sachatadmin/CHMOD,  I get the message...
QuoteMethod Not Implemented

GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Thank you for your time
Title: Re: SA Chat
Post by: SA™ on February 22, 2013, 02:13:24 PM
im sry i forgot that ealyer im tired

do you have mod_security enabled?
Title: Re: SA Chat
Post by: Panoulis64 on February 23, 2013, 07:19:33 AM
yes my hosting server.
Title: Re: SA Chat
Post by: SA™ on February 23, 2013, 10:40:38 AM
there is your issue ask you host to disable it
Title: Re: SA Chat
Post by: puw on February 26, 2013, 11:25:44 AM
Hi, am looking at SMF as a real possibility for a Radio Station forum. The one thing I need to have for it, I'm now beginning to think I am using the wrong terminology. I'm not sure of the difference now between a chatbox mod and a shoutbox mod.

What I want is for forum members to be able to have a public chat (to begin with) space, always on/showing, live/real time. So which one do I need, a chatbox or a shoutbox? The one I want, whichever term I should be using/looking for, is not a widget, not pushed into a column on the side with flags of users and not with the ability for guests to choose a nick and spam it etc, but is the main feature of the specific webpage/forum page (eg www.mysite/chat) - that all (and only) members can enter (through their logging in to the forum). At this moment in time, it can be a 'box' that shows on every forum page if needs be, or that (preferably) can be made to only show on one page via a forum link. It would be nice also if it could have a "locked" but running copy that shows outside of the forum (on a std webpage) to hopefully encourage people to join the forum and community.

Can someone help tell me and clarify which one I should be looking at please - chat or shout box? I hope my requirements are clear as I've spent two days going round in circles that I'm a bit dizzy now from lol.

Thank you.
Title: Re: SA Chat
Post by: SA™ on February 26, 2013, 12:40:01 PM
this isnt not neither of them this is basicly like facebook chat tho it does not have chat room at the moment user can chat to each other tho but it souds like you want a shoutbox maybe? or flash chat is nice google it
Title: Re: SA Chat
Post by: puw on February 26, 2013, 01:36:35 PM
Thx SA, was beginning to think it was a shoutbox and not a chatbox. Thx for clearing this up.
Title: Re: SA Chat
Post by: johnpaul2k2 on February 27, 2013, 04:38:41 AM
can i connect/integrate facebook, twitter and other social sites in One?
Title: Re: SA Chat
Post by: SA™ on February 27, 2013, 01:34:40 PM
what?
Title: Re: SA Chat
Post by: johnpaul2k2 on February 27, 2013, 01:48:33 PM
kinda....

use this mod to chat with friends on facebook, twitter and co
Title: Re: SA Chat
Post by: SA™ on February 27, 2013, 02:44:00 PM
i dont get what you mean?
Title: Re: SA Chat
Post by: pevanis on February 27, 2013, 04:21:07 PM
SA  :)

Thank Youuuuuuu  Sa chat is runnig smootly on  SMF 2.0.4 | SMF © 2011, Simple Machines  :)
Some of My members ask me how to block unwanted people is it possible some day ?
Title: Re: SA Chat
Post by: SA™ on February 27, 2013, 05:00:57 PM
in there profile look and layout show only buddies on chat bar is the only way for now maybe i can implement a ignor feature somtime
Title: Re: 2-SI Chat
Post by: johnpaul2k2 on February 28, 2013, 03:06:51 AM
Quote from: nend on July 23, 2010, 10:55:34 AM
The problem is custom themes, The chat usually only installs to the default theme's index.template.php. During the install you can select to install to additional themes but this does not always work.

Here is the manual way to install the chat on custom themes.

Open index.template.php in the theme you want 2-SI Chat to work in.

Find
</head>

Add Before
<script type="text/javascript" src="[b]http://www.your-site.com/path_to_forum[/b]/2sichat/index.php?action=head"></script>

Find
<body>

Add After
<script type="text/javascript" src="[b]http://www.your-site.com/path_to_forum[/b]/2sichat/index.php?action=body"></script>

Be sure to replace the path in the codes from http://www.your-site.com/path_to_forum to your site and path to your forum.

in order not to make any silly mistake, can someone give me an example with this

let's my site is topnichez.com,  how will i write it
Title: Re: SA Chat
Post by: SA™ on February 28, 2013, 01:43:11 PM
you dont need to add that anymore it all done by hooks
Title: Re: SA Chat
Post by: SA™ on February 28, 2013, 02:47:12 PM
Quote from: pevanis on February 27, 2013, 04:21:07 PM
SA  :)

Thank Youuuuuuu  Sa chat is runnig smootly on  SMF 2.0.4 | SMF © 2011, Simple Machines  :)
Some of My members ask me how to block unwanted people is it possible some day ?


i just took a look at the code there is support for pm block list built into smf but i havent tested this much i think it will only work if user dont have show buddys only enabled  need to fix that
Title: Re: SA Chat
Post by: johnpaul2k2 on February 28, 2013, 05:00:55 PM
Quote from: johnpaul2k2 on February 28, 2013, 03:06:51 AM
Quote from: nend on July 23, 2010, 10:55:34 AM
The problem is custom themes, The chat usually only installs to the default theme's index.template.php. During the install you can select to install to additional themes but this does not always work.

Here is the manual way to install the chat on custom themes.

Open index.template.php in the theme you want 2-SI Chat to work in.

Find
</head>

Add Before
<script type="text/javascript" src="[b]http://www.your-site.com/path_to_forum[/b]/2sichat/index.php?action=head"></script>

Find
<body>

Add After
<script type="text/javascript" src="[b]http://www.your-site.com/path_to_forum[/b]/2sichat/index.php?action=body"></script>

Be sure to replace the path in the codes from http://www.your-site.com/path_to_forum to your site and path to your forum.

in order not to make any silly mistake, can someone give me an example with this

let's my site is topnichez.com,  how will i write it

i added the code but it didn't work on my custom theme
Title: Re: SA Chat
Post by: SA™ on February 28, 2013, 09:48:59 PM
Quote from: SA™ on February 28, 2013, 01:43:11 PM
you dont need to add that anymore it all done by hooks

do i relay need to keep repeating myself here?

if it dont show on your theme but does on other then its a theme issue not the mod
does it even show on the default theme?
Title: Re: SA Chat
Post by: johnpaul2k2 on March 04, 2013, 12:12:58 PM
Quote from: SA™ on February 28, 2013, 09:48:59 PM
Quote from: SA™ on February 28, 2013, 01:43:11 PM
you dont need to add that anymore it all done by hooks

do i relay need to keep repeating myself here?

if it dont show on your theme but does on other then its a theme issue not the mod
does it even show on the default theme?
nope, didn't show on default theme
Title: Re: SA Chat
Post by: SA™ on March 04, 2013, 01:12:00 PM
admin/sachat/chmod

click the link
Title: Re: SA Chat
Post by: johnpaul2k2 on March 04, 2013, 01:26:45 PM
thanks alot

working now. i was thinking fi there is a way i can be chatting with my friends on facebook from this SA Chat
Title: Re: SA Chat
Post by: SA™ on March 04, 2013, 01:30:45 PM
nope this is not and never will be possible
Title: Re: SA Chat
Post by: lc62003 on March 07, 2013, 10:37:00 PM
Would it be possible to mod the code to only show friends if they are online?  Not sure my explanation is very good. 


If a user has Show Only Buddies in chat bar enabled only the friends who are online are shown. 

If Show only Buddies in chat bar is not enabled, online users and online friends are shown. 

In either case only members who are online are shown, never people who are not online.  Did I confuse me yet?   :D 
Title: Re: SA Chat
Post by: SA™ on March 08, 2013, 09:24:16 AM
if your asking for it to show offline users then no never gonna happen it would just hog more resources
Title: Re: SA Chat
Post by: lc62003 on March 08, 2013, 10:29:32 AM
Quote from: SA™ on March 08, 2013, 09:24:16 AM
if your asking for it to show offline users then no never gonna happen it would just hog more resources


That's exactly what I don't want it to do.  Online only, including online friends only.   ;)  In other words show friends if they're online.  And if enabled show other online users.  Currently it shows the entire friends list even if they're offline.  Resource hogging is precisely what I don't want it to do.  Not to mention this huge long list to scroll through.  :D
Title: Re: SA Chat
Post by: SA™ on March 08, 2013, 12:09:38 PM
so if you have show only buddies enabled it shows offline and onlline not tested buddys much but i know it dontdo it if show buddies is disbled
confirmed

ill post an update on git hub in a little bit
Title: Re: SA Chat
Post by: SA™ on March 08, 2013, 12:20:32 PM
should be fixed
https://github.com/SAMods/SAChatBar/archive/master.zip
Title: Re: SA Chat
Post by: lc62003 on March 08, 2013, 02:09:05 PM
I found a bug?  Cool!!   :D  The fix works perfectly.  Thanks!!   8)
Title: Re: SA Chat
Post by: SA™ on March 08, 2013, 02:11:20 PM
QuoteI found a bug?
indeed you did  :)
Title: Re: SA Chat
Post by: lc62003 on March 08, 2013, 04:41:44 PM
I have a question.  In the Admin CP there is a control to Disable SA Chat.  That one is self- explanatory.  Then there is Disable Bar, which is labeled "Disable chat bar leaving features".  What is the difference between the two?  What features remain?  I tried the Disable Bar and the best I could tell Chat was completely disabled as well.  Thanks!
Title: Re: SA Chat
Post by: SA™ on March 08, 2013, 05:52:12 PM
not sure it was there when i took the mod over
Title: Re: SA Chat
Post by: nend on March 09, 2013, 12:31:37 AM
I haven't messed with the code for a while but that feature was to access widgets and the chat without the bar present. This is another option if you want to manually insert the links into your forum instead of using the bar.

<a href="javascript:void(0)" onclick="javascript:chatTo('5')">UserName</a>

This would open a chat box to a user with id 5, making chat possible without the bar but leaving the features behind.

You would probably have to be a developer to really miss around with this since there is no other mods that support this at this time.
Title: Re: SA Chat
Post by: lc62003 on March 09, 2013, 09:39:48 AM
Interesting.  That would make it easy enough to throw a chat link in a user's profile while not having to load the bar every page.  HHhhmm.... 8)  Thanks nend!
Title: Re: SA Chat
Post by: S Mac on March 12, 2013, 12:34:05 PM
It's a brilliant mod but it seems to be slowing down my forum when I refresh the page. So I want to disable the chat bar and only have it open at certain times. Is there a way to show what hours I'll be available to chat? I've seen it on other websites where it says something like: "Chat isn't available at the moment, check back at ...."
Is this possible?
Thanks
Title: Re: SA Chat
Post by: Tikkuy on April 04, 2013, 12:11:19 PM
Hey you guys! I was wondering if you could help me out. Everything's working perfectly so far apart from my smilies. Basically they're showing up as a blank red box, which when clicked on shows this url: http://www.pophatesfags.net/forum/http%3Cimg%20src=

Then after that is this in text format: /www.pophatesfags.net/forum/Smileys/Invision/-morning-.gif' />

It seems like the HTML is getting confused, but it only seems to be working on certain smilies. Any idea why this could be happening?
Title: Re: SA Chat
Post by: Panoulis64 on April 04, 2013, 02:22:32 PM
I encounter a crazy problem. Everything works correctly, members see their friends, but I can not say that as a manager I see them.
Unfortunately me display a zero, whiteboard, though many members are in the forum .....
Any idea???
Title: Re: SA Chat
Post by: SA™ on April 05, 2013, 03:14:39 PM
check your profile under look and layout there is a few options for the chat bar
Title: Re: SA Chat
Post by: Panoulis64 on April 06, 2013, 02:47:28 PM
I'll be grateful SA if you write the path to find the point you mention.
Unfortunately in my profile I do not see an option
Title: Re: SA Chat
Post by: SA™ on April 06, 2013, 04:04:10 PM
www.site.com/index.php?action=profile;area=theme

right at the bottom
this is only in the recent versions what version are you using?
Title: Re: SA Chat
Post by: Panoulis64 on April 07, 2013, 10:38:53 AM
SA Chat    RC2 Rev60  I have this version.

But I do not see any setting related.

To understand better push Attached photo.
We see in the photo, that:
Left blank looks, this is my problem (I'm an administrator there)
While on the right as a member, there are a few friends.
Title: Re: SA Chat
Post by: SA™ on April 07, 2013, 12:46:58 PM
try this one
https://github.com/SAMods/SAChatBar/archive/master.zip
Title: Re: SA Chat
Post by: Panoulis64 on April 07, 2013, 01:52:00 PM
Dude I've tired, but upped the master and did not see a difference.

I think I remove all files completely to clean the base and back to the upload from the beginning.
But this by tomorrow, to have time.

If you have another idea ....
Title: Re: SA Chat
Post by: littlenicki on April 23, 2013, 08:47:37 PM
Does somebody stil have the SMF 1.1 Version of this mod?
Title: Re: SA Chat
Post by: SA™ on April 23, 2013, 09:11:16 PM
nope i never had a 1.1x version there never will be
Title: Re: SA Chat
Post by: littlenicki on April 23, 2013, 10:04:02 PM
I mean the previous mod which SA chatbar has been built around
Title: Re: SA Chat
Post by: SA™ on April 24, 2013, 09:21:44 AM
sa chat was not built around another mod i took over the 2sichat mod and renamed it to sa chat

but even then there was never a offical 1.1x version realsed nend ported the first versions of the chat bar to smf 1.1 for his site but he never realsed it
Title: Re: SA Chat
Post by: littlenicki on April 26, 2013, 11:56:53 PM
Oh! I see! Then 2sichat  is what I am looking for! Does anybody happen to have a version of it please?
Title: Re: SA Chat
Post by: SA™ on April 27, 2013, 09:20:33 AM
sure it is on the mods download page called sachat :)
Title: Re: SA Chat
Post by: Tikkuy on April 29, 2013, 10:47:32 AM
Quote from: Tikkuy on April 04, 2013, 12:11:19 PM
Hey you guys! I was wondering if you could help me out. Everything's working perfectly so far apart from my smilies. Basically they're showing up as a blank red box, which when clicked on shows this url: http://www.pophatesfags.net/forum/http%3Cimg%20src=

Then after that is this in text format: /www.pophatesfags.net/forum/Smileys/Invision/-morning-.gif' />

It seems like the HTML is getting confused, but it only seems to be working on certain smilies. Any idea why this could be happening?

Sorry to repost this, but it's still happening and I was wondering if anyone had had a chance to take a look at it? I'm sorry for nagging but a lot of my users are complaining about it!

I've found that it also happens with URL's. Instead of getting "https://www.google.com.au/" I'm getting "/www.google.com.au/' target='_blank'>https/www.google.com.au/". I'd love some help, as other than this the chat is working perfectly!
Title: Re: SA Chat
Post by: SA™ on April 29, 2013, 01:23:32 PM
that happens when using urls in the chat ?
Title: Re: SA Chat
Post by: Tikkuy on May 02, 2013, 08:45:39 AM
Quote from: SA™ on April 29, 2013, 01:23:32 PM
that happens when using urls in the chat ?

Yes. It seems that my links aren't working properly, although I haven't seen anyone else in this topic with that problem. However, SA chat was the first mod I installed so I don't think it should be clashing with anything else (I could be wrong about this though).
Title: Re: SA Chat
Post by: SA™ on May 03, 2013, 03:05:46 PM
kk thanks for the report ill try to take a look this weekend  :)
Title: Re: SA Chat
Post by: Tikkuy on May 04, 2013, 10:40:17 AM
Quote from: SA™ on May 03, 2013, 03:05:46 PM
kk thanks for the report ill try to take a look this weekend  :)

Thanks a lot for your help! :)
Title: Re: SA Chat
Post by: Sparrow. on May 05, 2013, 12:44:55 PM
Hey,

I have installed the mod and I'm able to use it, however there's some errors. When I go to the administration center and I click on Gadgets I get this error:


When I click on links I get this error:


When I click on theme I get this error:


And when I click on Chmod I get this error:


What have I done wrong? And what can I do to fix this?
Title: Re: SA Chat
Post by: SA™ on May 07, 2013, 01:39:04 PM
what version are you using?
Title: Re: SA Chat
Post by: Sparrow. on May 08, 2013, 03:47:50 AM
I'm using the latest SMF, 2.0.4 and the latest SA Chat version available. I also tried it on the default theme and the same happens.
Title: Re: SA Chat
Post by: SA™ on May 08, 2013, 01:15:45 PM
im pretty sure i fixed this in the dev version

https://github.com/SAMods/SAChatBar/archive/master.zip

try that one and let me know

this was the problem
https://github.com/SAMods/SAChatBar/commit/8525e7cdf5b5bd3b88b36e75b5a698fcbe14b3a9
Title: Re: SA Chat
Post by: Sparrow. on May 08, 2013, 05:40:42 PM
Thanks, it's working now  :D
Seems like I was not using the lastest version of SA Chat after all, I had RC2. I downloaded from that link you posted now. You should update it here:
http://custom.simplemachines.org/mods/index.php?mod=2534
That's where I downloaded from :p
Title: Re: SA Chat
Post by: SA™ on May 08, 2013, 06:38:36 PM
RC2 is the latest version the one on git hub is a dev version
Title: Re: SA Chat
Post by: Sparrow. on May 08, 2013, 07:42:55 PM
Quote from: SA™ on May 08, 2013, 06:38:36 PM
RC2 is the latest version the one on git hub is a dev version
Oh I see, well the dev version seem to be working pretty good so far.  :)
Title: Re: SA Chat
Post by: skydachi2013 on May 09, 2013, 07:33:32 PM
Hey SA, just wanted to chime in like many to thank you for developing such a great mod. I've been using the RC2 and the Dev version without any major problems and loving it.

As for minor problems though, there's one. My forum uses smf4mobile and smf4mobile-mod to do the redirect. However, as far as I have been able to implement, there's no way to disable SAChat on certain theme, and thus, it loads over the mobile theme, and it gets stuck loading forever, probably because they're both fighting over jquery. Is there any way SAChat could be set to disable itself on certain themes we can define? Or hardcode such an exception for smf4mobile?

Otherwise I'm in love, it's just right now I keep having to choose in between mobile access and decent chat, and with how many of my users lack regular PC access I had to go for mobile for the time being.
Title: Re: SA Chat
Post by: Sparrow. on May 11, 2013, 12:37:35 PM
Ok, I'm having a different problem now. After installing it successfully on my test SMF localhost, I tried installing it on my forum FTP and it didn't went too good :/

The SMF package manager did not install all the files and some files were missing, so I copied the files that were missing from my localhost SMF on my pc and put them in their place on the FTP and it worked. The problem now is that the chat is not updating unless I minimize it and open it again. For example if there is users online and they talk to me using the chat, I don't get any notification (no sound) and the chat window doesn't appear with their message. Also if I talk to them, what I said doesn't appear in my chat window and their  chat window. For them to see that message they have to minimize the chat window and open it again and I have to do the same, that's the only way to update the chat. Do you understand my problem?

I don't know what could be the problem. Do I need to check some settings on my DB in phpmyadmin? I've set the file permissions to 755. What is the file that handles this action? Maybe I could try to replace it with the one on my localhost SMF where the mod was working fine.
Title: Re: SA Chat
Post by: SA™ on May 13, 2013, 08:34:06 AM
try admin/sa chat /chmod

should fix that issue
Title: Re: SA Chat
Post by: Sparrow. on May 13, 2013, 02:11:08 PM
Quote from: SA™ on May 13, 2013, 08:34:06 AM
try admin/sa chat /chmod

should fix that issue
Still didn't work  :-\
I wonder if any files need to be edited? I had to install all the files manually, I just copied and pasted the files to their correct locations.
Title: Re: SA Chat
Post by: skydachi2013 on May 14, 2013, 11:09:11 AM
Did you try checking via ftp to double check on the file permissions? If you had to install manually, it might indicate there was a conflict somewhere with how your forum install is setup. Retrace your steps on the install very carefully, especially with the additional files that SA Chat install in it's own folder on the root on the forum directory.

This actually got me pretty badly with one or two mods early on, so it's always worth going over.

SA, is there any possibility/chance of some kind of theme-sensitive auto-disable. I'm trying to hack one in there myself, but only having "progress" in the sense that it's disabled cause-its-broken kind of progress.

edit: gonna try a manual install this time, adding the SAchat theme code manually and only to the custom theme that I have running as the forum default. Maybe this might work...
Title: Re: SA Chat
Post by: SA™ on May 14, 2013, 12:46:14 PM
and did you run the install.php?

can you check your server error logs pls not forum error logs

QuoteSA, is there any possibility/chance of some kind of theme-sensitive auto-disable. I'm trying to hack one in there myself, but only having "progress" in the sense that it's disabled cause-its-broken kind of progress.

yo mean disable the bar on certain themes?  done this last night not commited the changes to git hub yet tho
Title: Re: SA Chat
Post by: skydachi2013 on May 14, 2013, 12:58:32 PM
Quote from: SA™ on May 14, 2013, 12:46:14 PM
and did you run the install.php?

can you check your server error logs pls not forum error logs

QuoteSA, is there any possibility/chance of some kind of theme-sensitive auto-disable. I'm trying to hack one in there myself, but only having "progress" in the sense that it's disabled cause-its-broken kind of progress.

yo mean disable the bar on certain themes?  done this last night not commited the changes to git hub yet tho

Your title "SMF Hero" has never been more accurate. I will be beta-testing the hell out of this when you make the commit. Thanks!
Title: Re: SA Chat
Post by: SA™ on May 14, 2013, 01:02:12 PM
user title?

thanks i problay wont commit it just yet have a few things/issues to sort first still need to fix the lagging query
Title: Re: SA Chat
Post by: Sparrow. on May 14, 2013, 02:08:55 PM
Thank you all for helping, it's working now, I don't know what was the problem. I just re-installed it again for the 3rd time manually, and it started to work ;D

EDIT: I've found the source of some of these user bugs and was able to reproduce it.

Quote from: valtergomes on December 05, 2012, 07:18:17 AM
Hey SA,

first of all, Grats for such great mod!
But.. I'm having some issues.

I've installed the version RC2 from the github, and I can see the bar, I can see who's online, but when I click to chat with someone.. It just doesn't open the window and closes the "Who's Online" window..

Do you know what's causing this?

Cheers!

Quote from: freddosensei on November 06, 2012, 08:02:28 PM
an update on my situation.

For some users, when chat is enabled they can access my forum with no issues and the chat bar is present. However, if I start a chat with them, nothing appears. Would this be a Java issue on their computer? Or a flash issue?
Seems like it won't open the chat window of any users who are using weird characters on their name or weird accents. For example if my name was "Chíd" the window would not open because of the character " í ". Just tought you'd want to know so you can fix it :p
Title: Re: SA Chat
Post by: SA™ on May 15, 2013, 06:53:37 AM
thanks Sparrow ill look into this one
Title: Re: SA Chat
Post by: Padre gremista on May 15, 2013, 05:56:49 PM
Good evening everyone.
I am using SA Chat and am having some problems in relation to the chat. Some members can use it normally, but some members can not even open the window to post the message. What can be happening?
Title: Re: SA Chat
Post by: SA™ on May 15, 2013, 06:42:58 PM
Quote from: Sparrow. on May 14, 2013, 02:08:55 PM
Seems like it won't open the chat window of any users who are using weird characters on their name or weird accents. For example if my name was "Chíd" the window would not open because of the character " í ". Just tought you'd want to know so you can fix it :p
Title: Re: SA Chat
Post by: skydachi2013 on May 19, 2013, 12:37:33 AM
If you need and beta testing or help feel free to post before making a commit. I'm sorta stalking your git repository now.
Title: Re: SA Chat
Post by: SA™ on May 19, 2013, 03:12:09 PM
lol thanks im just about ready kinda to commit my changes there is  litle issue holding me back tho

Quote from: SA™ on May 15, 2013, 06:42:58 PM
Quote from: Sparrow. on May 14, 2013, 02:08:55 PM
Seems like it won't open the chat window of any users who are using weird characters on their name or weird accents. For example if my name was "Chíd" the window would not open because of the character " í ". Just tought you'd want to know so you can fix it :p

this one has beaten me so far nothing seems to work thats whats realy holding me back never been to good with that stuff
Title: Re: SA Chat
Post by: SA™ on May 21, 2013, 06:44:24 PM
https://github.com/SAMods/SAChatBar  8)

Title: Re: SA Chat
Post by: SA™ on May 26, 2013, 03:55:55 PM
=====SA Chat RC3 Rev64 Realsed=====
used proper php opening tag
show default themes but dont allow deletion
added test cht file for testing chat and preveiwing themes [acessed via site.com/sachat/sachattest.php]
fixed load checking issues
removed old default theme from package
enabled update online by default
admin ui changes
added optopn to reset member themes
copy js when copying theme
added options to disable bar on certain themes
improved genMemList() function
improved genMemcount() now uses genMemList('count')
fixed profile chat bar settings
function initOptions() only gets whats needed
fixed issue with utf8 special charactors
improved page loading time
moved $user_settings = loadUserSettings($member_id); from template buddy_list to genMemList()
added way to refresh bar manualy
removed init options functiionn no longer needed
fixed incorrect avatars showing
Title: Re: SA Chat
Post by: sunilimon on May 29, 2013, 06:28:04 PM
Sorry, but install packet doesn't work, smf says that is not well done or corrupt. Thanks!
Title: Re: SA Chat
Post by: SA™ on May 29, 2013, 06:51:16 PM
fixed
Title: Re: SA Chat
Post by: sunilimon on May 30, 2013, 05:47:32 AM
Install works great now! but when I chmod files the forum doesn't work properly. Too many time charging and resource limit problems. Could you check it?
Title: Re: SA Chat
Post by: SA™ on May 30, 2013, 11:58:00 AM
i will try and see
Title: Re: SA Chat
Post by: SA™ on May 31, 2013, 10:26:07 PM
Quote from: sunilimon on May 30, 2013, 05:47:32 AM
Install works great now! but when I chmod files the forum doesn't work properly. Too many time charging and resource limit problems. Could you check it?
try this one

https://github.com/SAMods/SAChatBar
Title: Re: SA Chat
Post by: sunilimon on June 01, 2013, 09:41:46 AM
Sorry, again I can't install the package. Thanks for your support! :D
Title: Re: SA Chat
Post by: SA™ on June 01, 2013, 12:56:53 PM
in the futer download the package if it from git hub open it and extracked the filesthen re zip the files inside the folder attached is a working dev package
Title: Re: SA Chat
Post by: sunilimon on June 02, 2013, 06:28:05 AM
Yes! works great now! How I can disable the time of loading and queries? Nice redesign! It could be interesting in near updates that chats could be near the bar, like Facebook, sometimes it's difficult read the forum when some writes you. Thank you very much for your support!
Title: Re: SA Chat
Post by: SA™ on June 02, 2013, 02:49:08 PM
sachat/index.php

$debug_load = true;

change the true to false
Title: Re: SA Chat
Post by: pevanis on June 03, 2013, 03:17:04 PM
 :(
Hi,
I had  SAChat RC1 at SMF 2.4 works perfect
Today i had try update to Bar-master _- doesn't work at all - CHMOD /Method Not Implemented GET to /index.php not supported.
                     Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
-----------------------------------------------------------------------------------------------------
second try  SAChatBarRC3 - CHMOD /Method Not Implemented GET to /index.php not supported.
                     Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
-----------------------------------------------------------------------------
than SAChatBar-rc2 - - CHMOD /Method Not Implemented GET to /index.php not supported.
                     Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
------------------------------------------------------------------------------------------------
than try to back on RC! same thing :-(

What can i do ????  :(

Thanks
Title: Re: SA Chat
Post by: pevanis on June 03, 2013, 03:18:34 PM
At the moment I'll be very happy with working old version :-(
Title: Re: SA Chat
Post by: SA™ on June 03, 2013, 04:05:12 PM
sounds like your host enabled mod_security you can try and disable it with .htaccess if your host allowes it if not just ask them if they can disable it
not sure why it would affect that tho any errors in forum error logs?
Title: Re: SA Chat
Post by: sunilimon on June 04, 2013, 05:44:37 AM
It works properly now, but we have  sometimes problems of overload. Also you may change the website (sa-mods.info) to another one, for example the github repository. Thank you very much for this great mod, is the best chat experience for SMF
Title: Re: SA Chat
Post by: pevanis on June 04, 2013, 08:12:16 AM
Quote from: SA™ on June 03, 2013, 04:05:12 PM
sounds like your host enabled mod_security you can try and disable it with .htaccess if your host allowes it if not just ask them if they can disable it
not sure why it would affect that tho any errors in forum error logs?

Thanks for answer :-)
Now it's working but
There's  Error Message :
INFO

   Undefined offset: 3870

   File: /home/bdsmhrva/public_html/sachat/functions.php
Line: 607
Title: Re: SA Chat
Post by: pevanis on June 04, 2013, 08:21:20 AM
Quote from: pevanis on June 04, 2013, 08:12:16 AM
Quote from: SA™ on June 03, 2013, 04:05:12 PM
sounds like your host enabled mod_security you can try and disable it with .htaccess if your host allowes it if not just ask them if they can disable it
not sure why it would affect that tho any errors in forum error logs?

Thanks for answer :-)
Now it's working but
There's  Error Message :
INFO

   Undefined offset: 3870

   File: /home/bdsmhrva/public_html/sachat/functions.php
Line: 607
NFO

   Undefined offset: 5758

   File: /home/bdsmhrva/public_html/sachat/functions.php
Line: 607

   
INFO

   Undefined offset: 3870

   File: /home/bdsmhrva/public_html/sachat/functions.php
Line: 607

and that just that Undefined offset: 3870 and Undefined offset: 5758 and always is in:

File: /home/bdsmhrva/public_html/sachat/functions.php   Line: 607
Title: Re: SA Chat
Post by: SA™ on June 04, 2013, 10:13:49 AM
yup this is fixed https://github.com/SAMods/SAChatBar/commit/54b491e26e6ad528d8812968a382c89a650bdda2

it is caused by ajax when it refreshes and people go off line

Title: Re: SA Chat
Post by: pevanis on June 04, 2013, 11:22:15 AM
Thank You 1000 times  :D
It's working without error now :-)
I noticed that dark skin isn't working with this version but i presume that's incompatible now ?
Title: Re: SA Chat
Post by: SA™ on June 04, 2013, 12:06:40 PM
indeed it would need updating but it would be easyer to copy the default theme and base yours on that
Title: Re: SA Chat
Post by: pevanis on June 04, 2013, 01:15:15 PM
Thank You :-)
Title: Re: SA Chat
Post by: skydachi2013 on June 04, 2013, 09:14:11 PM
Chiming in to say the latest version with the ability to exclude certain themes, and something in the code changed for me that made the load time instantaneous again. Thank you for all your hard work on this, it's amazing!

Bug:
Chat windows on Refresh: If you have multiple windows open, and refresh, they load ontop/into of each other. If you collapse that chat, refresh, the previous one will appear where it was, and so forth until they all show up again.
Title: Re: SA Chat
Post by: sunilimon on June 05, 2013, 10:37:46 AM
This is why I say that a chatbar like Facebook (with contacts on a group and chat windows fixed on the bar) could solve the problem :D
Title: Re: SA Chat
Post by: skydachi2013 on June 05, 2013, 10:56:21 AM
Quote from: sunilimon on June 05, 2013, 10:37:46 AM
This is why I say that a chatbar like Facebook (with contacts on a group and chat windows fixed on the bar) could solve the problem :D

Sort of a different issue but I see what you're saying. You're saying remove the free-floating window placement and bind their positions to the bottom bar instead. Honestly not a bad choice in my opinion (works for Google and Facebook), and might simplify the code a lot by no longer having to track window positions or those UI elements in the db. I'd definitely appreciate it as a new feature if theirs enough interest in implementing it. Also a "minimum width" for the clickable name element at the bottom would be nice.
Title: Re: SA Chat
Post by: realJedi on June 05, 2013, 11:36:49 AM
This is for formal German.

$txt['home'] = 'Startseite';
$txt['msgs'] = 'Nachrichten';
$txt['myspace'] = 'MySpace';
$txt['twitter'] = 'Tweeten';
$txt['facebook'] = 'Facebook';
$txt['whos_on'] = 'Benutzer online';
$txt['guest_msg'] = 'Willkommen. Bitte <a class="white" href="'.$boardurl.'/index.php?action=login">einloggen</a> oder <a class="white" href="'.$boardurl.'/index.php?action=register">registrieren.</a>';
$txt['load_warning'] = 'Der Chat ist aufgrund einer hohen Serverlast im Moment nicht verf&uuml;gbar.';


$txt['2sichat_mn_heart'] = 'Server-Verbindung aktualisieren';
$txt['2sichat_mn_heart_sub'] = 'In ms<br />Beispiel: 30000 = 30 Sekunden<br />Hinweis: Ein zu niedriger Wert kann Probleme mit der Datenbankverbindung verursachen.<hr />';
$txt['2sichat_cw_h_enable'] = 'Chatfenster Server-Verbindung';
$txt['2sichat_cw_h_e_sub'] = 'Seperate Verbindung f&uuml;r jedes Chatfenster';
$txt['2sichat_cw_heart'] = 'Chatfenster-Verbindung aktualisieren';
$txt['2sichat_cw_heart_sub'] = 'In ms<br />Beispiel: 15000 = 15 Secunden<br />Hinweis: Ein zu niedriger Wert kann Probleme mit der Datenbankverbindung verursachen.<hr />';
$txt['2sichat_purge'] = 'Gelesene Nachrichten l&ouml;schen';
$txt['2sichat_purge_sub'] = 'Gelesene Machrichten nach wievielen Tagen l&ouml;schen?<hr />';
$txt['2sichat_purge_all'] = 'Alle Nachrichten bereinigen';
$txt['2sichat_purge_a_sub'] = '<span style="color:red">Achtung! Diese Aktion l&ouml;scht alle Chat-Nachrichten.<br />Dies setzt auch den automatischen Z&auml;hler zur&uuml;ck.</span><hr />';
$txt['2sichat_gad_trans'] = 'Seiten&uuml;bersetzung aktivieren';
$txt['2sichat_gad_lang'] = 'Sprach-Code';
$txt['2sichat_gad_lang_sub'] = 'Der Seiten&uuml;bersetzer ben&ouml;tigt einen Sprach-Code.<br />Dies sollte die Standardsprache Ihrer Webseite sein.<hr />';
$txt['2sichat_ico_home'] = 'Startseiten-Icon anzeigen';
$txt['2sichat_ico_pm'] = 'PM-Icon anzeigen';
$txt['2sichat_ico_myspace'] = 'Myspace-Icon anzeigen';
$txt['2sichat_ico_twit'] = 'Twitter-Icon anzeigen';
$txt['2sichat_ico_fb'] = 'Facebook-Icon anzeigen<hr />';
$txt['2sichat'] = 'SA Chat';
$txt['twosichatConfig'] = 'Einstellungen';
$txt['twosichatGadget'] = 'Gadgets';
$txt['2sichat_admin'] = 'SA Chat Administration';
$txt['2sichat_config'] = 'SA Chat Konfiguration';
$txt['2sichat_config_des'] = 'Hier k&ouml;nnen die Haupteinstellungen f&uuml;r SA Chat vorgenommen werden';
$txt['2sichat_gadgets'] = 'SA Chat Gadgets';
$txt['2sichat_gadgets_des'] = 'Eigene Gadgets hinzuf&uuml;gen';
$txt['2sichat_gad_add'] = 'Gadget hinzuf&uuml;gen';
$txt['2sichat_title'] = 'Titel';
$txt['2sichat_url'] = 'URL/Gadget Code';
$txt['2sichat_width'] = 'Breite';
$txt['2sichat_height'] = 'H&ouml;he';
$txt['2sichat_vis'] = 'Sichtbarkeit';
$txt['2sichat_vis0'] = 'Versteckt';
$txt['2sichat_vis1'] = 'Mitglieder';
$txt['2sichat_vis2'] = 'Gast';
$txt['2sichat_vis3'] = 'Alle';
$txt['2sichat_ord'] = 'Sortierung';
$txt['2sichat_preview'] = 'Vorschau';
$txt['2sichat_edit'] = 'Bearbeiten';
$txt['2sichat_delete'] = 'L&ouml;schen';
$txt['2sichat_link'] = 'Link';
$txt['2sichat_list_type'] = 'Alle online Benutzer anzeigen';
$txt['2sichat_list_t_sub'] = 'Zeigt jeden online Benutzer an, statt lediglich die Freunde.<hr />';
$txt['2sichat_dis_list'] = 'Chatliste deaktivieren';
$txt['2sichat_dis_l_sub'] = 'Entfernt die <i>Benutzer online</i>-Liste.<hr />';
$txt['2sichat_disable'] = 'SA Chat deaktivieren';
$txt['2sichat_disable_sub'] = 'Deaktiviert SA Chat und alle Erweiterungen.<hr />';
$txt['2sichat_dis_bar'] = 'Chat-Leiste deaktivieren';
$txt['2sichat_dis_b_sub'] = 'Chat-Leiste deaktivieren, Erweiterungen aktiviert lassen.<hr />';
$txt['2sichat_load_chk'] = 'Auslastungspr&uuml;fung aktivieren';
$txt['2sichat_max_load'] = 'H&ouml;chste Ladelast';
$txt['2sichat_max_l_sub'] = 'Durchschnittliche Ladelast des Servers';
$txt['2sichat_load_dis_list'] = 'Bei hoher Auslastung Chat-Liste deaktivieren';
$txt['2sichat_load_dis_chat'] = 'Bei hoher Auslastung SA Chat deaktivieren';
$txt['2sichat_load_dis_bar'] = 'Bei hoher Auslastung Chat-Leiste deaktivieren';
$txt['2sichat_live_online'] = 'Online-Liste live aktualisieren';
$txt['2sichat_simple_bbc'] = 'Einfaches BBC aktivieren<hr />';
$txt['2sichat_permissions'] = 'Gruppenfreigaben aktivieren';
$txt['2sichat_permissions_sub'] = 'Hiermit k&ouml;nnen die Gruppenfreigaben in SMF verwaltet werden.<br />Hinweis: Die Einstellungen auf dieser Seite &uuml,berschreiben die Freigabeeinstellungen.<hr />';
Title: Re: SA Chat
Post by: SA™ on June 05, 2013, 01:00:11 PM
Quote from: skydachi2013 on June 05, 2013, 10:56:21 AM
Quote from: sunilimon on June 05, 2013, 10:37:46 AM
This is why I say that a chatbar like Facebook (with contacts on a group and chat windows fixed on the bar) could solve the problem :D

Sort of a different issue but I see what you're saying. You're saying remove the free-floating window placement and bind their positions to the bottom bar instead. Honestly not a bad choice in my opinion (works for Google and Facebook), and might simplify the code a lot by no longer having to track window positions or those UI elements in the db. I'd definitely appreciate it as a new feature if theirs enough interest in implementing it. Also a "minimum width" for the clickable name element at the bottom would be nice.

it will only be theme changes todo what you wanted  ill see wanted to move the chat windows anyway

QuoteThis is for formal German.

thanks for the translation
Title: Re: SA Chat
Post by: neonsyrup on June 06, 2013, 04:34:52 AM
Anyone know why pages don't load correctly with this mod installed? Like, it loads funny compared to normal.
Title: Re: SA Chat
Post by: SA™ on June 06, 2013, 09:38:36 AM
try this one attachedd to this post
http://www.simplemachines.org/community/index.php?topic=391961.msg3555797#msg3555797
or
https://github.com/SAMods/SAChatBar
Title: Re: SA Chat
Post by: Kindred on June 06, 2013, 03:58:01 PM
hmmm.... installed rev65 in place of rev60 (although rev60 seemed to work correctly....)

now I can't find the chat bar...
(IE9)
I can see a blue bar across the bottom that is a pizel in height... but can't get it to do anything
Title: Re: SA Chat
Post by: neonsyrup on June 06, 2013, 04:08:26 PM
Quote from: SA™ on June 06, 2013, 09:38:36 AM
try this one attachedd to this post
http://www.simplemachines.org/community/index.php?topic=391961.msg3555797#msg3555797
or
https://github.com/SAMods/SAChatBar

Naw, none of those worked. Is there maybe an older version that will work?
Title: Re: SA Chat
Post by: Kindred on June 06, 2013, 04:17:06 PM
define "loads funny"
That is not really a useful description
Title: Re: SA Chat
Post by: SA™ on June 06, 2013, 05:08:22 PM
Quote from: Kindred on June 06, 2013, 03:58:01 PM
hmmm.... installed rev65 in place of rev60 (although rev60 seemed to work correctly....)

now I can't find the chat bar...
(IE9)
I can see a blue bar across the bottom that is a pizel in height... but can't get it to do anything

did you run the fix bar thing in sachat admin?
Title: Re: SA Chat
Post by: Kindred on June 06, 2013, 05:21:20 PM
good call.   that fixed it (and I missed it... 'DOH!)
Title: Re: SA Chat
Post by: neonsyrup on June 06, 2013, 05:25:41 PM
It's hard to explain, it's like have the screen is white for a few seconds and the text at the bottom of the page is displayed on it but bigger, then it goes normal and lags a little bit. Goes completely normal when SA isnt installed with normal instant page loads.
Title: Re: SA Chat
Post by: Skaty on June 06, 2013, 07:15:19 PM
tried it in vanilla smf but can't see the bar, it is activated.
Title: Re: SA Chat
Post by: Kindred on June 06, 2013, 08:12:49 PM
Quote from: SA™ on June 06, 2013, 05:08:22 PM
did you run the fix bar thing in sachat admin?
Title: Re: SA Chat
Post by: Skaty on June 06, 2013, 08:33:23 PM
Quote from: Kindred on June 06, 2013, 08:12:49 PM
Quote from: SA™ on June 06, 2013, 05:08:22 PM
did you run the fix bar thing in sachat admin?

same mistake :) fixed indeed.
Title: Re: SA Chat
Post by: SA™ on June 07, 2013, 02:05:30 AM
Quote from: neonsyrup on June 06, 2013, 05:25:41 PM
It's hard to explain, it's like have the screen is white for a few seconds and the text at the bottom of the page is displayed on it but bigger, then it goes normal and lags a little bit. Goes completely normal when SA isnt installed with normal instant page loads.

gotta link to your site with it installed?
Title: Re: SA Chat
Post by: neonsyrup on June 07, 2013, 04:12:43 AM
Yeah, http://www.outsiderscorner.com and I tested it with firefox and chrome, not sure about IE. It should be easy to see what I'm talking about, but it could possibly be my internet speed or computer?
Title: Re: SA Chat
Post by: SA™ on June 07, 2013, 01:20:37 PM
seems to be loaadin sweet for me
maybe as you say internet connection
Title: Re: SA Chat
Post by: neonsyrup on June 07, 2013, 04:55:06 PM
Thank you for looking into it. Good and fast support
Title: Re: SA Chat
Post by: Kaise123 on July 25, 2013, 02:38:01 PM
I'm having some trouble with this and SMF4Mobile. Whenever SA chat is enabled, Mobile users cannot view the forum at all and only the chat bar loads. I've tried disabling it for the theme, But it doesn't disable, I've checked it with multiple themes. Is this feature currently broken/can anyone link me to a version where it works? I'm running RC4 Rev65. Thanks
Title: Re: SA Chat
Post by: Kindred on July 25, 2013, 02:44:14 PM
I am betting that there is some conlficiton interaction between the smf4mobile functions and the chatbar functions....  Since smf4mobile is a paid theme/mod and none of the rets of us even have a copy available to test it, I think you'd be best to take it up with them
Title: Re: SA Chat
Post by: SA™ on July 25, 2013, 05:00:17 PM
Quote from: Kindred on July 25, 2013, 02:44:14 PM
I am betting that there is some conlficiton interaction between the smf4mobile functions and the chatbar functions....  Since smf4mobile is a paid theme/mod and none of the rets of us even have a copy available to test it, I think you'd be best to take it up with them

maybe but people enter the themes wrong sometime 

Quote from: Kaise123 on July 25, 2013, 02:38:01 PM
I'm having some trouble with this and SMF4Mobile. Whenever SA chat is enabled, Mobile users cannot view the forum at all and only the chat bar loads. I've tried disabling it for the theme, But it doesn't disable, I've checked it with multiple themes. Is this feature currently broken/can anyone link me to a version where it works? I'm running RC4 Rev65. Thanks

you followinmg the instructions in admin to add disabled themes?
if so dont use theme(id) just use id
Title: Re: SA Chat
Post by: Kaise123 on July 26, 2013, 04:26:13 AM
Thanks for the fast response!

I just put 'SMF4Mobile' in the disabled themes box, And I checked through the theme's configuration/information files to make sure it didn't have any other internal reference. By Theme ID, Do you mean the number that the theme is when you change it manually ("/index.php?theme=1")?

EDIT: I put a '4' in the box and it worked perfectly! Thank you very much. It might be a good idea to put that on the admin page/here on the OP as

"Disable bar on certain themes

Separate each theme with a "|"
Example:
theme1|theme2|theme3"

Doesn't really explain that you need to put the ID/What the ID is.

Thanks again
Title: Re: SA Chat
Post by: SA™ on July 26, 2013, 10:16:36 AM
no it doesnt your correct i will chnge that wording
Title: Re: SA Chat
Post by: Kaise123 on July 26, 2013, 02:34:33 PM
Quote from: SA™ on July 26, 2013, 10:16:36 AM
no it doesnt your correct i will chnge that wording

Awesome, I'm sure that'll help alot of people. Thanks again :D
Title: Re: SA Chat
Post by: Game.ruler on August 08, 2013, 03:21:55 AM
i installed SA chatbar (downloaded from git hub) but now my site showing "404 not found"...
how to disable it???
Title: Re: SA Chat
Post by: SA™ on August 08, 2013, 04:41:23 AM
download the package again to your desctop extracked it and grab the remove_hooks.php and upload it to your site same place as your ssi.php and point you brouser to site.com/remove_hooks.php
Title: Re: SA Chat
Post by: electricwildflower on August 08, 2013, 06:23:15 AM
Got abit of a problem and need your support.

I am running a older version of sachat RC1 Rev59 i completely forgot i had it installed for ages and come to check for updates which i noticed SAChatBarRC3.zip so i un installed the mod on my test forum and uploaded the RC3 version and installed everything it all went fine but the problem is nothing shows.

Not a single thing shows anywhere only the SAchat settings in admin shows. The bar doesn't show on profile, forum, admin my custom php files on my website, nothing it's like it's not installed even though it clearly is in admin.

I have the below in all my custom php files but still nothing.

<script type="text/javascript" src="http://keepitrealkeepitgoth.com/test/forum/sachat/index.php?action=head">
<script type="text/javascript" src="http://keepitrealkeepitgoth.com/test/forum/sachat/index.php?action=body">


Checked all the settings just to make sure anything is disabled and everything looks ok. Have i gone wrong somewhere or is there a bug or something i am running smf 2.0.4

Thanks ahead for the support :)
Title: Re: SA Chat
Post by: SA™ on August 08, 2013, 10:20:49 AM
Quote from: Kindred on June 06, 2013, 08:12:49 PM
Quote from: SA™ on June 06, 2013, 05:08:22 PM
did you run the fix bar thing in sachat admin?
Title: Re: SA Chat
Post by: electricwildflower on August 08, 2013, 11:03:42 AM
Excuse me if i am stupid but i see no option in sachat admin to do it i just see the disable sa chat, disable bar, permissions, enable facebook etc but no where to run fix bar or anything of the sort.

It's partially fixed it's self my custom php files show the bar fine but the forums and everywhere else show nothing
Title: Re: SA Chat
Post by: SA™ on August 09, 2013, 09:58:31 AM
did you even look past the first admin page

eg admin/sa chat/maintenance fix bar thing is on that page at the bottom


edit
sry i havent upload that version yet with maintenance use this one here
http://samods.github.io/SAChatBar/

that one seem to not lag ure site as much sry for the confusion
Title: Re: SA Chat
Post by: electricwildflower on August 09, 2013, 01:11:04 PM
Thanks for the reply.

Had problems trying to upload the zip version complained it was empty even though i extracted it to make sure it wasn't but the tar.gz uploaded fine and installed. These are the files on the link you gave me to check out.

I still had the same problem i checked out the following

Ran fix bar
Ran clear cache,
Ran purg all messages
Ran Optimise Database tables
made sure permissions where set right for members, guests etc.
checked out error logs and nothing pointing to sachat

Nothing seemed to fix it but oddly enough i decided to back up my main website and installed the chatbar but it never showed and after i ran fix bar it showed up and now runs fine on the main website. I decided to delete my test website as it mirrors my main and just copy the main and run the repair settings.php and everything is ok now.

not sure what the problem was as i was also having problems getting into admin which would always tell me i was logged out and needed to sign back in to get to admin.

Anyway all works now Cheers :)
Title: Re: SA Chat
Post by: Kindred on August 09, 2013, 01:13:38 PM
the issue with zip versions from github is known...

github puts the zip versions two layers deep, which means, whent he package manager goes to extract it, all it finds is another layer of directories, no XML install file
Title: Re: SA Chat
Post by: SA™ on August 10, 2013, 07:48:15 AM
Quote from: electricwildflower on August 09, 2013, 01:11:04 PM
Thanks for the reply.

Had problems trying to upload the zip version complained it was empty even though i extracted it to make sure it wasn't but the tar.gz uploaded fine and installed. These are the files on the link you gave me to check out.

I still had the same problem i checked out the following

Ran fix bar
Ran clear cache,
Ran purg all messages
Ran Optimise Database tables
made sure permissions where set right for members, guests etc.
checked out error logs and nothing pointing to sachat

Nothing seemed to fix it but oddly enough i decided to back up my main website and installed the chatbar but it never showed and after i ran fix bar it showed up and now runs fine on the main website. I decided to delete my test website as it mirrors my main and just copy the main and run the repair settings.php and everything is ok now.

not sure what the problem was as i was also having problems getting into admin which would always tell me i was logged out and needed to sign back in to get to admin.

Anyway all works now Cheers :)

glad u got it working
just so you know there is a chat test page here
http://site.com/forum/sachat/sachattest.php chances are if it works there and no were else it a conflict with somthing
Title: Re: SA Chat
Post by: electricwildflower on August 10, 2013, 11:03:17 AM
Seems the link you sent me is down ;)
Title: Re: SA Chat
Post by: SA™ on August 10, 2013, 11:23:05 AM
well yes you have to replace site.com with your site :P
Title: Re: SA Chat
Post by: electricwildflower on August 10, 2013, 01:40:21 PM
Oh haha sorry :P
Title: Re: SA Chat
Post by: electricwildflower on August 19, 2013, 12:12:40 PM
Have a question if you can help me unless i have missed the questions already being asked.

Anyone know how i can attach the chatbox to the sachat bar as it performs horribly when it's on it's own. It would be much better and look better if it was attached.

I am unsure on what code i have to edit ?

Cheers
Title: Re: SA Chat
Post by: SA™ on August 19, 2013, 01:40:07 PM
What? Didn't get that
Title: Re: SA Chat
Post by: electricwildflower on August 19, 2013, 02:28:47 PM
Sorry i might of worded that wrong.

When i chat to someone the chat box i use to chat is not attached to the actual bar which is what i am looking to do. So when someone wants to chat it will open up but stay attached the the actual bar if you get me :P
Title: Re: SA Chat
Post by: SA™ on August 20, 2013, 07:19:38 AM
your have to mod the theme a bit i cant rwaly say how as ive still not got the hand of the theme sytsem in this mod i didnt code that part
Title: Re: SA Chat
Post by: electricwildflower on August 20, 2013, 10:37:03 AM
Ah ok i will look into the theme and see how i can mod if Cheers :)
Title: Re: SA Chat
Post by: enen92 on September 03, 2013, 01:57:48 PM
Hey all,

Is it possible to append the conversation windows to the bar without opening them aside? Like in facebook chat or "Who's online" option?

Thanks
Title: Re: SA Chat
Post by: SA™ on September 03, 2013, 02:19:33 PM
Quote from: SA™ on August 20, 2013, 07:19:38 AM
your have to mod the theme a bit i cant realy say how as ive still not got the hand of the theme system in this mod i didn't code that part


i am trying different things with smf 2.1 themeing isnt realy my thing  :D
Title: Re: SA Chat
Post by: Cat McFarlane on September 13, 2013, 04:32:09 AM
Hiya, I've installed it without errors, on SMF 2.5.0, using Fresh Looks, but I can't see it anywhere.
Thanks, Cat
Title: Re: SA Chat
Post by: SA™ on September 13, 2013, 10:06:38 AM
in maintenace in sa chat admin ran the fix bar thing
Title: Re: SA Chat
Post by: Cat McFarlane on September 13, 2013, 05:38:44 PM
Quote from: SA™ on September 13, 2013, 10:06:38 AM
in maintenace in sa chat admin ran the fix bar thing

Thanks SA  :) Sorry, but I must be missing something. I installed it fine, were no error messages. Using Fresh Looks. Have used CHMOD, but still not seeing it. Was there code to put into SimplePortal boxes, something extra I've not done? I must admit to not knowing what this means or what code to use ... "The integration codes can be put into any html code. One in the head and one in the body. The install script however installs the JavaScript codes by default in the default theme, but you can add these codes into whatever template you like SMF or not".
Title: Re: SA Chat
Post by: SA™ on September 14, 2013, 10:44:36 AM
sry try this one here
http://samods.github.io/SAChatBar/
Title: Re: SA Chat
Post by: Cat McFarlane on September 14, 2013, 12:50:45 PM
Quote from: SA™ on September 14, 2013, 10:44:36 AM
sry try this one here
http://samods.github.io/SAChatBar/

Thanks for new upload link/package.  :) I couldn't upload it to forum.
Title: Re: SA Chat
Post by: SA™ on September 15, 2013, 11:04:20 AM
Quote from: Kindred on August 09, 2013, 01:13:38 PM
the issue with zip versions from github is known...

github puts the zip versions two layers deep, which means, whent he package manager goes to extract it, all it finds is another layer of directories, no XML install file

try the tar.gz one
Title: Re: 2-SI Chat
Post by: azkia on September 27, 2013, 08:24:21 PM
Quote from: nend on July 23, 2010, 10:55:34 AM
The problem is custom themes, The chat usually only installs to the default theme's index.template.php. During the install you can select to install to additional themes but this does not always work.

Here is the manual way to install the chat on custom themes.

Open index.template.php in the theme you want 2-SI Chat to work in.

Find
</head>

Add Before
<script type="text/javascript" src="http://www.your-site.com/path_to_forum/2sichat/index.php?action=head"></script>

Find
<body>

Add After
<script type="text/javascript" src="http://www.your-site.com/path_to_forum/2sichat/index.php?action=body"></script>

Be sure to replace the path in the codes from http://www.your-site.com/path_to_forum to your site and path to your forum.


HI nend, i have a problem , i installed SA Chat in my SMF forum 2.0.5  no error messages. but the applications is not work, i used custom theme from Dark Mark,  So, if i try your codes above can work in my forum? sorry i still newbie

Title: Re: SA Chat
Post by: nend on September 28, 2013, 01:22:59 AM
Quote from: azkia on September 27, 2013, 08:24:21 PM
Quote from: nend on July 23, 2010, 10:55:34 AM
The problem is custom themes, The chat usually only installs to the default theme's index.template.php. During the install you can select to install to additional themes but this does not always work.

Here is the manual way to install the chat on custom themes.

Open index.template.php in the theme you want 2-SI Chat to work in.

Find
</head>

Add Before
<script type="text/javascript" src="http://www.your-site.com/path_to_forum/2sichat/index.php?action=head"></script>

Find
<body>

Add After
<script type="text/javascript" src="http://www.your-site.com/path_to_forum/2sichat/index.php?action=body"></script>

Be sure to replace the path in the codes from http://www.your-site.com/path_to_forum to your site and path to your forum.


HI nend, i have a problem , i installed SA Chat in my SMF forum 2.0.5  no error messages. but the applications is not work, i used custom theme from Dark Mark,  So, if i try your codes above can work in my forum? sorry i still newbie



That post is three years old. Since then SA has taken over the chat development a few years ago. I believe the chat uses hooks instead of template edits now days so that post is not relevant. There should be a fix chat option in there somewhere, sorry can't be of much help I haven't touch the chat in years.
Title: Re: SA Chat
Post by: Kindred on September 28, 2013, 02:02:35 AM
Quote from: SA™ on September 13, 2013, 10:06:38 AM
in maintenace in sa chat admin run the fix bar thing
Title: Re: SA Chat
Post by: krittin98 on September 28, 2013, 11:46:32 AM
I am using the RC3 version and SMF 2.0.4
My forum users are unable to chat with each other
In Fact, when they click on Who's Online and then on the name of the user they want to chat with the chat box does not appear at all
Please help
Title: Re: SA Chat
Post by: krittin98 on September 29, 2013, 03:18:23 PM
someone please help me
Title: Re: SA Chat
Post by: electricwildflower on September 30, 2013, 04:01:17 PM
I have abit of a problem if you can help me.

When i see who's online and i click on there name it opens up a small chat box but it seems to interfere with the navigation bar on my website and also the forums check out the photo below to see what i mean.

Is there anyway to solve this or anything.

Cheers
Title: Re: SA Chat
Post by: Exsharaen on October 09, 2013, 10:36:42 PM
Hi SA,

I just discovered this problem when suddenly my Web host told me I was out of disk quota. Since I never had any upload activities for months, I checked the whole folders in my host, and I discovered that SA Chat had generated a file named error_log which was huge (64 MB). And it grew without notice until my Web host said I was out of disk quota. IMO this behavior--letting errors undetected--is not a healthy one (I don't know why you choose to log errors to a file instead of database, but you must have your reasons to do so).

So, my suggestion, could you add an Error/Log section in the SA Chat admin panel, so we can immediately notice when there's something wrong with SA Chat? An option to purge the error log (as SMF has) will also be nice.

By the way, I installed the latest version (RC3 Rev63) from SMF and still got these errors (in fact, warnings) every seconds, so my error_log file is growing again. I must uninstall SA chat for now (disabling it didn't work, the error_log was still growing) lest I'll run out of quota again. Can you help determine what's wrong with my settings?

[10-Oct-2013 09:15:51 Asia/Jakarta] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/timezonedb.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/timezonedb.so: cannot open shared object file: No such file or directory in Unknown on line 0
[10-Oct-2013 09:15:51 Asia/Jakarta] PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/extensions/no-debug-non-zts-20100525/mailparse.so' - /usr/local/lib/php/extensions/no-debug-non-zts-20100525/mailparse.so: cannot open shared object file: No such file or directory in Unknown on line 0


They always come in pair and are generated every few seconds (I think every heart beat or every page load).

Thank you,
Title: Re: SA Chat
Post by: SA™ on October 10, 2013, 10:13:03 AM
the version on here has no error log  built in the errpr file is php's error loggin

the one here does has error loggin built in the sachat admin panel that is kinda like smf's error logs in admin
https://github.com/SAMods


as for the actual errors there not actualy from the chat mod as far as i can see what php version are you uisng ?
Title: Re: SA Chat
Post by: Kindred on October 10, 2013, 10:15:38 AM
the error.log file is created by the server when php itself encounters an error.

Those seem to be timezone setting reports...  check with your host.

I have been running SA Chat for months now with no error.log being created
Title: Re: SA Chat
Post by: SA™ on October 10, 2013, 10:17:31 AM
yeah i just did a sarch in here for those errors seems it maybe php.ini issue? id ask you host about them
Title: Re: SA Chat
Post by: Exsharaen on October 11, 2013, 04:42:04 PM
Hmmm that's weird, since I have not encountered error_log anywhere else. My server uses PHP 5.4.19, I'll try to contact them then and will update you as soon as possible.

Thanks,

EDIT:
Incidentally I found another error_log at the base of my forum installation (/forum). Still investigating with my Web host.
Title: Re: SA Chat
Post by: SA™ on October 21, 2013, 01:43:37 PM
new version realesed
this is mainly some code cleanup but there was also a few fixes and additions
full changes
https://github.com/SAMods/SAChatBar/commits/master
Title: Re: SA Chat
Post by: smitch6 on October 25, 2013, 05:21:42 PM
hi since updating to rc 2.0.6 the chat has 7 queries

it is saying it's loaded in 0.04 but with 7 queries

any ideas pls
Title: Re: SA Chat
Post by: SA™ on October 25, 2013, 06:30:56 PM
dont know why i get/got 6

now i got it to 4

with these changes
https://github.com/SAMods/SAChatBar/commit/26a018eb4a840d9a8fa326358a18072a74fbc8c8

just updated the package here with them changes
Title: Re: SA Chat
Post by: Panoulis64 on October 30, 2013, 09:49:06 AM
Good evening SA, in Error Logs
I have message "INFO Undefined variable: cpu File: /home/triglian/public_html/sachat/functions.php Line: 751"
what can be and how it corrected??
Title: Re: SA Chat
Post by: SA™ on October 30, 2013, 10:27:19 AM
do you have load checkinh enabled ?
Title: Re: SA Chat
Post by: Panoulis64 on October 30, 2013, 12:41:40 PM
Yes, I closed now
Title: Re: SA Chat
Post by: Panoulis64 on November 06, 2013, 05:37:14 AM
Good evening SA
One problem I have with the language in the window that opens, while everywhere as shown in the photo are all OK, (utf 8) the member's name in the window that opens is not displayed correctly (utf 8).
Please see and appended photo.
Title: Re: SA Chat
Post by: SA™ on November 06, 2013, 12:33:37 PM
thats cos of a fix i added for non utf8 dam it never tested with utf8 :(

sachat/functions.php

replace
$temp['real_name'] = utf8_encode($temp['real_name']);
with
$temp['real_name'] = $temp['real_name'];

not sure how one would fix it for both
Title: Re: SA Chat
Post by: STRRAYNGE on November 19, 2013, 01:53:20 PM
Loving the chat, users love it too. Just one question, im getting an issue with each message I send or user sends, showing up twice? I apologize if this has been covered already, but couldnt find it. Thanks in advance!
Title: Re: SA Chat
Post by: SA™ on November 19, 2013, 02:03:21 PM
hmm not come across this error yet
have you tyyed this one here
https://github.com/SAMods/SAChatBar
Title: Re: SA Chat
Post by: STRRAYNGE on November 19, 2013, 02:05:13 PM
Im just using the one in the mod section?
Title: Re: SA Chat
Post by: SA™ on November 19, 2013, 02:06:30 PM
try the one on github and see if the issue is still there?
Title: Re: SA Chat
Post by: STRRAYNGE on November 19, 2013, 02:07:57 PM
Quote from: SA™ on November 19, 2013, 02:06:30 PM
try the one on github and see if the issue is still there?
Thanks! I downloaded it. Do I just need to use the package manager and install it? And do I need to uninstall the other one first?
Title: Re: SA Chat
Post by: SA™ on November 19, 2013, 02:13:04 PM
yeah uninstall the other one then install the new one

but
Quotegithub puts the zip versions two layers deep, which means, whent he package manager goes to extract it, all it finds is another layer of directories, no XML install file

so if that happens just extraced it yo your desktop and rezip it properly
Title: Re: SA Chat
Post by: STRRAYNGE on November 19, 2013, 02:14:38 PM
Quote from: SA™ on November 19, 2013, 02:13:04 PM
yeah uninstall the other one then install the new one

but
Quotegithub puts the zip versions two layers deep, which means, whent he package manager goes to extract it, all it finds is another layer of directories, no XML install file

so if that happens just extraced it yo your desktop and rezip it properly
ok, thanks. ill give it a shot. sort of new to this, so I might be back for help. Ill report back in a few. Thank you again!
Title: Re: SA Chat
Post by: STRRAYNGE on November 19, 2013, 04:02:36 PM
Unfortunately it is still doing it. It shows up twice if I send someone a message and when they send one back, but if I minimize the chat window, and re-open it, it just show the single reply?
Title: Re: SA Chat
Post by: SA™ on November 20, 2013, 02:44:33 PM
hmm what brouser do you use im not getting it in chrome not tested the others yet
Title: Re: SA Chat
Post by: STRRAYNGE on November 20, 2013, 03:01:48 PM
Quote from: SA™ on November 20, 2013, 02:44:33 PM
hmm what brouser do you use im not getting it in chrome not tested the others yet
Ive mainly been using FF. I can try it on Chrome this afternoon when I get home. I dont have chrome here on my work computer. Its not that big of a deal, it just posts twice, but goes away if I minimize the chat block and open it back up. I didnt even notice it until a couple members told me.
Title: Re: SA Chat
Post by: sunilimon on November 20, 2013, 04:30:13 PM
Hi there!

Sorry SA but my smf_2sichat_error table is going bigger every day. Could you help me?

There are some errors that has this table:

Undefined index: additional_groups
Undefined index: id_group
Undefined index: id_post_group
Undefined index: avatar

Also, is there any way to deactivate the errorlog function? yesterday I pruned my table because had about 120MB

Thank you very much!
Title: Re: SA Chat
Post by: electricwildflower on November 22, 2013, 07:07:15 PM
Need abit of support i am building a new theme on my test forum so have a fresh install of SA chat and modified it to fit my theme but the problem is now part of it doesn't look right. The little button that you click which opens the menu works fine but then the menu seems to be off from the bar and it looks different.

I have included a photo below so you can see what i mean and also a link

http://www.keepitrealkeepitgoth.com/test/forum/index.php

Any ideas where i am going wrong or what i need to edit ?
Title: Re: SA Chat
Post by: SA™ on November 25, 2013, 02:33:12 PM
Quote from: sunilimon on November 20, 2013, 04:30:13 PM
Hi there!

Sorry SA but my smf_2sichat_error table is going bigger every day. Could you help me?

There are some errors that has this table:

Undefined index: additional_groups
Undefined index: id_group
Undefined index: id_post_group
Undefined index: avatar

Also, is there any way to deactivate the errorlog function? yesterday I pruned my table because had about 120MB

Thank you very much!

thanks for the report ill try and fix that up soon for now
find and remove from sachat/index.php
// Register a error handler
require_once(dirname(__FILE__) . '/error_handler.php');
set_error_handler('errorHandler');
register_shutdown_function('shutdownHandler');


Quote from: electricwildflower on November 22, 2013, 07:07:15 PM
Need abit of support i am building a new theme on my test forum so have a fresh install of SA chat and modified it to fit my theme but the problem is now part of it doesn't look right. The little button that you click which opens the menu works fine but then the menu seems to be off from the bar and it looks different.

I have included a photo below so you can see what i mean and also a link

http://www.keepitrealkeepitgoth.com/test/forum/index.php

Any ideas where i am going wrong or what i need to edit ?
im not too good with the theme side of things myself but i would edit the chat css all the #extra in the style.css controls that part hope that helps
Title: Re: SA Chat
Post by: sunilimon on November 25, 2013, 03:44:31 PM
Quote from: SA™ on November 25, 2013, 02:33:12 PM
thanks for the report ill try and fix that up soon for now
find and remove from sachat/index.php
// Register a error handler
require_once(dirname(__FILE__) . '/error_handler.php');
set_error_handler('errorHandler');
register_shutdown_function('shutdownHandler');


Thank you very much!
Title: Re: SA Chat
Post by: SA™ on November 25, 2013, 04:02:34 PM
Quote from: sunilimon on November 25, 2013, 03:44:31 PM
Quote from: SA™ on November 25, 2013, 02:33:12 PM
thanks for the report ill try and fix that up soon for now
find and remove from sachat/index.php
// Register a error handler
require_once(dirname(__FILE__) . '/error_handler.php');
set_error_handler('errorHandler');
register_shutdown_function('shutdownHandler');


Thank you very much!

fixed here
https://github.com/SAMods/SAChatBar
Title: Re: SA Chat
Post by: sunilimon on December 02, 2013, 01:02:53 PM
Hi Sa!

I've a future request: banned members musn't use chat. I have banned members who can talk with other members.

Thank you very much! :D
Title: Re: SA Chat
Post by: SA™ on December 02, 2013, 04:06:19 PM
oh thanks for the report  8)
Title: Re: SA Chat
Post by: SA™ on December 02, 2013, 05:46:22 PM
maybe fixed here
https://github.com/SAMods/SAChatBar

only tested shortly
Title: Re: SA Chat
Post by: sunilimon on December 03, 2013, 12:58:14 PM
Yes it works! :D

Could chat windows be fixed at bottom like facebook interface?

Thank you very much for your support
Title: Re: SA Chat
Post by: garycanfix on December 05, 2013, 02:12:34 PM
hi sa , I have got a problem with the install, first i am using smf 2.06 i go to admin/packages and upload sachat.zip not a problem until i then go to browse packages to install it and i get just a blank screen, when i delete sachat.zip of my surver  my browse packages works ok, any ides as how i can solve the problem. just add i have uploaded unzipped in to /public_html/Packages/sachat and when i go browse packages it dos not show up.
many many thank if you reply.
ps: I have bin trying for 2 weeks now to install this and now i have roots growing from my computer chair.
Title: Re: SA Chat
Post by: Kindred on December 05, 2013, 02:24:11 PM
http://wiki.simplemachines.org/smf/What_the_white_screen_of_death_means_when_accessing_admin_or_package_installs
Title: Re: SA Chat
Post by: electricwildflower on December 12, 2013, 06:01:06 PM
I have a new problem i need help with. when i am signed in at the bottom of the page i am greeted with a huge space, a blue button and some text which says "original text Contribute a better translation."

I have been told it's a translation mod problem but as i don't have any translation mods on my site only thing it points to is SA Chat so i was wondering if you could help me figure it out if it's a Sa chat bar mod problem i have included a screen shot and link below,

This only happens when i am signed into the site which is when people can only see SA Chat bar

http://www.keepitrealkeepitgoth.com/index.php

Cheers

Title: Re: SA Chat
Post by: SA™ on December 12, 2013, 07:09:42 PM
try disabling the trnaslate plugin in sa chat admin
Title: Re: SA Chat
Post by: SA™ on December 12, 2013, 07:13:32 PM
confirmed google musta updated there translate thing or somthing just disable that part in sa chat admin till i can fix it admin/sachat/Enable Page Translator
Title: Re: SA Chat
Post by: electricwildflower on December 16, 2013, 06:20:13 PM
Sorry for the late reply it fixed the problem cheers :)
Title: Re: SA Chat
Post by: SA™ on December 28, 2013, 07:17:09 PM
=====SA Chat RC6 Relased=====
https://github.com/SAMods/SAChatBar/commits/master
fixed cacheing issue when no gadgets or links added
added redirect after deleting errors from logs
fixed Undefined index: additional_groups
fixed Undefined index: id_group
fixed Undefined index: id_post_group
fixed Undefined index: avatar
banned members no longer see the bar
fixed chrome bug Resource interpreted as Script but transferred with MIME type text/html:
added caching to smilys
majar update to cookies and the way they were handeled now uses jquery cookie plugin
now uses jquery draggable plugin less code yay :P
removed veiwport offset plugin not needed with draggable

bugs just dicoverd in beta 6
Enable chat window heartbeat
seems to stop sending new chats after tje 3rd message not sure yet as to why just dont enable that option for now

mute is broken
has the same effect as above again im not sure whats going on there

also im not sure how long these bugs have been in there as ive personly never even touched them in testing they can be in the last versions aswell havent tested yet
Title: Re: SA Chat
Post by: sunilimon on December 29, 2013, 04:25:36 AM
Sorry but I didn't understand, mute still broken?

Thank you very much! I really like this mod :D
Title: Re: SA Chat
Post by: SA™ on December 29, 2013, 03:58:56 PM
it means when you push the speacker icon in the bar it mutes the chat sounds but also breaks chat after a few messages
Title: Re: SA Chat
Post by: SA™ on December 30, 2013, 01:14:14 PM
Quotebugs just dicoverd in beta 6
Enable chat window heartbeat
seems to stop sending new chats after tje 3rd message not sure yet as to why just dont enable that option for now

mute is broken
has the same effect as above again im not sure whats going on there

seem i was wrong about that one seem to happen regardless of those

it is a jquery issue in the last version i added if i revert back to jquer 1.8x it all works from what i can see

msgArray in update message function gets lost in space after a few messages
Title: Re: SA Chat
Post by: HusaBob on December 30, 2013, 03:45:30 PM
is there a way to move the chat bar down about 1/8 inch? I installed additional links below the standard copyright ones and currently the chat bar sits on top of them.

Thanks.
Title: Re: SA Chat
Post by: Kindred on December 30, 2013, 03:56:03 PM
The chat bar appears across the very bottom of the browser window....   it can't actually be moved down any further at all
Title: Re: SA Chat
Post by: SA™ on December 30, 2013, 06:09:17 PM
=====SA Chat RC6-1 Rev78=====
now uses jquery-play-sound plugin
removed more older/legacy code from theme js files
chat windows are now a little bigger
long messages now wrap instead of makeing long scroll
fixed issue with chat messages not returned after so many messages
Title: Re: SA Chat
Post by: HusaBob on December 31, 2013, 11:23:58 AM
Thanks for all of the work you put into this chat mod. Very nice.

I just installed the latest version, and it beeps twice when I send a message. Before it only made one sound.
Title: Re: SA Chat
Post by: SA™ on December 31, 2013, 03:07:50 PM
maybe a conflict with the way cookies were handeld before try deleting brouser cookie
Title: Re: SA Chat
Post by: HusaBob on December 31, 2013, 03:57:27 PM
Quote from: Kindred on December 30, 2013, 03:56:03 PM
The chat bar appears across the very bottom of the browser window....   it can't actually be moved down any further at all

Thanks, but do you know of a way to, say, add a few blank lines under the last copyright statements there? If I could do that, it would help.

In the screenshot, if you look closely you can see the two text hyperlinks hidden by the chat bar. They are directly under the line that holds "XHTML RSS WAP2"
Title: Re: SA Chat
Post by: SA™ on December 31, 2013, 04:09:56 PM
you got choice here eaither enable admin >Features and Options>layout>Display time taken to create every page

tho you may no want that to show but this is one way to make it show a friend does this on there site

or you can edit the index.template.php and just put line breaks <br /> under those links probaly not the best ways but there all i know hope that helps
Title: Re: SA Chat
Post by: HusaBob on December 31, 2013, 04:54:51 PM
Thanks again SA! I enabled that Display time taken thing....LOL nice fix! Happy new year.
Title: Re: SA Chat
Post by: SA™ on January 01, 2014, 03:23:59 AM
=====SA Chat RC6-2 Rev80=====
removed all jQuery.noConflict() calls now uses custom var
finished admin snoop mode allowed admins to see all regardless of user settings, buddys and ignore list
removed unused function from sachathook.php
finished option to disable error logs
finished custom cookie name prefix this can help with conflicts with older versions were cookies was handeld different
more improves to the chat box styling
more imporves to minimised chats now only bleeps once when new messsage but show a new image all the time untill that message is read
added draggable handle can only be dragged by this handel
dragged windows now fade

hope people like this one as its been asked for so many times :P
chat windows now open like facebook and are fixed to the bar they can also restructer themself if a chatbox is closed /minimised have only tryed with 3 chat windows but should be ok but might be buggy with many chat windows moving chat windows is buggy and will be removed in the next version but gadgets will still be able move

have a great 2014 and happy new
Title: Re: SA Chat
Post by: watchhorse on January 01, 2014, 08:08:28 AM
Quote from: SA™ on January 01, 2014, 03:23:59 AM
have a great 2014 and happy new

The same for you

1 question: takes the chat much performance from the server on a large forum?
Title: Re: SA Chat
Post by: SA™ on January 01, 2014, 05:54:49 PM
cant realy ansser that one as never realy tested on larger forum but it should be ok  8)


just updated again added the defult_old theme just incase people dont want windows fixed to the bar
Title: Re: SA Chat
Post by: Dramber on January 01, 2014, 06:25:02 PM
Love the update bud. Ran great for a few then I started getting 8: Undefined index: errors for error_2si  2sichatmaintain and  2sichatloadbal in  /public_html/Sources/SAChatHooks.php


Any ideas?
Title: Re: SA Chat
Post by: SA™ on January 01, 2014, 06:57:14 PM
sound like it did not insall properly there new txt strings pls reupload the files within the package to the correct place or uninstall and try to reinstall
Title: Re: SA Chat
Post by: Dramber on January 01, 2014, 07:05:29 PM
Yes, that was the first thing I tried. Still getting the errors and the menu options in the admin area are missing for Throttling and maintenance and error logs. Very strange. I can get you screen shots if you want. What ever you need to squish this bug. Me and my users love this mod.
Title: Re: SA Chat
Post by: Dramber on January 01, 2014, 07:12:26 PM
Yeah, I'm an idiot. Forgot to add the language files to the custom theme folder.

Sorry for the false alarm. Thanks for responding. :)
Title: Re: SA Chat
Post by: SA™ on January 01, 2014, 07:17:22 PM
lol np
Title: Re: SA Chat
Post by: HusaBob on January 01, 2014, 08:03:20 PM
Hi SA! Installed the update. Thanks. Note, however, that now I get a statement in the chat bar in red type referring to "Bar loaded in"....

I'm using the latest Safari browser.

Title: Re: SA Chat
Post by: HusaBob on January 01, 2014, 08:32:36 PM
Also, where are the "handles" you referenced to move the chat windows?
Title: Re: SA Chat
Post by: SA™ on January 02, 2014, 12:50:31 AM
Quote from: HusaBob on January 01, 2014, 08:32:36 PM
Also, where are the "handles" you referenced to move the chat windows?
you cant wit the new layout move chat boxes there fixed to the bar like facebook if you want to move to the windows use the defalt old theme

Quote from: HusaBob on January 01, 2014, 08:03:20 PM
Hi SA! Installed the update. Thanks. Note, however, that now I get a statement in the chat bar in red type referring to "Bar loaded in"....

I'm using the latest Safari browser.



sachat index.php
$debug_load = true; change to false
Title: Re: SA Chat
Post by: sunilimon on January 02, 2014, 05:41:02 AM
Amazing, just I ever wanted! chat looks clear and more professional (it has been ever professional :P ) Thank you very much SA™! speed is incremented also, I've a forum with 1000 members and it works fine. I will report future bugs for helping you!

Thanks again and have a Happy 2014!!

Edit: when I open some chat windows, close some of those chat windows and change to another page, it still appearing even if I've closed on the previous page, It looks some cookie problem. Could you check that? Thank you very much!

Edit2: when I reset the theme to everyone, some cracks and shows: Fatal error: Call to undefined function SAChat_InsertOptions() in /home/public_html/Sources/sachatAdmin.php on line 390
Title: Re: SA Chat
Post by: SA™ on January 02, 2014, 03:00:08 PM
QuoteEdit: when I open some chat windows, close some of those chat windows and change to another page, it still appearing even if I've closed on the previous page, It looks some cookie problem. Could you check that? Thank you very much!

yeah there is some bugs most are fixed for next version

QuoteEdit2: when I reset the theme to everyone, some cracks and shows: Fatal error: Call to undefined function SAChat_InsertOptions() in /home/public_html/Sources/sachatAdmin.php on line 390
add this to your sachatadmin.php

function SAChat_InsertOptions($chatmem, $chatvar, $chatval) {
    global $smcFunc;

    $smcFunc['db_insert']('ignore', '{db_prefix}themes', array('id_member' => 'int', 'id_theme' => 'int', 'variable' => 'string', 'value' => 'string',), array($chatmem, 1, $chatvar, $chatval,), array('id_member', 'id_theme')
    );
}

Title: Re: SA Chat
Post by: SA™ on January 02, 2014, 08:56:46 PM
new version added
new default theme shoud be a lot easyer to mod now as i have gone thru all the classes and redone each one same with templates
everything also now has it own style class it needed that badly as the old style was a rolyle pain to edit imo
also included the fixes for above
Title: Re: SA Chat
Post by: Dramber on January 03, 2014, 12:17:26 AM
Looks like the admin mode/snoop toggle doesn't work in the old floating theme. Works great in the new one. :)
Title: Re: SA Chat
Post by: HusaBob on January 03, 2014, 12:30:03 AM
Now the "Who's Online" disappeared from the left side!
Title: Re: SA Chat
Post by: SA™ on January 03, 2014, 01:23:14 AM
Quote from: Dramber on January 03, 2014, 12:17:26 AM
Looks like the admin mode/snoop toggle doesn't work in the old floating theme. Works great in the new one. :)

it is not in the older theme it too much f a pain to mess with that one

Quote from: HusaBob on January 03, 2014, 12:30:03 AM
Now the "Who's Online" disappeared from the left side!

empty your brouser cache or/and ctrl and f5
Title: Re: SA Chat
Post by: shinchao on January 03, 2014, 02:03:19 AM
thank for share !
Title: Re: SA Chat
Post by: HusaBob on January 03, 2014, 02:41:13 AM
Quote from: SA™ on January 03, 2014, 01:23:14 AM
Quote from: Dramber on January 03, 2014, 12:17:26 AM
Looks like the admin mode/snoop toggle doesn't work in the old floating theme. Works great in the new one. :)

it is not in the older theme it too much f a pain to mess with that one

Quote from: HusaBob on January 03, 2014, 12:30:03 AM
Now the "Who's Online" disappeared from the left side!

empty your brouser cache or/and ctrl and f5

I emptied my cache and the Who's Online appeared, however it displayed that 124 members were online! *the total amount of members we have on the board!*. In reality, I was the only one online.

Any ideas? I disabled SA chat from the board until it is fixed. Thanks.
Title: Re: SA Chat
Post by: SA™ on January 03, 2014, 02:59:41 AM
only admins see that i rmoved the session check during testing it showing cos you have snoop/admin enabled

sachat /functions.php

if($member_id != $new_loaded_ids[$i]){

replace with
if($member_id != $new_loaded_ids[$i] && $user_profile[$new_loaded_ids[$i]]['session']){


edit fixed in package also disabled load time thing
Title: Re: SA Chat
Post by: HusaBob on January 03, 2014, 11:11:14 AM
My gosh, you're good! Thanks. Installed it and it is fixed perfectly.

You should be proud of what you're capable of!
Title: Re: SA Chat
Post by: sunilimon on January 03, 2014, 12:25:21 PM
This man is amazing! thanks for new modifications :D
Title: Re: SA Chat
Post by: SA™ on January 05, 2014, 07:53:56 PM
now this makes me happy  :D never had a mod in the top ten
Title: Re: SA Chat
Post by: sunilimon on January 08, 2014, 12:12:16 PM
Congratulations! I agree, this mod must be at top ten!
Title: Re: SA Chat
Post by: 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
Title: Re: SA Chat
Post by: crustybum on January 10, 2014, 11:41:10 AM
Great mod, but still slows everything down on a large forum  :-\
Title: Re: SA Chat
Post by: Kindred on January 10, 2014, 01:34:00 PM
well, of course it does....   the more people that hit a service, the more resources it uses....
Title: Re: SA Chat
Post by: SA™ on January 10, 2014, 01:59:30 PM
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
Title: Re: SA Chat
Post by: SA™ on January 11, 2014, 05:09:13 PM
=====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
Title: Re: SA Chat
Post by: sunilimon on January 12, 2014, 07:01:59 AM
Hi! thanks for new version, it works great! I attach the spanish_es_utf8 translation, I hope you serve! :D
Title: Re: SA Chat
Post by: sunilimon on January 12, 2014, 07:08:50 AM
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.
Title: Re: SA Chat
Post by: SA™ on January 12, 2014, 03:03:22 PM
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
Title: Re: SA Chat
Post by: SA™ on January 13, 2014, 02:30:21 PM
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
Title: Re: SA Chat
Post by: 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.
Title: Re: SA Chat
Post by: 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.
Title: Re: SA Chat
Post by: SA™ on January 13, 2014, 03:18:31 PM
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

Title: Re: SA Chat
Post by: Arantor 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.
Title: Re: SA Chat
Post by: sunilimon on January 13, 2014, 04:33:45 PM
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  :-[
Title: Re: SA Chat
Post by: SA™ on January 13, 2014, 07:31:38 PM
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
Title: Re: SA Chat
Post by: Arantor on January 13, 2014, 07:47:03 PM
Yup, that's exactly what I mean. Something that can be accessed equally from all tabs without having to go to the server.
Title: Re: SA Chat
Post by: SA™ on January 13, 2014, 08:05:55 PM
what bother me is older browsers should i just leave them in the past??  i can do this and remove all cookie traces aswell
Title: Re: SA Chat
Post by: Arantor on January 13, 2014, 08:14:14 PM
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.
Title: Re: SA Chat
Post by: rosewillrnx on January 26, 2014, 09:01:14 PM
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
Title: Re: SA Chat
Post by: SA™ on January 27, 2014, 04:22:07 AM
your using the 0.1 version? it shouldent be doing that in 0.1
Title: Re: SA Chat
Post by: Arantor on January 28, 2014, 01:22:09 PM
Moved to the Chat/Shoutboxes category on the mod site.
Title: Re: SA Chat
Post by: SA™ on January 28, 2014, 01:31:33 PM
thanks are these new catagorys ?
Title: Re: SA Chat
Post by: Arantor on January 28, 2014, 01:32:51 PM
Yup, the Chat/Shoutbox category was only added yesterday.
Title: Re: SA Chat
Post by: crustybum on January 29, 2014, 10:55:16 AM
Strange, i installed it and it worked earlier..now ive come back on and its disappeared and not showing??? its still there in admin.
Title: Re: SA Chat
Post by: crustybum on January 29, 2014, 11:16:35 AM
Working perfect in I.E. but not in Firefox????
Title: Re: SA Chat
Post by: SA™ on January 29, 2014, 02:18:31 PM
What's it not doing in ff the only issue I found in ff is the bar looks different colour
Title: Re: SA Chat
Post by: Shkic on February 01, 2014, 08:55:34 AM
I just want to thank you SA™ for this great MOD. Also I think that localStorage idea will help for forums with a huge traffic :)

Good luck in development!

Cheers from Lithuania.
Title: Re: SA Chat
Post by: Jeffrey King on February 01, 2014, 10:06:47 AM
I want to thank SA for this mod.
Title: Re: SA Chat
Post by: Delete this on February 01, 2014, 06:13:04 PM
I can't get it to work with smf4mobile themes. If I enable the mobile mod it blanks the screen and the only way to make it work is to disable the chat bar. Even excluding the themes specifically from the sa admin panel doesn't fix it.
Title: Re: SA Chat
Post by: SA™ on February 03, 2014, 07:04:32 AM
thanks for the report ill look into this when i have some time 8)
Title: Re: SA Chat
Post by: Dylert on February 04, 2014, 01:52:14 PM
When chatting new messages comes on top in the chatbox. Is it possible to get them on the bottom. That's more familiar to most users.
Title: Re: SA Chat
Post by: Nicky_uk on February 08, 2014, 05:26:26 AM
Just installed the mod, but no bar is showing up? Is there something I need to do? Installed on 2.07

Many thanks

Just to add, I tried running 'fix bar' and got the following error msg:

Method Not Implemented

GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Title: Re: SA Chat
Post by: Nicky_uk on February 08, 2014, 05:48:18 AM
Ignor the above, i just changed the file permissions and it seems to have fixed the problem.
Title: Re: SA Chat
Post by: nend on February 10, 2014, 12:57:20 PM
I tried local and cookie storage for chat data but ran into problems. Problem with cookies is that two instances can't share data simultaneously. Local storage on the other hand was new at the time and not all browsers supported it. Cookies at that time only stored window location I believe.

Also on older versions, possibly current one too, I know it used a cache system. A heartbeat doesn't necessarily mean a DB query. It just means a file inclusion from the cache which should determine if a DB query is necessary.

The only problem with large forums is the cache was set up to cache conversation say like file(user1-user2.php), which would just have a timestamp in it I believe. Oh the problem, too many files may be created. The whole inode limit thing.

Another caching method might be the server cache.

SA looks like you been doing a great job. I sort of felt like I dumped a burden on you with the chat, looking today you have brought it a long way. Congrats on the top ten.
Title: Re: SA Chat
Post by: KungFuJoe on February 10, 2014, 05:25:27 PM
Love this mod and I have it working on a test site.

I have a couple questions.

What does the permission "Allow to choose who to talk to" control?

Also, it appears that anyone can IM anyone and it's not limited to just buddies.  I know you can control your own settings to only show your buddies in the Who's Online list, but it still doesn't prevent anyone from IM'ing you if they choose to, even if they're not your buddy.

Is this intended?
Title: Re: SA Chat
Post by: KungFuJoe on February 10, 2014, 06:40:14 PM
Also noticed that even if a user hides their online status, they still show up in the Who's Online window.
Title: Re: SA Chat
Post by: SA™ on February 11, 2014, 10:53:46 AM
Quote from: nend on February 10, 2014, 12:57:20 PM
SA looks like you been doing a great job. I sort of felt like I dumped a burden on you with the chat, looking today you have brought it a long way. Congrats on the top ten.
thanks nend it was kinda at first a burden cos i didnt know js or jquery to well many late nights sorted that :P


QuoteI tried local and cookie storage for chat data but ran into problems. Problem with cookies is that two instances can't share data simultaneously. Local storage on the other hand was new at the time and not all browsers supported it. Cookies at that time only stored window location I believe.

the way the cookies where done before was the reason for ghost chat boxes and gadgets for instance you could not have two forums on same host using the chat mod
used to just cause havoc 

QuoteAlso on older versions, possibly current one too, I know it used a cache system. A heartbeat doesn't necessarily mean a DB query. It just means a file inclusion from the cache which should determine if a DB query is necessary.

i dont actualy think this works any more tbh not payed that much attention to that it still there and enabled tho i do know that after a few messages it would choke till i chaged the update message function not sure if that would be related tho

QuoteWhat does the permission "Allow to choose who to talk to" control?

that allowes members to change the show only buddys option in profiles/look and layout

QuoteAlso, it appears that anyone can IM anyone and it's not limited to just buddies.  I know you can control your own settings to only show your buddies in the Who's Online list, but it still doesn't prevent anyone from IM'ing you if they choose to, even if they're not your buddy.

yup it is a chat mod after all
but still this ties into abouve members can choose what way they want



QuoteAlso noticed that even if a user hides their online status, they still show up in the Who's Online window.
yup this no support for that yet
Title: Re: SA Chat
Post by: KungFuJoe on February 11, 2014, 01:25:51 PM
SA,

Thanks for the answers!

Apologies if this has already been answered...but is there anyway to set new messages to start from the bottom?

Also, the part about "Seeing others as they type" and it not being fully implemented.  Is it something that we can try...what's the risk of checking it?
Title: Re: SA Chat
Post by: SA™ on February 12, 2014, 05:12:40 AM
QuoteApologies if this has already been answered...but is there anyway to set new messages to start from the bottom?

curently no but this will chage when i can figar out scrolling issue hopfully next version

QuoteAlso, the part about "Seeing others as they type" and it not being fully implemented.  Is it something that we can try...what's the risk of checking it?
main risk with this is server overload the way it is currently done enableing it will not make any differenc as it is commented out in the code
the next version this is done slitly different but there will always be resource issues with that wouldent recommend it on a shared host

i have been kinda busy these last few weeks so havent had much time to test new version much yet but it is gonna come
Title: Re: SA Chat
Post by: KungFuJoe on February 12, 2014, 10:31:12 AM
Quote from: SA™ on February 12, 2014, 05:12:40 AM
QuoteApologies if this has already been answered...but is there anyway to set new messages to start from the bottom?

curently no but this will chage when i can figar out scrolling issue hopfully next version

QuoteAlso, the part about "Seeing others as they type" and it not being fully implemented.  Is it something that we can try...what's the risk of checking it?
main risk with this is server overload the way it is currently done enableing it will not make any differenc as it is commented out in the code
the next version this is done slitly different but there will always be resource issues with that wouldent recommend it on a shared host

i have been kinda busy these last few weeks so havent had much time to test new version much yet but it is gonna come

Thanks!
Title: Re: SA Chat
Post by: KungFuJoe on February 12, 2014, 01:58:33 PM
Apparently, running this mod has been causing high CPU usage on my shared hosting.  Just got an alert on cpanel about restricting my account.  I run a small site...only about 60 members, but there is a fair amount of activity as most of them post throughout the day.

Can someone give some instructions/recommendations on how the heartbeat settings are used and if there's anyway to make the chat bar less resource intensive?

Also, on the load checking...what exactly is it checking on the backend?  It looks like you set a number as a max threshold before it disables the bar...but what is the number in reference to?
Title: Re: SA Chat
Post by: SA™ on February 14, 2014, 04:23:06 PM
QuoteAlso, on the load checking...what exactly is it checking on the backend?  It looks like you set a number as a max threshold before it disables the bar...but what is the number in reference to?

it checks the cpu usage using the passthru(); php function if it is greater than the value you set in admin it will disable the bar and what not

QuoteCan someone give some instructions/recommendations on how the heartbeat settings are used and if there's anyway to make the chat bar less resource intensive?

there is a min  and max heartbeat setting the min heart beat is the normal beat now after say 10 heat beats with out no chat activty it will slow down the beat to the max beat setting

making the chat less resource intensive is something im working/looking into been trying different things html5 mostly and local storage but im actualy thinking of starting again to try using xml cos ithink this would be better than jquery exspecily after seeing a certain post on fb from a dev
Title: Re: SA Chat
Post by: Arantor on February 14, 2014, 04:50:06 PM
Well, for checking server load, SMF already does this when load balancing is enabled in the admin panel and IIRC it is $modSettings['load_avg'] where this is stored which you can use for comparison purposes.

As far as using local storage/HTML5/jQuery/XML... can I just stop you there?

They're all inter-related technologies that each have their place and so on. They all work together, not disparately.

XML is a transport mechanism, a way of putting data into a container that can be read. It is over a decade old, with plenty of supporting libraries on both the client and server side. As far as using it for communication, it's a toss-up between JSON and XML as the container for serving data back and forth, nothing more than that... and realistically I'd actually suggest XML. JSON is more compact, sure, but its support in PHP is... interesting. Firstly, json_encode and json_decode are UTF-8 only, while SMF does not necessarily operate in UTF-8 only (XML is character-set agnostic, like HTML), and there are issues with handling numbers in JSON if you're using different locale settings, e.g. various of the European countries that use , (comma) as the decimal point indicator instead of . (period).

Ultimately whatever you're doing, XML or JSON will be part of your solution.

localStorage is useful for local storage - but that's all you can do with it. You don't store things it that you're not sending back and forth (so it's no good for session data for example), but it might be useful for client side preferences in chat where you can just load them client side and process them client side. I'm not sure what benefit you would get from it for what you do, though. The only benefit I can really see is that you might archive part of the chat history to localStorage.

jQuery... hmm. jQuery in itself isn't entirely terrible. Thing is, most people seem to view it as a magic bullet to solve any problem, and quite often you don't need it. If it's already loaded, great, use it. If you're not targeting older browsers, you probably don't need it. It's only really IE below 9 that you actually find yourself needing it to any great degree, as most other code can be handled with native equivalents or shorter functions. For example, SMF has code to handle AJAX GET and POST requests and jQuery won't be needed for those things.

More information: http://youmightnotneedjquery.com/
Title: Re: SA Chat
Post by: Big Gee on February 15, 2014, 08:44:44 AM
I currently run SMF v 2.0.7 at http://gardenerschat-shed.net/forum (http://gardenerschat-shed.net/forum)

I want to install the SA Chat mod to work in my Bright Forest Theme v2.3.

As it installs by default into SMF's default theme, can anyone give me guidance on what I need to do to make it run in the theme I use?

Many thanks,

G.

Title: Re: SA Chat
Post by: SA™ on February 15, 2014, 03:01:31 PM
It will instal to any theme as it uses hooks instead of tewmplate edits
Title: Re: SA Chat
Post by: Big Gee on February 15, 2014, 09:30:13 PM
Thank you for that. It has now been installed successfully.

Is there a manual for it's use that can be placed in the 'Help' section of the site so that members can have guidance on it's use?

I've had a few queries from members who need a bit of help to understand it's features & how to use it.

Again, many thanks,

Kind regards,

G.
Title: Re: SA Chat
Post by: Kindred on February 15, 2014, 09:34:16 PM
Since the help section links to the standard smf wiki here....  Probably not.
Title: Re: SA Chat
Post by: [OG]Anirudh on February 16, 2014, 04:13:32 AM
It is not showing the bar :-/
Title: Re: SA Chat
Post by: SA™ on February 17, 2014, 02:01:40 PM
Check the maintenace page in sachat admin at the bottom there is a fix bar option
Title: Re: SA Chat
Post by: mrhanman on February 21, 2014, 09:53:20 PM
I'm getting a warning over and over again in the error log about a deprecated PHP function.  I don't know enough about PHP to fix it myself, and I was hoping someone else already had.  Here is the error:

WARN

preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead

File: /smf/sachat/functions.php
Line: 610


Thanks!
Title: Re: SA Chat
Post by: Kindred on February 21, 2014, 10:02:27 PM
You are running php 5.5...   The function was deprecated....   That was why led to the 2.0.7 release of  smf itself...
Title: Re: SA Chat
Post by: mrhanman on February 21, 2014, 10:55:18 PM
Thanks for the reply.

I understand what caused the error, I was just asking if anyone had fixed it yet.  I'm making the assumption that is isn't as simple as switching one function for another.
Title: Re: SA Chat
Post by: SA™ on February 22, 2014, 02:08:58 AM
ill take look this weekend
Title: Re: SA Chat
Post by: SA™ on February 22, 2014, 06:30:36 PM
=====SA Chat 0.1.1 Realsed=====
fixed issue cycling thru chatboxes open chatboxes
friends box now resizes with browser height
buddy box now resizes with browser height
fixed issue in safari (chat boxes wernt organsing properly)
links posted in chat are now clickable
minamised chatboxes are now fixed to bar like the chat windows(can be disabled in admin)
fixed php5.5 deprectiated warning
added spanish_es-utf8 translation (thanks sunilimon)
Title: Re: SA Chat
Post by: pevanis on February 23, 2014, 06:20:34 AM
Thank You again for this nice mod.
Till now it's working fine. I use Your mod for 2 years.
Just now instaled  SAChatBar-0.1.1 on SMF 2.0.7 and there's no bar ?
After click on Fix bar i have this :

Method Not Implemented
GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Can You figure it out what's happening ?
Kind Regards

------------------------------------------------------------------------------------------------------
- I set all permissions for all files under sachat folder to 755.
- When I click on  FIX BAR i have again same  error :

Method Not Implemented
GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

- Error log say -  File: /home/**/public_html/sachat/functions.php
Line: 390

SMF version is 2.0.7
Firefox 27.0.1
same on IE10
--------------------------------------------------------------------
And now I can't see bar anymore   :( do nothing, change nothing, simply it's gone
- When I click on  FIX BAR i have again same  error :

Method Not Implemented
GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

- Error log say -  File: /home/**/public_html/sachat/functions.php
Line: 390
-File: /home/**/public_html/sachat/functions.php
Line: 576
Title: Re: SA Chat
Post by: SA™ on February 23, 2014, 03:26:37 PM
hmm make sure you compleatly uninstall the old version manualy check just incase also after install your need to maybe clear your brousers cache otherwise you want see the css chsnges

also these

Quote- Error log say -  File: /home/**/public_html/sachat/functions.php
Line: 390
-File: /home/**/public_html/sachat/functions.php
Line: 576

should show the error at the moment that means nothing to me can u post the full errors pls
Title: Re: SA Chat
Post by: pevanis on February 24, 2014, 02:00:16 AM

should show the error at the moment that means nothing to me can u post the full errors pls

This is full errors copy & paste without forum name
FIX BAR   error :

Method Not Implemented
GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

- Error log SA chat says -  File: /home/**/public_html/sachat/functions.php
Line: 390
-File: /home/**/public_html/sachat/functions.php
Line: 576

At the moment i have text:  Admin mode: Off  Yesterday it was  Admin mode: Off ????
I don't know what it means ?
Title: Re: SA Chat
Post by: dj_king on February 25, 2014, 04:34:13 AM

Hello good. Forgive my language, use google translator. Did I say you can please do, so that messages warning of the chat, the last received comes down, not up? thank you very much
Title: Re: SA Chat
Post by: sunilimon on February 25, 2014, 12:30:59 PM
Quote from: SA™ on February 22, 2014, 06:30:36 PM
added spanish_es-utf8 translation (thanks sunilimon)

Thanks to you for your effort! :D
Title: Re: SA Chat
Post by: SA™ on February 25, 2014, 03:19:26 PM
Quote from: dj_king on February 25, 2014, 04:34:13 AM

Hello good. Forgive my language, use google translator. Did I say you can please do, so that messages warning of the chat, the last received comes down, not up? thank you very much

This was supposed to be in this version but I messed up abd did not connit them changes it will be in next version
Title: Re: SA Chat
Post by: dj_king on February 26, 2014, 07:09:56 AM
Quote from: SA™ on February 25, 2014, 03:19:26 PM
Quote from: dj_king on February 25, 2014, 04:34:13 AM

Hello good. Forgive my language, use google translator. Did I say you can please do, so that messages warning of the chat, the last received comes down, not up? thank you very much

This was supposed to be in this version but I messed up abd did not connit them changes it will be in next version

Thank You
Title: Re: SA Chat
Post by: dj_king on February 26, 2014, 10:44:22 AM
What is the reason that sometimes walking away and one user of the session, I always left the chat open even closing it? The only solution I've found is clearing the cache of my browser ...
Title: Re: SA Chat
Post by: SA™ on February 26, 2014, 03:15:46 PM
i didnt understand that?
Title: Re: SA Chat
Post by: dj_king on February 27, 2014, 02:40:32 AM
Quote from: SA™ on February 26, 2014, 03:15:46 PM
i didnt understand that?

Sorry for my language, I use google translator. Haber as writing to translate it "right."

When you talk to a user who closes the chat session, the chat window with you talking still open although the closures, and for several minutes ....
You know what I mean? thanks
Title: Re: SA Chat
Post by: sunilimon on February 27, 2014, 04:43:34 AM
Yes I reported that some weeks ago, SA is working on this bug :D
Title: Re: SA Chat
Post by: dj_king on February 27, 2014, 06:56:26 AM
Quote from: sunilimon on February 27, 2014, 04:43:34 AM
Yes I reported that some weeks ago, SA is working on this bug :D


We look forward the solution in the new version.
Title: Re: SA Chat
Post by: SA™ on February 27, 2014, 03:00:27 PM
Quote from: dj_king on February 27, 2014, 02:40:32 AM
Quote from: SA™ on February 26, 2014, 03:15:46 PM
i didnt understand that?

Sorry for my language, I use google translator. Haber as writing to translate it "right."

When you talk to a user who closes the chat session, the chat window with you talking still open although the closures, and for several minutes ....
You know what I mean? thanks

sorry i still dont fully understand this
Title: Re: SA Chat
Post by: rower on February 27, 2014, 03:03:31 PM
Can this MOD and Ajax Chat both work on the same forum?
Title: Re: SA Chat
Post by: SA™ on February 27, 2014, 03:05:58 PM
yes it should be fine  8)
Title: Re: SA Chat
Post by: ryangassxx on February 28, 2014, 12:01:41 AM
I've got it installed, after running into some problems that ended up being solved by the "fix bar" link.. So now my issue is that the actual public chat box that comes up through the menu loads with noting but a parse error and no functionality. Member to member messaging works fine. But the chat box displays

"Parse-error: syntax error, unexpected "/" in XXmydirectoriesXX/functions.php(184) :eval()'d code on line 1"

This is the part of the mod that I really would like to have work..

I run 2.0.7 and a modified Inferno theme at bearshq.com

Thanks in advance!

:edit   I'm also getting the following in my SA chat error log

INFO

   Undefined index: cban

   File: /home/bearsone/public_html/sachat/functions.php
Line: 576
Title: Re: SA Chat
Post by: SA™ on February 28, 2014, 09:47:11 AM
this mod does not have a public chat box at the moment only private chat
Title: Re: SA Chat
Post by: ryangassxx on February 28, 2014, 12:14:47 PM
Oh ok. So when I click into the menu button on the far right, there's a link there that says "chat", when I click that I get a box that opens containing that error. Is this intentional with the chat feature pending in a later release or is this some sort of anomaly?
Title: Re: SA Chat
Post by: SA™ on February 28, 2014, 12:31:11 PM
nope no chat link there by default have you added a gadget?


edit i do rember playing around with a pub chat with this a long time ago didnt work oput to good :P i wonder if there is remants of that maybe but i still dont see any chat link there tho
Title: Re: SA Chat
Post by: ryangassxx on March 01, 2014, 01:09:49 AM
No I think I may have done it early on when I was trying to get it to work not knowing what I was doing.. I deleted the gadget and it's gone now.. ::) 

So as far as a public chat goes, you've already explored it and you don't think it'll be a component in the future? That's sort of a bummer because I was really hoping to have that functionality. It's still a very good mod for what it is though. Thank god for people like you who develop these things. Your SA stuff is probably some of the more premium mods for the SMF platform. I use the facebook integration too.
Title: Re: SA Chat
Post by: SA™ on March 01, 2014, 10:42:23 AM
No public chat will be in the mod at some point just not sure weather to have gruop chat like fb or just a public. Room

For now you can use flash chat in a gadget wich works pretty. Good inside a gadget
Title: Re: SA Chat
Post by: SA™ on March 01, 2014, 03:19:01 PM
actualy had a look a the gadget code today seems there is actualy a bug with php gadgets
Title: Re: SA Chat
Post by: MDupreejr on March 01, 2014, 09:59:29 PM
this is a great mod.

A bug though...
1) If i close a chat, when they message me again the chat doesn't automatically reopen.

And a feature request:
- If there's no Social options, remove that section from the menu. Same with links. Make that whole menu smaller for those who have no content within it except for settings...


<edit>

Another small problem, there's a line at the top of my screen in firefox after installing this mod (see attached photo).
Title: Re: SA Chat
Post by: SA™ on March 02, 2014, 02:10:12 PM
QuoteA bug though...
1) If i close a chat, when they message me again the chat doesn't automatically reopen.

oh i wonder if this is what te others where saying a few post back

QuoteAnd a feature request:
- If there's no Social options, remove that section from the menu. Same with links. Make that whole menu smaller for those who have no content within it except for settings...

well it does hide the links and gadgets if none it just dont make the box smaller cos i was trying to keep it same as the other side ill look into this

QuoteAnother small problem, there's a line at the top of my screen in firefox after installing this mod (see attached photo).

hmm the chat box copys from a simple html template that gets appended when the bar is shown just hidden till needed i think thats wherwe that line comes from ill take a look
Title: Re: SA Chat
Post by: SA™ on March 02, 2014, 02:47:09 PM
QuoteA bug though...
1) If i close a chat, when they message me again the chat doesn't automatically reopen.

ok a quick fix for this

sachat/themes/default/js/body.js.php

if (!document.getElementById(\'cmsg\'+this) && this != null) {
    chatTo(this);
    loadsnd(\'new_msg\');
}


replace with

if (!document.getElementById(\'cmsg\'+this) && this != null) {
    chatTo(this);
    loadsnd(\'new_msg\');
}
if (this != null) {//why?
    chatTo(this);
   loadsnd(\'new_msg\');
}


this isnt the best fix fr tis issue but it workd for till i can look into it more
Title: Re: SA Chat
Post by: Game.ruler on March 04, 2014, 01:54:53 AM
@SA, can you tell me how to set "show only buddies in who's online" by default for all users?

And 1 more thing, i tried this mod few months before, but it was making everything unsable/hang. Probably it was because there were many users at that time. But i really want to use this. This is the best smf chat mod so far.
Please tell me how to mitigate this server hang/unusable thing after installing.
Thanks in advance.
Title: Re: SA Chat
Post by: TonyMendoza on March 04, 2014, 10:13:19 PM
The chat bar doesn't recognize that the forum account is logged in.
It says: "Welcome, Guest. Please login or register."

What should I do?
Title: Re: SA Chat
Post by: SA™ on March 06, 2014, 04:07:08 PM
Quote@SA, can you tell me how to set "show only buddies in who's online" by default for all users?

pretty easy todo this as it already does this during install take alook in db.php inside the package from line 24


QuoteAnd 1 more thing, i tried this mod few months before, but it was making everything unsable/hang. Probably it was because there were many users at that time. But i really want to use this. This is the best smf chat mod so far.
Please tell me how to mitigate this server hang/unusable thing after installing.
Thanks in advance.

well im not persnly experianceing major lag like you say but im havent tested on a busy forum so there will some lag


QuoteThe chat bar doesn't recognize that the forum account is logged in.
It says: "Welcome, Guest. Please login or register."

What should I do?
try loggin out and back in?
Title: Re: SA Chat
Post by: TonyMendoza on March 07, 2014, 03:34:13 AM
QuoteThe chat bar doesn't recognize that the forum account is logged in.
It says: "Welcome, Guest. Please login or register."

What should I do?
try loggin out and back in?
[/quote]

Did that numerous times.  ;)
The chat bar would not sync with the forum's login.
Disabling SA chat for a day solved the problem. Things are back into order.
Thanks!
Title: Re: SA Chat
Post by: SA™ on March 07, 2014, 03:27:49 PM
hmmm very strange behaviour there ill see if i can replicate this isssue
Title: Re: SA Chat
Post by: RichsBallPythons on March 10, 2014, 12:19:54 AM
Just Installed this on my forum 2.0.4 and all installed no hitches,

But need more info or better description on what Heartbeats are for.
Also in the Online List, Admin Mode on or off, whats its function!


Also the Error Log for Sa Chat has 300+ pages of this error, My guess has to do each time it refreshes. Where do i correct this Time zone error

strtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those meth

The Errors are on Line 984 and 353

Line 984   $_SESSION['DBcon_stamp'] = strtotime(date("Ymdhis"));
Line 33    'purge' => date("Ymd", strtotime('-' . $modSettings['2sichat_purge'] . ' days', strtotime(date("Ymd")))),

Title: Re: SA Chat
Post by: SA™ on March 10, 2014, 03:03:39 PM
QuoteJust Installed this on my forum 2.0.4 and all installed no hitches,
update your forum

Quotewhat Heartbeats are for.
refreashes the chat

QuoteAlso in the Online List, Admin Mode on or off, whats its function!

admin can see all regardless of settings

Quotestrtotime() [function.strtotime]: It is not safe to rely on the system's timezone settings. Please use the date.timezone setting, the TZ environment variable or the date_default_timezone_set() function. In case you used any of those meth

sounds like the timezone in a config line in your php.ini is incorrect speak t our host
Title: Re: SA Chat
Post by: RichsBallPythons on March 11, 2014, 12:12:51 AM
Thanks for Info, Contacted host and they pointed me into direction.

I did the Time Zone via my .htaccess file with
php_value date.timezone "America/New_York"

And all errors stopped instantly
Title: Re: SA Chat
Post by: RichsBallPythons on March 11, 2014, 02:02:05 AM
I recently getting this error

INFO-Undefined index: cban

Line: 576

   if (isset($_SESSION['cban']) || empty($modSettings['banLastUpdated']) || ($_SESSION['cban']['last_checked'] < $modSettings['banLastUpdated']) || $_SESSION['cban']['id_member'] != $user_info['id_member'] || $_SESSION['cban']['ip'] != $user_info['member_ip'] || $_SESSION['cban']['ip2'] != $user_info['member_ip2'] || (isset($user_info['email_address'], $_SESSION['cban']['email']) && $_SESSION['cban']['email'] != $user_info['email_address']))


This error just popped up tonight not sure why.
Title: Re: SA Chat
Post by: SA™ on March 11, 2014, 04:27:18 AM
I'm aware of this error. Will be fixed in next version
Title: Re: SA Chat
Post by: 2greedy on March 17, 2014, 02:53:43 AM
just installed on 2.0.7 and seems to be working fine ;)
Title: Re: SA Chat
Post by: 2greedy on March 17, 2014, 03:05:45 AM
how do the gadgets work, and where do we get them?
Title: Re: SA Chat
Post by: SA™ on March 17, 2014, 03:01:18 PM
gadgets work kinda like portal blocks except there not blocks  :P

you can use php/html in them or even google gadgets work or code some yourself
Title: Re: SA Chat
Post by: 2greedy on March 22, 2014, 11:44:58 PM
could someone pls tell me why i get this error in the error log ?

FATAL syntax error, unexpected 'style' (T_STRING) File: /home/qccx10ho/public_html/sachat/functions.php(184) : eval()'d code
Line: 1
Title: Re: SA Chat
Post by: SA™ on March 23, 2014, 03:00:07 AM
not seen this error before have youy added any gadgets?
Title: Re: SA Chat
Post by: 2greedy on March 24, 2014, 02:03:42 AM
I did try adding 1 but removed it?
Title: Re: SA Chat
Post by: SA™ on March 24, 2014, 04:04:38 AM
could be from that then?
Title: Re: SA Chat
Post by: 2greedy on March 24, 2014, 07:40:55 AM
Quote from: SA™ on March 24, 2014, 04:04:38 AM
could be from that then?

oh ok so no biggy ;)
Title: Re: SA Chat
Post by: WCFA on April 01, 2014, 02:36:33 PM
Installed just fine, all settings are there, although the chat does not show.
I am running 2.07 base theme.

It says its not disabled, is there and activate or button that you use to see it ?

Thanks

PS, no errors logs look good no install issues.
But Don't see the chat ??
Title: Re: SA Chat
Post by: SA™ on April 01, 2014, 03:09:55 PM
run the fix bar thing in sachat admin/maintenance
Title: Re: SA Chat
Post by: WCFA on April 01, 2014, 03:58:20 PM
Interesting there is no SACHAT in maintenance ?

Uuder SACHATs maint : Got it, fixed it.

Thank You  :)
Title: Re: SA Chat
Post by: Cmely on April 05, 2014, 03:20:13 PM
Quote from: SA™ on February 27, 2014, 03:00:27 PM
Quote from: dj_king on February 27, 2014, 02:40:32 AM
Quote from: SA™ on February 26, 2014, 03:15:46 PM
i didnt understand that?

Sorry for my language, I use google translator. Haber as writing to translate it "right."

When you talk to a user who closes the chat session, the chat window with you talking still open although the closures, and for several minutes ....
You know what I mean? thanks

sorry i still dont fully understand this

I think I can explain, as I have the same problem :) : when I close a chat window, it keep re-opening constantly...which is, you'll admit pretty annoying  :o :o :o
I close it, refresh the page...and pop ! here again !

I don't know how to reproduce the problem, but I get it regularly. Maybe this happen when your interlocutor logout from the forum without closing the chat...I'll check this hypothesis...but if this can be fixed, it would be sooooo cool, as it is a great mod !
Title: Re: SA Chat
Post by: SA™ on April 05, 2014, 04:16:54 PM
QuoteI don't know how to reproduce the problem

just had a look but i cant replicate this issue what brouwser?

was going to relase a new version soon with some bug fixes but i will wait for more info on this
Title: Re: SA Chat
Post by: Cmely on April 06, 2014, 02:25:24 PM
Quote from: SA™ on April 05, 2014, 04:16:54 PM
QuoteI don't know how to reproduce the problem
just had a look but i cant replicate this issue what brouwser?
Firefox.
As soon as I can I'll test the "logout" hypothesis.
Title: Re: SA Chat
Post by: Cmely on April 08, 2014, 07:15:25 AM
I did some tests and couldn't reproduce this behavior. I asked a friend to logout without closing the chat windows but everything went fine. I guess the "logout" hypothesis is not validated. If I have other ideas I'll make other tests.

Just a question : what the admin mode is for ?
Title: Re: SA Chat
Post by: Cmely on April 08, 2014, 07:16:47 AM
Another question : I've made a custom theme for SA Chat. Where and how can I upload it for others users ?
Title: Re: SA Chat
Post by: Shkic on April 09, 2014, 06:08:18 AM
Quote from: Cmely on April 08, 2014, 07:16:47 AM
Another question : I've made a custom theme for SA Chat. Where and how can I upload it for others users ?

Change it instead default theme.

Quote from: SA™ on April 05, 2014, 04:16:54 PM
was going to relase a new version soon with some bug fixes but i will wait for more info on this

Cool! :)

Title: Re: SA Chat
Post by: SA™ on April 09, 2014, 05:31:45 PM
Quote from: Cmely on April 08, 2014, 07:15:25 AM

Just a question : what the admin mode is for ?

admins can see all regarless off user settings

QuoteAnother question : I've made a custom theme for SA Chat. Where and how can I upload it for others users ?

in sachat admin there is a themes section to upload themes
Title: Re: SA Chat
Post by: k0der on April 10, 2014, 11:05:57 AM
too much bug on this mod also they doesn't work properly sometime.~

Title: Re: SA Chat
Post by: SA™ on April 10, 2014, 12:40:19 PM
well thats helpfull why not tell what bug you say there are instead of telling there is bugs ?
Title: Re: SA Chat
Post by: Kindred on April 10, 2014, 04:44:58 PM
The mod seems to work perfectly fine for me....
Title: Re: SA Chat
Post by: Cmely on April 12, 2014, 11:08:28 AM
Quote from: SA™ on April 09, 2014, 05:31:45 PM
in sachat admin there is a themes section to upload themes

No, I meant here.

Don't you have a download section were Sa Chat users could add themes they have created to the benefit of the community ?
Title: Re: SA Chat
Post by: SA™ on April 12, 2014, 11:43:51 AM
at the moment i dont well there was but no one used it if people want to share there themes you can send them to me and i an add them to the first post if more themes are created ill see about a site for themes

i like what you  done with the sachat theme it look nice :)

DenotsNiaga<< is me on your site
Title: Re: SA Chat
Post by: Cmely on April 14, 2014, 09:46:01 AM
Quote from: SA™ on April 12, 2014, 11:43:51 AM
i like what you  done with the sachat theme it look nice :)

DenotsNiaga<< is me on your site

Oh, cool ! Welcome here and thank you for registering  :D
I'll send you my theme tonight.
Title: Re: SA Chat
Post by: Cmely on April 14, 2014, 02:35:32 PM
I just got again the "chat window not closing" bug...and it was with you... :o ;D

As you were on my site I sent you a message...but you logged out before getting it I guess. And now I can't get the chat window to close.

SMF shows member who where online during the last 15 min. I have the feeling that in some case it keeps showing you online during 15 min even if you just logged out. Maybe this behavior is what can cause the bug I'm talking about... ?
Title: Re: SA Chat
Post by: SA™ on April 14, 2014, 02:51:21 PM
yeah was there but left to play some xbox :D

right click on the x that you use to close the chat window and inspect element what number is in there is it my id on your site or 0 ?

if it is 0 i think i may know what is causing this issue and so do you youve hit the nail on the head there :P
Title: Re: SA Chat
Post by: Cmely on April 14, 2014, 03:09:59 PM
Quote from: SA™ on April 14, 2014, 02:51:21 PM
yeah was there but left to play some xbox :D

right click on the x that you use to close the chat window and inspect element what number is in there is it my id on your site or 0 ?

if it is 0 i think i may know what is causing this issue and so do you youve hit the nail on the head there :P

I get that : onclick="javascript:xchat('145')
145 is your id on the site.
Title: Re: SA Chat
Post by: SA™ on April 14, 2014, 08:34:10 PM
ok been testing various situaction with this now im still not able to replicate it on my dev copy it eaither fixed or just a intimitent bug still ill keep an eye on this one
Title: Re: SA Chat
Post by: SA™ on April 14, 2014, 10:04:17 PM
SA Chat 0.1.2 Relesed

chats are now displayed from bottom to top like facebook
fixed issue with chat boxes not reapering
fixed issue resetting members themes just didnt work
fixed issue with new_msg() and updatemsg() miss fireing if chat was hidden or minimised
fixed issue with php gadgets
social text no longer shows if none enabled
user is typing function now works a little better but this can still cause server load issues use at own risk
Title: Re: SA Chat
Post by: Cmely on April 15, 2014, 01:47:26 PM
Sorry for the stupid question but : do we have to uninstall first the previous version and then install the new one or can we directly install the new one on top of the old one ?
Title: Re: SA Chat
Post by: SA™ on April 15, 2014, 01:55:50 PM
Back up your theme uninstall previous one install the new one then you need to update your theme just copy the head and body js to your theme/js
Title: Re: SA Chat
Post by: Cmely on April 15, 2014, 03:23:37 PM
Quote from: SA™ on April 15, 2014, 01:55:50 PM
Back up your theme uninstall previous one install the new one then you need to update your theme just copy the head and body js to your theme/js

Thanks :)
Title: Re: SA Chat
Post by: Shkic on April 16, 2014, 03:58:08 PM
Now I'm thinking is really refresh button is necessary? What if everyone on the forum will start pushing refresh button? Does it will cause huge server load?

Bug found: In Opera browser there's no sound.

Another question: why in online list doesn't show buddies anymore if they're off-line? I remember in old versions in online list you can see your buddies and send to them message even when they're not on the forum.

EDIT:

One more error found: Undefined index:

cban

File: C:\xampp\htdocs\forum\sachat\functions.php
Line: 579

if (isset($_SESSION['cban']) || empty($modSettings['banLastUpdated']) || ($_SESSION['cban']['last_checked'] < $modSettings['banLastUpdated']) || $_SESSION['cban']['id_member'] != $user_info['id_member'] || $_SESSION['cban']['ip'] != $user_info['member_ip'] || $_SESSION['cban']['ip2'] != $user_info['member_ip2'] || (isset($user_info['email_address'], $_SESSION['cban']['email']) && $_SESSION['cban']['email'] != $user_info['email_address']))
Title: Re: SA Chat
Post by: Realinfo on April 16, 2014, 10:20:29 PM
No option to install or uninstall in package manager
2.0.7 Default theme
So previous version of SA Chat is working ok

But I want to uninstall and install the new one
Title: Re: SA Chat
Post by: nick111 on April 17, 2014, 07:26:54 AM
Quote
Installed just fine, all settings are there, although the chat does not show.
I am running 2.07 base theme.

It says its not disabled, is there and activate or button that you use to see it ?

Thanks

PS, no errors logs look good no install issues.
But Don't see the chat ??
same problem here
also tried Sa Chat>Maintenance>Fix Bar and got

Method Not Implemented

GET to /index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Any help?
Title: Re: SA Chat
Post by: Shkic on April 18, 2014, 04:35:28 AM
Another bugs found in newest version:

If someone write you first time when show chat window and shows the message. But later when chat window is open or minimized automatically not showing new messages. If chat window is open heard only sound about new message, but no new message is displayed. You need manualy refresh all forum, only then you can see message. This happening in Opera and Chrome. In IE works everything fine.
Title: Re: SA Chat
Post by: SA™ on April 18, 2014, 04:19:23 PM
Quote from: Shkic on April 18, 2014, 04:35:28 AM
Another bugs found in newest version:

If someone write you first time when show chat window and shows the message. But later when chat window is open or minimized automatically not showing new messages. If chat window is open heard only sound about new message, but no new message is displayed. You need manualy refresh all forum, only then you can see message. This happening in Opera and Chrome. In IE works everything fine.

hmm another bug i cant replicate doesnt mean its not a bug tho i do see a few issues with the heartbeat one of wich has had me stumped for a while now wich does realte to messages not appering if you send them too quick
Title: Re: SA Chat
Post by: Realinfo on April 20, 2014, 07:35:06 AM
Please give me

RC2 Rev60
Title: Re: SA Chat
Post by: SA™ on April 20, 2014, 01:13:43 PM
Why would you want an older version?
Title: Re: SA Chat
Post by: Realinfo on April 21, 2014, 06:43:13 AM
I have that version chat, and now I want to uninstall it, so to install new version,

Without that pack I can't uninstall
Title: Re: SA Chat
Post by: SA™ on April 21, 2014, 01:49:03 PM
Just grab the latest version from mod site and take the remove hooks.php upload it to your forum same place as the ssi.php and run it in your browser that will remove the hooks then just delete the sachat directory
Title: Re: SA Chat
Post by: Realinfo on April 21, 2014, 10:19:35 PM
When I tried with Remove hooks php, just blank page come and  I also deleted Sa chat directory but in Admin, there is still sa chat options like

    Config
    Gadgets
    Links
    Load Checking
    Theme
    CHMOD


Means to say remove hooks not working

any need to change chmod of some files for it?
Title: Re: SA Chat
Post by: SA™ on April 23, 2014, 01:19:16 PM
yup it suppsed to come up blank i didnt made it output nothing since it is usaly runs within smf

the remove hooks should of reomved the admin part

can you look in your database in settings table
for these hook

('integrate_pre_include', '$boarddir/Sources/SAChatHooks.php');
('integrate_load_permissions', 'SAChat_load_permissions', '$boarddir/Sources/SAChatHooks.php');
('integrate_admin_areas', 'SAChat_admin_areas', '$boarddir/Sources/SAChatHooks.php');
('integrate_load_theme', 'SAChat_loadTheme', '$boarddir/Sources/SAChatHooks.php');

if yu find them remove them

be carfull here and take a back up befor messing wit the database pls
Title: Re: SA Chat
Post by: SA™ on April 23, 2014, 01:30:56 PM
Quote from: nick111 on April 17, 2014, 07:26:54 AM
Quote
Installed just fine, all settings are there, although the chat does not show.
I am running 2.07 base theme.

It says its not disabled, is there and activate or button that you use to see it ?

Thanks

PS, no errors logs look good no install issues.
But Don't see the chat ??
same problem here
also tried Sa Chat>Maintenance>Fix Bar and got

Method Not Implemented

GET to /index.php not supported.

Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.

Any help?

this is usaly a issue with mod secrurity ask your host to disable it
Title: Re: SA Chat
Post by: SA™ on April 25, 2014, 12:54:32 PM
for those interested i have added a new buid to http://samods.github.io/SAChatBar/ there

contains a few small fixes and another theme like default except it uses xml http request in stead of jquery does not have a the bells and whisstles like the the other default theme yet but i am hoping this one will perfom a little better theme is attached this post
Title: Re: SA Chat
Post by: vujicicdragan on May 05, 2014, 07:51:00 AM
how to install (SAChatBar-0.1.2) on free host online please hlp me :D
Title: Re: SA Chat
Post by: Kindred on May 05, 2014, 06:52:42 PM
1- do not double post
2- WAIT. this is not a real time support site
3- depends on your host...   some hosts do not allow you to install any mods at all.
4- if you can install mods, read the FAQ/Wiki on how to install mods
Title: Re: SA Chat
Post by: w5hro on May 10, 2014, 05:33:37 PM
Hello,

In the error log I keep getting the below. What is that and how to correct it?

FATAL

PHP Startup: Unable to load dynamic library '/htscanner.so' - /htscanner.so: cannot open shared object file: No such file or directory

File: Unknown
Line: 0
Title: Re: SA Chat
Post by: SA™ on May 11, 2014, 03:12:27 PM
this is not caused by this mod

typically this warning is due to a line of code in the php.ini file

if you have acesse to your php.ini files you can fix it your self google is your friend there
if not ask your host to fix it

Title: Re: SA Chat
Post by: w5hro on May 13, 2014, 10:42:37 AM
Thanks, I had already found articles on the web before you replied. The problem is I don't have any php.ini file. I searched through all the directories via my Cpanel so I've asked the hosting company.

One quick question though. How does this chat mod effect resource usage on a shared server? I know with a phpBB3 board with minichat installed most hosting companies will shut you down because it just kills the CPU. It won't fly on a shared server.

The last chat package I used was ComentChat which was a lot different and if you paid the $9 a month for the cometservice you didn't have any issues with the hosting company, but what about this SA Chat mod? Will I have a problem with CPU usage? If so is there anyway SA Chat could be modified to support a paid service like the cometservice on an external server somewhere?

Title: Re: SA Chat
Post by: SA™ on May 13, 2014, 03:35:15 PM
QuoteOne quick question though. How does this chat mod effect resource usage on a shared server? I know with a phpBB3 board with minichat installed most hosting companies will shut you down because it just kills the CPU. It won't fly on a shared server.

if your on a shared server i cant say there will not be any issues however i know atleast 3 people who all use it on shared host with no issues although these are not very active forums

QuoteThe last chat package I used was ComentChat which was a lot different and if you paid the $9 a month for the cometservice you didn't have any issues with the hosting company, but what about this SA Chat mod? Will I have a problem with CPU usage? If so is there anyway SA Chat could be modified to support a paid service like the cometservice on an external server somewhere?

at the moment there is no plans for that althought i have been working on improving certain aspects of this mod one main ones is ditching the need for jquery i have most of the code now using pure js and xmlhttprequest instead of ajax i see a dramatic improvement just doing this thougth this version is not realsed yet it is avalible on my github link in sig there is some bugs with it and most likly will not work on older brousers
Title: Re: SA Chat
Post by: Ninja ZX-10RR on May 20, 2014, 05:30:42 AM
Thanks for the awesome mod i really love it, one little detail... I have the "™" in my name on the forum but when i chat to someone it shows up the thing i attached... Maybe some ISO to UTF conversion problems? It happened to me only with ™ only until now but maybe it can happen with some other special characters..?
Sorry for bothering you with this little error, thanks in advance for the reply and thanks again for the mod anyway, users really love it!
Title: Re: SA Chat
Post by: SA™ on May 20, 2014, 01:26:23 PM
I'm am aware of this bug :)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on May 20, 2014, 02:28:53 PM
Good :)
Thanks for your reply but... Are you going to fix it? Any clues of what it could be? Maybe it's related to the thing i told you? ETA for the fix if you have time and willingness to do that for hopeless users not knowing how to? XD
Title: Re: SA Chat
Post by: SA™ on May 20, 2014, 02:55:32 PM
Yes sorry I will take a look tomorrow after work
Title: Re: SA Chat
Post by: Ninja ZX-10RR on May 20, 2014, 04:44:52 PM
Copy that, thank you, we all appreciate your time and effort for this mod. My users appreciate it even more ;) let us know when you will be done, i don't know either update it or if it's really simple just let us know the code that must be edited... Anyway thanks again for your time, good work for tomorrow in both senses if you will be able to take a look :)
Title: Re: SA Chat
Post by: welshdog on May 23, 2014, 09:45:12 PM
Sorry if this covers old ground but I couldn't find some of the stuff suggested as a fix.

Site: Australian Opinion (http://australianopinion.com.au)

Detail: Using SMF-Default Theme under v 2.0.7 with Tiny Portal and security mods.

Installed, but chat bar didn't show up.

Loaded site in FileZilla:

Checked all permissions... 755 all the way.
Reloaded just in case... still nothing

Realised I was looking in /public_html/forum/sachat

... and had nothing labelled 2sichat or similar for me to check!

The Error log shows:

INFO   |   Undefined index: cban   |   File: /xxx/sachat/functions.php Line: 579

What do I do??
Title: Re: SA Chat
Post by: SA™ on May 24, 2014, 04:24:14 PM
In sachat admin maintenance there is. A option called fix bar use it
Title: Re: SA Chat
Post by: Ninja ZX-10RR on May 25, 2014, 08:02:28 AM
Quote from: Flavio93Zena on May 20, 2014, 05:30:42 AM
Thanks for the awesome mod i really love it, one little detail... I have the "™" in my name on the forum but when i chat to someone it shows up the thing i attached... Maybe some ISO to UTF conversion problems? It happened to me only with ™ only until now but maybe it can happen with some other special characters..?
Sorry for bothering you with this little error, thanks in advance for the reply and thanks again for the mod anyway, users really love it!
Quote from: SA™ on May 20, 2014, 01:26:23 PM
I'm am aware of this bug :)
Quote from: SA™ on May 20, 2014, 02:55:32 PM
Yes sorry I will take a look tomorrow after work

Sorry for bothering you man, any updates on this?
Thanks in advance anyway :)
Title: Re: SA Chat
Post by: ExSpirit on May 25, 2014, 11:58:04 AM
This looks like nice mod, but I have a few questions about a few functions:

1. What does "Admin Mode" do? I can't see any difference if I have it off or on.

2. Is there any way to include censored words from SMF?

3. When user has someone on Block list and other user tries to send a message, it's not sent, so he knows that he is in Block. Is there any way that he seas it as it was sent but the first user just doesn't get the message, so that blocked user can't know that he is being blocked?

4. What happens if someone has lots of opened chats or lots of people message him and there's no space on the bottom screen for them? How are they placed? On my screen I think I could have 6, but what if 10 people message me?

5. I will add button to each profile to start chat, so I am wondering what function should I call from my href to open chat (or maybe even check first if user has chat bar enabled)?

6. I would like to add button to disable chat bar (and after user disables it button to enable it is shown), so that's it's seen on board index. Is there any link which I can use or function to do that? I don't want to send users to their profile settings and do it there...

7. Is it possible to add timestamp to messages, so that users know when message was sent?

8. Is there any place to get more themes?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on May 25, 2014, 12:16:07 PM
Quote from: ExSpirit on May 25, 2014, 11:58:04 AM
This looks like nice mod, but I have a few questions about a few functions:

1. What does "Admin Mode" do? I can't see any difference if I have it off or on.

2. Is there any way to include censored words from SMF?

3. When user has someone on Block list and other user tries to send a message, it's not sent, so he knows that he is in Block. Is there any way that he seas it as it was sent but the first user just doesn't get the message, so that blocked user can't know that he is being blocked?

4. What happens if someone has lots of opened chats or lots of people message him and there's no space on the bottom screen for them? How are they placed? On my screen I think I could have 6, but what if 10 people message me?

5. I will add button to each profile to start chat, so I am wondering what function should I call from my href to open chat (or maybe even check first if user has chat bar enabled)?

6. I would like to add button to disable chat bar (and after user disables it button to enable it is shown), so that's it's seen on board index. Is there any link which I can use or function to do that? I don't want to send users to their profile settings and do it there...

7. Is it possible to add timestamp to messages, so that users know when message was sent?

8. Is there any place to get more themes?
I can answer a few of those...
2) No you will have to add them again in the chat config bar

3) What for? He is blocked anyway... It's like Facebook or similar...

4) Just close the older ones or when you are waiting for a reply because it will pop up again when you receive a message ;) if you have to chat with a lot of people anyway i suggest you a shoutbox...

6) It's only in the profile settings i don't think it can be done easily but i guess you should wait the author for a confirmation about it...

7) As far as i remember there is lol just when you are chatting in realtime there isn't

8) I think you should just edit your css for that... But maybe the author has some more info on it
Title: Re: SA Chat
Post by: SA™ on May 25, 2014, 02:34:38 PM
Quote4. What happens if someone has lots of opened chats or lots of people message him and there's no space on the bottom screen for them? How are they placed? On my screen I think I could have 6, but what if 10 people message me?

the chat has overflow built in meaning if the width of the chat boxes is more than the berouser width it will hide the ones that overflow and it will show two green arrows to the left to cycle thrue the open chat boxes

Quote1. What does "Admin Mode" do? I can't see any difference if I have it off or on
admin see all regarless of there chat settings

Quote7. Is it possible to add timestamp to messages, so that users know when message was sent?
it shws a a time stamp on last messgae if there has been no activity after 3 mins can be changed in admin

Quote5. I will add button to each profile to start chat, so I am wondering what function should I call from my href to open chat (or maybe even check first if user has chat bar enabled)?
you can use
<a  href="javascript:void(0)" onclick="javascript:chatTo(\memberid\');return false;">

Quote from: Flavio93Zena on May 25, 2014, 08:02:28 AM
Quote from: Flavio93Zena on May 20, 2014, 05:30:42 AM
Thanks for the awesome mod i really love it, one little detail... I have the "™" in my name on the forum but when i chat to someone it shows up the thing i attached... Maybe some ISO to UTF conversion problems? It happened to me only with ™ only until now but maybe it can happen with some other special characters..?
Sorry for bothering you with this little error, thanks in advance for the reply and thanks again for the mod anyway, users really love it!
Quote from: SA™ on May 20, 2014, 01:26:23 PM
I'm am aware of this bug :)
Quote from: SA™ on May 20, 2014, 02:55:32 PM
Yes sorry I will take a look tomorrow after work

Sorry for bothering you man, any updates on this?
Thanks in advance anyway :)

yes looking now sry for the delay
Title: Re: SA Chat
Post by: SA™ on May 25, 2014, 03:28:58 PM
Quote from: Flavio93Zena on May 25, 2014, 08:02:28 AM
Quote from: Flavio93Zena on May 20, 2014, 05:30:42 AM
Thanks for the awesome mod i really love it, one little detail... I have the "™" in my name on the forum but when i chat to someone it shows up the thing i attached... Maybe some ISO to UTF conversion problems? It happened to me only with ™ only until now but maybe it can happen with some other special characters..?
Sorry for bothering you with this little error, thanks in advance for the reply and thanks again for the mod anyway, users really love it!
Quote from: SA™ on May 20, 2014, 01:26:23 PM
I'm am aware of this bug :)
Quote from: SA™ on May 20, 2014, 02:55:32 PM
Yes sorry I will take a look tomorrow after work

Sorry for bothering you man, any updates on this?
Thanks in advance anyway :)

actualy there seems to be a bigger issue here it seems when your buddy has special chars in there name they cant send messages it just breaks a few things :( it gonna take a little longer to fix this one it has me stumped for now i hate these things they always get me never been too gd with special chars leave it with me for now ill get it :)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on May 25, 2014, 06:35:12 PM
It actually lets me send messages and receiving them normally, the problem is only the username being shown badly... At least this applies to me. Thanks anyway for your time again. Let me know, *let us know :)
Title: Re: SA Chat
Post by: welshdog on May 25, 2014, 08:12:32 PM
Quote from: SA™ on May 24, 2014, 04:24:14 PM
In sachat admin maintenance there is. A option called fix bar use it

Sort of working now thanks. Just one or two small things.

Firstly I keep seeing javascript void (0) messages... why? :)

Secondly... this is a feature request... is it possible to get a group chat organised, i.e. multiple recipients?

Lastly... also maybe a feature request... is it possible to enlarge the chat box... esp with those with multiple recipients.. :D

Otherwise, seems to be working fine thanks.
Title: Re: SA Chat
Post by: ExSpirit on May 26, 2014, 06:17:45 AM
Great, thx for answers.

Two more things:

1) How can I check (in code in my display.template) if member has chat disabled? Because if member has chat disabled and I message him it displays in message box "undefined" (I would rather not show chat button for that member ot at least write that user has disabled chat instead of just "undefined" reply).

2) I noticed two errors on Error logs (I haven't modified anything yet):

Undefined index: cban (File: /usr/home/public_html/sachat/functions.php Line: 579)
Undefined variable: buddies (File: /usr/home/public_html/sachat/themes/default/js/body.js.php Line: 53)
Title: Re: SA Chat
Post by: SA™ on June 01, 2014, 04:10:23 PM
Quote from: Flavio93Zena on May 25, 2014, 06:35:12 PM
It actually lets me send messages and receiving them normally, the problem is only the username being shown badly... At least this applies to me. Thanks anyway for your time again. Let me know, *let us know :)

just updated this on github should fix this issue
http://samods.github.io/SAChatBar/
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 01, 2014, 05:04:26 PM
Thanks for your reply :)

Sorry to say this but I got this when I downloaded it and tried to re-upload it.
Package upload failed due to the following error:
"Although the package was downloaded to the server it appears to be empty. Please check the Packages directory, and the "temp" sub-directory are both writable. If you continue to experience this problem you should try extracting the package on your PC and uploading the extracted files into a subdirectory in your Packages directory and try again. For example, if the package was called shout.tar.gz you should:
1) Download the package to your local PC and extract it into files.
2) Using an FTP client create a new directory in your "Packages" folder, in this example you may call it "shout".
3) Upload all the files from the extracted package to this directory.
4) Go back to the package manager browse page and the package will be automatically found by SMF."


Trying to manually upload it into packages folder changed nothing as the package is not being detected by SMF package manager. I'm gonna re-install the previous one, update again if you fix it :) additionally the size of the previous one is 100kb less than this... Idk what that could mean but I just know that it doesn't work to me at all.
Title: Re: SA Chat
Post by: SA™ on June 01, 2014, 05:09:37 PM
yeah download the package from there to your desktop extract it and rezip github puts the files two layers deep wich means smf can not read the package

Quoteadditionally the size of the previous one is 100kb less than this... Idk what that could mean but I just know that it doesn't work to me at all.
this one has a beta theme in same as the default but removes most jquery dependacy [this has bugs right now it is wip it included just for testing purposes]
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 01, 2014, 05:27:15 PM
LOL didn't know that XD (how could I knew it?)

Well good job it works for now and error log is clear :) I'll let you know but meantime thank you very much for the fix, for the time and effort. I will post again anyway to confirm whether it really works or not in the next days ;)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 04, 2014, 05:32:27 PM
*very bad news here*

After installing the new version but also trying the older one when I try to enable the load checking, doesn't matter if experimental caching is on or off it's the same. I use default theme running on smf 2.0.7
It spams *a lot* of those, I had 60 errors in a few seconds only D:
Title: Re: SA Chat
Post by: SA™ on June 04, 2014, 06:02:30 PM
your host has passthru() function disabled so it won't work anyway just don't use load checking  noted I need to add checks for this
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 04, 2014, 06:12:41 PM
As always thanks for your reply. :)
A few more questions then:
Title: Re: SA Chat
Post by: SA™ on June 05, 2014, 08:41:23 AM
i doubt the will enable it for you
well it depends realy most people do with out the load checking
i mean i need t ad checks for that passthru funtion
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 05, 2014, 02:46:38 PM
Thanks for your reply as always :)

But does it mean you will be releasing an update for that? Also you are forced to use that passthru function to enable load checking? I would really like to use it but like you said I don't know if they will enable it for me...
Title: Re: SA Chat
Post by: SA™ on June 05, 2014, 02:59:55 PM
yes there will be an update for it
when i cant say right now but there will be one  ;D

QuoteAlso you are forced to use that passthru function to enable load checking?
no im not forced to use that function all the load checking was there when i took the mod over from nend i just realy never touched that part much but there is other ways to acheive this and maybe the next update will have

QuoteI would really like to use it but like you said I don't know if they will enable it for me...
if it is disabled for secrity concerns then no just wait ill get to it :)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 05, 2014, 05:39:59 PM
Dude thanks again. I appreciated your time and effort so much that I decided to take a look at the files and I:

As attached :)

Thank you for your kindness in the first place. Awesome mod, awesome support then you get a translation and a review :)
Title: Re: SA Chat
Post by: SA™ on June 05, 2014, 05:47:47 PM
thanks i have added them to the package on github ;)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 05, 2014, 05:54:38 PM
You're welcome it was a pleasure, let me know about the updates when you have some spare time of course :D have a nice day ;)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 05, 2014, 06:26:12 PM
Update: I feel quite ashamed for saying this but it doesn't load up the italian translation. At first I thought it was something wrong with UTF-8 maybe not loading non-utf things and stuff like that but it seems to just ignore the translation even after reinstalling the whole mod and clearing any cache D: I might not be really a pro-coder but I am pretty sure I didn't do anything wrong in the translation... Instead the English tweaks are working perfectly (the other file is just an edited copy of this one...). Any ideas? I'm really sorry to post this but I have been wondering for like 15 mins and found nothing wrong... Sorry to bother you like this, I hope to get this thing sorted out asap.
Title: Re: SA Chat
Post by: SA™ on June 05, 2014, 06:38:22 PM
Is your forum language set to Italian ?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 05, 2014, 07:59:05 PM
I tried both setting it from the profile and also the master setting but nothing D: Idk D:
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 08, 2014, 03:54:27 PM
Any updates?  :'(
Title: Re: SA Chat
Post by: SA™ on June 09, 2014, 12:38:34 PM
on the Italian language issue ?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 09, 2014, 01:33:06 PM
Yup T.T I'm very disappointed about that for 2 reasons
Title: Re: SA Chat
Post by: SA™ on June 09, 2014, 01:43:05 PM
When I have the time I'll look into it right now maybe. All week I'm busy
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 09, 2014, 01:45:22 PM
Let me know. Thanks anyway  :'(
Title: Re: SA Chat
Post by: sunilimon on June 13, 2014, 01:03:32 PM
Request: Members should appear disconnected if they are using tapatalk. Is there any way to control this function? Some users say to me that receives chat messages, but they are connected by tapatalk and don't realise about chat messages.

Thank you very much!
Title: Re: SA Chat
Post by: Kindred on June 13, 2014, 02:12:11 PM
that requires this mod to do something custom for a different mod...

(of course, I can't understand why anyone would EVER use tapatalk anyway)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 16, 2014, 01:50:28 AM
Bump for the old bug regarding the translation not being loaded/wrong idk and reporting another one.
Chat messes things up if opened in more than one tab, if a user opens it in more than one tab he will be able to receive messages in only one of those tabs totally randomly. Let me explain better. Let's say user A has 3 tabs of the forum opened with the chat and user B only one. User A texts user B in tab 1 and user B replies, user A receives the answer in tab 2 or 3 without being able to see the message he has already sent to B through tab 1 in the first place. Refreshing doesn't fix it. Clearing the cache doesn't fix it and neither reinstalling it.
Requesting help for both of these problems when you have time mate  :'(
Title: Re: SA Chat
Post by: Semetery on June 16, 2014, 03:32:28 AM
Absolutely LOVE the mod, unfortunately it like many other of my favorite mods breaks my tabbed categories. It's surely a jQuery issue I'm guessing as disabling this fixes it right back up. I downloaded a zip shared by the author on June 1st, but it too broke it.

Is there anything I can do to make them work in unison?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 16, 2014, 04:07:16 AM
Quote from: Semetery on June 16, 2014, 03:32:28 AM
Absolutely LOVE the mod, unfortunately it like many other of my favorite mods breaks my tabbed categories. It's surely a jQuery issue I'm guessing as disabling this fixes it right back up. I downloaded a zip shared by the author on June 1st, but it too broke it.

Is there anything I can do to make them work in unison?
Dude apart from the fact that you didn't mention your theme or modification that is being incompatible I don't think it can be done as if javascripts are interfering with each other you can't do very much about it. I had to uninstall my custom theme to install the shoutbox for instance.
Title: Re: SA Chat
Post by: Kindred on June 16, 2014, 08:01:42 AM
if they are conflicting on jquery, then you need to edit ALL mods that use jquery so that it is loaded only once.

A few things to keep in mind
1- it is not the job of mod authors to be sure their mod(s) work with other mod(s). We enforce only that mods MUST install cleanly and work on a CELAN copy of SMF. :)
2- mods may have been designed to use different versions of jQuery...
3- some mods may use one of the other javascript repositories like mootools, which may conflict with jQuery.
Title: Re: SA Chat
Post by: SA™ on June 16, 2014, 02:48:53 PM
Quote from: Flavio93Zena on June 16, 2014, 01:50:28 AM
Bump for the old bug regarding the translation not being loaded/wrong idk and reporting another one.
Chat messes things up if opened in more than one tab, if a user opens it in more than one tab he will be able to receive messages in only one of those tabs totally randomly. Let me explain better. Let's say user A has 3 tabs of the forum opened with the chat and user B only one. User A texts user B in tab 1 and user B replies, user A receives the answer in tab 2 or 3 without being able to see the message he has already sent to B through tab 1 in the first place. Refreshing doesn't fix it. Clearing the cache doesn't fix it and neither reinstalling it.
Requesting help for both of these problems when you have time mate  :'(

ive known about this issue for some time though i do not know a way around that issue. i got some time off work next week ill try again then
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 16, 2014, 03:03:42 PM
Thanks for your constant time and effort then :) I hope you find a solution to both of those problems ;)
Title: Re: SA Chat
Post by: SA™ on June 16, 2014, 03:10:19 PM
is your forum utf8? could explain why the language works for me :P try attached?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 16, 2014, 03:20:21 PM
Quote from: SA™ on June 16, 2014, 03:10:19 PM
is your forum utf8? could explain why the language works for me :P try attached?
OMFG *Flavio hides his head in the ground like an ostrich*
Title: Re: SA Chat
Post by: SA™ on June 16, 2014, 03:21:25 PM
works now then?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 16, 2014, 03:27:40 PM
Yes................................................................ I had completely forgotten to rename it to utf as it was actually written for utf... I never ever felt such a dumbass before  :-X
Title: Re: SA Chat
Post by: SA™ on June 22, 2014, 10:34:46 AM
i have pushed an update to my github that changes the load checking i cant realy test it as i only have windws to test in :( and the function i used is not in windows servers
https://github.com/SAMods/SAChatBar

may not even work guess work :D
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 22, 2014, 11:21:38 AM
Cool! I don't have the opportunity to reinstall it at the moment but I will do that later or in the next days. I'll let you know ;) thank you again as always :D
Title: Re: SA Chat
Post by: RSI on June 24, 2014, 12:56:10 PM
Hello,

I've installed the latest version and I get the two errors below in the error log.

INFO    Undefined variable: cpu    File: /home/admin/public_html/sachat/functions.php
            Line: 1004

FATAL     PHP Startup: Unable to load dynamic library '/htscanner.so' - /htscanner.so: cannot open shared object file: No such file or directory
              File: Unknown  Line: 0

So, how can I get rid of these errors? Everything seems to be working properly so I'm not sure why I'm even getting them.

The FATAL one will not go away with or without a php.ini file in the root. The hosting company gave me that file and commenting out those lines does not do anything.

Is there some way I can modify the SA Chat files so it will stop running those two checks/tests?



Title: Re: SA Chat
Post by: SA™ on June 24, 2014, 01:00:49 PM
are you using the one from this site or from my github?
Title: Re: SA Chat
Post by: RSI on June 24, 2014, 01:08:10 PM
Quote from: SA™ on June 24, 2014, 01:00:49 PM
are you using the one from this site or from my github?

The one from this site...

P.S. If I disable load checking the first INFO error goes away.
Title: Re: SA Chat
Post by: SA™ on June 24, 2014, 01:13:01 PM
the fatal error is not this mod but you php.ini file

QuoteTypically this warning is due to a line of code in the php.ini file. You can simply comment that line of code out and it should not affect anything

QuoteUndefined variable: cpu
just dont use load checking as it dont realy work right
Title: Re: SA Chat
Post by: RSI on June 24, 2014, 01:27:28 PM
Quote from: SA™ on June 24, 2014, 01:13:01 PM
the fatal error is not this mod but you php.ini file

Typically this warning is due to a line of code in the php.ini file. You can simply comment that line of code out and it should not affect anything

My site didn't even have or use a php.ini file, but the hosting company copied one in my root and commenting out those lines does absolutely nothing.

Is there a way I and can just modify the sa chat file(s) to stop it from running that instead?
Title: Re: SA Chat
Post by: SA™ on June 24, 2014, 03:20:27 PM
speak to you host i can not fix this
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 24, 2014, 05:18:26 PM
Just tested it and it works at least it shows me the current server load and also no errors in the error log :D

Thanks to this test I found a bad issue with another mod I had installed so thank you twice :D I should thank you twice and now the translation works perfectly (*feels cool  8) *)

As regards the chat not showing messages in tabs I can't understand the way it does that :/ but it still doesn't work. If you can find a way to fix it let me know I will try it for you ;)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 27, 2014, 06:38:40 PM
Here we go again I guess you can call me a pro-glitcher... Two bugs found:


The other one is still the one related to tabs receiving messages randomly lol
Title: Re: SA Chat
Post by: SA™ on June 28, 2014, 12:15:44 PM
thanks for the reports Flavio93Zena ill check soon
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 28, 2014, 12:21:46 PM
Thank you :D

I will be testing for you ;) when you update link me the mod from github :)

Thanks again for your time, patience and effort.
Title: Re: SA Chat
Post by: SA™ on June 29, 2014, 01:08:13 AM
Quote from: Flavio93Zena on June 27, 2014, 06:38:40 PM
When I login with an account that has a permission profile identical to an administrator one it does not show "admin mode" window in chat. (Never used it as an admin until now so that's why I discovered it so late...)

you have to enble groupe permissions for this to work did you enable that?

QuoteKinda bad one. When you logout with an opened chat and login with another account that chat window remains opened without showing the recipient (so an empty chat...). Disabling the bar from the profile didn't fix the problem, neither disabling it from the admin and not even uninstalling it and reinstalling it!!! I had to delete my cookies so that I had to re-login everywhere
added user id prefix to cookies should fix this

new build is here
https://github.com/SAMods/SAChatBar
https://github.com/SAMods/SAChatBar/commit/ab7f4fe7f16e52ac7c0b0a9eb4ef6be53102f431

also please note you did not have to delete all your cookies you could of went to sachat admin and changed the cookie prefix

QuoteThe other one is still the one related to tabs receiving messages randomly lol
this is a tricky one  :P
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 29, 2014, 01:44:57 AM
Quote from: SA™ on June 29, 2014, 01:08:13 AM
Quote from: Flavio93Zena on June 27, 2014, 06:38:40 PM
When I login with an account that has a permission profile identical to an administrator one it does not show "admin mode" window in chat. (Never used it as an admin until now so that's why I discovered it so late...)

you have to enble groupe permissions for this to work did you enable that?
If I check this
QuoteEnable group permissions
Enable group permissions that you can modify in the permission manager in SMF.
Note: The settings here will override permission settings.
the chatbar totally disappears.

QuoteKinda bad one. When you logout with an opened chat and login with another account that chat window remains opened without showing the recipient (so an empty chat...). Disabling the bar from the profile didn't fix the problem, neither disabling it from the admin and not even uninstalling it and reinstalling it!!! I had to delete my cookies so that I had to re-login everywhere
added user id prefix to cookies should fix this

new build is here
https://github.com/SAMods/SAChatBar
https://github.com/SAMods/SAChatBar/commit/ab7f4fe7f16e52ac7c0b0a9eb4ef6be53102f431

also please note you did not have to delete all your cookies you could of went to sachat admin and changed the cookie prefix [/quote]
Awesome I will try all the details later, I will update you on this.

QuoteThe other one is still the one related to tabs receiving messages randomly lol
this is a tricky one  :P
[/quote]
Yeah LOL steal some facebook's code :P

But above anything else thank you again once more. You have been extremely fast! Sorry if I can't always try it immediately but I will do that for sure ;)
Title: Re: SA Chat
Post by: SA™ on June 29, 2014, 01:48:56 AM
Quotethe chatbar totally disappears.
Indeed you need to setup the actual permissions in admin/permissions. That setting just enables support for permissions in sachat
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 29, 2014, 08:20:39 AM
The problem is that I have already checked every box... With administrator membergroup it does show up while with my membergroup having the same permissions (full permissions) it doesn't. :(
I will try the bug fix within an hour.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 29, 2014, 09:10:59 AM
Big up for the cookie fix as it works correctly! Thank you :D you can update the package when you have time ;)

As regards the other problem, as attached. As you can see my permissions are full but admin mode doesn't show up. It does show up only with Administrator default group.
Title: Re: SA Chat
Post by: winnergirl on June 29, 2014, 01:23:54 PM
I apologize for intruding, but I am so frustrated. I have been searching for hours to an answer to a simple SMF question, but without any luck. I joined this forum hoping to find someone who could answers my question, but I can not find the option to post a new thread, is this because I just signed up? Again, I apologize, and thanks for your patience.
Title: Re: SA Chat
Post by: SA™ on June 29, 2014, 01:42:21 PM
Quote from: Flavio93Zena on June 29, 2014, 09:10:59 AM
Big up for the cookie fix as it works correctly! Thank you :D you can update the package when you have time ;)

As regards the other problem, as attached. As you can see my permissions are full but admin mode doesn't show up. It does show up only with Administrator default group.

yeah my bad im sry the user has to be in the admin groupe to see that button looing at the way it handels
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 29, 2014, 02:35:24 PM
Can't you change it and create a permission setting for it? As lots of admins don't really use the "Administrator" membergroup and they prefer to create another one with the same permissions... (so just like me...)

Quote from: winnergirl on June 29, 2014, 01:23:54 PM
I apologize for intruding, but I am so frustrated. I have been searching for hours to an answer to a simple SMF question, but without any luck. I joined this forum hoping to find someone who could answers my question, but I can not find the option to post a new thread, is this because I just signed up? Again, I apologize, and thanks for your patience.
This is not the place to find an answer to your question. You posted once before this message and without even waiting for a reply in that other topic you claim to be frustrated and so on?
1-If you had like ONE MINUTE to install the mod you would have seen that it adds columns, obviously. Otherwise it would have been very stupid as a mod if the admin has to do everything manually.
2-This topic treats a totally different kind of thing.
3-A very simple search in the mods section would have redirected here: http://custom.simplemachines.org/mods/index.php?action=search;basic_search=ads , some of them are not related to ads as the keyword is very simple but many of them are. Take your pic and ask for support where indicated, thank you.
4-This is the support board for SMF 2.0.x --> http://www.simplemachines.org/community/index.php?board=147.0
Title: Re: SA Chat
Post by: SA™ on June 29, 2014, 03:49:54 PM
QuoteCan't you change it and create a permission setting for it? As lots of admins don't really use the "Administrator" membergroup and they prefer to create another one with the same permissions... (so just like me...)

i dont realy know why i never done the permission thing before tbh :P
https://github.com/SAMods/SAChatBar
https://github.com/SAMods/SAChatBar/commit/7c4a25a6536cc6f092733e9e979eddc942a0bebf
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 29, 2014, 04:45:49 PM
Thank you for your reply :)
Too bad. It doesn't work to me. Here are the details:


$txt['permissionname_2sichat_bar_adminmode'] = 'Autorizzato ad utilizzare la modalit&agrave admin';

Title: Re: SA Chat
Post by: SA™ on June 29, 2014, 04:52:58 PM
QuoteThe first edit (Sources/SAChatHooks.php) is supposed to be at line 116, not at 122 ;)

it could be placed there but i added it to the end of other chat permissions

QuoteThe Italian translation for that string is

thanks i updated on git hub with that

QuoteDespite the error log is clear it doesn't seem to work for me. I had set up the permission and activated it but nothing changed unfortunately... I tried to delete the cache, logout and log back in but still nothing :( the admin mode doesn't show up.

hmmm it is showing for me as regular a user you sure you have enabled group permissions in sachat admin?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on June 29, 2014, 04:57:01 PM
Quote from: SA™ on June 29, 2014, 04:52:58 PM
QuoteThe first edit (Sources/SAChatHooks.php) is supposed to be at line 116, not at 122 ;)

it could be placed there but i added it to the end of other chat permissions
Lol then np :)

QuoteThe Italian translation for that string is
Quote from: SA™ on June 29, 2014, 04:52:58 PM
thanks i updated on git hub with that
No problem :D


QuoteDespite the error log is clear it doesn't seem to work for me. I had set up the permission and activated it but nothing changed unfortunately... I tried to delete the cache, logout and log back in but still nothing :( the admin mode doesn't show up.
Quote from: SA™ on June 29, 2014, 04:52:58 PM
hmmm it is showing for me as regular a user you sure you have enabled group permissions in sachat admin?
I'll try again and post a screenshot if it fails :)
Title: Re: SA Chat
Post by: anothen on July 10, 2014, 08:36:49 PM
Greetings,
I am trying to uninstall SA Chat for troubleshooting and I get an error (first image sachaterror001.png)

I plan to do a backup before I run the uninstall, I just want to check with support before I do.

The original error I am troubleshooting for is in the second image.  It seems to be a common error that I am trying to isolate.
Title: Re: SA Chat
Post by: SA™ on July 10, 2014, 09:22:34 PM
Yup you can uninstall it and just remove that edit manualy. As for the error your getting what version of sachat you have installed?.
Title: Re: SA Chat
Post by: anothen on July 10, 2014, 09:31:21 PM
SA Chat   0.1.2 Rev102

Do you suppose that the "...  '2sichat.english' language file.  ..." has something to do with the SA Chat?
Title: Re: SA Chat
Post by: SA™ on July 10, 2014, 09:33:56 PM
well yes cos 2sichat was the mods name before i took over the mod and that files is the language file for this mod

can you veryfi the files is there in Themes\default\languages?
Title: Re: SA Chat
Post by: anothen on July 10, 2014, 09:46:26 PM
Quote from: SA™ on July 10, 2014, 09:33:56 PM
well yes cos 2sichat was the mods name before i took over the mod and that files is the language file for this mod

can you veryfi the files is there in Themes\default\languages?

Yes, there are 42 files in the Themes/default/languages  I do not know how to verify them.
I would need to take two screenshots to show them all.

Is is safe to go ahead and uninstall the mod?  I don't know what you mean by manually removing an edit.
Please forgive my lack of experience with SMF and Mods.
Title: Re: SA Chat
Post by: SA™ on July 11, 2014, 05:01:07 AM
QuoteYes, there are 42 files in the Themes/default/languages  I do not know how to verify them.
I would need to take two screenshots to show them all.

well you should see 2sichat.english.php if it is there just look for that name
Title: Re: SA Chat
Post by: anothen on July 11, 2014, 02:24:46 PM
Great, uninstallation successful.  I'll delete this one and download the updated version.

Thank you for your assistance.
Title: Re: SA Chat
Post by: ExSpirit on July 14, 2014, 07:35:32 AM
I have just noticed that if I am not logged-in, I am receiving two same errors in my firebug:

SyntaxError: missing ; before statement
{"STATUS":"NO ACCESS"}


How can I fix that?

I found in index.php this code:

if (!empty($modSettings['2sichat_permissions']) && empty($permission['2sichat_access']) && empty($permission['is_admin']) && empty($permission['is_mod'])) {
    $context['JSON']['STATUS'] = 'NO ACCESS'; // Sorry but you don't have access
    doOutput();
}


If I remove doOutput() error is gone, but bar is shown below (with text please login or register), but I don't want that bar to be seen by members.


------------
EDIT: I have not (temporary) solved this by adding:

if ($member_id == 0) {
    die();
}


in index.php
Title: Re: SA Chat
Post by: Ninja ZX-10RR on July 14, 2014, 12:06:50 PM
Sorry dude I have been in hospital and nearly died last week. I will reply as soon as I possibly can but please forgive me if I won't be very fast this time... I will be posting a topic in chit chat about this.
Title: Re: SA Chat
Post by: SA™ on July 14, 2014, 02:53:03 PM
Quote from: ExSpirit on July 14, 2014, 07:35:32 AM
I have just noticed that if I am not logged-in, I am receiving two same errors in my firebug:

SyntaxError: missing ; before statement
{"STATUS":"NO ACCESS"}


How can I fix that?

I found in index.php this code:

if (!empty($modSettings['2sichat_permissions']) && empty($permission['2sichat_access']) && empty($permission['is_admin']) && empty($permission['is_mod'])) {
    $context['JSON']['STATUS'] = 'NO ACCESS'; // Sorry but you don't have access
    doOutput();
}


If I remove doOutput() error is gone, but bar is shown below (with text please login or register), but I don't want that bar to be seen by members.


------------
EDIT: I have not (temporary) solved this by adding:

if ($member_id == 0) {
    die();
}


in index.php

this isnt a show stopper but ill look into this when i have time
Title: Re: SA Chat
Post by: -Captain Ghost- on July 15, 2014, 11:10:23 PM
Hello,
First of all thanks for this great mod No problem with this but i want to ask that if it can be used for guest also.

Thanks  ;D
Title: Re: SA Chat
Post by: SA™ on July 16, 2014, 02:07:25 AM
Quote from: r4ll on July 15, 2014, 11:10:23 PM
Hello,
First of all thanks for this great mod No problem with this but i want to ask that if it can be used for guest also.

Thanks  ;D

nope
Title: Re: SA Chat
Post by: Ninja ZX-10RR on July 16, 2014, 08:07:25 AM
I will be back in a day or 2 to test any update mate, sorry for the long absence time (http://www.simplemachines.org/community/index.php?topic=525177.0)
Title: Re: SA Chat
Post by: ExSpirit on July 18, 2014, 06:45:40 AM
I have another problem and I'm not sure if there's something I have done or is there a bug in code:

When I open some chat in forum index and then move to another page (for example on /search/) the chat box of my friend is no longer opened. And when I go back to index it's opened. It's the same if I go to some topic and open chat there, wherever I go chat is not opened, but if I go back to that topic, chat is opened. And that's very confusing, so I am wondering how to fix this (I'm not sure but looks like cookie/session is remembering if chat is opened or not regarding page/folder/URL which I have opened)?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on July 18, 2014, 01:09:48 PM
I don't know if this is happening with the latest let's say "beta" version but it wasn't happening to me so first I would suggest to check your version maybe? ;) ah and I will try the latest version this evening, like I said 2 days ago :)
Title: Re: SA Chat
Post by: ExSpirit on July 18, 2014, 01:11:37 PM
I am using version 0.1.2 Rev102 .
Title: Re: SA Chat
Post by: Ninja ZX-10RR on July 18, 2014, 01:20:20 PM
This is not happening to me so it must be a problem caused by something else... Have you tried to make it work on the default theme?
Was the installation all successful or not?
*dinner time I'll reply later ;) *
Title: Re: SA Chat
Post by: SA™ on July 18, 2014, 02:40:25 PM
Quote from: ExSpirit on July 18, 2014, 06:45:40 AM
I have another problem and I'm not sure if there's something I have done or is there a bug in code:

When I open some chat in forum index and then move to another page (for example on /search/) the chat box of my friend is no longer opened. And when I go back to index it's opened. It's the same if I go to some topic and open chat there, wherever I go chat is not opened, but if I go back to that topic, chat is opened. And that's very confusing, so I am wondering how to fix this (I'm not sure but looks like cookie/session is remembering if chat is opened or not regarding page/folder/URL which I have opened)?

can you try the version here
http://samods.github.io/SAChatBar/

theres a few fixes there i have not updated here yet as there is still issue with php 5.5
Title: Re: SA Chat
Post by: ExSpirit on July 19, 2014, 04:32:53 AM
It's the same with this version. I have checked the cookies which are added and I think the problem is with "Path" parameter, because it's set to various pages (like /search/, /, /profile/,...) - there should always be "the same path"?

I think I fixed this problem by adding options.path = '/'; in head.js.php (before "return (document.cookie..."). Chats are now opened and closed like they should be on all pages. :)
Title: Re: SA Chat
Post by: ExSpirit on July 19, 2014, 05:03:19 AM
OK, 1 problem down and I find another big problem.

If I write to someone multiple messages really fast, he only gets the last one. And if he refreshes the page he sees all of them, but people won't refresh pages after every message they'll get.

Can someone try if it's the same on his forum. Do it like this:

Open chat and do this really fast - type 1, press enter, type 2, press enter, type 3, press enter, type 4, press enter, type 5, press enter,... And check what other person got - in my case only last thing I typed, so in this case 5. And if he refreshes page he gets all messages... Even refresh button on chat bar doesn't help...
Title: Re: SA Chat
Post by: SA™ on July 19, 2014, 05:36:50 AM
Quote from: ExSpirit on July 19, 2014, 04:32:53 AM
It's the same with this version. I have checked the cookies which are added and I think the problem is with "Path" parameter, because it's set to various pages (like /search/, /, /profile/,...) - there should always be "the same path"?

I think I fixed this problem by adding options.path = '/'; in head.js.php (before "return (document.cookie..."). Chats are now opened and closed like they should be on all pages. :)

nice find thanks

Quote from: ExSpirit on July 19, 2014, 05:03:19 AM
OK, 1 problem down and I find another big problem.

If I write to someone multiple messages really fast, he only gets the last one. And if he refreshes the page he sees all of them, but people won't refresh pages after every message they'll get.

Can someone try if it's the same on his forum. Do it like this:

Open chat and do this really fast - type 1, press enter, type 2, press enter, type 3, press enter, type 4, press enter, type 5, press enter,... And check what other person got - in my case only last thing I typed, so in this case 5. And if he refreshes page he gets all messages... Even refresh button on chat bar doesn't help...

this is a known bug will try to fix this
Title: Re: SA Chat
Post by: Ninja ZX-10RR on July 19, 2014, 09:16:23 AM
Sorry for the delay, I totally forgot to install it this night and I was busy with the wiki xD http://www.simplemachines.org/community/index.php?topic=525363.0
By the way I can't see any real changes in the last version IMHO... The admin mode problem not working is still there :( additionally sometimes friends are detected only from one side (a guy can detect another one being online but the opposite doesn't work :O )
Title: Re: SA Chat
Post by: SA™ on July 19, 2014, 01:34:08 PM
QuoteThe admin mode problem not working is still there
it probaly still there cos the admin mode does work for me only tested a bit with a test user

Quoteadditionally sometimes friends are detected only from one side (a guy can detect another one being online but the opposite doesn't work :O )
another known bug  but for me it seem intemittent i did patch this once but it just broke things so i undid the patch till i find a good soulution

by the way make sure you  guys are using the default theme and not the old default one that one will be remeoved soon you can use default xml for testing but it does not have everything yet this will be the new default theme as im ditching the need for jquery im about 80% there in convering it to pure js and prototype js

Title: Re: SA Chat
Post by: Ninja ZX-10RR on July 19, 2014, 03:32:15 PM
Thanks for your reply...

Quote from: SA™ on July 19, 2014, 01:34:08 PM
QuoteThe admin mode problem not working is still there
it probaly still there cos the admin mode does work for me only tested a bit with a test user
As attached. Cache was cleared yesterday and I tested it until the last message... :(

Quote from: SA™ on July 19, 2014, 01:34:08 PM
Quoteadditionally sometimes friends are detected only from one side (a guy can detect another one being online but the opposite doesn't work :O )
another known bug  but for me it seem intemittent i did patch this once but it just broke things so i undid the patch till i find a good soulution
Roger... :(

Quote from: SA™ on July 19, 2014, 01:34:08 PM
by the way make sure you  guys are using the default theme and not the old default one that one will be remeoved soon you can use default xml for testing but it does not have everything yet this will be the new default theme as im ditching the need for jquery im about 80% there in convering it to pure js and prototype js
I'm using the default one not the old_default so it should work right?
Title: Re: SA Chat
Post by: ExSpirit on July 20, 2014, 04:46:21 AM
Quote from: SA™ on July 19, 2014, 05:36:50 AM
this is a known bug will try to fix this
OK, great. Can you predict, when you'll be able to solve this bug? It's really annoying and chat is useless if messages are not delivered, so I hope it will be solved soon.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on July 20, 2014, 07:41:46 AM
Quote from: ExSpirit on July 20, 2014, 04:46:21 AM
Quote from: SA™ on July 19, 2014, 05:36:50 AM
this is a known bug will try to fix this
OK, great. Can you predict, when you'll be able to solve this bug? It's really annoying and chat is useless if messages are not delivered, so I hope it will be solved soon.
Just leave him some time ;)
Title: Re: SA Chat
Post by: B3aker on July 20, 2014, 11:52:11 AM
Quote from: Zaiken64 on February 01, 2014, 06:13:04 PM
I can't get it to work with smf4mobile themes. If I enable the mobile mod it blanks the screen and the only way to make it work is to disable the chat bar. Even excluding the themes specifically from the sa admin panel doesn't fix it.

I am running into this same problem. I use SMF4Mobile as the default mobile theme and it always blanks it out and only thing that pops up is the chat bar trying to load. I tried to disable it on that theme in the SA Chat settings but it still pops up. Other than that, I love this mod and it's exactly what I want in a chat feature for my online gaming forum :) Any chance though that this will be fixed in a later update?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on July 20, 2014, 12:16:11 PM
I already warn you mate that I will not be able to test this for you as my forum is not meant to be browsed by the cellphone so this time you are on your own :( (SA™)
Title: Re: SA Chat
Post by: SA™ on July 20, 2014, 04:11:35 PM
Quote from: B3aker on July 20, 2014, 11:52:11 AM
Quote from: Zaiken64 on February 01, 2014, 06:13:04 PM
I can't get it to work with smf4mobile themes. If I enable the mobile mod it blanks the screen and the only way to make it work is to disable the chat bar. Even excluding the themes specifically from the sa admin panel doesn't fix it.


I am running into this same problem. I use SMF4Mobile as the default mobile theme and it always blanks it out and only thing that pops up is the chat bar trying to load. I tried to disable it on that theme in the SA Chat settings but it still pops up. Other than that, I love this mod and it's exactly what I want in a chat feature for my online gaming forum :) Any chance though that this will be fixed in a later update?
The mod will most Lilly not work on Mobil phones it was never coded to how are you excluding the theme in sachat admin just need to put theme I'd on its own in the box
Title: Re: SA Chat
Post by: JoeBrodsky on July 20, 2014, 06:39:14 PM
This mod works great! However I ran into only one problem.  For some reason the home button on my website doesn't get sent to the back like the other buttons. 

See the picture below
Title: Re: SA Chat
Post by: Ninja ZX-10RR on July 20, 2014, 07:01:37 PM
Any chance to try if with the default theme it works? :)
Title: Re: SA Chat
Post by: JoeBrodsky on July 21, 2014, 02:34:17 AM
Quote from: Flavio93Zena on July 20, 2014, 07:01:37 PM
Any chance to try if with the default theme it works? :)

I don't think so
Title: Re: SA Chat
Post by: Ninja ZX-10RR on July 21, 2014, 07:41:56 AM
"think" is not very much different from "it might work but I haven't tried it"
Title: Re: SA Chat
Post by: jafonseca on July 25, 2014, 04:14:23 AM
Error log

Quote
Undefined index: cban

File: /home/hdclasic/public_html/sachat/functions.php
Line: 579

It repeats, too may times the same error..

PD: How to install a room for a group of persons
Title: Re: SA Chat
Post by: B3aker on July 26, 2014, 11:09:47 AM
Quote from: SA™ on July 20, 2014, 04:11:35 PM
Quote from: B3aker on July 20, 2014, 11:52:11 AM
Quote from: Zaiken64 on February 01, 2014, 06:13:04 PM
I can't get it to work with smf4mobile themes. If I enable the mobile mod it blanks the screen and the only way to make it work is to disable the chat bar. Even excluding the themes specifically from the sa admin panel doesn't fix it.


I am running into this same problem. I use SMF4Mobile as the default mobile theme and it always blanks it out and only thing that pops up is the chat bar trying to load. I tried to disable it on that theme in the SA Chat settings but it still pops up. Other than that, I love this mod and it's exactly what I want in a chat feature for my online gaming forum :) Any chance though that this will be fixed in a later update?
The mod will most Lilly not work on Mobil phones it was never coded to how are you excluding the theme in sachat admin just need to put theme I'd on its own in the box

I understand that and to be honest, don't want it to load on any mobile theme for my forum. I only want it on the default theme.

When I go to install it from the package manager, I don't select the check box to it to install on SMF4Mobile. I select it only to install on my default theme. But it installs anyway on my SMF4Mobile theme. When I test it on my phone it only goes to a white screen and it tries to load SA Chat (again, I didn't select it to install on this theme). When I go into the admin settings, I go down to "Disable bar on certain themes" and write in SMF4Mobile. Then when I test it again on my phone, still a blank page with the chat bar attempting to load.
Title: Re: SA Chat
Post by: SA™ on July 26, 2014, 09:05:11 PM
Quote"Disable bar on certain themes" and write in SMF4Mobile. Then when I test it again on my phone, still a blank page with the chat bar attempting to load.

This mod uses hooks so it shows on all themes to disable the bar on a certain themes just use the theme id example "2" without the quotes.
Title: Re: SA Chat
Post by: SA™ on July 26, 2014, 09:09:21 PM
Quote from: jafonseca on July 25, 2014, 04:14:23 AM
Error log

Quote
Undefined index: cban

File: /home/hdclasic/public_html/sachat/functions.php
Line: 579

It repeats, too may times the same error..

PD: How to install a room for a group of persons

What version of the mod are you using?.
For group chat you can use flashchat $5 or it used to be but you can use that in a gadget others may also work only tryd flash chat.
Title: Re: SA Chat
Post by: jafonseca on July 28, 2014, 03:05:53 PM
Quote from: SA™ on July 26, 2014, 09:09:21 PM
Quote from: jafonseca on July 25, 2014, 04:14:23 AM
Error log

Quote
Undefined index: cban

File: /home/hdclasic/public_html/sachat/functions.php
Line: 579

It repeats, too may times the same error..

PD: How to install a room for a group of persons

What version of the mod are you using?.
For group chat you can use flashchat $5 or it used to be but you can use that in a gadget others may also work only tryd flash chat.

SMF 2.0.8 , thanks
Title: Re: SA Chat
Post by: SA™ on July 28, 2014, 07:23:33 PM
Mod version not smf version
Title: Re: SA Chat
Post by: jafonseca on July 29, 2014, 03:54:51 AM
SA Chat   0.1.2 Rev102

sorry
Title: Re: SA Chat
Post by: ExSpirit on July 30, 2014, 07:21:14 AM
Quote from: SA™ on July 19, 2014, 05:36:50 AM
Quote from: ExSpirit on July 19, 2014, 05:03:19 AM
If I write to someone multiple messages really fast, he only gets the last one. And if he refreshes the page he sees all of them, but people won't refresh pages after every message they'll get.
this is a known bug will try to fix this

SA™, have you managed to fix this bug?
Title: Re: SA Chat
Post by: Isa.F on July 31, 2014, 03:49:54 AM
I installed this mod on my forum, without any errors.

But nothing happens, I cant see any chat , nothing.

I am using smf 2.0.8.  www.pedacinhos-de-nos.net

My host said that the mod is not bloqued by the mod-security.

I have played  with de permissions of groups in the admin panel, but still can't see anything different...

I am using another theme, but I tested the mod in default and switch the language to english, but still can't see de chat ...

Can anyone help me to activate the chat?


Thank you! Sorry for my english...

I tried to use de option "fix bar" in the menu, but still I can´t see the chat bar , nothing...

Also, I check the file permissions, they are set to 755




EDIT: After uninstall and install again, and disable da option "Enable group permissions" finally I can see de chat bar...

Thanks anyway
Title: Re: SA Chat
Post by: ExSpirit on August 02, 2014, 12:54:41 AM
Today I received notice from my system administrator that server is very loaded because of this mod. Only I am using new forum in development and this script made around 300.000 calls to 404 page. Here is the part of log file:

Quote...
XX.XX.XX.XX - - [01/Aug/2014:10:18:11 +0200] "GET /sachat/index.php?action=heart&_=1406879113686 HTTP/1.1" 404 905 "http://myforumdomain/moderate/?area=index" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
XX.XX.XX.XX - - [01/Aug/2014:10:18:16 +0200] "GET /sachat/index.php?action=heart&_=1406873565205 HTTP/1.1" 404 905 "http://myforumdomain/groups/?sa=requests" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
XX.XX.XX.XX - - [01/Aug/2014:10:18:24 +0200] "GET /sachat/index.php?action=heart&_=1406873529324 HTTP/1.1" 404 905 "http://myforumdomain/profile/?area=account;u=2;save" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
XX.XX.XX.XX - - [01/Aug/2014:10:18:27 +0200] "GET /sachat/index.php?action=heart&_=1406879113687 HTTP/1.1" 404 905 "http://myforumdomain/moderate/?area=index" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
XX.XX.XX.XX - - [01/Aug/2014:10:18:28 +0200] "GET /sachat/index.php?action=heart&_=1406873296009 HTTP/1.1" 404 905 "http://myforumdomain/calendar" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"
...

The problem is, that those pages exists and work, but I don't know why those calls are getting 404 and load the server - with just me, what will happen when 100,1000 people at once will stay on forum, it will crash in a second.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 02, 2014, 08:20:09 AM
Are you using the last version of it? Because I had a similar problem due to my host having the passthru function enabled... But this was fixed after my report. (and with some effort by SA™)
Title: Re: SA Chat
Post by: konstantinos2424 on August 02, 2014, 09:01:44 AM
Hello everyone, I installed this mod..everything working well except from some things. First of all, the online box doesn't show all my buddies (who are online) that i added after I installed the chat. Second I don't think that that is a problem but is that when i go to another page the chatbox many times goes to the start of the conversation and when the conversation is long, well, the scrolling is a bit annoying! Thank you a lot :)
Title: Re: SA Chat
Post by: ExSpirit on August 02, 2014, 09:25:10 AM
Quote from: NinjaZX10RR on August 02, 2014, 08:20:09 AM
Are you using the last version of it? Because I had a similar problem due to my host having the passthru function enabled... But this was fixed after my report. (and with some effort by SA™)
No, I'm using a bit older version. I am waiting for the fix of "multi-message not delivered". So your problem was fixed because of newer version or change on the server?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 02, 2014, 09:41:06 AM
Quote from: ExSpirit on August 02, 2014, 09:25:10 AM
Quote from: NinjaZX10RR on August 02, 2014, 08:20:09 AM
Are you using the last version of it? Because I had a similar problem due to my host having the passthru function enabled... But this was fixed after my report. (and with some effort by SA™)
No, I'm using a bit older version. I am waiting for the fix of "multi-message not delivered". So your problem was fixed because of newer version or change on the server?
http://www.simplemachines.org/community/index.php?topic=391961.msg3704438#msg3704438 and the following messages clearly explain that it was fixed.

Quote from: konstantinos2424 on August 02, 2014, 09:01:44 AM
Hello everyone, I installed this mod..everything working well except from some things. First of all, the online box doesn't show all my buddies (who are online) that i added after I installed the chat. Second I don't think that that is a problem but is that when i go to another page the chatbox many times goes to the start of the conversation and when the conversation is long, well, the scrolling is a bit annoying! Thank you a lot :)
Sometimes they both happen I don't know why... Trying refreshing the page might help at a times.
Title: Re: SA Chat
Post by: SA™ on August 02, 2014, 02:45:22 PM
Quote from: ExSpirit on August 02, 2014, 12:54:41 AM
Today I received notice from my system administrator that server is very loaded because of this mod. Only I am using new forum in development and this script made around 300.000 calls to 404 page. Here is the part of log file:

Quote...
XX.XX.XX.XX - - [01/Aug/2014:10:18:11 +0200] "GET /sachat/index.php?action=heart&_=1406879113686 HTTP/1.1" 404 905 "http://myforumdomain/moderate/?area=index" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
XX.XX.XX.XX - - [01/Aug/2014:10:18:16 +0200] "GET /sachat/index.php?action=heart&_=1406873565205 HTTP/1.1" 404 905 "http://myforumdomain/groups/?sa=requests" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
XX.XX.XX.XX - - [01/Aug/2014:10:18:24 +0200] "GET /sachat/index.php?action=heart&_=1406873529324 HTTP/1.1" 404 905 "http://myforumdomain/profile/?area=account;u=2;save" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
XX.XX.XX.XX - - [01/Aug/2014:10:18:27 +0200] "GET /sachat/index.php?action=heart&_=1406879113687 HTTP/1.1" 404 905 "http://myforumdomain/moderate/?area=index" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
XX.XX.XX.XX - - [01/Aug/2014:10:18:28 +0200] "GET /sachat/index.php?action=heart&_=1406873296009 HTTP/1.1" 404 905 "http://myforumdomain/calendar" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"
...

The problem is, that those pages exists and work, but I don't know why those calls are getting 404 and load the server - with just me, what will happen when 100,1000 people at once will stay on forum, it will crash in a second.

this maybe be fixed on github

Quote from: ExSpirit on July 30, 2014, 07:21:14 AM
Quote from: SA™ on July 19, 2014, 05:36:50 AM
Quote from: ExSpirit on July 19, 2014, 05:03:19 AM
If I write to someone multiple messages really fast, he only gets the last one. And if he refreshes the page he sees all of them, but people won't refresh pages after every message they'll get.
this is a known bug will try to fix this

SA™, have you managed to fix this bug?

no havent had too much time
Title: Re: SA Chat
Post by: Isa.F on August 03, 2014, 06:56:30 AM
Hello! I'm having a new problem with this mod.

It's not synchronized with the forum loggin! The members are logged in the forum, but the chat bar still says:

" Welcome, Guest. Please login or register."

how can I solve this?

Thank you!
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 03, 2014, 08:05:18 AM
Quote from: Isa.F on August 03, 2014, 06:56:30 AM
Hello! I'm having a new problem with this mod.

It's not synchronized with the forum loggin! The members are logged in the forum, but the chat bar still says:

" Welcome, Guest. Please login or register."

how can I solve this?

Thank you!
This is not very much useful unless you provide as many details as possible, such as SMF version (opened your siggy and you are on smf 2.0.8, even if it would have been better anyway to tell us in the first place ;) ), MOD version (updating to GitHub version is highly recommended), if you have a custom theme (I see you have a DzinerStudio one) I suggest you to try using the default one (http://pedacinhos-de-nos.net/index.php?action=theme;sa=pick;u=1;theme=1;) and try again just to exclude that possibility. Moreover, if you have other mods installed they may cause some conflict with this one.
Also.. Error log? Errors? Did you try to clear the cache and maybe reinstall it? Installation errors? Did you make any custom edits to the code or was the installation completely successful? Who is your host? If you are running SMF on a GoDaddy server it's highly recommended either to move to another host or bug them until they disable mod_security on your server.
Title: Re: SA Chat
Post by: Isa.F on August 03, 2014, 09:46:28 AM
Quote from: NinjaZX10RR on August 03, 2014, 08:05:18 AM
This is not very much useful unless you provide as many details as possible, such as SMF version (opened your siggy and you are on smf 2.0.8, even if it would have been better anyway to tell us in the first place ;) ), MOD version (updating to GitHub version is highly recommended), if you have a custom theme (I see you have a DzinerStudio one) I suggest you to try using the default one (http://pedacinhos-de-nos.net/index.php?action=theme;sa=pick;u=1;theme=1;) and try again just to exclude that possibility. Moreover, if you have other mods installed they may cause some conflict with this one.
Also.. Error log? Errors? Did you try to clear the cache and maybe reinstall it? Installation errors? Did you make any custom edits to the code or was the installation completely successful? Who is your host? If you are running SMF on a GoDaddy server it's highly recommended either to move to another host or bug them until they disable mod_security on your server.

Sorry, I tried some things but i forgot to mention.

Yes, I'm using smf 2.0.8 and the mod is version SAChatBar-0.1.2.zip (I think is the more recent...)

I tried in the default theme, but have the same problem: members online, but in the chat they are still "Guests"...


I tried uninstall and re-install: same problem

I never had errors in the mod installation, so i didn't need to make any edits. The installation was successful...

I tried clean the cache in the SAChat Maintenance and in the general Forum Maintenance: same problem

I tried the option "Fix Bar": same problem

I ask to my host if the mod has been bloqued by the mod security, they answered that it wasn't...



And yes, I have another mods, but the thing is that in the first time that I use the mod, it worked fine, and I was "online" in the forum and in the Chat... But the next day, I started to have this problem...


About the errors... In the general admin Maintenance, there are no errors, but in the especific SA Chat, the Error Log is:


"INFO

Undefined index: cban

File: /home/pedacinh/public_html/sachat/functions.php
Line: 579
"




PS: Sorry for my english...


Thanks ;)





EDIT: I also tried to uninstall this version SAChatBar-0.1.2.zip, from here  http://custom.simplemachines.org/mods/index.php?mod=2534http://custom.simplemachines.org/mods/index.php?mod=2534 and install  SAMods-SAChatBar-4417ee3 from here http://samods.github.io/SAChatBar/ , but I have the same problem


However, I found out that with Chrome I don't have this problem, the problem is only with IE... Maybe  this could be a clue...


Anyone can help me...?

Thanks!  ;)
Title: Re: SA Chat
Post by: SA™ on August 03, 2014, 07:58:43 PM
can i have a link to your sites with a test account pls?

also if you can check the SERVER error logs for any errors yes i said server error logs not forums error logs
Title: Re: SA Chat
Post by: Isa.F on August 03, 2014, 08:10:23 PM
www.pedacinhos-de-nos.net

Thank you  :)





EDIT


In the SaChat Error Logs I got this:

"INFO

Undefined index: cban

File: /home/pedacinh/public_html/sachat/functions.php
Line: 579

 
INFO

Undefined index: global_character_set

File: /home/pedacinh/public_html/sachat/functions.php
Line: 721

"

Over and over again...



I will try to see the server error, not sure if I really know were I can find that, though.....
Title: Re: SA Chat
Post by: SA™ on August 03, 2014, 08:17:11 PM
Quotewith a test account pls?
Title: Re: SA Chat
Post by: Isa.F on August 03, 2014, 08:23:46 PM
Quote from: SA™ on August 03, 2014, 08:17:11 PM
Quotewith a test account pls?

Sorry, i didn't understand that.. It's the first time that someone ask me that...

Let's see, I have to make one account and give you the name and password so you can test the site. Can you confirm this?
Title: Re: SA Chat
Post by: SA™ on August 03, 2014, 08:29:27 PM
yes that is correct pm me if you want  8)

Quotealso if you can check the SERVER error logs for any errors yes i said server error logs not forums error logs
Title: Re: SA Chat
Post by: Isa.F on August 03, 2014, 08:37:56 PM
Ok!  :) Sent!  :)


Thanks...  :)



EDIT: I will also PM you the server errors .
Title: Re: SA Chat
Post by: SA™ on August 03, 2014, 08:43:03 PM
QuoteEDIT


In the SaChat Error Logs I got this:

"INFO

Undefined index: cban

File: /home/pedacinh/public_html/sachat/functions.php
Line: 579

 
INFO

Undefined index: global_character_set

File: /home/pedacinh/public_html/sachat/functions.php
Line: 721

they should be fixed here
https://github.com/SAMods/SAChatBar
just pushed a update
Title: Re: SA Chat
Post by: SA™ on August 03, 2014, 08:51:13 PM
can you link me with that shoutbox so i can test somthing it may be that
Title: Re: SA Chat
Post by: Isa.F on August 03, 2014, 09:00:22 PM
The shoutbox is: http://custom.simplemachines.org/mods/index.php?mod=1295


I have already uninstall the version  SAChatBar-0.1.2.zip  and install SAChatBar-master




EDIT: I installed both mods in the same day, so it's possible that the error is related to that... however  I would like to have a shoutbox too... Is there a shoutbox more compatible to the SAchat?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 03, 2014, 09:20:01 PM
LOL I can witness that they can work together as they are both installed and running on my forum with no errors except the one about admin mode not being shown that I had already pointed out and the usual random-tab-message-delivery thingy xD
Title: Re: SA Chat
Post by: SA™ on August 03, 2014, 09:22:20 PM
well i can not replicate this issue at all works for me on my test site using chrome ff ie opera and safri

there has to be a conflict with somthing on your site
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 03, 2014, 09:28:44 PM
If you say so...  :'( :-X I can't test it on a clean install so... But anyway it *IS* compatible with the aforementioned shoutbox :)
Title: Re: SA Chat
Post by: SA™ on August 03, 2014, 09:30:25 PM
yes it does play nice wit the shoutbox  :)
Title: Re: SA Chat
Post by: Isa.F on August 03, 2014, 09:35:50 PM
Quote from: SA™ on August 03, 2014, 09:30:25 PM
yes it does play nice wit the shoutbox  :)

well, it's a good news...


But still i can't found the source of the problem...

Just PM you the list of mods...
Title: Re: SA Chat
Post by: SA™ on August 03, 2014, 09:37:38 PM
and replyed
Title: Re: SA Chat
Post by: Isa.F on August 03, 2014, 09:46:31 PM
Thanks for all the help!  :)

I will try uninstall some mods to see if I can find what is causing the error...


But there is one thing that I can't understand: Why the mod is working well in chrome and firefox?  ???
Title: Re: SA Chat
Post by: SA™ on August 03, 2014, 09:47:28 PM
ie and other brousers are more picky :P
Title: Re: SA Chat
Post by: Isa.F on August 03, 2014, 10:25:13 PM
Quote from: SA™ on August 03, 2014, 09:47:28 PM
ie and other brousers are more picky :P

LOL Ok....  :laugh:




I have a good news!!!  :D   I finally solved the problem!!!  :laugh:

I was so concentrated in  uninstall and re-install  the SAChat mod, over and over again, that it never occurred to me uninstall and re-install again the shoutbox mod that was installed in the same day!

I did that now, I uninstall the shoutbox and re-install it, and now I don´t have any problems!!  :D And I still have both mods!! :D

Well, is working for now,  let's see if it keeps like that  ;)


Thank you again for the help!




Can I ask you another thing?  O:)


How can I change the color of the bar?   ???


Thanks again!  :)
Title: Re: SA Chat
Post by: SA™ on August 03, 2014, 10:27:31 PM
you can change the css for the sachat theme
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 03, 2014, 11:59:37 PM
If she wants to change the color of the bar she doesn't have to change the css, she has to edit the cbar.png icon that is in {forum folder}/sachat/themes/default/images ;) it is a 1*32 pixels image repeated until the end of the screen. :)
Title: Re: SA Chat
Post by: SA™ on August 04, 2014, 01:57:46 PM
Yes correct but you would still need to mod the CSS if you go dark
Title: Re: SA Chat
Post by: Isa.F on August 07, 2014, 10:41:26 PM
Quote from: Isa.F on August 03, 2014, 06:56:30 AM
Hello! I'm having a new problem with this mod.

It's not synchronized with the forum loggin! The members are logged in the forum, but the chat bar still says:

" Welcome, Guest. Please login or register."

how can I solve this?

Thank you!


Hi again!!

I'm having the same problem over and over again...

Every time that I make some change in the package area, I get the same problem... I'm online in the forum but offline in the chat... Every time that this happens I have to uninstall all the mods because even when I uninstall only the new mod, still I cant synchronize the chat with the forum, and only when I uninstall all the mods and install again, then the chat Is ok again...

But this cant continuous to happen because in 3 days I've already install and uninstall all the mods 5 times...

I have inclusive re-install all the forum fresh, and then install the mods one by one and all  is ok, but when I install another mod and the chat then turn off...

And yes, I tried to uninstall the new mod  and had the same problem but this time I tired to uninstall and reinstall all the mods every time that I make some change in the forum...

I discovered that this problem ONLY appends in IE, because in chrome and firefox everything is always fine and always without problems!

So, something in the mod must be causing this bug in IE! 


I like this mod so much! I want to keep it, but if this keeping happening, I will have to give up... I cant always keeping install and uninstall everything, not when the problem is only in IE, that makes me believe that there must be a bug in the mod...


Sorry for this text, but I am really frustrated because I really want to make this work on IE...



Note:
I am using SMF 2.0.8
MOD from here https://github.com/SAMods/SAChatBar
I tried to clean the cache, in the forum, in the SAChat menu, and even in the IE, don't work, still offline
I never got errors never, not in the error logs of SAChatbar, not in the forum errors, not even in installation
I tried the option "Fix Bar", the bar appears, but I'm steel offline, and online in forum
I uninstall and reinstall many times and always without any error...  but still offline... 




Need a little help...  :-[

Thank you!  ;)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 07, 2014, 10:49:29 PM
Ever wondered that the problem is IE itself being a crappy browser (not only IMO, this is said everywhere including this topic) as all the other ones actually work with it?
Title: Re: SA Chat
Post by: Isa.F on August 07, 2014, 10:53:16 PM
Quote from: NinjaZX10RR on August 07, 2014, 10:49:29 PM
Ever wondered that the problem is IE itself being a crappy browser (not only IMO, this is said everywhere including this topic) as all the other ones actually work with it?

Yes, maybe the problem is that IE is a crappy browser, but still there are many members off my forum that use IE, so, the forum must be able to function in IE too... 
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 07, 2014, 11:04:27 PM
You might want to link them these:
http://weknowmemes.com/wp-content/uploads/2012/07/testing-webpages-on-different-browsers.jpg (exactly your case :) )
http://global3.memecdn.com/ie_o_950486.jpg bit hilarious but still on topic as regards browsers operating with SMF and internet in general :P
http://www.developermemes.com/wp-content/uploads/2013/03/tumblr_maz1zoBF7X1ra9a3to1_500.jpg true story!!!
Title: Re: SA Chat
Post by: Kindred on August 08, 2014, 06:46:34 AM
Isa.F....


what version of IE is failing for you?   because it seems to work just fine on my system in ie11.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 08, 2014, 08:40:26 AM
I can't test it on mine as my IE doesn't even show google. Nice.

Being serious they can try to update their browsers, because if Kindred said that it works on ie 11 it should work on your forum too...

*wonders how a guy with ie 9 or similar can even browse the internet or use a forum properly..*
Title: Re: SA Chat
Post by: nend on August 08, 2014, 10:45:18 AM
Doesn't make any sense.

Either

1. IE is caching the chat, if that was the case the chat wouldn't display at all since the header information would be displayed and body information never loaded.

2. Cookie problems. Which actually makes the most sense.
  A. If you own the domain try setting cookies to global.
  B. Possible "Do Not Track" junk. When I had the chat it was not equipped to deal with it. I have been out of the loop for a while so a possible browser, mod or SMF software change dealing with cookies could be the problem.

If your users are running with "Do Not Track" on in their browser I am sure they run into problems on other sites as well.

Problem is more than likely cookie related, don't have time to investigate. More than likely a mod, when you uninstall it it allows the cookie to go through then all is working great til the cookie is purged or expires.
Title: Re: SA Chat
Post by: SA™ on August 08, 2014, 11:29:05 AM
in ie it works for me on my test site
there is a conflict witht the mods on that site  i see in ie it looks like the cookie dont get set but it does just dont show in dev console weird
Title: Re: SA Chat
Post by: nend on August 08, 2014, 12:47:50 PM
Quote from: SA™ on August 08, 2014, 11:29:05 AM
in ie it works for me on my test site
there is a conflict witht the mods on that site  i see in ie it looks like the cookie dont get set but it does just dont show in dev console weird

That is what I noticed. Not by a computer but using Chrome for Android I notice there is no cookie for the site which may mean the site is using sessions only. Some mod the op installed modified/broke the cookie system for SMF.

It has been a while, but I believe SMF can run off from sessions only if needed, but the chat can't. Since the chat uses SMF's cookie for validation, the absence of the cookie would make the chat think the user isn't logged in.
Title: Re: SA Chat
Post by: Isa.F on August 08, 2014, 01:30:27 PM
Quote from: NinjaZX10RR on August 07, 2014, 11:04:27 PM
You might want to link them these:
http://weknowmemes.com/wp-content/uploads/2012/07/testing-webpages-on-different-browsers.jpg (exactly your case :) )
http://global3.memecdn.com/ie_o_950486.jpg bit hilarious but still on topic as regards browsers operating with SMF and internet in general :P
http://www.developermemes.com/wp-content/uploads/2013/03/tumblr_maz1zoBF7X1ra9a3to1_500.jpg true story!!!

Thank you for making me laugh and break for moments my frustration!  :D



Well, I have to tell you that today the chat is working perfectly !

Yesterday I tried everything like clean cookies of IE, clean de IE temporary files , clean cookies from the site, everything that I coud do, I have done... And nothing worked!



But then, I turned off my computer, and in the moment that I turn it on, there it was the chat working perfectly!!  :D

Im very happy that the chat is working again, but still I cant understand why the chat simply turn off when I even logout from the site!

In all times that I had this bug in the chat, I was always logged in the site and logged in de chat, and always the bug appears when I make some change in another mod... I can't understand what makes this bug show up and what makes the bug disappear turning off the computer...  ???


Title: Re: SA Chat
Post by: nend on August 08, 2014, 05:03:46 PM
Quote from: Isa.F on August 08, 2014, 01:30:27 PM
Quote from: NinjaZX10RR on August 07, 2014, 11:04:27 PM
You might want to link them these:
http://weknowmemes.com/wp-content/uploads/2012/07/testing-webpages-on-different-browsers.jpg (exactly your case :) )
http://global3.memecdn.com/ie_o_950486.jpg bit hilarious but still on topic as regards browsers operating with SMF and internet in general :P
http://www.developermemes.com/wp-content/uploads/2013/03/tumblr_maz1zoBF7X1ra9a3to1_500.jpg true story!!!

Thank you for making me laugh and break for moments my frustration!  :D



Well, I have to tell you that today the chat is working perfectly !

Yesterday I tried everything like clean cookies of IE, clean de IE temporary files , clean cookies from the site, everything that I coud do, I have done... And nothing worked!



But then, I turned off my computer, and in the moment that I turn it on, there it was the chat working perfectly!!  :D

Im very happy that the chat is working again, but still I cant understand why the chat simply turn off when I even logout from the site!

In all times that I had this bug in the chat, I was always logged in the site and logged in de chat, and always the bug appears when I make some change in another mod... I can't understand what makes this bug show up and what makes the bug disappear turning off the computer...  ???




The chat uses SMF's cookie based login system and user database. There is no synchronization between the two because they use the same system.

SMF has another system though which the chat doesn't take advantage of. It is the session based system used for browsers that do not support cookies. This system is being used mainly on your site which is awkward. Reasoning though something is breaking the cookie system, either it be a server setting or mod.

Your sites login system is halfway broken. This is not a bug in the chat system.
Title: Re: SA Chat
Post by: SA™ on August 08, 2014, 06:23:46 PM
Quote from: nend on August 08, 2014, 12:47:50 PM
Quote from: SA™ on August 08, 2014, 11:29:05 AM
in ie it works for me on my test site
there is a conflict witht the mods on that site  i see in ie it looks like the cookie dont get set but it does just dont show in dev console weird

That is what I noticed. Not by a computer but using Chrome for Android I notice there is no cookie for the site which may mean the site is using sessions only. Some mod the op installed modified/broke the cookie system for SMF.

It has been a while, but I believe SMF can run off from sessions only if needed, but the chat can't. Since the chat uses SMF's cookie for validation, the absence of the cookie would make the chat think the user isn't logged in.

Yeah that would make sense I also forgot this setting
Title: Re: SA Chat
Post by: ExSpirit on August 09, 2014, 05:30:07 AM
SA™, when do you think this mod will be stable and ready for "final release" which will be published on SMF Mod Site?
Title: Re: SA Chat
Post by: Isa.F on August 09, 2014, 05:43:14 AM
Quote from: nend on August 08, 2014, 05:03:46 PM
The chat uses SMF's cookie based login system and user database. There is no synchronization between the two because they use the same system.

SMF has another system though which the chat doesn't take advantage of. It is the session based system used for browsers that do not support cookies. This system is being used mainly on your site which is awkward. Reasoning though something is breaking the cookie system, either it be a server setting or mod.

Your sites login system is halfway broken. This is not a bug in the chat system.

Hi nend! Thak's for your quick and clear reply! ;)


But tell me something: what can I do to know what is failing in the login system?

Thank's! :)



EDIT: I already changed de chat bar color! :) I did as Ninja said ;)

Quote from: NinjaZX10RR on August 03, 2014, 11:59:37 PM
If she wants to change the color of the bar she doesn't have to change the css, she has to edit the cbar.png icon that is in {forum folder}/sachat/themes/default/images ;) it is a 1*32 pixels image repeated until the end of the screen. :)

Thank's ;)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 09, 2014, 08:09:59 AM
Quote from: Isa.F on August 08, 2014, 01:30:27 PM
Thank you for making me laugh and break for moments my frustration!  :D
You're welcome ;) I have like 90 mods installed so I pretty much know how you were feeling :P

Quote from: Isa.F on August 09, 2014, 05:43:14 AM
Quote from: NinjaZX10RR on August 03, 2014, 11:59:37 PM
If she wants to change the color of the bar she doesn't have to change the css, she has to edit the cbar.png icon that is in {forum folder}/sachat/themes/default/images ;) it is a 1*32 pixels image repeated until the end of the screen. :)
Thank's ;)
You're welcome again :D

As regards the login system... Have you tried renaming the cookies? Maybe? I'm not a real expert about cookies, I have more ideas but I'd rather shut up than providing possibly wrong answers.
Title: Re: SA Chat
Post by: nend on August 09, 2014, 11:11:24 AM
Quote from: Isa.F on August 09, 2014, 05:43:14 AM
Quote from: nend on August 08, 2014, 05:03:46 PM
The chat uses SMF's cookie based login system and user database. There is no synchronization between the two because they use the same system.

SMF has another system though which the chat doesn't take advantage of. It is the session based system used for browsers that do not support cookies. This system is being used mainly on your site which is awkward. Reasoning though something is breaking the cookie system, either it be a server setting or mod.

Your sites login system is halfway broken. This is not a bug in the chat system.

Hi nend! Thak's for your quick and clear reply! ;)


But tell me something: what can I do to know what is failing in the login system?

Thank's! :)



EDIT: I already changed de chat bar color! :) I did as Ninja said ;)

Quote from: NinjaZX10RR on August 03, 2014, 11:59:37 PM
If she wants to change the color of the bar she doesn't have to change the css, she has to edit the cbar.png icon that is in {forum folder}/sachat/themes/default/images ;) it is a 1*32 pixels image repeated until the end of the screen. :)

Thank's ;)

A list of mods used on the site may help track it down to a mod if the problem is mod related.

You may also want to contact your host and see if they have been having any server issues.

If you have any errors in your SMF or server error log about headers, please post them as they can be related to this issue.
Title: Re: SA Chat
Post by: SA™ on August 09, 2014, 04:12:51 PM
QuoteIf you have any errors in your SMF or server error log about headers, please post them as they can be related to this issue.

this mod does not log into smf error logs never has so i built my own error logging system sachat admin/ error logs.
though it does not seem to log all errors the other error will be found in server error logs as you said
Title: Re: SA Chat
Post by: SA™ on August 09, 2014, 04:19:10 PM
Quote from: ExSpirit on August 09, 2014, 05:30:07 AM
SA™, when do you think this mod will be stable and ready for "final release" which will be published on SMF Mod Site?

im working hard to fix all these issue i only have sundays realy to code these days working 2 jobs right now
i will not give a date for next realse here just yet i have some holiday coming up in a few weeks hopfully i can work on this more then
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 09, 2014, 04:28:17 PM
Quote from: SA™ on August 09, 2014, 04:19:10 PM
Quote from: ExSpirit on August 09, 2014, 05:30:07 AM
SA™, when do you think this mod will be stable and ready for "final release" which will be published on SMF Mod Site?

im working hard to fix all these issue i only have sundays realy to code these days working 2 jobs right now
i will not give a date for next realse here just yet i have some holiday coming up in a few weeks hopfully i can work on this more then
Don't rush, we will wait, in the meantime it's already awesome and functional :D It's better to take your time rather than getting a white screen while testing ;)
Title: Re: SA Chat
Post by: ExSpirit on August 11, 2014, 04:15:08 AM
Quote from: SA™ on August 09, 2014, 04:19:10 PM
im working hard to fix all these issue i only have sundays realy to code these days working 2 jobs right now
i will not give a date for next realse here just yet i have some holiday coming up in a few weeks hopfully i can work on this more then
Oh OK, I hope you'll be able to complete it soon.

Quote from: NinjaZX10RR on August 09, 2014, 04:28:17 PM
Don't rush, we will wait, in the meantime it's already awesome and functional :D It's better to take your time rather than getting a white screen while testing ;)
True, but it's good to have something stable and finished and then slowly do improvements. Having bad mod published is not OK, it's better if it's marked as beta then, so that people don't use it on live sites.
Title: Re: SA Chat
Post by: Isa.F on August 11, 2014, 05:26:48 AM
Quote from: nend on August 09, 2014, 11:11:24 AM
A list of mods used on the site may help track it down to a mod if the problem is mod related.

I will PM you the list of mods...  :)

Quote from: nend on August 09, 2014, 11:11:24 AM
You may also want to contact your host and see if they have been having any server issues.

My host said that there were no erros...

Quote from: nend on August 09, 2014, 11:11:24 AM
If you have any errors in your SMF or server error log about headers, please post them as they can be related to this issue.

Do you mean this?:

[Fri Aug 08 01:19:41.336008 2014] [:error] [pid 16187] [client XXXXXXXXXXXX] SoftException in Application.cpp:256: File "/home/pedacinh/public_html/sachat/index.php" is writeable by group, referer: http://pedacinhos-de-nos.net/index.php?action=admin;area=sachat;sa=maintain;c4c47d7a=b14201068c12e90f4ead292c35a6f470
[Fri Aug 08 01:19:41.335879 2014] [:error] [pid 17184] [client XXXXXXXXXXXX] SoftException in Application.cpp:256: File "/home/pedacinh/public_html/sachat/index.php" is writeable by group, referer: http://pedacinhos-de-nos.net/index.php?action=admin;area=sachat;sa=maintain;c4c47d7a=b14201068c12e90f4ead292c35a6f470
[Fri Aug 08 01:19:37.400182 2014] [:error] [pid 16187] [client XXXXXXXXXXXX] SoftException in Application.cpp:256: File "/home/pedacinh/public_html/sachat/index.php" is writeable by group, referer: http://pedacinhos-de-nos.net/index.php?action=admin;area=sachat;c4c47d7a=b14201068c12e90f4ead292c35a6f470
[Fri Aug 08 01:19:37.399813 2014] [:error] [pid 17184] [client XXXXXXXXXXXX] SoftException in Application.cpp:256: File "/home/pedacinh/public_html/sachat/index.php" is writeable by group, referer: http://pedacinhos-de-nos.net/index.php?action=admin;area=sachat;c4c47d7a=b14201068c12e90f4ead292c35a6f470


All the server errors are related to SA Chat...
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 11, 2014, 08:33:53 AM
Quote from: ExSpirit on August 11, 2014, 04:15:08 AM
Quote from: NinjaZX10RR on August 09, 2014, 04:28:17 PM
Don't rush, we will wait, in the meantime it's already awesome and functional :D It's better to take your time rather than getting a white screen while testing ;)
True, but it's good to have something stable and finished and then slowly do improvements. Having bad mod published is not OK, it's better if it's marked as beta then, so that people don't use it on live sites.
This is not really clear.
If you meant that this mod is "bad" like you said, I will kindly ask you to show some respect to the mod author as this is one of the hardest mod to be created on the mod site. If that was a general sentence just ignore my previous one.

By the way you can easily see the progresses that this mod has made since people started reporting bugs (as everybody should do instead of silently complaining *not referred to you*), especially in the last pages of this thread you can see how many updates have been pushed by myself, including the Italian translation of the mod. Report stuff and wait, SA™ will work on them and I trust him 100% on that as he proved many times he does care about it. :)




Quote from: Isa.F on August 11, 2014, 05:26:48 AM
Quote from: nend on August 09, 2014, 11:11:24 AM
A list of mods used on the site may help track it down to a mod if the problem is mod related.
I will PM you the list of mods...  :)
Next time just post it ;) use PMs only if you want to tell something to someone in particular, if you PM your mods list only the one who received it will be able to help you. Check this out as well: http://www.simplemachines.org/community/index.php?topic=482951.0 (despite in my case I said to feel free so.. ;) )

Quote from: Isa.F on August 11, 2014, 05:26:48 AM
My host said that there were no erros...

Quote from: nend on August 09, 2014, 11:11:24 AM
If you have any errors in your SMF or server error log about headers, please post them as they can be related to this issue.

Do you mean this?:
I think so... Hmmm... Have you tried changing your folder permissions? Try to set it to 777 for a while and see if the problem goes away (it's just for testing purposes) :)
Title: Re: SA Chat
Post by: ExSpirit on August 11, 2014, 10:16:23 AM
Quote from: Ninja ZX-10RR on August 11, 2014, 08:33:53 AM
This is not really clear.
If you meant that this mod is "bad" like you said, I will kindly ask you to show some respect to the mod author as this is one of the hardest mod to be created on the mod site. If that was a general sentence just ignore my previous one.

By the way you can easily see the progresses that this mod has made since people started reporting bugs (as everybody should do instead of silently complaining *not referred to you*), especially in the last pages of this thread you can see how many updates have been pushed by myself, including the Italian translation of the mod. Report stuff and wait, SA™ will work on them and I trust him 100% on that as he proved many times he does care about it. :)
I meant "bad" because it is not finished and can cause more damage as use on someones live site. It takes to many server resources (404 calls), and some chat are not delivered,... With only those two bugs the mod doesn't do what it should do. I have wrote about those bugs here.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 11, 2014, 11:01:54 AM
No it doesn't. Otherwise the mod wouldn't have been approved at all. But of course you know better than the team itself... *shrugs*
I have installed it and it's running on my forum with no issues except the aforementioned bugs, that are not "bad" bugs anyway. Ah, the chats are delivered, it's probably your heartbeat setting set too high.
Title: Re: SA Chat
Post by: ExSpirit on August 11, 2014, 11:27:16 AM
Ninja ZX-10RR, I am not saying this to make this mod look bad or show disrespect to authors or anything like that. I am saying that so that this mod can be improved. Don't think that if you think it runs OK that it really is OK - and even before you test the reported bug... Maybe something has already been fixed in new version, but that version is not yet on official mod site (I don't know why), so I can't comment on those versions. But the one on SMF mod site has problems with 404 calls at every heartbeat and that crashed my VPS (well make it very slow over some period of time and I got a warning from server administrators), and second problem which I mentioned is not delivering all messages - you can try it yourself write something and sent on chat and then write something again really fast (less than heartbeat) and the other user won't get previous message... Only last one. I can make heartbeat 1 second or maybe less and this would be partly solved but then server would be overloaded with heartbeats...
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 11, 2014, 11:40:10 AM
As you are not listening I will not be commenting any further about the issues with you.
Anyway the message gets delivered after the next heartbeat. If you are experiencing troubles that means that you either have an overselling host or a conflict with another mod.
Title: Re: SA Chat
Post by: Kindred on August 11, 2014, 12:54:07 PM
ExSpirit,
Just to reiterate...

The mod installs just fine
the mod works just fine.
there are no 404 errors on my installation
this mod has not broken anything on the sites that I have it installed on.

**ANY** chat is going to use more server resources than a standard forum, because of the nature of "chat"

If any of the above is different for you, then there is some issue with your particular forum/site - probably due to a conflict with another mod as already noted.
Title: Re: SA Chat
Post by: nend on August 11, 2014, 01:15:13 PM
@ExSpirit
The 404s are more than likely caused by a server overload or incorrect server settings.

These are the list of mods sent via PM.


1. SA Chat 0.1.2 Rev102 
2. More Spiders 1.2 
3. SMFPacks Shoutbox 1.0.5   
4. Project Snow 1.2 1.2   
5. View Only Boards 1.2c   
6. Tabbed smileys 0.3.99b   
7. Hide Images from Guests 2.0 
8. WYSIWYG Quick Reply 2.3   
9. Google Analytics Code 1.4 
10. Users Online Today 2.1   
11. Welcome Topic Mod 2.2   
12. MetaTags Modification 2.0.2   
13. Aeva Media 1.4w
14. IP-Address Tracer 1.0   
15. Default Avatar 2.3 
16. Aeva ~ Auto-Embed Video & Audio 7.2 
17. Curve mobile mod 1.1.1 
18. reCAPTCHA for SMF 0.9.9   
19. Ad Managment 3.2   
20. Active Members In Topic 1.8 
21. Related Topics 1.401   
22. Email Inactive Users 1.1   
23. Member Color Link 3.1   
24. PM to New Members


@others

I still don't believe it is related to the chat mod. Possible manual edit or mod edit that caused this problem.

I am thinking, theory though...
1. Malformed headers being rejected by browser
2. Something is outputting before SMF is able to take control of the OB, possible host or code changes to SMF by mod or manual edit.
Title: Re: SA Chat
Post by: ExSpirit on August 11, 2014, 02:42:50 PM
I don't know why are you now so offensive about this, because those two problems ware confirmed by SA™ and he wrote that some day he will fix them? If you have "empty forum" and think things work just because you don't see them...Well you might be very wrong guys...

Quote from: SA™ on July 19, 2014, 05:36:50 AM
Quote from: ExSpirit on July 19, 2014, 04:32:53 AM
It's the same with this version. I have checked the cookies which are added and I think the problem is with "Path" parameter, because it's set to various pages (like /search/, /, /profile/,...) - there should always be "the same path"?

I think I fixed this problem by adding options.path = '/'; in head.js.php (before "return (document.cookie..."). Chats are now opened and closed like they should be on all pages. :)

nice find thanks

Quote from: ExSpirit on July 19, 2014, 05:03:19 AM
OK, 1 problem down and I find another big problem.

If I write to someone multiple messages really fast, he only gets the last one. And if he refreshes the page he sees all of them, but people won't refresh pages after every message they'll get.

Can someone try if it's the same on his forum. Do it like this:

Open chat and do this really fast - type 1, press enter, type 2, press enter, type 3, press enter, type 4, press enter, type 5, press enter,... And check what other person got - in my case only last thing I typed, so in this case 5. And if he refreshes page he gets all messages... Even refresh button on chat bar doesn't help...

this is a known bug will try to fix this

Quote from: SA™ on August 02, 2014, 02:45:22 PM
Quote from: ExSpirit on August 02, 2014, 12:54:41 AM
Today I received notice from my system administrator that server is very loaded because of this mod. Only I am using new forum in development and this script made around 300.000 calls to 404 page. Here is the part of log file:

Quote...
XX.XX.XX.XX - - [01/Aug/2014:10:18:11 +0200] "GET /sachat/index.php?action=heart&_=1406879113686 HTTP/1.1" 404 905 "http://myforumdomain/moderate/?area=index" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
XX.XX.XX.XX - - [01/Aug/2014:10:18:16 +0200] "GET /sachat/index.php?action=heart&_=1406873565205 HTTP/1.1" 404 905 "http://myforumdomain/groups/?sa=requests" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
XX.XX.XX.XX - - [01/Aug/2014:10:18:24 +0200] "GET /sachat/index.php?action=heart&_=1406873529324 HTTP/1.1" 404 905 "http://myforumdomain/profile/?area=account;u=2;save" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
XX.XX.XX.XX - - [01/Aug/2014:10:18:27 +0200] "GET /sachat/index.php?action=heart&_=1406879113687 HTTP/1.1" 404 905 "http://myforumdomain/moderate/?area=index" "Mozilla/5.0 (Windows NT 6.1; WOW64; rv:31.0) Gecko/20100101 Firefox/31.0"
XX.XX.XX.XX - - [01/Aug/2014:10:18:28 +0200] "GET /sachat/index.php?action=heart&_=1406873296009 HTTP/1.1" 404 905 "http://myforumdomain/calendar" "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/36.0.1985.125 Safari/537.36"
...

The problem is, that those pages exists and work, but I don't know why those calls are getting 404 and load the server - with just me, what will happen when 100,1000 people at once will stay on forum, it will crash in a second.

this maybe be fixed on github
Title: Re: SA Chat
Post by: Kindred on August 11, 2014, 10:36:52 PM
How am I being offensive?

yes, there are minor things that need to be tweaked. However, your statement that this mod breaks the forum is excessive and untrue.
Title: Re: SA Chat
Post by: ExSpirit on August 12, 2014, 10:24:03 AM
When I tested this on my own (so only 1 user) I received in a few weeks 275.410 404 error calls from this mod (like I already wrote here). Imagine what would it be with 100, 1000,... members using it. And you think this is healthy for a server?
Title: Re: SA Chat
Post by: Arantor on August 12, 2014, 10:29:51 AM
Of course it's not healthy for a server. However other people are not getting the same symptoms with the mod, suggesting that it is some confluence of the mod and your specific configuration.
Title: Re: SA Chat
Post by: nend on August 12, 2014, 10:34:12 AM
Quote from: nend on August 11, 2014, 01:15:13 PM
@ExSpirit
The 404s are more than likely caused by a server overload or incorrect server settings.

Server... Host, vps, environment, resources, misconfiguration... Server.

You already figured the problem out, you said the mod overloaded the VPS. Simple page exist, overloaded server equals 404s. Simple the environment isn't suitable, chat is causing a DOS.

I believe it is in the disclaimer.

Think of it like NOS on a 4 banger. Not really made for speed but we are pushing it to do something that is more better suited for a different setup. Truth having a separate chat server is the most reliable. This is basically a poor mans way of delivering a chat interface. It may overload most server, but allot cheaper if it works than paying the extra cash for a dedicated chat server.
Title: Re: SA Chat
Post by: Forum.KaylieLove on August 18, 2014, 03:53:39 PM
I installed the Chat and it works great.  But it seems a tad hidden at the bottom.  (My thoughts and told by users)  I am using Simple Portal and wanted to create a block and put the chat inside it.  Is this possible?  Is it possible to move the location of the chat bar?  I am a bit new to this, so abe nice... He he, any help and suggestions would be awesome.  Thanks!

Lots of Love,
  ~Kaylie Love
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 19, 2014, 04:07:46 PM
Quote from: Forum.KaylieLove on August 18, 2014, 03:53:39 PM
I installed the Chat and it works great.  But it seems a tad hidden at the bottom.  (My thoughts and told by users)  I am using Simple Portal and wanted to create a block and put the chat inside it.  Is this possible?  Is it possible to move the location of the chat bar?  I am a bit new to this, so abe nice... He he, any help and suggestions would be awesome.  Thanks!

Lots of Love,
  ~Kaylie Love
Hi and welcome to SMF!
What you are asking is extremely hard I think and it might need a major overhaul of the mod's code, maybe the mod author would apply for it but it's really hard to move the stuff to make them work with SimplePortal and some custom themes (if you have any).
Title: Re: SA Chat
Post by: Forum.KaylieLove on August 25, 2014, 06:55:11 PM
Quote from: Ninja ZX-10RR on August 19, 2014, 04:07:46 PM
Quote from: Forum.KaylieLove on August 18, 2014, 03:53:39 PM
I installed the Chat and it works great.  But it seems a tad hidden at the bottom.  (My thoughts and told by users)  I am using Simple Portal and wanted to create a block and put the chat inside it.  Is this possible?  Is it possible to move the location of the chat bar?  I am a bit new to this, so abe nice... He he, any help and suggestions would be awesome.  Thanks!

Lots of Love,
  ~Kaylie Love
Hi and welcome to SMF!
What you are asking is extremely hard I think and it might need a major overhaul of the mod's code, maybe the mod author would apply for it but it's really hard to move the stuff to make them work with SimplePortal and some custom themes (if you have any).

Thanks for the info.  I will live with it at the bottom of the forum.




I have read through these topics and can't figure out the coding to fix 2 issues with SA Chat:

     1.  Chat keeps appearing on multiple pages, even when user is offline and we haven't chatted for days.  And conversation that starts when I am browsing one page doesn't carry over to the chat box with the same user when I am on another page. 

     2.  How can I change the order of the messages?  (i.e.  newest message appears first.  Instead of having to scroll down each time)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 25, 2014, 07:37:30 PM
Quote from: Forum.KaylieLove on August 25, 2014, 06:55:11 PM
Quote from: Ninja ZX-10RR on August 19, 2014, 04:07:46 PM
Quote from: Forum.KaylieLove on August 18, 2014, 03:53:39 PM
I installed the Chat and it works great.  But it seems a tad hidden at the bottom.  (My thoughts and told by users)  I am using Simple Portal and wanted to create a block and put the chat inside it.  Is this possible?  Is it possible to move the location of the chat bar?  I am a bit new to this, so abe nice... He he, any help and suggestions would be awesome.  Thanks!

Lots of Love,
  ~Kaylie Love
Hi and welcome to SMF!
What you are asking is extremely hard I think and it might need a major overhaul of the mod's code, maybe the mod author would apply for it but it's really hard to move the stuff to make them work with SimplePortal and some custom themes (if you have any).

Thanks for the info.  I will live with it at the bottom of the forum.
You're welcome :)

Quote from: Forum.KaylieLove on August 25, 2014, 06:55:11 PM
I have read through these topics and can't figure out the coding to fix 2 issues with SA Chat:

     1.  Chat keeps appearing on multiple pages, even when user is offline and we haven't chatted for days.  And conversation that starts when I am browsing one page doesn't carry over to the chat box with the same user when I am on another page. 
This makes me think that you didn't actually read everything since this has been reported multiple times by many users (including my own self)

Quote from: Forum.KaylieLove on August 25, 2014, 06:55:11 PM
     2.  How can I change the order of the messages?  (i.e.  newest message appears first.  Instead of having to scroll down each time)
Hm, don't know if it's possible. I'll leave you on SA™ on this one ;)
Title: Re: SA Chat
Post by: Forum.KaylieLove on August 25, 2014, 08:17:56 PM
Ninja ZX-10RR... I apologize if I have missed that section.  I read through the pages again and I think I found something you are referring to.   Are you referring to this:

Quote from: ExSpirit on July 19, 2014, 04:32:53 AM
It's the same with this version. I have checked the cookies which are added and I think the problem is with "Path" parameter, because it's set to various pages (like /search/, /, /profile/,...) - there should always be "the same path"?

I think I fixed this problem by adding options.path = '/'; in head.js.php (before "return (document.cookie..."). Chats are now opened and closed like they should be on all pages. :)

If so, where can I find the head.js.php file?  (he he, I truly am trying)

Lots of Love,
  ~Kaylie Love
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 25, 2014, 09:17:45 PM
Quote from: Forum.KaylieLove on August 25, 2014, 08:17:56 PM
Ninja ZX-10RR... I apologize if I have missed that section.  I read through the pages again and I think I found something you are referring to.   Are you referring to this:

Quote from: ExSpirit on July 19, 2014, 04:32:53 AM
It's the same with this version. I have checked the cookies which are added and I think the problem is with "Path" parameter, because it's set to various pages (like /search/, /, /profile/,...) - there should always be "the same path"?

I think I fixed this problem by adding options.path = '/'; in head.js.php (before "return (document.cookie..."). Chats are now opened and closed like they should be on all pages. :)

If so, where can I find the head.js.php file?  (he he, I truly am trying)

Lots of Love,
  ~Kaylie Love
Sorry for the late reply my router decided to black out for an hour making me swear quite a lot...
You can follow that procedure by editing that file {your forum root folder}/sachat/themes/{theme you are using, hopefully default}/js/head.js or either download and replace your file with this one that is the same file edited that way already :)
*attached*
Title: Re: SA Chat
Post by: SA™ on August 31, 2014, 07:31:16 PM
new version 0.1.3 realsed
fixes something for the fast typers now all messages should be shown instead of just last one
https://github.com/SAMods/SAChatBar/blob/master/Changlog.txt
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 31, 2014, 08:01:57 PM
I have been the 2nd to download it lol and... Thanks for the update... Wow *-* works like a charm and even better than before! Good job mate!
Title: Re: SA Chat
Post by: ExSpirit on September 01, 2014, 03:46:00 AM
Quote from: SA™ on August 31, 2014, 07:31:16 PM
fixes something for the fast typers now all messages should be shown instead of just last one
This still doesn't work. If I type fast 1, 2, 3, 4, 5. The other person only gets 1, 2, 3, 5. So some text is still missing. Now I tried sending 1, 2, 3, 4, 5, 6, 7, 8, 9 and the other person only got 1, 2, 3, 5, 6, 8, 9. So two messages are missing.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 01, 2014, 07:41:19 AM
I tried exactly the same thing and it worked here.
Title: Re: SA Chat
Post by: SA™ on September 01, 2014, 01:36:56 PM
Quote from: ExSpirit on September 01, 2014, 03:46:00 AM
Quote from: SA™ on August 31, 2014, 07:31:16 PM
fixes something for the fast typers now all messages should be shown instead of just last one
This still doesn't work. If I type fast 1, 2, 3, 4, 5. The other person only gets 1, 2, 3, 5. So some text is still missing. Now I tried sending 1, 2, 3, 4, 5, 6, 7, 8, 9 and the other person only got 1, 2, 3, 5, 6, 8, 9. So two messages are missing.

dam i suk :P
funny thing i had this update ready for about a week cos i was testing it and never even notice this till after i realse it
Title: Re: SA Chat
Post by: konstantinos2424 on September 01, 2014, 02:05:33 PM
Hello, I installed the newest version and now I cannot receive any message from anyone...This happens with every profile. Thanks!
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 01, 2014, 09:31:17 PM
Quote from: konstantinos2424 on September 01, 2014, 02:05:33 PM
Hello, I installed the newest version and now I cannot receive any message from anyone...This happens with every profile. Thanks!
You should provide more details in order to get assistance... SMF version for example (upgrade to 2.0.8 if you are running an older one). Errors in the error log? Was the install completely successful? Did you uninstall the older version before installing the newer one... Right? :)
Looking at the license file I can attach it without having troubles so in the meantime you can install the older one that I attach for you.
Title: Re: SA Chat
Post by: Kimmie on September 01, 2014, 11:40:24 PM
I installed this but I don't see anything. How do we use it? Where is it at? There are no images on the mod page so I don't even know where this is at on the site.


Thanks
Title: Re: SA Chat
Post by: SA™ on September 01, 2014, 11:50:26 PM
there is images here
http://custom.simplemachines.org/mods/index.php?mod=2534

also if i dont show after install goto sachat admin maintenence and run the fix bar option
Title: Re: SA Chat
Post by: Kimmie on September 01, 2014, 11:52:35 PM
Thanks, but I meant mods on how to use it. That 1st image is way to small to see, but I assume it is the chat bar. How do I get that chat bar to even show up?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 02, 2014, 12:31:56 AM
There is a whole dedicated menu in the admin section... That's... Strange that you didn't see it...  Admin --> SA Chat and then you have a boatload of settings there :)
Title: Re: SA Chat
Post by: ExSpirit on September 02, 2014, 02:08:49 AM
Quote from: SA™ on September 01, 2014, 01:36:56 PM
Quote from: ExSpirit on September 01, 2014, 03:46:00 AM
Quote from: SA™ on August 31, 2014, 07:31:16 PM
fixes something for the fast typers now all messages should be shown instead of just last one
This still doesn't work. If I type fast 1, 2, 3, 4, 5. The other person only gets 1, 2, 3, 5. So some text is still missing. Now I tried sending 1, 2, 3, 4, 5, 6, 7, 8, 9 and the other person only got 1, 2, 3, 5, 6, 8, 9. So two messages are missing.

dam i suk :P
funny thing i had this update ready for about a week cos i was testing it and never even notice this till after i realse it
Oh, so you already have the fix for this but forgot to add it to latest version? Can you write what part of code to change or maybe attach the file which is responsible for this problem here? If you will update the file on mod page, please just write which file(s) are changed, so that I can just replace those files not all of them. Thx.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 02, 2014, 06:33:45 AM
It takes like 30 seconds to reinstall it... Is it because of some custom edits?
Title: Re: SA Chat
Post by: ExSpirit on September 02, 2014, 12:03:02 PM
Yep, if I make full reinstall I always have to make the same changes again (in some files - which are maybe not even changed).
Title: Re: SA Chat
Post by: SA™ on September 02, 2014, 01:27:45 PM
Quote from: ExSpirit on September 02, 2014, 02:08:49 AM
Quote from: SA™ on September 01, 2014, 01:36:56 PM
Quote from: ExSpirit on September 01, 2014, 03:46:00 AM
Quote from: SA™ on August 31, 2014, 07:31:16 PM
fixes something for the fast typers now all messages should be shown instead of just last one
This still doesn't work. If I type fast 1, 2, 3, 4, 5. The other person only gets 1, 2, 3, 5. So some text is still missing. Now I tried sending 1, 2, 3, 4, 5, 6, 7, 8, 9 and the other person only got 1, 2, 3, 5, 6, 8, 9. So two messages are missing.

dam i suk :P
funny thing i had this update ready for about a week cos i was testing it and never even notice this till after i realse it
Oh, so you already have the fix for this but forgot to add it to latest version? Can you write what part of code to change or maybe attach the file which is responsible for this problem here? If you will update the file on mod page, please just write which file(s) are changed, so that I can just replace those files not all of them. Thx.

err kinda have a fix now it shows all messages but in wrong order i dont know why yet it is llike jquery puts the messages in random order for some reason still looking into this one
Title: Re: SA Chat
Post by: SA™ on September 02, 2014, 11:51:46 PM
OK here's the fix it rather simple really ditch the updatemsg() function.
chatTo() function can Handel both it seems

sachat/themes/default/js/body.js

replace updatemsg(u,id); with chatTo(this);
Title: Re: SA Chat
Post by: ExSpirit on September 03, 2014, 08:20:22 AM
Great, as much as I tested it works great now. Thank you.  ;D
Title: Re: SA Chat
Post by: nend on September 03, 2014, 11:28:06 AM
Quote from: SA™ on September 02, 2014, 11:51:46 PM
OK here's the fix it rather simple really ditch the updatemsg() function.
chatTo() function can Handel both it seems

sachat/themes/default/js/body.js

replace updatemsg(u,id); with chatTo(this);

Quite allot of work and code changes. I seen a problem with this, but after looking at the code the chatto function isn't what it used to be.

Great work. I would of examined more, on mobile, a real pain trying to connect with 3G.
Title: Re: SA Chat
Post by: Kimmie on September 03, 2014, 01:08:54 PM
Quote from: ♦ Ninja ZX-10RR ♦ on September 02, 2014, 12:31:56 AM
There is a whole dedicated menu in the admin section... That's... Strange that you didn't see it...  Admin --> SA Chat and then you have a boatload of settings there :)


None that help me. The options are to do things like "disable bar". How do I disable something I cant see in the first place?
Title: Re: SA Chat
Post by: SA™ on September 03, 2014, 01:12:08 PM
Quotealso if it dont show after install goto sachat admin maintenence and run the fix bar option
Title: Re: SA Chat
Post by: SA™ on September 03, 2014, 02:28:18 PM
Mod updated SA Chat 0.1.4

Simplefied themes a little more all you need is images and css and you have a basic theme other stuff like template, sounds and languages are optional attached is an example basic theme
fixed Fast chat glitch part 2
removed all instances and calls to updatemsg
removed seprate heart beat for each chat window this never realy worked too well and was broken even more after the last update
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 03, 2014, 02:49:45 PM
Oh, cool. What about the attachment though? How to get it to work? Simply substitute each file?
Title: Re: SA Chat
Post by: SA™ on September 03, 2014, 03:16:53 PM
the atached theme is an example of what you need for a basic theme to install that theme you can do in sachat admin/theme although it is just the same as the default theme it just there as an example
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 03, 2014, 03:46:30 PM
Oh cool then, thanks again then :D sorry thinking about it twice it was actually a stupid question... Of course I have to use it from admin/theme... >_< I wonder what was going on in my brain when I asked it xD
Title: Re: SA Chat
Post by: pevanis on September 05, 2014, 06:17:19 PM
Hi.
Some help please :-(
I have some problem i had last time during instaling new version :-(.
SMF 2.0.8
STEPS
1. SAchat 0.1.1 Rev101 was deinstaled
2. upload SAChatBar0.1.4
3. install mode was OK -  install completely successful

There's no SAchat bar on my forum.
- FIX BAR in Firefox 32.0 produce  -  'Not Implemented GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.'

- SAchat - error log:
INFO

   Undefined index: cban

   File: /home/***/public_html/sachat/functions.php
Line: 576

- FIX BAR in IE10 produce -
This error (HTTP 501 Not Implemented or HTTP 505 Version Not Supported) means that the website you are visiting doesn't currently have the ability to display the webpage, or support the HTTP version used to request the page.

For more information about HTTP errors, see Help.

   
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 05, 2014, 06:34:38 PM
Who is your host? I bet you are hosted on GoDaddy... If you are - the forum is full of people complaining about the fact that SMF is having issues with their servers since they are misconfigured and their support lacks of knowledge in most cases. Have a word with your host and ask them to disable mod_security, if they don't just bug them until they do (if you are on GoDaddy you must get at least to their level 3 support or either 4) since that causes a lot of errors and maybe this one too from those errors it might be related to it.
P.s. That mod causes problems since SMF can do what that mod does all itself and this creates a conflict. It's not SMF's fault, usually hosts keep that disabled but at GoDaddy they seem to love it.
Title: Re: SA Chat
Post by: pevanis on September 05, 2014, 06:54:40 PM
Thanks a lot. :) I'll try to contact hosting.
But last time i had some trouble during update and there was something in the css i don't remember. what
I'll be back with more info after contacting the host .
forum is  hosted by Hetzner Online AG
Hostname: zadar.totohost.hr
Nameservers: ns2.totohost.com, ns1.totohost.com
ISP: HETZNER ONLINE AG
Title: Re: SA Chat
Post by: Bob La Londe on September 05, 2014, 07:10:19 PM
I am on a host that allows me to configure mostly as I need to, and I have a fully functioning C-panel. 

I assigned permissions as 755 for all files. 

I clicked on FIX Chat Bar. 

I am runing 2.0.8

Current theme is default - curve

Chat bar does not show up. 

What to check next? 
Title: Re: SA Chat
Post by: pevanis on September 05, 2014, 07:13:27 PM
Quote from: Bob La Londe on September 05, 2014, 07:10:19 PM
I am on a host that allows me to configure mostly as I need to, and I have a fully functioning C-panel. 

I assigned permissions as 755 for all files. 

I clicked on FIX Chat Bar. 

I am runing 2.0.8

Current theme is default - curve

Chat bar does not show up. 

What to check next?
Hi,
Did you enable group permission for SAchat in SMF admin mode ??
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 05, 2014, 07:16:47 PM
@pevanis
Well I don't know that host but from what I could understand from their site (I have no idea of which language is that) they are not overseller and they *look* professional.. So.. I don't even think that mod_Security could be a problem but just to be sure have a word with them ;) about the undefined index I had it but it was in a previous version IIRC...
Trouble with .css... Dude, it's your forum. Don't take it personally but you can't come here and pretend us (me in this case) to know something you can't even remember yourself :( being a good admin you should always backup before upgrading or doing anything, especially if you are not very experienced and you can't understand very well what modification or whatever upgrade you are trying to install.
Stupid guess goes here --> did you setup the permissions properly and enable the chat at all? There are 2 master switches in "Forum » Administration Center » SA Chat » Configuration" that disable the chat completely or partially, you may want to uncheck those boxes ;)
Maybe even trying the default theme could help, even if I won't bet a penny on this last one.
Ah yeah, attach your functions.php so that SA™ can see it. ;)
A question: do you have any other errors with any other mods by chance? Or just errors? (excluding ban-related ones).
EDIT: of course you have the permissions enabled since you said it with another message :)

@Bob La Londe
The same applies to you. Free hosts will cause problems sooner or later, with something. Try to set permissions to 777 just to test if that changes something. And have a word with them about the mod_security.

@to both of you



Title: Re: SA Chat
Post by: pevanis on September 05, 2014, 07:40:58 PM
1. you're right i'm not very experienced and can't understand very well i had some experienced help last time :-(
2.  master switches in "Forum » Administration Center » SA Chat » Configuration" - boxes are unchecked
3. the default theme also not working
4. A question: do you have any other errors with any other mods by chance?  - No there's no any errors
5. permissions to is set to 777
I have access to C- panel.
I have FULL an partial backup.
This is not a Free hosting :-(
I haven't any problem with SA Chat 0.1.1 Rev101 .


Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 05, 2014, 08:38:05 PM
That's a reply... :D
Not good to hear though but let me try - uninstall tapatalk for a while and see if the problem goes away? That mod is (with all due respect for the authors) one of the worst existing mods since it creates so many troubles and *used to have* MANY security flaws too.
If it doesn't it will be up to SA™ to check the changes made between those versions and see if there is some incompatibility with something. Plus, don't delete the previous mod version, in the meantime you can still use it ;)
EDIT: another guess that came to my mind... Did you download the mod from here --> http://custom.simplemachines.org/mods/index.php?mod=2534 or via the package manager? If you used the package manager just delete it and do it from the download link above ;)
Title: Re: SA Chat
Post by: SA™ on September 06, 2014, 12:25:28 AM
Quote'Not Implemented GET to /index.php not supported.
Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.'

this is a mod_security issue
Title: Re: SA Chat
Post by: pevanis on September 06, 2014, 04:57:10 AM
Quote from: ♦ Ninja ZX-10RR ♦ on September 05, 2014, 08:38:05 PM
That's a reply... :D
Not good to hear though but let me try - uninstall tapatalk for a while and see if the problem goes away? That mod is (with all due respect for the authors) one of the worst existing mods since it creates so many troubles and *used to have* MANY security flaws too.
If it doesn't it will be up to SA™ to check the changes made between those versions and see if there is some incompatibility with something. Plus, don't delete the previous mod version, in the meantime you can still use it ;)
EDIT: another guess that came to my mind... Did you download the mod from here --> http://custom.simplemachines.org/mods/index.php?mod=2534 or via the package manager? If you used the package manager just delete it and do it from the download link above ;)

- Downloaded from here --> http://custom.simplemachines.org/mods/index.php?mod=2534
- Tapatalk uninstaled - nothing happened - SAchat doesn't work :-(
- intalled SAchat 0.1.1 Rev101 - also doesn't work :-(
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 06, 2014, 09:22:50 AM
As already suggested more than once have a word with your host about mod_security.
Title: Re: SA Chat
Post by: SA™ on September 06, 2014, 02:49:22 PM
little package for testing whats new semi implemented group chat i said that because there is currently no way to add users to the group chat at moment global chat should still work tho
Title: Re: SA Chat
Post by: pevanis on September 06, 2014, 03:55:55 PM
Quote from: ♦ Ninja ZX-10RR ♦ on September 06, 2014, 09:22:50 AM
As already suggested more than once have a word with your host about mod_security.

After a word with my host  it's workig  :)
Thank you  :)
Working but it's slower than before  :(
After chat pop up window is minimized and up again, messages are messed up - the oldest are on top instead of down. Is there any way to change that?
Title: Re: SA Chat
Post by: SA™ on September 06, 2014, 04:23:50 PM
hmm this sounds like not all new files where installed can you re download the mod and take the sachat directory from it and upload it to the same place as your forums SSI.php overwrite whats there and always take a backup before doing this
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 06, 2014, 06:53:53 PM
Quote from: SA™ on September 06, 2014, 02:49:22 PM
little package for testing whats new semi implemented group chat i said that because there is currently no way to add users to the group chat at moment global chat should still work tho
Can't really test it in a proper way until 15/08 since I'm not at home though. I will, anyway, sorry for the delay but I managed to have another little holiday and I can't spend it in tweaking my forum...
Title: Re: SA Chat
Post by: Kimmie on September 06, 2014, 08:20:23 PM
I uninstalled this mod but it left a bunch of tables in my database. Are there any others besides these I need to delete to get rid of this mod?


Title: Re: SA Chat
Post by: Bob La Londe on September 07, 2014, 12:23:43 PM
Quote from: pevanis on September 05, 2014, 07:13:27 PM
Quote from: Bob La Londe on September 05, 2014, 07:10:19 PM
I am on a host that allows me to configure mostly as I need to, and I have a fully functioning C-panel. 

I assigned permissions as 755 for all files. 

I clicked on FIX Chat Bar. 

I am runing 2.0.8

Current theme is default - curve

Chat bar does not show up. 

What to check next?
Hi,
Did you enable group permission for SAchat in SMF admin mode ??

I have tried it both enabled and disabled.  When enabled I went into member group permissions and checked (A) Allowed regular members to see and use the bar. 

I am not on a free host.  My use of the word free (which was removed) was intended to mean "not stupidly restricted."

Quote
Mod Name   Version   
1.   View Only Boards   1.2c   [ Install Mod ] [ List Files ] [ Delete ]
2.   SA Chat   0.1.4 Rev105     [ Uninstall ] [ List Files ] [ Delete ]
3.   Aeva ~ Auto-Embed Video & Audio   7.2     [ Uninstall ] [ List Files ] [ Delete ]
4.   Last Post On MemberList   1.3     [ Uninstall ] [ List Files ] [ Delete ]
5.   Back To The Index   0.4.1     [ Uninstall ] [ List Files ] [ Delete ]
6.   RSS Feed Poster   3.1a   [ Install Mod ] [ List Files ] [ Delete ]
7.   Last Active On MemberList   1.4     [ Uninstall ] [ List Files ] [ Delete ]
8.   Global Headers Footers   2.0.1     [ Uninstall ] [ List Files ] [ Delete ]
9.   Previous and Next Links for Page Index   2.1.204     [ Uninstall ] [ List Files ] [ Delete ]
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 07, 2014, 03:16:33 PM
Quote from: Kimmie on September 06, 2014, 08:20:23 PM
I uninstalled this mod but it left a bunch of tables in my database. Are there any others besides these I need to delete to get rid of this mod?
There shouldn't be. Just delete them.

Quote from: Bob La Londe on September 07, 2014, 12:23:43 PM
I am not on a free host.  My use of the word free (which was removed) was intended to mean "not stupidly restricted."
Quote
Mod Name   Version   
1.   View Only Boards   1.2c   [ Install Mod ] [ List Files ] [ Delete ]
2.   SA Chat   0.1.4 Rev105     [ Uninstall ] [ List Files ] [ Delete ]
3.   Aeva ~ Auto-Embed Video & Audio   7.2     [ Uninstall ] [ List Files ] [ Delete ]
4.   Last Post On MemberList   1.3     [ Uninstall ] [ List Files ] [ Delete ]
5.   Back To The Index   0.4.1     [ Uninstall ] [ List Files ] [ Delete ]
6.   RSS Feed Poster   3.1a   [ Install Mod ] [ List Files ] [ Delete ]
7.   Last Active On MemberList   1.4     [ Uninstall ] [ List Files ] [ Delete ]
8.   Global Headers Footers   2.0.1     [ Uninstall ] [ List Files ] [ Delete ]
9.   Previous and Next Links for Page Index   2.1.204     [ Uninstall ] [ List Files ] [ Delete ]
Quote from: ♦ Ninja ZX-10RR ♦ on September 05, 2014, 07:16:47 PM
Maybe even trying the default theme could help, even if I won't bet a penny on this last one.
Still, try the default theme.

Also... Errors in the error log?

If all answers are negative then check if EACH one of the edits and the files were dono/uploaded correctly.
Title: Re: SA Chat
Post by: Bob La Londe on September 07, 2014, 05:38:29 PM
I think I'll back off on this and use an external chat for now.  Its not high useage.  I was just hoping for something that would integrate the SMF database.  I'll keep an eye out for a new major release.  I've spent quite a lot of time on it, and it doesn't even show no matter what I do.  Your last comment seemed to indicate it will require some manual edits as well.  I guess I missed that on my first read through. 

Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 07, 2014, 05:50:41 PM
It *shouldn't* seeing the mods you have currently installed... It is supposed to work if it says that the installation was completely succesful... It won't change very much in the future releases methinks, well more things will be added (I kinda know what :P ) but the code written so far won't be changed that much...
I'm with my girlfriend now so I don't have really much time to spend on here (mainly I relax after lumch or dinner or.. ehm.. something else ;) ), if SA™ can help you in the meantime or either wait until after 15/08...
Title: Re: SA Chat
Post by: Kindred on September 07, 2014, 05:51:19 PM
Well, it is installed and working for my sites with no issues what so ever... And no manual edits.

Issues with other mod conflicts or issues with server configuration may be related to problems encountered.
Title: Re: SA Chat
Post by: SA™ on September 07, 2014, 06:21:00 PM
Quote from: Bob La Londe on September 07, 2014, 05:38:29 PM
I think I'll back off on this and use an external chat for now.  Its not high useage.  I was just hoping for something that would integrate the SMF database.  I'll keep an eye out for a new major release.  I've spent quite a lot of time on it, and it doesn't even show no matter what I do.  Your last comment seemed to indicate it will require some manual edits as well.  I guess I missed that on my first read through. 



did you chack your server error logs? there should be a clue there
Title: Re: SA Chat
Post by: Bob La Londe on September 07, 2014, 06:30:45 PM
Just grabbed a quick sample showing SA CHAT.  Its uninstalled now, but if you see what the problem is I can give it one more try. 

Quote
[Sun Sep 07 12:54:33.083531 2014] [:error] [pid 13094] [client 24.30.176.116:55050] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/index.php" is writeable by group, referer: http://www.yumabassman.com/index.shtml
[Sun Sep 07 12:54:28.266781 2014] [:error] [pid 11853] [client 24.30.176.116:55042] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/index.php" is writeable by group
[Sun Sep 07 12:48:35.107392 2014] [:error] [pid 23745] [client 24.30.176.116:54920] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php
[Sun Sep 07 12:48:35.082796 2014] [:error] [pid 1223] [client 24.30.176.116:54921] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php
[Sun Sep 07 12:46:49.795909 2014] [:error] [pid 31562] [client 82.145.223.18:44989] SoftException in Application.cpp:603: Directory "/home/diycompo/public_html/yumabassman.com/forums-new/sachat" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?topic=5966.0
[Sun Sep 07 12:46:48.387460 2014] [:error] [pid 13426] [client 82.145.223.18:44371] SoftException in Application.cpp:603: Directory "/home/diycompo/public_html/yumabassman.com/forums-new/sachat" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?topic=5966.0
[Sun Sep 07 12:44:25.057849 2014] [:error] [pid 26015] [client 24.30.176.116:54855] SoftException in Application.cpp:603: Directory "/home/diycompo/public_html/yumabassman.com/forums-new/sachat" is writeable by group, referer: http://yumabassman.com/forums-new/index.php
[Sun Sep 07 12:44:25.046720 2014] [:error] [pid 18345] [client 24.30.176.116:54854] SoftException in Application.cpp:603: Directory "/home/diycompo/public_html/yumabassman.com/forums-new/sachat" is writeable by group, referer: http://yumabassman.com/forums-new/index.php
[Sun Sep 07 12:38:15.296985 2014] [:error] [pid 15001] [client 24.30.176.116:54657] SoftException in Application.cpp:603: Directory "/home/diycompo/public_html/yumabassman.com/forums-new/sachat" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=sachat;sa=maintain;done
[Sun Sep 07 12:38:15.280496 2014] [:error] [pid 14141] [client 24.30.176.116:54656] SoftException in Application.cpp:603: Directory "/home/diycompo/public_html/yumabassman.com/forums-new/sachat" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=sachat;sa=maintain;done
[Sun Sep 07 12:38:10.454833 2014] [:error] [pid 13456] [client 24.30.176.116:54652] SoftException in Application.cpp:603: Directory "/home/diycompo/public_html/yumabassman.com/forums-new/sachat" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=sachat;sa=maintain;befe000fc=246de4f681831153fa29c5e2e05a39ab
[Sun Sep 07 12:38:10.440745 2014] [:error] [pid 12428] [client 24.30.176.116:54651] SoftException in Application.cpp:603: Directory "/home/diycompo/public_html/yumabassman.com/forums-new/sachat" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=sachat;sa=maintain;befe000fc=246de4f681831153fa29c5e2e05a39ab
[Sun Sep 07 12:37:35.312483 2014] [:error] [pid 3072] [client 24.30.176.116:54645] SoftException in Application.cpp:603: Directory "/home/diycompo/public_html/yumabassman.com/forums-new/sachat" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=sachat;sa=config;befe000fc=246de4f681831153fa29c5e2e05a39ab
[Sun Sep 07 12:37:35.311964 2014] [:error] [pid 8226] [client 24.30.176.116:54644] SoftException in Application.cpp:603: Directory "/home/diycompo/public_html/yumabassman.com/forums-new/sachat" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=sachat;sa=config;befe000fc=246de4f681831153fa29c5e2e05a39ab
[Sun Sep 07 12:37:27.388603 2014] [:error] [pid 4086] [client 24.30.176.116:54621] SoftException in Application.cpp:603: Directory "/home/diycompo/public_html/yumabassman.com/forums-new/sachat" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=featuresettings
[Sun Sep 07 12:37:27.092381 2014] [:error] [pid 3070] [client 24.30.176.116:54625] SoftException in Application.cpp:603: Directory "/home/diycompo/public_html/yumabassman.com/forums-new/sachat" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=featuresettings
[Sun Sep 07 12:37:19.435438 2014] [:error] [pid 3070] [client 24.30.176.116:54624] SoftException in Application.cpp:603: Directory "/home/diycompo/public_html/yumabassman.com/forums-new/sachat" is writeable by group, referer: http://yumabassman.com/forums-new/index.php
[Sun Sep 07 12:37:19.430977 2014] [:error] [pid 12295] [client 24.30.176.116:54623] SoftException in Application.cpp:603: Directory "/home/diycompo/public_html/yumabassman.com/forums-new/sachat" is writeable by group, referer: http://yumabassman.com/forums-new/index.php
[Sun Sep 07 12:34:38.717425 2014] [:error] [pid 6093] [client 24.30.176.116:54561] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=maintain;sa=routine;activity=logs
[Sun Sep 07 12:34:38.630888 2014] [:error] [pid 31653] [client 24.30.176.116:54560] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=maintain;sa=routine;activity=logs
[Sun Sep 07 12:34:25.053959 2014] [:error] [pid 1639] [client 24.30.176.116:54558] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=maintain;sa=routine;activity=cleancache
[Sun Sep 07 12:34:25.040916 2014] [:error] [pid 8191] [client 24.30.176.116:54557] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=maintain;sa=routine;activity=cleancache
[Sun Sep 07 12:34:17.649704 2014] [:error] [pid 6095] [client 24.30.176.116:54552] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=maintain;sa=routine;activity=cleancache
[Sun Sep 07 12:34:17.572994 2014] [:error] [pid 6974] [client 24.30.176.116:54551] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=maintain;sa=routine;activity=cleancache
[Sun Sep 07 12:34:05.026291 2014] [:error] [pid 6037] [client 24.30.176.116:54546] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=maintain;befe000fc=246de4f681831153fa29c5e2e05a39ab
[Sun Sep 07 12:34:04.943513 2014] [:error] [pid 4087] [client 24.30.176.116:54544] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=maintain;befe000fc=246de4f681831153fa29c5e2e05a39ab
[Sun Sep 07 12:33:48.322710 2014] [:error] [pid 3034] [client 24.30.176.116:54540] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=sachat;sa=config
[Sun Sep 07 12:33:48.310840 2014] [:error] [pid 4738] [client 24.30.176.116:54538] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=sachat;sa=config
[Sun Sep 07 12:33:35.136544 2014] [:error] [pid 1649] [client 24.30.176.116:54535] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=sachat;sa=config;befe000fc=246de4f681831153fa29c5e2e05a39ab
[Sun Sep 07 12:33:35.064296 2014] [:error] [pid 6472] [client 24.30.176.116:54534] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=sachat;sa=config;befe000fc=246de4f681831153fa29c5e2e05a39ab
[Sun Sep 07 12:33:26.000416 2014] [:error] [pid 31653] [client 24.30.176.116:54526] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=packages;sa=browse;befe000fc=246de4f681831153fa29c5e2e05a39ab
[Sun Sep 07 12:33:25.992050 2014] [:error] [pid 4027] [client 24.30.176.116:54525] SoftException in Application.cpp:256: File "/home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php" is writeable by group, referer: http://yumabassman.com/forums-new/index.php?action=admin;area=packages;sa=browse;befe000fc=246de4f681831153fa29c5e2e05a39ab
Title: Re: SA Chat
Post by: Kindred on September 07, 2014, 06:34:19 PM
Looks like a badly configured server to me...
Title: Re: SA Chat
Post by: Bob La Londe on September 07, 2014, 09:10:33 PM
Quote from: Kindred on September 07, 2014, 06:34:19 PM
Looks like a badly configured server to me...

And yet everything else works.  Thanks for the "help."  I'll keep using the external chat then.  Thanks anyway. 

Title: Re: SA Chat
Post by: Arantor on September 07, 2014, 09:12:56 PM
Nah, it's just that your file permissions are too high. They're probably set to 777 or 775 and should be 755. (Well, 755 for folders, 644 for files)
Title: Re: SA Chat
Post by: Bob La Londe on September 07, 2014, 10:14:07 PM
Quote from: Arantor on September 07, 2014, 09:12:56 PM
Nah, it's just that your file permissions are too high. They're probably set to 777 or 775 and should be 755. (Well, 755 for folders, 644 for files)

Sigh!  The default settings were 755/644.  Then earlier in this thread somebody said they should all be 755, and if that doesn't work try 777 just in case.  Sometimes I think folks are just messing with me.  I uninstalled it a while ago, and won't re-install it again (for a fifth or sixth time) until I see something that makes sense to get it to work. 

Title: Re: SA Chat
Post by: Arantor on September 07, 2014, 10:23:37 PM
Seriously, I'm just going off the error message that you posted.

It says: writable by group. That would be the second number in the block of three. The numbers are made up of 4 for read privilege, 2 for write privilege, 1 for execute privilege, and the order of numbers is 'for the owner', 'for groups', 'for everyone'.

In which case, 755 on a folder would mean: the owner can read/write/execute (which for folders means accessing them), while groups and everyone can read/execute (which means they can access but can't write)

644 on files works the same way since PHP files don't need execute privileges.

And it sure looks like /home/diycompo/public_html/yumabassman.com/forums-new/sachat/index.php isn't being set to 644 from the error message given.
Title: Re: SA Chat
Post by: Kimmie on September 08, 2014, 01:10:12 PM
Quote from: Kimmie on September 06, 2014, 08:20:23 PM
I uninstalled this mod but it left a bunch of tables in my database. Are there any others besides these I need to delete to get rid of this mod?





Anyone?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 08, 2014, 01:25:19 PM
Quote from: ♦ Ninja ZX-10RR ♦ on September 07, 2014, 03:16:33 PM
Quote from: Kimmie on September 06, 2014, 08:20:23 PM
I uninstalled this mod but it left a bunch of tables in my database. Are there any others besides these I need to delete to get rid of this mod?
There shouldn't be. Just delete them.
Please read the messages? :)
Title: Re: SA Chat
Post by: MyTime on September 09, 2014, 01:23:51 PM
i'v downloaded this mod also and it use to work before i started the forum all over again , I can't find it anywhere after being installed, this is driving me crazy.
Title: Re: SA Chat
Post by: SA™ on September 09, 2014, 02:07:54 PM
SA chat /maintenance/fix bar

run that it should show after
Title: Re: SA Chat
Post by: MyTime on September 09, 2014, 02:20:43 PM
After clicking that fix bar it takes me too a page that says this.

500 - Internal server error.
There is a problem with the resource you are looking for, and it cannot be displayed.
Title: Re: SA Chat
Post by: SA™ on September 09, 2014, 02:45:21 PM
that is a mod secrity issue speak to your host
pls note this will be fixed in the next version
Title: Re: SA Chat
Post by: MyTime on September 09, 2014, 02:56:24 PM
I just removed my whole forum and just started over, It's probably best too just add a temp folder in the package directory before starting any type of installing , i feel like that's what messed everything up, just started too install and uninstalling before doing it the correct way, I'm also doing it all on the default theme first while having the custom one installed and ready too use but not using it while doing all the mods are set up first.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 09, 2014, 02:58:29 PM
Bad idea since you won't be able to spot errors that you may encounter with your custom theme... Also be careful to install the mods for every theme...
Title: Re: SA Chat
Post by: kplusonline on September 11, 2014, 07:18:43 PM
I've made a custom theme for SA Chat. Where and how can I upload it for others users ?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 11, 2014, 09:59:07 PM
Hm.
Ok let me start with my "good thoughts" first :)

Now the "bad ones":
Try not to take it personally... I have the same respect for a guy with 23446546459684679 messages compared to the one I have for a guy with 1 post *BUT*... Personally... I wouldn't trust it. A guy just registers and claims to have made a custom theme for this mod (among a million others), it sounds... More than weird. Also the fact that you don't even know how to upload something makes me (again, personal opinion) think that you are not experienced with things like this, however you have made a custom theme.
Don't misunderstand me, you could be the best coder on the planet (if so, your question about where and how to upload the theme would have been stupid because you should have known it) but try to think as if you were me on anybody else... Your post is extremely weird...

Ah, almost forgot, post it as attachment? (if you can, since I can't remember if newbies have the permissions to do so) :) Or either put a link to it (even if it will be broken because of our anti-spam precautions I would take care of reposting it if necessary, or somebody else will ;)) :)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 15, 2014, 11:14:21 PM
Just found a bug thanks to a spammer friend XD

If someone texts you and you are typing when you receive the message the message you are typing gets deleted and you have to start it all over. If someone spams you then you can't type at all.
Will reply to your PM, SA™, give me some time, I am extremely busy >_<
Title: Re: SA Chat
Post by: SA™ on September 16, 2014, 03:16:58 AM
its a feature not a bug :P jk i have fixed this last night  8) will be uploading to github later
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 16, 2014, 07:25:45 AM
That quick again :D awesome, I will be providing you the info you requested later during the day (hopefully within the hour), you might want to wait so you don't have to pack it twice? :P
Title: Re: SA Chat
Post by: SA™ on September 16, 2014, 01:56:15 PM
yeah that was a simple fix realy just needed to add checks to see if this was an update or just starting out if it is an update it will just empty() the div and insert new messages instead of realoding the whole chat box

little teaser shot attached show group chat and the /who command there is also  a /invite [user] command you can only invite users to your own chat session admin can invite to all chat session
Title: Re: SA Chat
Post by: KungFuJoe on September 23, 2014, 04:14:05 PM
Hello,

I installed this back when it was 0.1.  It worked great and my users liked it, but apparently, it was using enough server side resources that my hosting provider put me on limited rations and basically threatened to shut me down if I didn't remove whatever was causing it.

Do you know if that's just the nature of the beast with this mod and if I want to use it, I need to host it somewhere that allows for more resources?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 23, 2014, 04:15:21 PM
Just update? There is also a load limiter function now...
Title: Re: SA Chat
Post by: KungFuJoe on September 23, 2014, 04:34:10 PM
Quote from: ♦ Ninja ZX-10RR ♦ on September 23, 2014, 04:15:21 PM
Just update? There is also a load limiter function now...

How exactly does that work or can you point me to some documentation on it?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 23, 2014, 05:27:46 PM
...................................dude, just update the mod!  ::)
Title: Re: SA Chat
Post by: br360 on September 24, 2014, 01:21:33 AM
Quote from: ♦ Ninja ZX-10RR ♦ on September 23, 2014, 05:27:46 PM
...................................dude, just update the mod!  ::)

Saying the same exact same thing to him might not exactly help him to understand how- and rolling your eyes at someone that didn't "get it" the first time is condescending and disrespectful dude.
Quote from: kungfujoe on September 23, 2014, 04:34:10 PM
How exactly does that work or can you point me to some documentation on it?

If you still have the mod, uninstall it. (make sure it uninstalled cleanly without errors) Then delete it from your server.
Then go to the first page of the thread, here (http://custom.simplemachines.org/mods/index.php?mod=2534) and make sure you download the latest version of the mod. Then upload that through your package manager.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 24, 2014, 01:54:28 AM
-.-"
He didn't get it what to update actually. Also it's not really a nice day so forgive me if I don't feel like putting smileys everywhere, I just tried to put a little irony in there to have a laugh but attacking me like that would bring no good. I have received many answers like that when I wasn't understanding something and guess what I was just laughing at myself being a dumbass, even if it's NOT the case. What to update is quite obvious since he is deliberately posting in a specific mod support topic, so I guess he was probably referring to how the load limiter function works but there is no real documentation for it and I told him to update because it's very easy to use and it's explained pretty clearly in the mod itself.

I can add that the procedure above applies to all mods anyway, it is a good thing to come back every once in a while to check if they are all up-to-date just to see if there are useful bug-fixes or new features. There will be more features for this mod, too, for sure so make sure you come back again in a while to re-download it once more. Sorry if I haven't been full of joy, kungfujoe, hope you got what I wanted to achieve in the first place, and of course it was not offending you.
Title: Re: SA Chat
Post by: KungFuJoe on September 28, 2014, 11:17:36 PM
No offense taken.

I really like the mod...really want to use it, but as soon as I enable it, I can see, through cpanel, my cpu resources go into the very high range.  Now, this is all relative on my hosting tier level..."very high" might be next to nothing on a dedicated service.

The weird thing is that the load average never gets above .02 or .04 but sure enough, from cpanel, I see it gradually going upwards over the duration of the day.

Are there any heartbeat settings I can mess with to lower the cpu utilization or is it just a matter of being on a hosting tier that is just too low to handle it?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 28, 2014, 11:23:07 PM
Sure there are, try to get here --> Forum » Administration Center » SA Chat » Chat settings Here are the hearbeats you wanted :)
And here there is the load checking function that allows you to limit the cpu usage by disabling certain functions above a pre-defined % load level :D --> Forum » Administration Center » SA Chat » Load checking
Title: Re: SA Chat
Post by: KungFuJoe on September 28, 2014, 11:27:29 PM
I would like a little clarity on the load limiting section.

I'm assuming that you enter the max threshold in the Highest load level and if you check the Enable load checking it will disable the items you select when it exceeds that load level.

But on the items to select, what's the difference between disabling the bar and disabling sa chat?  I assume without the bar, sa chat is non functional anyways, correct?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 28, 2014, 11:41:24 PM
Well I have never really tried it and I can't test atm it but it should be that...

Disable SA chat: disables everything;
Disable bar: disables the chat but not the possibility to chat to people you were already chatting with. (Methinks);
Disable chat list: disables the who's online part

I could be wrong though, I am just guessing (even if it seems the only possible guess to me...). :)
You can try it with some trusty member or one of your moderators if you want, just set the load to something like 1% and it will break it :P
Title: Re: SA Chat
Post by: KungFuJoe on September 29, 2014, 12:20:19 AM
Makes sense, but I'm wondering...without the Who's Online part...how can you even IM anyone? 
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 29, 2014, 12:56:03 AM
If you were chatting to them before the chat closed then yes, otherwise not. ;) Basically you can't start new chats, that's the restriction.
Title: Re: SA Chat
Post by: KungFuJoe on September 29, 2014, 11:25:36 AM
Well, thanks for the assistance, but unfortunately, I had to disable it once again.  The load it puts on the server is just too much for whatever I'm being allocated from my hosting service.  Setting load limits doesn't help because it just confuses people with the bar/chat being disabled half the time.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 29, 2014, 12:14:06 PM
I'm on a shared host and the average load is 1%.......
Title: Re: SA Chat
Post by: Jack_Elixir on October 06, 2014, 09:45:21 AM
Blank bar

no chating users

installed
SAMods-SAChatBar-2f0b77c.tar


2.0.9
Title: Re: SA Chat
Post by: Kindred on October 06, 2014, 07:21:18 PM
Try writing out your issue in complete sentences, with actual description of problems?

This is not a haiku forum... Nor do we waste our time trying to guess what users mean when they can't be bothered to actually explain themselves.
Title: Re: SA Chat
Post by: Jack_Elixir on October 07, 2014, 10:55:56 AM
I installed sa chat in 2.0.9 defaut theme

It is working ok now thanks, fix bar issue
Title: Re: SA Chat
Post by: naijacrux on October 09, 2014, 01:56:26 AM
urgent help needed, i have installed and run sa chat on my website for few months and it worked fine untill the recent smf update to 2.0.9  i try reinstalling the sa chat mod after updating my smf, the mod bar never showed up since then, i have 2 websites and this issue is affecting both site. mod developer, kindly tell how to fix this, i have set up member group already and done all possible best but mod only shows up in admin and didnt show up the bar,i tried fix bar, no solution, my theme is mobile desktop theme
Title: Re: SA Chat
Post by: konstantinos2424 on October 10, 2014, 12:28:43 PM
Hello, I have chat mid installed in my forum. But at the end of the page it hides XHTML RSS WAP2 area. Is there any way (to edit the template maybe i don't really know) to add some space so when someone scrolls at the end of the pages the char bar would be beneath the copyright area (not hiding the XHTML RSS WAP2. Thank you!  :)
Modify message
Title: Re: SA Chat
Post by: Ninja ZX-10RR on October 15, 2014, 07:41:55 PM
Any updates about the refresh bug? :)
Title: Re: SA Chat
Post by: Burke ♞ Knight on October 15, 2014, 07:46:00 PM


Just tried out this mod, and wow!
Besides that refresh bug, this is awesome!

Are you going to make custom themes and gadgets for it?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on October 15, 2014, 08:02:57 PM
Editing the theme is really easy, check a few pages ago I explained it myself, helped by SA™ himself :)
Title: Re: SA Chat
Post by: ddmaster on October 15, 2014, 08:03:14 PM
Hi there,

Have looked over the 70 pages but can't find the answer to my question, apologies if it's already been addressed.

I have the SAChat mod installed and working great on SMF 2.08. I am on a server in a different timezone than my own. SMF itself handles the timezone difference no problem based on server timezone (UTC) and time offset settings (+13). However, the sent time for SAChat messages is totally wrong (appears to be GMT/UTC). I have looked over the code and presumed I needed to change something in the functions but can't find where I would add the 13 hours I need before writing record to database. Can anyone point me to the code I need to change. If I can find it I can probably deal with changing it myself. Have been working too many hours straight so probably just being blind.

Thanks in advance
Title: Re: SA Chat
Post by: SA™ on October 16, 2014, 03:31:51 PM
Quote from: ♞ DeadMan on October 15, 2014, 07:46:00 PM


Just tried out this mod, and wow!
Besides that refresh bug, this is awesome!

Are you going to make custom themes and gadgets for it?
thanks yes i have plans but no time :P

Quote from: ♦ Ninja ZX-10RR ♦ on October 15, 2014, 07:41:55 PM
Any updates about the refresh bug? :)

try this
https://github.com/SAMods/SAChatBar

do note the group chat is a little buggy in that right now so just disable it if you have issues with it havent tested too much not much time











Title: Re: SA Chat
Post by: Ninja ZX-10RR on October 16, 2014, 03:52:27 PM
I don't have time to test it properly now, I will do it next week and report you all the issues ;) thanks for the update :)
Title: Re: SA Chat
Post by: Burke ♞ Knight on October 16, 2014, 04:01:31 PM
Refresh issue seems fixed to me. Will do more testing to be sure.
Will be leaving Group Chat off for now.

What's the Global chat? I see it defaults to off, so not sure about it.
Title: Re: SA Chat
Post by: Rob Lightbody on October 21, 2014, 03:22:32 PM
I just installed this on my 2.0.9. forum and it was totally effortless.  I'm trying to work out what the snag is, it can't be that easy surely!?
Title: Re: SA Chat
Post by: Kindred on October 21, 2014, 03:41:56 PM
why not?
Title: Re: SA Chat
Post by: Rob Lightbody on October 21, 2014, 06:07:22 PM
Its brilliant, well done to everybody involved in it.

I've tried numerous chat systems over the years with SMF, and each has had some snag or other.  This was totally effortlessly and works brilliantly well.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on October 22, 2014, 09:28:41 AM
Another bug report.

This is VERY strange... No errors in the error log, the group chat is totally disabled for everybody and as a result of this it doesn't matter.
-If you type "<" and send it the other user doesn't receive it.
-If you type "blabla<" (so the symbol AFTER the word) the word will show up while the symbol won't.
-If you type "<blabla" (symbol BEFORE the word) the word will not show up either.

Let me know if you can fix it :)
Thanks to Deadman and to my gf for helping me spotting this.
Title: Re: SA Chat
Post by: Kindred on October 22, 2014, 09:34:15 AM
not strange at all...   it's checking for html insertion....
Title: Re: SA Chat
Post by: Ninja ZX-10RR on October 22, 2014, 09:38:45 AM
Even if html tag is disabled in the whole forum...
Title: Re: SA Chat
Post by: Kindred on October 22, 2014, 11:16:20 AM
not html TAG...   html CODE....   which starts with <....

it's using its own routines to avoid anyone inserting a hack script into the chat.
Title: Re: SA Chat
Post by: SA™ on October 25, 2014, 03:17:46 PM
as kindred said this is coded like this for a reason people would be able to do all sorts of nasty things if it wasnt
Title: Re: SA Chat
Post by: Ninja ZX-10RR on October 25, 2014, 03:47:38 PM
Then ok thanks :) besides I am and will be testing the group chat, no errors yet ;) *fingers crossed*
Title: Re: SA Chat
Post by: MartinLT98 on October 27, 2014, 03:41:21 PM
Hi! I having a strange problem and you might not be able to answer it but when I've installed your mod and done all the things that is written in the specified instruction manual for my version nothing is added to the forum.
I can change settings for SA Chat in the admin area and I can see in the package manager that SA Chat is installed.
It's my first time installing a mod although I have watched tutorials on how to add mods to a SMF Forum.

My forum is in Version 2.0.8 and I'm trying to apply SA Chat V. 0.1.4!
Am I doing a newbie mistake or what, please help?!  :-\
Title: Re: SA Chat
Post by: Ninja ZX-10RR on October 27, 2014, 03:51:00 PM
Upgrade to smf 2.0.9 and install the latest version of the mod, to start ;) download it from HERE: https://github.com/SAMods/SAChatBar and be sure to set the permissions properly :) and also to run the fix bar tool in the chat maintenance since sometimes it happens that the bar is not showing and that might fix it.
Title: Re: SA Chat
Post by: kat on October 27, 2014, 03:56:07 PM
Before you do this kinda stuff, Martin, you WILL remember my dig,  won't you? ;)

Click it, for a somewhat garbled "How to". :)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on October 27, 2014, 04:06:38 PM
Yeah indeed, especially if you are not very expert ;) nice reminder I always "forget" that XD or well I don't do it, I always manage to fix the mistakes if there are, had to restore just once, with SimpleAds for reasons that I still don't know
Title: Re: SA Chat
Post by: MartinLT98 on October 27, 2014, 04:08:26 PM
Quote from: ♦ Ninja ZX-10RR ♦ on October 27, 2014, 03:51:00 PM
Upgrade to smf 2.0.9 and install the latest version of the mod, to start ;) download it from HERE: https://github.com/SAMods/SAChatBar and be sure to set the permissions properly :) and also to run the fix bar tool in the chat maintenance since sometimes it happens that the bar is not showing and that might fix it.

I did the fix toolbar thing and it works! :D
Thanks for helping me and for answering so quickly! <3

Quote from: K@ on October 27, 2014, 03:56:07 PM
Before you do this kinda stuff, Martin, you WILL remember my dig,  won't you? ;)

Click it, for a somewhat garbled "How to". :)

Ehhh what? No idea...
Title: Re: SA Chat
Post by: Ninja ZX-10RR on October 27, 2014, 04:11:48 PM
Quote from: MartinLT98 on October 27, 2014, 04:08:26 PM
Quote from: ♦ Ninja ZX-10RR ♦ on October 27, 2014, 03:51:00 PM
Upgrade to smf 2.0.9 and install the latest version of the mod, to start ;) download it from HERE: https://github.com/SAMods/SAChatBar and be sure to set the permissions properly :) and also to run the fix bar tool in the chat maintenance since sometimes it happens that the bar is not showing and that might fix it.

I did the fix toolbar thing and it works! :D
Thanks for helping me and for answering so quickly! <3
I'm still glad to help the ones appreciating it, very happy that it worked :D

Quote from: MartinLT98 on October 27, 2014, 04:08:26 PM
Quote from: K@ on October 27, 2014, 03:56:07 PM
Before you do this kinda stuff, Martin, you WILL remember my dig,  won't you? ;)

Click it, for a somewhat garbled "How to". :)

Ehhh what? No idea...
He meant to always BACKUP before you install or do anything, especially if you are not a very expert user because something might (even if unlikely) go wrong and make the forum crash with a php failure (and consequent swearings to fix it if you don't want to restore the forum from the backup). So always backup before you do anything, don't do like I did :P
Title: Re: SA Chat
Post by: MartinLT98 on October 27, 2014, 04:16:13 PM
Quote from: ♦ Ninja ZX-10RR ♦ on October 27, 2014, 04:11:48 PM
Quote from: MartinLT98 on October 27, 2014, 04:08:26 PM
Quote from: ♦ Ninja ZX-10RR ♦ on October 27, 2014, 03:51:00 PM
Upgrade to smf 2.0.9 and install the latest version of the mod, to start ;) download it from HERE: https://github.com/SAMods/SAChatBar and be sure to set the permissions properly :) and also to run the fix bar tool in the chat maintenance since sometimes it happens that the bar is not showing and that might fix it.

I did the fix toolbar thing and it works! :D
Thanks for helping me and for answering so quickly! <3
I'm still glad to help the ones appreciating it, very happy that it worked :D

Quote from: MartinLT98 on October 27, 2014, 04:08:26 PM
Quote from: K@ on October 27, 2014, 03:56:07 PM
Before you do this kinda stuff, Martin, you WILL remember my dig,  won't you? ;)

Click it, for a somewhat garbled "How to". :)

Ehhh what? No idea...
He meant to always BACKUP before you install or do anything, especially if you are not a very expert user because something might (even if unlikely) go wrong and make the forum crash with a php failure (and consequent swearings to fix it if you don't want to restore the forum from the backup). So always backup before you do anything, don't do like I did :P

Haha, thank you for the tip I guess! Have a nice day! :)
Title: Re: SA Chat
Post by: kat on October 27, 2014, 04:20:11 PM
Always worth mentioning, especially if you're new to this kinda stuff. :)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on October 27, 2014, 05:03:03 PM
Quote from: MartinLT98 on October 27, 2014, 04:16:13 PM
Haha, thank you for the tip I guess! Have a nice day! :)
You're welcome, have a nice day you too :D
Title: Re: SA Chat
Post by: Ninja ZX-10RR on November 06, 2014, 11:45:26 AM
If I wanted to place the avatar before the name in the chatbox how would I do it? I tried to edit the template but I wasn't able to do it :(
Thanks in advance :)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on November 10, 2014, 12:38:22 PM
Quote from: ♦ Ninja ZX-10RR ♦ on November 06, 2014, 11:45:26 AM
If I wanted to place the avatar before the name in the chatbox how would I do it? I tried to edit the template but I wasn't able to do it :(
Thanks in advance :)
*bump* :/

Spotted another bug... If you are chatting with multiple users then the browser tab doesn't update correctly. The situation is this:
user A chatting with user B and C
B says hi to user A
A reads the message, perhaps replies (doesn't matter) and switches tab
C says hi to user A, the browser tab will show "user B says..", which is incorrect.

Moreover I found myself with a very weird error that wasn't allowing me to type at all. I mean I could type but whenever I was trying to send the actual message it was always giving me "undefined" as message sent... This might be due to some edits I made but I don't know...
Title: Re: SA Chat
Post by: HusaBob on November 14, 2014, 04:35:53 PM
Hello - I had installed this for our forum but uninstalled it because no one was using it. Now, it appears it left some weird code.

When members click on Profile, and then Look and Layout, at the bottom this appears:

Chat Bar Settings

Fatal error: Call to undefined function SAChat_LoadTemes() in /home/rufcutri/public_html/Sources/Load.php(2177) : eval()'d code on line 1604

I don't know enough (if anything lol) about editing, so I didn't want to screw with it.

Any ideas? Thanks a lot.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on November 14, 2014, 05:26:39 PM
Forum » Administration Center » Server Settings » General and Disable the evaluation of templates, post the error again after that and see if it changes. ;) After we will be done getting rid of that remember to turn it back on again.
Are you using a custom theme by the way? Did it uninstall with no errors? SMF version?
Title: Re: SA Chat
Post by: HusaBob on November 14, 2014, 05:36:16 PM
Okay I did that. Here is the error now
Chat Bar Settings

Fatal error: Call to undefined function SAChat_LoadTemes() in /home/rufcutri/public_html/Themes/default/Profile.template.php on line 1604
Title: Re: SA Chat
Post by: HusaBob on November 14, 2014, 05:38:00 PM
I am using the curve default theme. Don't remember whether errors on uninstall. Thbkd. Thanks for your help.
Title: Re: SA Chat
Post by: Kindred on November 14, 2014, 07:00:10 PM
Well, given that they is code left over, you almost certainly did have errors during the uninstall...   Why do people ignore errors during install or uninstall and then get surprised when things break?

You are going to have to have to manually remove all of the code that did not get automatically removed...  Parse the mod installation instructions and go in reverse...
Title: Re: SA Chat
Post by: HusaBob on November 14, 2014, 08:41:55 PM
Quote from: Kindred on November 14, 2014, 07:00:10 PM
Well, given that they is code left over, you almost certainly did have errors during the uninstall...   Why do people ignore errors during install or uninstall and then get surprised when things break?

You are going to have to have to manually remove all of the code that did not get automatically removed...  Parse the mod installation instructions and go in reverse...

Yeah.. I just thought things would function correctly. Oh well.. I'll know better next time before I install some clapped up add-on.
Title: Re: SA Chat
Post by: Kindred on November 14, 2014, 09:32:24 PM
Ummm.. Excuse you?   But the errors are your own fault.   If the mod installs, or uninstalls are not generating errors, then everything is clean... But if you ignore the big red warnings that the install (or uninstall) has errors and may fail....    Then who is to blame?


The mod works perfectly well on the sites I have installed it on...
Title: Re: SA Chat
Post by: HusaBob on November 15, 2014, 05:37:04 PM
I ignored the big red warnings.
Title: Re: SA Chat
Post by: HusaBob on November 15, 2014, 05:58:47 PM
Well, I fixed it thanks to "someone" - he knows who he is.
Title: Re: SA Chat
Post by: Kindred on November 15, 2014, 07:48:49 PM
Yes, we know...
Title: Re: SA Chat
Post by: Burke ♞ Knight on November 21, 2014, 06:36:08 AM
I still do not see how you can call a mod bad, due to your own ignorance.
You ignored errors, due to other mods changing the same area in the code, then want to blame this mod for being messed up, when it was you?

Learn to accept some responsibility for your own mistakes, instead of bad mouthing a mod for your own actions.
Title: Re: SA Chat
Post by: HusaBob on November 21, 2014, 09:13:41 AM
My response was probably in response to Kindred's ignorant response to me.

For example, he replied "Why do people ignore errors during install or uninstall and then get surprised when things break?" - Smart-ass response which could have been written more politely.

Granted, I referred to the add-on as "clapped up." Sorry if this hurt someone's feelings.

Did it ever occur to you that not everyone is as knowledgeable of this software and wouldn't/couldn't automatically understand or even know for that matter to watch for "errors."

IN any case, I think Kindred needs an attitude adjustment if he expects others to participate on here.
Title: Re: SA Chat
Post by: Burke ♞ Knight on November 21, 2014, 09:22:16 AM
1. It is not experience that tells you not to install or uninstall if there are errors, it is COMMON SENSE.
2. If have errors, then instead of ignoring them, coming here and asking would have been the better choice.
3. Kindred only stated what he did, due to the above reasons, and I have to admit, he seemed right on in what he said.
Title: Re: SA Chat
Post by: HusaBob on November 21, 2014, 09:30:13 AM
Have you considered that perhaps I missed the errors on the uninstall?

Then have you considered that it took months for someone to report to me the small-ish error they were seeing on their Profile section? The site worked fine otherwise.

I'm simply requesting people discuss things respectfully for Pete's sake. Would he talk like that to my face? I'd probably smack him if he did.
Title: Re: SA Chat
Post by: Burke ♞ Knight on November 21, 2014, 09:35:59 AM
Show me what he said that was so bad, you'd like to hit him...
I have read his posts, and not one is anyway out of line.
Just because you got caught ignoring errors, does not mean to blame others for your actions, or to say they were out of line for their replies to you.
Title: Re: SA Chat
Post by: HusaBob on November 21, 2014, 09:39:26 AM
OKay, well, in any case, thanks for your help. The next time I politely phrase a support question, as I did, I'm just requesting that responses (especially from someone who looks like he's been here a long time) be civil and polite. When someone at work asks me for help, I don't respond "Well, for God's sake if you wouldn't have entered the wrong formula into your spreadsheet, we wouldn't be here now, would we? Hey, if you are too dumb or fail to check your formulas or you don't read the Help file, it's not my fault!"

I don't then follow up with "Learn to accept some responsibility for your own mistakes!"
Title: Re: SA Chat
Post by: Ninja ZX-10RR on December 08, 2014, 12:49:03 PM
Quote from: ♦ Ninja ZX-10RR ♦ on November 10, 2014, 12:38:22 PM
Quote from: ♦ Ninja ZX-10RR ♦ on November 06, 2014, 11:45:26 AM
If I wanted to place the avatar before the name in the chatbox how would I do it? I tried to edit the template but I wasn't able to do it :(
Thanks in advance :)
*bump* :/

Spotted another bug... If you are chatting with multiple users then the browser tab doesn't update correctly. The situation is this:
user A chatting with user B and C
B says hi to user A
A reads the message, perhaps replies (doesn't matter) and switches tab
C says hi to user A, the browser tab will show "user B says..", which is incorrect.
*Bump*
Found 2 more bugs in the meantime.

1) sometimes, and can't really reproduce it when I want... But sometimes if you have multiple chat opened one of them will move towards the center of the screen for no reason leaving a huge gap on its right side :o I can't tell you how to reproduce this though. It happens sometimes and occasionally very often but I don't know a correct procedure to do that on purpose.

2) While inspecting the page in visitor mode you will find this stuff
Unhandled Error: '$sachat.cookie' is not a function which is related to this snippet var cookie = unescape($sachat.cookie(name)); still I don't know how to fix it :(

Thanks in advance, hope you will reply >_<
Title: Re: SA Chat
Post by: SA™ on December 08, 2014, 12:56:50 PM
I know about these bugs in the new year I'll be able to work on it again computer is in storage right now we are having building work done here have been since the last few monthsbe glad wen its all over
Title: Re: SA Chat
Post by: Ninja ZX-10RR on December 08, 2014, 01:13:32 PM
I'll be waiting and testing :) thank you!

Also there are 2 stupid .css bugs but not from you, from Google... The translating bar... You would be surprised if you actually browse google sites how many damn .css bugs you will find, even deprecated functions in the emails! And that is supposed to be one of (if not the biggest) company in the world? I mean... Seriously? Makes me upset.
I'll *try* to have a word with them in the meantime... Those errors are so stupid that I could fix them myself... And they don't... *sigh*
Title: Re: SA Chat
Post by: nend on December 11, 2014, 09:28:47 AM
Quote from: ♦ Ninja ZX-10RR ♦ on December 08, 2014, 01:13:32 PM
I'll be waiting and testing :) thank you!

Also there are 2 stupid .css bugs but not from you, from Google... The translating bar... You would be surprised if you actually browse google sites how many damn .css bugs you will find, even deprecated functions in the emails! And that is supposed to be one of (if not the biggest) company in the world? I mean... Seriously? Makes me upset.
I'll *try* to have a word with them in the meantime... Those errors are so stupid that I could fix them myself... And they don't... *sigh*

I am wondering if the translation feature is still sought after since some browsers have made this built in or available through a plugin.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on December 11, 2014, 09:40:04 AM
It works here, however I found out something that we all should worry about.
There is NO way to contact Google. Seriously. NO WAY. You can write on forums and they don't give a damn about that. I discovered that Google used to have a support for the translation bar but it's now closed. And also they don't care about errors since the major functions work.
Plus, I discovered that ANY google website has *A LOT* of errors when you try to inspect the site itself! I mean, seriously a lot - once it hit 57 including CRITICAL errors and several deprecated function, even in the gmail!!! I mean, seriously, would you be giving your personal informations to these guys? I'll remove everything that I can remove that is working with google now. No support and thousands of errors all over the place? I am really concerned about that, because if they treat security in the same way then.... You got me already... Look at an example page: https://support.google.com/translate/toolkit/answer/Non%20riesci%20a%20trovare%20la%20risposta%20alla%20tua%20domanda?%20%20%3Ca%20href=%22%3C?cs%20var:CGI.Root%20?%3E/contact/default/?%22%3EContattaci%3C/a%3E this is Google quality, one of the biggest (if not the biggest) companies in the world...

By the way I don't know, I have never used a google translator plugin (don't really need it, I love the English language more than my own ;D) so I don't know, my guess is that it should be working anyway, you might be seeing it twice but it won't be the mod being at fault...
Title: Re: SA Chat
Post by: beanflying on December 12, 2014, 01:11:25 AM
Greetings SA and all, long time no play with this or a new forum layout  :)

Having a little clash with the Bar and a module from Dream Portal (3D image slider which goes blank when I install SA Chat) has anyone got or found a workaround for this?

Second one about the current version any reason to make the side bars so tall rather than a minimum needed?

still a great mod and one of the first to go on  ;)
Title: Re: SA Chat
Post by: SA™ on January 03, 2015, 01:12:28 PM
Mod updated 0.1.5

Quoteimplemented group chat and global chat this is Beta it needs more testing
online offline now shows a red and green icon instead of a coloured *
fixed issue with mod secrity and Fix bar option
side bars now only use the minium height needed
removed google translate
fixed issue with new message notifaction in page title
changed the backend permissions functions
sachat test page is now availible thru site.com/sachat/index.php
fixed spaces instead of tabs
Title: Re: SA Chat
Post by: gaurav09 on January 05, 2015, 12:34:53 AM
how to change color of SA chat bar ?   :-\
Title: Re: SA Chat
Post by: baywatcharms on January 20, 2015, 11:57:02 AM
I have recently installed SA Chat on my smf 2.0.9.  I am using Regain theme.  I am having the most difficult time getting this to work.  Everything installed properly.  I checked the permissions, and they all seem to be set properly ( 0755 ).  Can anyone help me to get this mod to work?
Title: Re: SA Chat
Post by: SA™ on January 20, 2015, 12:36:52 PM
there is a typo in the SAChat_loadtheme() hook

in sources/SAChatHook.php
find
SAChat_loadtheme
replace with
SAChat_loadTheme
Title: Re: SA Chat
Post by: baywatcharms on January 20, 2015, 12:42:30 PM
in sources/SAChatHook.php
find
SAChat_loadtheme
replace with
SAChat_loadTheme

If I am understanding you correctly, I need to access my server file, look for SAChatHook.php file.  Change the lower case t to an uppercase T.  Is that correct.  I apologize for my ignorance, but I am still new at this.
Title: Re: SA Chat
Post by: SA™ on January 20, 2015, 12:46:00 PM
yeah that is correct
the way it is right now it will only work on a windows host
Title: Re: SA Chat
Post by: baywatcharms on January 20, 2015, 12:47:29 PM
I will give that a try and see how it works.
Title: Re: SA Chat
Post by: baywatcharms on January 20, 2015, 01:06:39 PM
I did that, and it didn't work.  The file I found was SAChatHooks.php  I changed the typo and nothing happened.  still can't see the bar.
Title: Re: SA Chat
Post by: baywatcharms on January 20, 2015, 01:08:42 PM
I even went back and clicked "fix bar".  Still nothing.  What have I done wrong.
Title: Re: SA Chat
Post by: SA™ on January 20, 2015, 01:28:15 PM
hmm it should show got a link to your site?
Title: Re: SA Chat
Post by: baywatcharms on January 20, 2015, 01:31:38 PM
Am I missing a link or something in some php file?  I just don't know what I am suppose to do.
This is my forum site.  http://www.baywatcharms.com/forum
Title: Re: SA Chat
Post by: baywatcharms on January 20, 2015, 01:33:59 PM
http://www.baywatcharms.com/forum
Title: Re: SA Chat
Post by: baywatcharms on January 20, 2015, 01:35:37 PM
baywatcharms.com/forum
Title: Re: SA Chat
Post by: SA™ on January 20, 2015, 01:40:11 PM
i see it there as a guest?
Title: Re: SA Chat
Post by: baywatcharms on January 20, 2015, 01:42:43 PM
i will change that so guest can see it.  and see if makes a change on your side.
Title: Re: SA Chat
Post by: baywatcharms on January 20, 2015, 01:44:02 PM
made the change so guest can see it now.  anything else I need to do for you.
Title: Re: SA Chat
Post by: SA™ on January 20, 2015, 01:46:29 PM
you did not have to change it for guest i said i could see it as a guest :P
Title: Re: SA Chat
Post by: baywatcharms on January 20, 2015, 01:47:40 PM
Why am I not seeing it?
Title: Re: SA Chat
Post by: SA™ on January 20, 2015, 01:49:48 PM
if you activate my account on your site ill log in and see 8)
Title: Re: SA Chat
Post by: baywatcharms on January 20, 2015, 01:50:43 PM
how do i do that?
Title: Re: SA Chat
Post by: SA™ on January 20, 2015, 01:52:01 PM
admin/members i think
Title: Re: SA Chat
Post by: jcsnider on January 20, 2015, 07:39:32 PM
Hi SA,

I've used this mod in the past however I just setup a brand new 2.0.9 forum with minimal mods.

The chat bar shows up fine however each time we try to send a message we receive the following errors in the logs.
INFO

Undefined index: database_error

File: C:\inetpub\wwwroot\ascensionforums.com\Sources\Subs-Db-mysql.php
Line: 594

FATAL

Call to undefined function allowedTo()

File: C:\inetpub\wwwroot\ascensionforums.com\Sources\Subs-Db-mysql.php
Line: 595


As you can probably tell, we are on a windows server using IIS7 and PHP5.6.0.

The best that I have thought to do is check file permissions but everything seems fine. Any thoughts? Support would be greatly appreciated. Thanks for the mod!

-JC
Title: Re: SA Chat
Post by: Harvester on January 21, 2015, 08:00:43 PM
I've got to be doing somethig wrong here.

I originally installed the mod via package manager>upload   That didnt work because it didnt modify profile.template  so I edited it myself... just located the code shown in the parser, then inserted the code needed after. saved. uploaded.
then i noticed the package manager didnt put the sa chat folder in my root.. so I copied the 3 folders and db.php to my smf root.

refreshed my site.. no chat bar.

Dont see anything in my smf admin panel for sa chat either. I searched high and low.

What am I missing? what am i doing wrong?

I am using 2.0.7 (I will be updating to 2.0.9 soon)
Title: Re: SA Chat
Post by: Kindred on January 21, 2015, 09:07:03 PM
If you manually installed it, you also have to RUN the db.php, and possibly other stuff...
Title: Re: SA Chat
Post by: Dumke on January 24, 2015, 01:03:50 AM
Hi!
I have a small particularly strange problem with "my" chat installation.
You cannot post links at all, i.e the message are never delivered, or stored into the database.

It works perfectly fine on my localhost, however.

What would cause this?
Title: Re: SA Chat
Post by: SA™ on January 24, 2015, 01:12:47 PM
hmm lemme check this ill get back to you cos they also work for me on localhost

can you please check the sachat error logs? or your php error logs?
Title: Re: SA Chat
Post by: Dumke on January 24, 2015, 01:38:57 PM
Quote from: SA™ on January 24, 2015, 01:12:47 PM
hmm lemme check this ill get back to you cos they also work for me on localhost

can you please check the sachat error logs? or your php error logs?


After the last two days of trying to figure it out, that's a most i can come up with.

Hopefully this gives you some clues.


Only error in my error log.

INFO

Undefined index: permissions

File: /home2/user1/public_html/forums/sachat/functions.php
Line: 1014


WARN

in_array() expects parameter 2 to be array, null given

File: /home2/user1/public_html/forums/sachat/functions.php
Line: 1014
Title: Re: SA Chat
Post by: SA™ on January 24, 2015, 02:13:52 PM
I see the issue thanks I'll patch that later
Title: Re: SA Chat
Post by: Drlecteur on January 24, 2015, 05:23:22 PM
Good evening smf people, 
Thanks for your amazing mod ! :D

But i have some issue with it :(
I have a JS paralax back on my forum, using github.com/vonKristoff/starscroll for the job, and Jquery 2.X.
With SA chat, It doesn't work anymore.

$("#astral_container").starscroll(16,10,30,2,0,[200,200,255],true,false);

show this error:
Uncaught TypeError: undefined is not a function

Isn't it a typical Jquery error ?
I'm pretty lost in this thing, i'm basically a newbie with JS

Forum : www . valhalla.website

If you need anything else, ask me !
Thanks !
Title: Re: SA Chat
Post by: Kindred on January 24, 2015, 06:23:39 PM
Well, if you have jquery already defined, then there is a possibility of conflict, especially if you have a different version loaded.

Additionally, if you have different sets of JavaScript tools, it can conflict... Like jquery and moo tools
Title: Re: SA Chat
Post by: Drlecteur on January 24, 2015, 07:00:44 PM
Thanks for your fast answer !
And you was god dammnit right :D

I just take out my second Jquery call and all is ok :D

thank you !
Title: Re: SA Chat
Post by: Dumke on January 25, 2015, 01:57:30 AM
Quote from: SA™ on January 24, 2015, 02:13:52 PM
I see the issue thanks I'll patch that later

Awesome, Thanks.
I'll be waiting for that.
Title: Re: SA Chat
Post by: SA™ on January 25, 2015, 01:43:36 PM
i decided hold if this patch as i have a epic 1.0 version comming very soon that already fixes many bugs including this issue and sevaral bbc code bugs that includes urls in messages

here is a little teaser
https://www.youtube.com/watch?v=swloNyMxFY0
Title: Re: SA Chat
Post by: Dumke on January 26, 2015, 02:24:27 AM
Quote from: SA™ on January 25, 2015, 01:43:36 PM
i decided hold if this patch as i have a epic 1.0 version comming very soon that already fixes many bugs including this issue and sevaral bbc code bugs that includes urls in messages

here is a little teaser
https://www.youtube.com/watch?v=swloNyMxFY0

Looks awesome.
Title: Re: SA Chat
Post by: SA™ on January 28, 2015, 02:56:23 PM
And here it is 1.0a.
https://github.com/SAMods/SAChatBar

Will upload here after some more testing.
There is only so much testing i can do talking to my self xd  ;D .
This Should also now work on SMF2.1
Title: Re: SA Chat
Post by: littleone on January 31, 2015, 01:36:00 PM
Silly question.  I installed with no issues or errors.  I set the permissions.  However I see absolutely nothing on my forum related to this mod.  Its like it doesnt exist.  Ideas?

This is in the SA Chat Error Log:
FATAL
Unexpected character in input: '\' (ASCII=92) state=1

File: /home/xxxxxx/public_html/nforum/sachat/functions.php
Line: 246
Title: Re: SA Chat
Post by: Dumke on January 31, 2015, 08:30:32 PM
Quote from: SA™ on January 28, 2015, 02:56:23 PM
And here it is 1.0a.
https://github.com/SAMods/SAChatBar

Will upload here after some more testing.
There is only so much testing i can do talking to my self xd  ;D .
This Should also now work on SMF2.1

I installed it on my localhost, it's amazing, yet some bugs which no doubt would have been caused by my manual installation
So i'll just wait for the SMF version :)
Title: Re: SA Chat
Post by: utal on February 01, 2015, 06:42:01 PM
Working great, many thanks :)
Title: Re: SA Chat
Post by: PhiPhi on February 02, 2015, 09:41:12 AM
Thanks for making this available.  Just one question, how do I stop it from stripping out the \ character? I sometimes need to give people support using Windows paths.
Title: Re: SA Chat
Post by: SA™ on February 02, 2015, 02:36:09 PM
Quote from: littleone on January 31, 2015, 01:36:00 PM
Silly question.  I installed with no issues or errors.  I set the permissions.  However I see absolutely nothing on my forum related to this mod.  Its like it doesnt exist.  Ideas?

This is in the SA Chat Error Log:
FATAL
Unexpected character in input: '\' (ASCII=92) state=1

File: /home/xxxxxx/public_html/nforum/sachat/functions.php
Line: 246

is your forum utf8?

Quote from: Dumke480 on January 31, 2015, 08:30:32 PM
Quote from: SA™ on January 28, 2015, 02:56:23 PM
And here it is 1.0a.
https://github.com/SAMods/SAChatBar

Will upload here after some more testing.
There is only so much testing i can do talking to my self xd  ;D .
This Should also now work on SMF2.1

I installed it on my localhost, it's amazing, yet some bugs which no doubt would have been caused by my manual installation
So i'll just wait for the SMF version :)

well if you dont tell me what bugs i cant fix them can i? Why are you manual installing this?

Quote from: PhiPhi on February 02, 2015, 09:41:12 AM
Thanks for making this available.  Just one question, how do I stop it from stripping out the \ character? I sometimes need to give people support using Windows paths.

it strips these characters for a reason if it didnt you would have a big mess on your hands
Title: Re: SA Chat
Post by: Dumke on February 03, 2015, 12:46:26 AM
Quote from: SA™ on February 02, 2015, 02:36:09 PM
well if you dont tell me what bugs i cant fix them can i? Why are you manual installing this?

Disregard that post.
I messed up, somewhere when i was downloading it.
(Explains why i couldn't use package manager)
Works fine on live host.

Thanks! :)
everything is fine.
Title: Re: SA Chat
Post by: Dumke on February 03, 2015, 09:28:32 AM
Quote from: Dumke480 on February 03, 2015, 12:46:26 AM
Quote from: SA™ on February 02, 2015, 02:36:09 PM
well if you dont tell me what bugs i cant fix them can i? Why are you manual installing this?

Disregard that post.
I messed up, somewhere when i was downloading it.
(Explains why i couldn't use package manager)
Works fine on live host.

Thanks! :)
everything is fine.
(Why can't i edit my post?)
After actual testing (on live host)

Somethings i've noticed.

You can't use the < symbol
and if a person's name has spaces, it's given a new line.
also happens with foreign characters, they are given a new line per character.

Linking still doesn't work says 403 forbidden (not sure which file causing that, but most files are 755/777)
Linking however does work on localhost, so i'm not sure if it's a windows to linux issue, or if i have a mod or something conflicting.


Title: Re: SA Chat
Post by: Kindred on February 03, 2015, 09:32:14 AM
1- you can not edit the post after 60 minutes because we had some immature folks abusing that privilege.
2- 403 error suggests that your host has that piece of junk called "mod_security" installed and mis-configured.

Title: Re: SA Chat
Post by: Dumke on February 03, 2015, 01:28:51 PM
Quote from: Kindred on February 03, 2015, 09:32:14 AM
1- you can not edit the post after 60 minutes because we had some immature folks abusing that privilege.
2- 403 error suggests that your host has that piece of junk called "mod_security" installed and mis-configured.

1.Annoying but understandable.
2. Thank you for the heads up, that issue has been resolved now.


Also another suggestion for the chat bar, would it be possible to add a scroll bar to the whose online list?
Title: Re: SA Chat
Post by: sri01 on February 05, 2015, 11:49:02 PM
I have installed SA chat latest version with smf 2.1 beta. I don't see any chat bar but when I login in with admin account I see  SAchat tab with configuration details and other error logs.
the error log shows a long list saying .... undefined function called .....

Also I have tried the installation with smf 2.0.9. with same error issues.

Please help me how to proceed further ...

Thanks in advance.
Sri
Title: Re: SA Chat
Post by: SA™ on February 06, 2015, 02:26:16 AM
the mod here does not work with smf 2.1  try this one here for 2.1

http://samods.github.io/SAChatBar/
Title: Re: SA Chat
Post by: sri01 on February 06, 2015, 02:18:32 PM
tried installation as said, but chat bar didn't show at the bottom however sap chat showed up under admin tab.
the below is the log info :

98d0bc8d9cfbf2b9935f0c531fce30b6
Type of error: General
2: call_user_func_array() expects parameter 1 to be a valid callback, no array or string given

Please advice

Thanks,
Sri
Title: Re: SA Chat
Post by: Deprecated on February 08, 2015, 07:45:49 PM
Installed on clean 2.0.9 and only observable behavior was a bar at the bottom of the forum. Clicking things didn't do anything useful.

Bzzzzzzzzztttttttt.......... Another one bites the dust.
Title: Re: SA Chat
Post by: Kindred on February 08, 2015, 08:38:56 PM
Works fine for me on 2.0.9... I have had it installed and working for months...
Title: Re: SA Chat
Post by: Deprecated on February 08, 2015, 09:40:07 PM
It works fine for me too except the chat window holds about 10 lines of text. IMO a reasonable chat box should have at least 30 lines or so, or otherwise you lose the context of the conversation particularly if 4-5 people are in chat.

My needs are small, I don't care if it doesn't look great or work great, it just has to be useable. I'm working on other projects including an open sourse FF add-on, working 10-12 hours a day 7 days a week (I'm retired) and I don't have the time to go dig into SMF or the theme CSS to figure out how to make this work.

I installed it on a 2.0.9 forum that I created no more than 30 minutes before trying this mod, and my test system was as virgin as they come. I changed nothing from default settings you get with the full package installation, just hooked it up to the MySQL database, got the forum up and running, and installed this mod.

I'll send you a screen shot tomorrow if you don't believe me. The chat box shows about 10-12 lines.

Thanks for taking an interest Kindred. I've known you a long time. Since my days of blitzing mod packages. :)
Title: Re: SA Chat
Post by: Kindred on February 08, 2015, 10:37:05 PM
10-12 lines is about right...   This is more like a personal chat than a typical shout box...

But SA is pretty responsive to requests in this thread...
Title: Re: SA Chat
Post by: SA™ on February 09, 2015, 09:56:08 AM
Quote from: Deprecated on February 08, 2015, 09:40:07 PM
It works fine for me too except the chat window holds about 10 lines of text. IMO a reasonable chat box should have at least 30 lines or so, or otherwise you lose the context of the conversation particularly if 4-5 people are in chat.

My needs are small, I don't care if it doesn't look great or work great, it just has to be useable. I'm working on other projects including an open sourse FF add-on, working 10-12 hours a day 7 days a week (I'm retired) and I don't have the time to go dig into SMF or the theme CSS to figure out how to make this work.

I installed it on a 2.0.9 forum that I created no more than 30 minutes before trying this mod, and my test system was as virgin as they come. I changed nothing from default settings you get with the full package installation, just hooked it up to the MySQL database, got the forum up and running, and installed this mod.

I'll send you a screen shot tomorrow if you don't believe me. The chat box shows about 10-12 lines.

Thanks for taking an interest Kindred. I've known you a long time. Since my days of blitzing mod packages. :)

do you mean when your typing in the chat box? is this group chat or private if it is group chat im not fixing that because i have recoded that part for the next few realses
Title: Re: SA Chat
Post by: Deprecated on February 09, 2015, 11:36:58 PM
I mean group chat. I didn't even know it had a private chat.

I can understand you not fixing things. I've got maybe 2 dozen mods I don't want to chase 2.0.l10, 2.0.11, 2.0.12, etc. I think I'll just wait until 2.1 comes out and fix them all then.

I'm working on another open source project plus several more projects, and I just now got around to visiting SMF now that I've beenn on the job for about 14 hours. Yeah sure I have time to take another several hours to fix all my mods for SMF 2.0.9. I don't need sleep, all I need is drugs. (not)

The sad thing is that there isn't any group chat mod that is compatible with the current 2.0.9 release, so I guess my 2.0.9 forum will just have to do without a chat.
Title: Re: SA Chat
Post by: karavan2 on February 10, 2015, 02:01:44 AM
Quote from: Deprecated on February 09, 2015, 11:36:58 PMThe sad thing is that there isn't any group chat mod that is compatible with the current 2.0.9 release, so I guess my 2.0.9 forum will just have to do without a chat.
Have a good chat SMFPacks Shoutbox but the author Nibogo http://www.simplemachines.org/community/index.php?action=profile;u=126412 deleted it. He had a free version, ask him to drugs, it may allow you to use the old free version or it will give you a E-mail.  But it is necessary to ask him, very sorry that his fashion now there is no free version of access (
Title: Re: SA Chat
Post by: SA™ on February 10, 2015, 11:33:46 AM
Quote from: Deprecated on February 09, 2015, 11:36:58 PM
I mean group chat. I didn't even know it had a private chat.

I can understand you not fixing things. I've got maybe 2 dozen mods I don't want to chase 2.0.l10, 2.0.11, 2.0.12, etc. I think I'll just wait until 2.1 comes out and fix them all then.

I'm working on another open source project plus several more projects, and I just now got around to visiting SMF now that I've beenn on the job for about 14 hours. Yeah sure I have time to take another several hours to fix all my mods for SMF 2.0.9. I don't need sleep, all I need is drugs. (not)

The sad thing is that there isn't any group chat mod that is compatible with the current 2.0.9 release, so I guess my 2.0.9 forum will just have to do without a chat.

yeah this mod was origanly just for private chat the group part is very new and buggy tis why it is getting reworked im not happy with it right now :(
the plan is to be able to add users to the private chat kinda like facebook just need to figar this part out
Title: Re: SA Chat
Post by: Deprecated on February 10, 2015, 12:45:35 PM
Quote from: karavan2 on February 10, 2015, 02:01:44 AM
Quote from: Deprecated on February 09, 2015, 11:36:58 PMThe sad thing is that there isn't any group chat mod that is compatible with the current 2.0.9 release, so I guess my 2.0.9 forum will just have to do without a chat.
Have a good chat SMFPacks Shoutbox but the author Nibogo http://www.simplemachines.org/community/index.php?action=profile;u=126412 (http://www.simplemachines.org/community/index.php?action=profile;u=126412) deleted it. He had a free version, ask him to drugs, it may allow you to use the old free version or it will give you a E-mail.  But it is necessary to ask him, very sorry that his fashion now there is no free version of access (

Thanks for the suggestion. It's just more effort than I'm interested in. I have a new partner/mentor and we're running vBulletin on several forums, I needed a small private forum and I can install SMF in less than 30 minutes, so I just went with the easy way. My partner/mentor said we needed a chat box on the private forum, but it just isn't worth the effort if I can't just download and install off the SMF mod site.

You see there is a basic problem with mod package authoring, and I should know -- I've got a couple dozen on the mod site. SMF is free, so everybody figures the mod packages are free. Technically that's true but mod package authors ask for donations to encourage them to keep their mod packages up to date, to support them, to upgrade them, and to write new ones. But the simple fact is probably 1 user in 10,000 makes any donation to the mod package author. I've spent maybe 2,000 hours writing mod packages and supporting them, and I've received maybe a bit over $200 in donations. That works out to maybe 10 cents/hour, probably less. I have about 1 million downloads of my mod packages.

I've really enjoyed writing my mod packages, and I have some killer ideas for new mod packages, but I have many ways of making significant money using my programming skills in other projects, and the trivial donations discourage mod package authors from writing new ones or supporting and updating old ones. If mod package users were more gracious in their donations it would encourage more attention from the authors.

That's probably why so many mod packages go unsupported and un-updated. IMO it's why we don't have a really super fantastic chat box mod that is 2.0.9 certified. I remember a few years ago one of them was on the top 10 most downloaded list. Forgot which one.

I'm writing a new mod package right now -- because I need it on my forum. I think I'll probably submit it anyway, and if it isn't too much a PITA to get past the mod squad it will be available to the public. And yes, still asking for a few pennies if you use it and like it.

That is the real problem with mod packages, with mod package support, and why there isn't any super hot chat mod for 2.0.9, because the mod package users don't support mod package authors with a little financial appreciation. I'm sure it's obvious few people are willing to work for 5-10 cents an hour and writing mod packages is not easy work.

Well I'll get off the soap box / rant mode. But folks, you should go down the line of all the mod packages you have installed and enjoy on your forum, and give each author who asks for donations a buck or two.
Title: Re: SA Chat
Post by: Deprecated on February 10, 2015, 01:10:37 PM
Quote from: SA™ on February 10, 2015, 11:33:46 AMyeah this mod was origanly just for private chat the group part is very new and buggy tis why it is getting reworked im not happy with it right now :(
the plan is to be able to add users to the private chat kinda like facebook just need to figar this part out

Well there's the package author himself/herself! :) I didn't look at your post before replying to the previous one. It would be interesting if you have any comments on my rant above. I can't speak for any mod package authors but myself, but I would be surprised if many don't agree with me.

---------

A bit of feedback and advice for you my friend:

My buddy runs a very popular vBulletin forum, over 80K members, 700K+ topics, 6+ million posts, usuall7 usually a few hundred members online. I'm a supermod there. We have a great vB chat box -- I think vB mods are all sold. not for free -- and the chat works great. It shows maybe 2 dozen lines of chat unless people use a lot of smileys. You can even click the icon next to your comment and edit it.

A few months ago we added a private chat mod -- not related to the main mod -- and it lasted only a few days because with so many members your private chat just kept getting requests from members you never heard of trying to contact you for a private chat. So members complained about it we deleted it, a private chat with a means to contact somebody not in the chat box does not work on a large forum. Of course there are technical ways you might address that.

As a veteran mod package author my advice to you is to make your chat box the very best it can be, and forget about the private chat for a while. That will make it the job of making a really good chat box much easier by not trying to do the private thing at the same time. If you get it good enough I guarantee your mod will be on the top 10 list at least for a time.

Then later, if I were you, I would write an additional mod package that integrates with your main chat mod. Make your big project into two smaller projects. If necessary to integrate them, you can update the chat box with some hooks, and design the private chat to grab the hooks, and IMO should only work when somebody is signed into chat.

By the way we have our chat box at the top of our main page (but not in any categories or boards) and can also flip to a full page chat mode. The vB chat box really looks beautiful and it works great, particularly on large boards. Ours is constantly active when people in EU and US are in their awake hours.

So I hope this advice is helpful. At least it will give you something to think about. And good luck getting donations.
Title: Re: SA Chat
Post by: SA™ on February 10, 2015, 01:30:18 PM
QuoteMy buddy runs a very popular vBulletin forum, over 80K members, 700K+ topics, 6+ million posts, usuall7 usually a few hundred members online. I'm a supermod there. We have a great vB chat box -- I think vB mods are all sold. not for free -- and the chat works great. It shows maybe 2 dozen lines of chat unless people use a lot of smileys. You can even click the icon next to your comment and edit it.

A few months ago we added a private chat mod -- not related to the main mod -- and it lasted only a few days because with so many members your private chat just kept getting requests from members you never heard of trying to contact you for a private chat. So members complained about it we deleted it, a private chat with a means to contact somebody not in the chat box does not work on a large forum. Of course there are technical ways you might address that.

As a veteran mod package author my advice to you is to make your chat box the very best it can be, and forget about the private chat for a while. That will make it the job of making a really good chat box much easier by not trying to do the private thing at the same time. If you get it good enough I guarantee your mod will be on the top 10 list at least for a time.

Then later, if I were you, I would write an additional mod package that integrates with your main chat mod. Make your big project into two smaller projects. If necessary to integrate them, you can update the chat box with some hooks, and design the private chat to grab the hooks, and IMO should only work when somebody is signed into chat.

By the way we have our chat box at the top of our main page (but not in any categories or boards) and can also flip to a full page chat mode. The vB chat box really looks beautiful and it works great, particularly on large boards. Ours is constantly active when people in EU and US are in their awake hours.

So I hope this advice is helpful. At least it will give you something to think about. And good luck getting donations.

now theres an idea or two thanks i like the idea of breaking this up a bit could work out better for me in the long run

QuoteWell there's the package author himself/herself! :) I didn't look at your post before replying to the previous one. It would be interesting if you have any comments on my rant above. I can't speak for any mod package authors but myself, but I would be surprised if many don't agree with me.

i totaly agree with you there it does get a bit tedious  doing all this coding for nothing. but ive never realy asked for donations and ive only ever had 1 or 2 donations one of which realy was a massive surprise
Title: Re: SA Chat
Post by: Deprecated on February 10, 2015, 03:11:47 PM
I don't think I'm being greedy or selfish asking for donations, to encourage me to support and update my mods and write more. It's just that I have so many software projects that will make me money that it is too costly on my time to spend it on SMF mods that get no appreciation other than verbal.

It's sad too. I enjoy writing SMF mods, and I have at least a half dozen killer ideas in my head, mods that would blow you away, but I'd have to stay awake 24 hours a day to write all the code I have to write and the mods too.

I'd give my ideas away but I'm toying with the idea of coming back and jumping on the top 10 mod authors list again. Maybe by the time 2.1 comes out I will. All my current projects have an end goal, and once they go into production online they'll just send me advertising money with almost no attention at all.

I'm just a nut for coding, did a whole career as hardware/software developer, and now I'm retired I just can't stop coding. It's endlessly fascinating for me. It's such a thrill to have an idea and then make it work, using skills that very few people have. Plus, there's a scientific study that says if you use your brain intensively you are much more likely to avoid senility and dementia.

If I run out of projects I'll start submitting some of my smaller killer ideas and see how it goes.
Title: Re: SA Chat
Post by: Early Bird on February 18, 2015, 07:45:36 AM
Quote from: Dumke480 on January 24, 2015, 01:38:57 PM
Quote from: SA™ on January 24, 2015, 01:12:47 PM
Only error in my error log.

INFO

Undefined index: permissions

File: /home2/user1/public_html/forums/sachat/functions.php
Line: 1014


WARN

in_array() expects parameter 2 to be array, null given

File: /home2/user1/public_html/forums/sachat/functions.php
Line: 1014


Hi everyone,

Excuse my English I'am Dutch.
Sa chat is a very fine mod. It works great.
The only failure I have is the same as above.
I use SMF 2.09
Is there a solution? I didn't find it on the intire www.
Please help.

With kind regards,
Wil
Title: Re: SA Chat
Post by: SA™ on February 18, 2015, 12:44:29 PM
hi please try the package here
http://samods.github.io/SAChatBar/

that should be fixed
Title: Re: SA Chat
Post by: Early Bird on February 19, 2015, 06:41:48 AM
Thank you for the quick response!
I will try it this weekend.
Title: Re: SA Chat
Post by: GenesisMUGEN on February 19, 2015, 02:12:48 PM
I kinda like this mod. I was gonna ask about group chat ( i see code for it) and you mention it's buggy but i still want to try it if that's possible?

If not then nevermind lol


Nevermind, figure out you can just turn it on >_> didn't work sadly
Title: Re: SA Chat
Post by: Early Bird on February 20, 2015, 08:35:00 AM
Hi  SA™,

Thank you very much.
It's working!!!!!  :D  ;)

With kind regards,
Wil (Netherlands)
Title: Re: SA Chat
Post by: Drlecteur on February 21, 2015, 07:45:59 PM
Thanks for the nex package, really amazing design and feature.

but it look like i have some issue:
In the shoutbox (global chat), msg usually make more than >10sec to be displayed on the screen, altrough the sound is instant played.
When there are only a couple of us talking, it's ok (but annoying). But if we are more, it drives us mad
Sometime, next msg send is displayed before the one you just write, and you have to refresh for the msg being displayed on your screen.

Could i provide you some useful file or logs ?
Title: Re: SA Chat
Post by: giuseppeb1986 on March 07, 2015, 08:37:39 PM
Hi SA  :)
Thanks for your mod, it's very beautiful!!!  :)

I'm not very experienced and I would like to change the size of the chat because it's very small.
How can I do?  :-[
Can you tell me exactly which line I have to change?  ???
Thanks so much
Title: Re: SA Chat
Post by: josx2 on March 18, 2015, 04:36:17 PM
Hey SA..this is a really great mod!  Thx for putting it together!

question for ya:  back in May 2014, you made this post about adding a button to each profile to start a chat:  http://www.simplemachines.org/community/index.php?topic=391961.msg3700084;topicseen#msg3700084

could you elaborate on doing that a little more for me?  I went into profile.template.php & added that line of href code you specified.  But when I click on the link when viewing a memeber's profile, nothing happens. 

I'd like to do 2 things:
1) enable intiating a chat by clicking a button in a members's profile pane that shows alongside their posts (display.template.php)
2) enable intiating a chat while viewing their profile info (profile.template.php)

Thx in advance!
Title: Re: SA Chat
Post by: josx2 on March 18, 2015, 10:05:06 PM
figured it out ;)

for display.template.php, the line of code to use is:
echo '<a  href="javascript:void(0)" onclick="javascript:chatTo(',$message['member']['id'],');return false;">chat</a>';
when placing a chat link in the profile pane for posts

gonna toy w/ profile.template.php, but i'm sure it'll be the same
Title: Re: SA Chat
Post by: Kindred on March 18, 2015, 10:26:41 PM
Well, it won't be exactly the same, since message does not exist as a defined variable in profile....
Title: Re: SA Chat
Post by: josx2 on March 19, 2015, 01:13:39 AM
correct.  The line of code I used in the profile summary for a user is:
echo '<li><a  href="javascript:void(0)" onclick="javascript:chatTo(',$context['member']['id'],');return false;"><img src="' . $settings['images_url'] . '/im_off.gif" alt="Start Chat" title="Start Chat">Start Chat</a></l>';
I've got it placed right next to the "send Email" icon in the profile

So for next, nothign to do w/ this, but i've got  repeating error logs in the SA Chat log
INFO   Undefined index: permissions       File: /home3/jimophot/public_html/dev/sachat/Sources/Subs.php   Line: 63
WARN   array_diff(): Argument #1 is not an array   File: /home3/jimophot/public_html/dev/sachat/Sources/Subs.php   Line: 63

Every time the forum loads a page, SA Chat generates this pair of error messages a total of 3 times  (6 errors every time the page loads - 3 INFO & 3 WARN).

Any ideas?
Title: Re: SA Chat
Post by: josx2 on March 19, 2015, 01:21:25 AM
okies....so the # of pairs of error logs being generated apparently varies.  I had 6 error logs originally (I had cleared the logs prior to my last post).  When I logged into the forum as my test account and then refreshed the sachat error log under my admin account, the logs jumped from 6 logs to 4 pages @ 10 pairs/page.

There was only 3 page loads performed after i saw the 6 error logs
1. the page load done to refresh & show the 6 error logs
2. Clicking the "home" link in the window in which I was logged in as my test user
3. The page load to refresh the error logs yet again.

~20 pairs of logs (~40 in total) generated by those 3 page loads
Title: Re: SA Chat
Post by: josx2 on March 19, 2015, 03:07:37 AM
ehh....i'm gonna disregard the above logs.  I checked the box for "enable group permissions" on my development server...but when I implemented it on my actual server, I left that option unchecked as I really dont have a need for group permissions.  No error logs being generated on my actual server
Title: Re: SA Chat
Post by: Doggy on March 22, 2015, 06:34:37 AM
Some help?
Quote from: Doggy on March 22, 2015, 05:54:13 AM
Hey, I hope I posted this where it should be, I just instaled SA Chat Mod for 2.0.9 the current version I am using, but after i installed it I can't..find the chat no actions bar or nothing, is there anything I should do? I am trying this for over an hour.
Thank you
Title: Re: SA Chat
Post by: josx2 on March 22, 2015, 09:32:39 AM
Go under the maintenance section for sa chat in your admin panel and click 'fix bar'
Title: Re: SA Chat
Post by: Doggy on March 22, 2015, 09:57:50 AM
Thank you!
Title: Re: SA Chat
Post by: KTN on March 31, 2015, 04:38:33 AM
I got following error in the error log too. I installed the SAchatbar 0.1.5 to SMF2.0.9.


INFO

   Undefined index: permissions

   File: /home/xxxxxxxx/public_html/sachat/functions.php
Line: 1014

   
WARN

   in_array() expects parameter 2 to be array, null given

   File: /home/xxxxxxxx/public_html/sachat/functions.php
Line: 1014
Title: Re: SA Chat
Post by: SA™ on March 31, 2015, 04:13:15 PM
do you have group permission enabled?
Title: Re: SA Chat
Post by: KTN on April 03, 2015, 01:59:04 AM
no I don't have group permission enable. I did permission thing from member group permission. But I took off the mod because my cpu usage was showing red ( almost 100%) on cpanel and my site loading was slow down too.
Title: Re: SA Chat
Post by: moyack on April 17, 2015, 09:49:07 AM
Hi:

First of all, I want to say it's a great mod for SMF forums, it looks nice and integrated to the forum style. One question, is there a way to check all the message posted in the chat?, this to have control of abusssive use of this tool.

BTW, What does the admin button? I press it and it only change a led image to red/green.
Title: Re: SA Chat
Post by: 420Connect.co.uk on April 21, 2015, 05:26:01 AM
Hey SA,

I had this MOD installed a while back but ended up using another one in it's place as I had a few issues with it but I'm taking another look at this and was pleasantly surprised to see you are continuing to develop this! :D

The newest "style" seems a lot better in my opinion - it's a lot cleaner looking and modern although I would get rid of the move-over effects for the links/text personally..

I understand the group/global chat features aren't quite fully coded yet but I'm finding when testing the latest version, even the member to member chat's aren't functioning correctly..

I'm struggling to have the person's chat window appear at all (when I click their name, nothing happens and on the one occasion it opened, my text never displayed although I could hear the sound to signal I had sent something)

Also I noticed if you don't allow for members to have a buddy/ignore list, the link still appears in the chat options popup..
- My 'Fb_style' chat theme also seems to reset itself back to default
- & when using the fb style - should the main chat tabs also turn blue (or just the heading of the popped-out windows)?

I'd really like to convert to using one of these style of chats but I'll stick with what I am using until the latest release is more stable..

I really look forward to using this mod and have some other ideas that could possibly be implemented over time?:

- Paid version with no copyright? (possibly extra features too?)
- "grab" facebook/gmail chat contacts like some other similar chat's do..?
- possibly video/audio chat as part of potential paid version?
Title: Re: SA Chat
Post by: SA™ on April 21, 2015, 12:33:03 PM
QuoteI understand the group/global chat features aren't quite fully coded yet but I'm finding when testing the latest version, even the member to member chat's aren't functioning correctly..
QuoteI'm struggling to have the person's chat window appear at all (when I click their name, nothing happens and on the one occasion it opened, my text never displayed although I could hear the sound to signal I had sent something)

the problems arise from the group chat itself this will be removed in the next version but instead will be a seprate package/adon to this further down the line

Quote
Also I noticed if you don't allow for members to have a buddy/ignore list, the link still appears in the chat options popup..

there is no check :D did not even think of that

Quote- My 'Fb_style' chat theme also seems to reset itself back to default
i know this and know why will be fixed in the next version

Quote- & when using the fb style - should the main chat tabs also turn blue (or just the heading of the popped-out windows)?
should be just the heading
Title: Re: SA Chat
Post by: 420Connect.co.uk on April 21, 2015, 01:53:40 PM
/me excitedly awaits the newest version!  :D

Thanks for the quick reply and clearing up some things I thought might just be something I had done! ..really look forward to what the future holds for this mod!  ;)
Title: Re: SA Chat
Post by: 420Connect.co.uk on April 24, 2015, 12:20:57 PM
Quotethe problems arise from the group chat itself this will be removed in the next version but instead will be a seprate package/adon to this further down the line

Regarding addons for this mod, another suggestion that would be sweeeeet !

If you were able to put together a plugin of some sort ..that would "take over" your current personal messages with the conversations you are having..

Something similar to how Facebook's chat/PM system works.. - I've no idea how hard that would be to put together but imagine it would be quite challenging..

The idea is there anyway!  O:)



Title: Re: SA Chat
Post by: Kindred on April 24, 2015, 01:15:33 PM
That would be much more than an add-on, since the PM system is used throughout the SMF code...  that would have to almost be a separate (and fairly major) mod in and of itself
Title: Re: SA Chat
Post by: debiwebi on April 29, 2015, 01:27:36 PM
Quote from: 420connect.info on April 21, 2015, 05:26:01 AM
Hey SA,

I had this MOD installed a while back but ended up using another one in it's place as I had a few issues with it but I'm taking another look at this and was pleasantly surprised to see you are continuing to develop this! :D

. . .

I'd really like to convert to using one of these style of chats but I'll stick with what I am using until the latest release is more stable..


I've been considering trying out this mod, but reading these messages makes me think twice. 420connect, can you tell me what (working) mod you've been using?

My smf is 2.0.9 and I hardly have any mods installed, so may just try SA Chat anyway and see what happens.
Title: Re: SA Chat
Post by: SA™ on April 29, 2015, 02:36:50 PM
the next version will be more stable cos I'm removing the mess i called group chat this instead will be a separate package or i may write a script that can used in gadgets not sure yet
Title: Re: SA Chat
Post by: debiwebi on April 29, 2015, 03:22:04 PM
Quote from: SA™ on April 29, 2015, 02:36:50 PM
the next version will be more stable 

Must be that pesky other 1%, huh? :)  When do you think the next version will be out?
Title: Re: SA Chat
Post by: SA™ on April 30, 2015, 03:31:26 AM
soon is all i can say for now
Title: Re: SA Chat
Post by: 420Connect.co.uk on April 30, 2015, 01:55:42 PM
Quote from: debiwebi on April 29, 2015, 01:27:36 PM
Quote from: 420connect.info on April 21, 2015, 05:26:01 AM
Hey SA,

I had this MOD installed a while back but ended up using another one in it's place as I had a few issues with it but I'm taking another look at this and was pleasantly surprised to see you are continuing to develop this! :D

. . .

I'd really like to convert to using one of these style of chats but I'll stick with what I am using until the latest release is more stable..


I've been considering trying out this mod, but reading these messages makes me think twice. 420connect, can you tell me what (working) mod you've been using?

My smf is 2.0.9 and I hardly have any mods installed, so may just try SA Chat anyway and see what happens.

At the moment, I'm using Simple Portal's 'shoutbox' as a sort of live chat feature, - It seems to perform as expected with no/very little bugs ..I've tried a few now, but had issues with other similar ones.. I'm looking forward to and planning to use to SA's latest release when it becomes available though. :)
Title: Re: SA Chat
Post by: debiwebi on April 30, 2015, 03:51:05 PM
Quote from: 420connect.info on April 30, 2015, 01:55:42 PM
At the moment, I'm using Simple Portal's 'shoutbox' as a sort of live chat feature, - It seems to perform as expected with no/very little bugs ..I've tried a few now, but had issues with other similar ones.. I'm looking forward to and planning to use to SA's latest release when it becomes available though. :)

Thank you! I'll check that out. BTW I find your forum interesting, being a resident of Colorado. Dispensaries here are beginning to outnumber Starbucks. Oh, the stories I could tell...
Title: Re: SA Chat
Post by: 420Connect.co.uk on May 02, 2015, 09:07:17 AM
Quote from: debiwebi on April 30, 2015, 03:51:05 PM
Quote from: 420connect.info on April 30, 2015, 01:55:42 PM
At the moment, I'm using Simple Portal's 'shoutbox' as a sort of live chat feature, - It seems to perform as expected with no/very little bugs ..I've tried a few now, but had issues with other similar ones.. I'm looking forward to and planning to use to SA's latest release when it becomes available though. :)

Thank you! I'll check that out. BTW I find your forum interesting, being a resident of Colorado. Dispensaries here are beginning to outnumber Starbucks. Oh, the stories I could tell...

You're welcome and  ;D Glad you like my site! - Feel free to join our community and share your stories!

</topic-highjack>
Title: Re: SA Chat
Post by: SA™ on May 07, 2015, 11:40:48 AM
new version added
QuoteFixed issue with cloning the default theme.
Fixed typo in hook function name.
Fixed chatbox scrolling issues.
Removed group chat feature this fixed many other issues with private chat.
User settings are now in the atual chat bar instead of users profile.
Added compat for smf 2.1.
Implemented live members search.
Implemented function for calling images checks custom themes first if not there fallback to the default ones.
Adding chat to pages out side smf no longer reqires &amp;theme=themename in the url this can be used to force same theme for everyone instead.
BBC parser now works a lot better images and youtube videos are also now supported using the img and video tags [WIP].
Updated theme also includes a fb style theme just by modding the css you can still have a full bar version this was not possible before.
The mod now makes no edits to smf files.
Buddy/Ignore list link no longer shows if enable_buddylist is disabled.
Title: Re: SA Chat
Post by: 420Connect.co.uk on May 07, 2015, 02:57:06 PM
Thank you so much for the new release however I'm still finding messages aren't appearing / chats won't always open..

I've got loads of entries in the error log of the chat but some of these could be from old versions if thats possible?



:(

Title: Re: SA Chat
Post by: SA™ on May 07, 2015, 03:36:50 PM
Yes that's a conflict with older versions uninstall the mod then remove the sachat directory from your server and reinstall the newer version
Title: Re: SA Chat
Post by: 420Connect.co.uk on May 07, 2015, 03:49:23 PM
I uninstalled it but there was no chat folder left behind after, so thought it might have been old parts from my db?
.. anyway, I deleted the si2chat tables then reinstalled..

The chat windows now stay open but still wont show the text?

log this time:

Title: Re: SA Chat
Post by: SA™ on May 07, 2015, 03:54:39 PM
my bad for some reason the changes i made there did not sync to git hub :/ will update this right now
Title: Re: SA Chat
Post by: 420Connect.co.uk on May 07, 2015, 04:03:09 PM
ah, I'd grabbed the latest copy from the mod site? - which should I be using?  :o
Title: Re: SA Chat
Post by: SA™ on May 07, 2015, 04:11:42 PM
ok i just fixed those errors again  for some reason these fixes and a few others didnt get pushed to git hub

should be good now new package uploaded here
Title: Re: SA Chat
Post by: 420Connect.co.uk on May 07, 2015, 04:14:39 PM
Most recent version from mod site produces these errors for me, again with no 'shouts' appearing etc.

Title: Re: SA Chat
Post by: SA™ on May 07, 2015, 04:21:47 PM
hmm its safe to say somthing is up im not seeing these errors on local host give me a bit ill look into this
Title: Re: SA Chat
Post by: Dumke on May 07, 2015, 05:50:57 PM
Were you able to fix the issue with usernames with spaces or foreign characters, having a new line?

example.
Title: Re: SA Chat
Post by: SA™ on May 07, 2015, 08:38:27 PM
Quote from: 420connect.info on May 07, 2015, 04:14:39 PM
Most recent version from mod site produces these errors for me, again with no 'shouts' appearing etc.

for this error do you have accesse to your php.ini? do you know if your server has a default timezone set?

QuoteWere you able to fix the issue with usernames with spaces or foreign characters, having a new line?
fixed here
https://github.com/SAMods/SAChatBar

open the css files in both themes and

find
.buddyboxuname {
position: relative;
display: block;
width: 0;
z-index: 1;
left: 31px;
top: 8px;
}


replace with

.buddyboxuname {
position: relative;
display: block;
width: 0;
z-index: 1;
left: 31px;
top: 8px;
width: 80%;
}
Title: Re: SA Chat
Post by: Dumke on May 07, 2015, 08:46:57 PM
Quote from: SA™ on May 07, 2015, 08:38:27 PM
open the css files in both themes and

ah, perfect.
Thanks.
Title: SA Chat errors
Post by: debiwebi on May 11, 2015, 10:14:29 AM
I just installed SA Chat yesterday and see some error messages in the log. I've only been testing it so far and it appears to be working just fine. I have it installed in a test forum plus my live one, and they are both getting the same error messages, repeated over and over.

I guess I should add that my live forum is 2.0.9, the test one is 2.0.10. The live forum has a only few additional plugins (see below), the test one has one additional, SMFPacks_Shoutbox.

Board Notification
dQuoteSelection
Google Analytics Code
Misc Anti Spam
Quick Spoiler
Simple Audio Video
Drafts
LastActive on Memberlist
Title: Re: SA Chat
Post by: SA™ on May 11, 2015, 02:09:17 PM
hmm it shouldent make it that far if there is no member id is set ill run some test later
Title: Re: SA Chat
Post by: SA™ on May 12, 2015, 12:51:16 PM
Quote from: debiwebi on May 11, 2015, 10:14:29 AM
I just installed SA Chat yesterday and see some error messages in the log. I've only been testing it so far and it appears to be working just fine. I have it installed in a test forum plus my live one, and they are both getting the same error messages, repeated over and over.

I guess I should add that my live forum is 2.0.9, the test one is 2.0.10. The live forum has a only few additional plugins (see below), the test one has one additional, SMFPacks_Shoutbox.

Board Notification
dQuoteSelection
Google Analytics Code
Misc Anti Spam
Quick Spoiler
Simple Audio Video
Drafts
LastActive on Memberlist

mod updated fixed those errros
Title: Re: SA Chat
Post by: player.samp on May 12, 2015, 02:03:19 PM
It does not install for other themes?
Title: Re: SA Chat
Post by: SA™ on May 12, 2015, 02:14:24 PM
It uses hooks so yeah it works on any theme
Title: Re: SA Chat
Post by: player.samp on May 12, 2015, 02:31:17 PM
Yes, it works. Thanks.






I couldn't find a way to create a chat group. How to do it? There is a permission of "Allowed to use group chat" and "Allowed to create group chat sessions" but I cannot find these options.






"Allowed to use admin mode" - Admin mode means accessing to the SA Chat on the admin area?






It seems like there is a bug in the time. According to what time zone it works? Forum default?
Title: Re: SA Chat
Post by: SA™ on May 12, 2015, 03:13:35 PM
QuoteI couldn't find a way to create a chat group. How to do it? There is a permission of "Allowed to use group chat" and "Allowed to create group chat sessions" but I cannot find these options.

group chat was removed and will be rewritten soon

Quote"Allowed to use admin mode" - Admin mode means accessing to the SA Chat on the admin area?
left over permission from a previous version it is not used

QuoteIt seems like there is a bug in the time. According to what time zone it works? Forum default?
does your server have a default timezone set? ask your host if you are unsure  cos it will be in the php.ini file if it is not set it will just defualt to uk time zone
you can change the time zone in the chat files sachat/index.php
date_default_timezone_set('GMT');
just change GMT to your time zone
supported time zones are here
http://php.net/manual/en/timezones.php
Title: Re: SA Chat
Post by: player.samp on May 12, 2015, 03:36:10 PM
Thank you.


Great mod.
Title: Re: SA Chat
Post by: debiwebi on May 12, 2015, 09:06:21 PM
Quote from: SA™ on May 12, 2015, 12:51:16 PM
mod updated fixed those errros

I just tested it out and yay!, no errors. Thank you, it's a really nice mod.
Title: Re: SA Chat
Post by: onkarkumar31 on May 13, 2015, 09:44:47 AM
Not working properly in :

1. Desktop site - User Icons are not showing .
2. Mobile site -  clicking on user doesn't open a chat window .
3. Names in language other than english can't be searched .

see at http://forum.spiritualsys.com (http://forum.spiritualsys.com)
Title: Re: SA Chat
Post by: SA™ on May 13, 2015, 12:55:23 PM
Quote. Mobile site -  clicking on user doesn't open a chat window .

it is just not designed to work on mobile devises

QuoteNames in language other than english can't be searched .

ill look into this one
Title: Re: SA Chat
Post by: sunilimon on May 14, 2015, 02:47:31 AM
Congratulations, great redesign!!!
Title: Re: SA Chat
Post by: debiwebi on May 14, 2015, 09:32:05 PM
I had my first lengthy Chat today and ran into some issues. I don't know if they are directly related to the mod, but I wanted to get these on record just in case it happens to someone else.

• The person on the other end (Canada) was experiencing a lag time with his own typing -- he could not see what he was typing in some cases at all.

• While I (in the US) didn't have that same problem, there was a definite lag between the time a message was sent and received. The chime would sound and sometimes it would take 20 seconds for the actual message to appear.

• At one point the dot next to his nickname went red and Chat (1) went to Chat (0). I figured either he logged out or his internet went out. But then I got a message. We went back and forth for a few minutes, his light being red and Chat (0) the entire time. I checked my home page and it only showed me being logged in (using Firefox). I viewed the home page with two more browsers (Chrome & Safari) and they both showed me as the only logged in member. After a few minutes it all went back to normal.

I was on an Apple laptop, he was on a Windows laptop using IE. My site is running SMF 2.0.10.

So... I don't know if that's a Chat issue, or internet or hosting... no errors in the logs.

I don't know if there's a limit on editing time here at SMF, but I will update this post if I can if anything else turns up.

Title: Re: SA Chat
Post by: SA™ on May 14, 2015, 10:20:26 PM
don't forget if you stay on the same page for long enough the user session will expire until they move page or refresh. That would explain the red offline thing cos this mod uses the sessions db table to determen if the user is online
Title: Re: SA Chat
Post by: debiwebi on May 15, 2015, 03:33:41 PM
Quote from: debiwebi on May 14, 2015, 09:32:05 PM
I will update this post if I can if anything else turns up.

I tested SA Chat by myself today, logged in with two different member accounts on two different browsers. The speed of delivery is better, but four messages out of about a dozen or so that I typed never appeared in the recipient's window. It does show in the sender's window. I was using Firefox and Opera. I tried later with Opera and Chrome and it worked fine. So... is Firefox (37.0.2) not compatible for some reason?
Title: Re: SA Chat
Post by: SA™ on May 17, 2015, 05:01:49 PM
it should be compatable is 37.0.2 the latest ff?
Title: Re: SA Chat
Post by: debiwebi on May 17, 2015, 07:07:54 PM
Quote from: SA™ on May 17, 2015, 05:01:49 PM
is 37.0.2 the latest ff?

The right question! I thought it was, but my FF update was downloaded but needed to be restarted to finalize the update. So, now I'm running 38.0.1. I ran a test between FF and Opera and all the messages came through in both directions, so it's working. Thank you!!!
Title: Re: SA Chat
Post by: nesousx on June 01, 2015, 09:31:03 AM
Quote from: SA™ on May 12, 2015, 03:13:35 PM
group chat was removed and will be rewritten soon

Hi,

Thanks for this great addon I just discovered. I am planning to use it on my forum. However, I really hope you can add a group / room chat feature.

I am replacing a custom coded IRC/php module with another chat.. probably yours and I really need the group feature so that my members can all chat together in order to "plan" their actions (online game related forum).
Title: Re: SA Chat
Post by: moyack on June 01, 2015, 10:39:27 AM
Just to bump this question...
Quote from: moyack on April 17, 2015, 09:49:07 AM
One question, is there a way to check all the message posted in the chat?, this to have control of abusssive use of this tool.

BTW, What does the admin button? I press it and it only change a led image to red/green.




BTW...
Quote from: SA™ on May 13, 2015, 12:55:23 PM
Quote. Mobile site -  clicking on user doesn't open a chat window .

it is just not designed to work on mobile devises
CAn you do a guide or suggestions to make it mobile friendly?

Many thanks beforehand...
Title: Re: SA Chat
Post by: SA™ on June 01, 2015, 02:48:41 PM
Quote from: nesousx on June 01, 2015, 09:31:03 AM
Quote from: SA™ on May 12, 2015, 03:13:35 PM
group chat was removed and will be rewritten soon

Hi,

Thanks for this great addon I just discovered. I am planning to use it on my forum. However, I really hope you can add a group / room chat feature.

I am replacing a custom coded IRC/php module with another chat.. probably yours and I really need the group feature so that my members can all chat together in order to "plan" their actions (online game related forum).

group chat will come now the chat has a plugin system spent the last few weeks coding just that
but group chat will come in a few version

QuoteCAn you do a guide or suggestions to make it mobile friendly?

Many thanks beforehand...

there is plans to make it mobile friendly but that is my weekness realy so it may ytake a bit 


Title: Re: SA Chat
Post by: nesousx on June 01, 2015, 03:53:57 PM
Quote from: SA™ on June 01, 2015, 02:48:41 PM
Quote from: nesousx on June 01, 2015, 09:31:03 AM
Quote from: SA™ on May 12, 2015, 03:13:35 PM
group chat was removed and will be rewritten soon

Hi,

Thanks for this great addon I just discovered. I am planning to use it on my forum. However, I really hope you can add a group / room chat feature.

I am replacing a custom coded IRC/php module with another chat.. probably yours and I really need the group feature so that my members can all chat together in order to "plan" their actions (online game related forum).

group chat will come now the chat has a plugin system spent the last few weeks coding just that
but group chat will come in a few version

QuoteCAn you do a guide or suggestions to make it mobile friendly?

Many thanks beforehand...

there is plans to make it mobile friendly but that is my weekness realy so it may ytake a bit

Great to hear about group chat. Is there any "chat with guests" plugin planned too? Would loved this one as well. :)
Title: Re: SA Chat
Post by: SA™ on June 01, 2015, 06:57:39 PM
Quotechat with guests" plugin planned too? Would loved this one as well.

i had no plans on this but that does not mean somone else might not code it plugins make no edits so most things are possible and if it isnt possible it easy to add more hooks into the code ive lost count how many have been added so far :P
Title: Re: SA Chat
Post by: GZ06 on June 09, 2015, 11:42:41 AM
mod installed easy and it works. just need to know if possible to change transparency option?
Title: Re: SA Chat
Post by: villasg on June 09, 2015, 03:12:44 PM
Hi .
Installed without errors in my smf 2.0.10 ( utf8) but do not work .......

In SA Chat Test Page have
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in xxxxxxxxxxxxxxlxx/sachat/Sources/Chat-Subs.php on line 176


Error logs
WARN  Cannot modify header information - headers already sent by (output started at xxxxxxxxx/sachat/Sources/Chat-Subs.php:176)
FATAL Unexpected character in input: '\' (ASCII=92) state=1

Line 176 on Chat-Subs.php  are
$d = new \DateTime('@'.$value.'');




Any idea please ?
Title: Re: SA Chat
Post by: njtweb on June 12, 2015, 01:36:07 PM
Hi, wondering where I'm supposed to find the chat bar. I installed it on "Flatline" theme. No issues I'm aware of, I checked all of the config settings in SMF ACP, but I don't see the chat box bar.

http://www.minorleaguelegends.com/board/

Thanks for any instruction what to look for specifically.
Title: Re: SA Chat
Post by: njtweb on June 12, 2015, 02:53:40 PM
I have 2.0.10 or I guess the latest version SMF. Thank you
Title: Re: SA Chat
Post by: njtweb on June 12, 2015, 05:05:09 PM
WTF happened to the guy who responded?
Title: Re: SA Chat
Post by: Shambles on June 12, 2015, 05:14:53 PM
Quote from: njtweb
WTF happened to the guy who responded?

He was giving you a helpful hint that deleting the SMF Copyright from the foot of your forum would do you no favours.

Now you've taken the hint and reinstated it, his 'helpful hint' has been removed ;)
Title: Re: SA Chat
Post by: njtweb on June 12, 2015, 05:24:58 PM
Ok, I put it back because he said it was missing. I had it commented out but removed the edit so he could see it. Am I not allowed to do that?
Title: Re: SA Chat
Post by: Kindred on June 12, 2015, 05:52:08 PM
you are "allowed" to remove the copyright statement - legally.

However, by doing so, you are essentially stating that you do not need any assistance from Simple Machines and as such, we have chosen not to provide support to individuals who remove the copyright.
Title: Re: SA Chat
Post by: villasg on June 13, 2015, 02:04:52 AM
Any idea for my error ?

Quote from: villasg on June 09, 2015, 03:12:44 PM
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in xxxxxxxxxxxxxxlxx/sachat/Sources/Chat-Subs.php on line 176
WARN  Cannot modify header information - headers already sent by (output started at xxxxxxxxx/sachat/Sources/Chat-Subs.php:176)
FATAL Unexpected character in input: '\' (ASCII=92) state=1
Title: Re: SA Chat
Post by: njtweb on June 13, 2015, 06:58:51 AM
Quote from: Kindred on June 12, 2015, 05:52:08 PM
you are "allowed" to remove the copyright statement - legally.

However, by doing so, you are essentially stating that you do not need any assistance from Simple Machines and as such, we have chosen not to provide support to individuals who remove the copyright.

Ok, guess I'll remove the plugin then. This was a waste of time. I put the copyright back and still get no instruction.
Title: Re: SA Chat
Post by: SA™ on June 13, 2015, 03:40:13 PM
Quote from: villasg on June 13, 2015, 02:04:52 AM
Any idea for my error ?

Quote from: villasg on June 09, 2015, 03:12:44 PM
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in xxxxxxxxxxxxxxlxx/sachat/Sources/Chat-Subs.php on line 176
WARN  Cannot modify header information - headers already sent by (output started at xxxxxxxxx/sachat/Sources/Chat-Subs.php:176)
FATAL Unexpected character in input: '\' (ASCII=92) state=1

thanks for the reports ill try to fix this this week have a new version ready in testing

Quote from: njtweb on June 12, 2015, 01:36:07 PM
Hi, wondering where I'm supposed to find the chat bar. I installed it on "Flatline" theme. No issues I'm aware of, I checked all of the config settings in SMF ACP, but I don't see the chat box bar.

http://www.minorleaguelegends.com/board/

Thanks for any instruction what to look for specifically.

if you see no bar after install you just need to goto admin/sachat/maintenance/fix bar
it has been said many many times in this thread
Title: Re: SA Chat
Post by: Burt on June 21, 2015, 08:13:39 AM
Hello there Sa™.. Thank you for working on this mod, much appreciated.


I installed and everything works fine on my SMF 2.0.10. Everything but one thing.  ;D


If I leave the option "Enable Group Permission" on (as ticked on) nobody get to see the chat bar. And Yes, I did set the permission right, but only the admin get to see the bar unless I unchecked the option mentioned above... Am I doing something wrong? Is it how is supposed to work. I mean, is the option to use Group Permission suppose to work or it has been removed? Also if the admin send a chat to a member, then he get to see the chat box where you can type, but still no chat bar...


Thank you


Burt
Title: Re: SA Chat
Post by: Ninja ZX-10RR on July 05, 2015, 12:30:46 PM
I feel sorry about this but I need to publish it since it's not really a security issue, but it's definitely an extremely serious mod issue.

I had installed the mod a lot of time ago, supported it and even translated it. Now and only now I had time to do some serious testing. What I discovered from my tests is that every 11 hours the sachat mod clogs the server entirely by increasing the I/O usage to my limit (I am on a premium hosting, so it's above 1,5 MBps) and even the entry processes raise at least by 4.
The old version nearly had my account being banned by server admins for how much resource-heavy it used to be. I do NOT have experimental cache enabled, FYI.
All of this has been repeatedly tested and needs to be reported (even if I really dislike posting here it needs to be done).

Also, on another note, a quote from my server administrator.

Quote from: Avalon Administrator
Due to the high server resources unnecessarily being used by this mod, especially I/O issues and Entry Process issues that every 11 hours, spikes to 75% of what should, I think this mod should be removed from the SMF mod site, until it gets fully fixed.
As a server administrator, I have to make this call...
SA Chat mod for SMF, is hereby banned from Avalon Web Hosting, until they can prove it is fixed, and not going to stress servers.
If I see any account using it, the account will be suspended, until the owner agrees to remove the mod.

Avalon Administrator
http://www.avalonwh.com

Since I removed the mod I had FLAT line on all resources being used, even if I had no users on the site, so don't claim it was due to users spamming in chat or whatever... Nobody was using it and the heartbeat is above 30 seconds.
Do note, these tests were run on multiple smf installs on different servers.

Best regards, really hope I won't need to post ever again.

P.S.: sorry but I won't reply, no need to, either.
Title: Re: SA Chat
Post by: Niko_Bellic on July 05, 2015, 12:59:37 PM
Yes, I must agree with the above post.
My account on GoDaddy got suspended, due to the issues of this mod.
I'm now on the lookout for a replacement.
Title: Re: SA Chat
Post by: Kindred on July 05, 2015, 10:53:35 PM
Well, of course...   Any chat mod is going to drastically increase the server resource usage.   They are, overall, a bad option...
Title: Re: SA Chat
Post by: Niko_Bellic on July 06, 2015, 01:19:02 AM
Well, excuse me if I'm out of place, but other forum software and other CMS software, seems to have them, and not be this heavy.
This mod is really not fit for anyone to download and use. I'm not too certain this would be considered a security report issue, but I do know it is a server issue.
I am lucky I got things cleared up, and got my account reactivated. Otherwise, I'd be inclined to seek repayment from the mod maker, for my money lost on my hosting.
Title: Re: SA Chat
Post by: Suki on July 06, 2015, 10:35:59 AM
You can have a shoutbox/chat installed with no issues.

The issue comes from how you set up said chat, if you have it to make request every second then yes, it will mess up your server no doubt about it.

The mod by itself CANNOT auto-generate request to your server, it needs someone/something else to do it (this is the nature of PHP itself), meaning the mod alone CANNOT take down your server unless YOU told it to do it.

The mod does what it was told to do, if you set up the mod to autorefresh every second then yes, expect a high increase in your server resources.

You are basically complained about something you told the mod to do, an analogy would be something like having a dog and them complaining about your dog being a dog...

The PHP/Chat combination just doesn't fit together, specially in a shared hosting. PHP by its own nature cannot realistically perform real time conversations in an efficient way.

So either you configure your chat to not get auto-refreshed every x seconds or find an alternative thats suitable for realtime conversations.
Title: Re: SA Chat
Post by: Kindred on July 06, 2015, 10:44:18 AM
Additionally, please note:


Although our best mod authors do endeavor to support their mods:
All mods are provided AS IS and the admin/user accepts all the risks of installing said mod.
The mod authors bear NO responsibility, monetary or otherwise for "damage" to a site or downtime.


(in other words, you installed a mod which took down your site?   That is not the fault of the mod author and you have no claim to "seek repayment" from the author of an open source and free mod.)
Title: Re: SA Chat
Post by: njtweb on July 06, 2015, 11:02:04 AM
Quote from: NikoBellic on July 06, 2015, 01:19:02 AM
Well, excuse me if I'm out of place, but other forum software and other CMS software, seems to have them, and not be this heavy.
This mod is really not fit for anyone to download and use. I'm not too certain this would be considered a security report issue, but I do know it is a server issue.
I am lucky I got things cleared up, and got my account reactivated. Otherwise, I'd be inclined to seek repayment from the mod maker, for my money lost on my hosting.

That's funny, you're using a free script and free plugins at your own risk.
Title: Re: SA Chat
Post by: Niko_Bellic on July 06, 2015, 01:30:42 PM
Quote from: Suki on July 06, 2015, 10:35:59 AM
The mod does what it was told to do, if you set up the mod to autorefresh every second then yes, expect a high increase in your server resources.

You are basically complained about something you told the mod to do, an analogy would be something like having a dog and them complaining about your dog being a dog...

I'm sorry, but here, you are mistaken.
I did not set it to auto refresh every second.
In fact, default settings is set for 30 seconds, and I had not touched that.
However, the auto refresh is not what is causing the huge spike every 11 hours, that has been mentioned.
Title: Re: SA Chat
Post by: Suki on July 06, 2015, 01:41:36 PM
It was only a reference, it does not matter if you set it up to 1, 30 or 120 seconds.  Thats no the point. The point is that any number of substantial request to your server is going to have an effect.

You haven't provide more data so I can only speculate and giving you aprox data.

You say you have the mod at 30 seconds, thats 2 per minute, 120 per hour.
Lets assume you have anything between 10 and 15 users at any given time during a one hour period.

10 users will generate 20 request per minute.
15 users will generate 30 request per minute.

Let us assume those 10 to 15 users, each visits your site an average of 2 times per hour.

20 request per minute per 2 times every hour will give you 40 request per hour.
30 request per minute per 2 times every hour will give you 60 request per hour.


Now, these are pretty low numbers and as you can see, the number of request can only grow exponentially.  Kinda like "the butterfly effect".  You might think its relatively harmless to set your chat to 30 seconds refresh but in the end those 30 seconds will be turned into hundreds of requests to your server from this mod only, I'm not even counting your forum's regular server request.


So, it is futile to say "but I'm only setting up to 30 seconds".
Title: Re: SA Chat
Post by: Niko_Bellic on July 06, 2015, 04:32:28 PM
Lets say, there was only at max, 2 users that would have been logged in at any given time.
I'm not too certain how the mod behaves, on the checking for members being online, if that's a part of the same 30 second autor refresh or uses the SMF online function.
The chat bar has no effect from guests. Also, like I said, I did not set it to 30 seconds, it came default that way.

But, the main point is, that may cause some usage spikes, especially with the I/O, but it does not explain the huge spike in the Entry Processes every 11 hours.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on July 06, 2015, 06:50:39 PM
Same. Had spikes with 0 users logged and heartbeat set to 30 seconds. Sorry but there is no way that this can be considered "normal", I had 3/4 users chatting with no issues and then I/O spikes with 0 users logged (nothing in raw access logs other than multiple non-sense requests from sachat at the same time, 10/20 GET actions to do nothing, with nobody logged in, causing the spikes).
And when uninstalled the resources got to flat line and running smooth since then. My apologies if this wasn't clear enough.

Regards
Title: Re: SA Chat
Post by: Suki on July 07, 2015, 09:19:24 AM
I'm sorry but it kinda hard to believe what you are saying.  PHP cannot execute itself, it will always need something/someone who will trigger a request to the server, always, thats how PHP works, if there is no requests at all, PHP won't be executed.

logged in users are not the only ones who can trigger server requests, bots and guest can do so too.

If the mod shows to everyone info about people online or recently logged in or some other info, that can cause request and queries to the server too.

Again, it really depends on a bunch of factors, from your configuration to the number of request you are getting during x period of time.

If the mod has an option to not show info to guest then use that, whatever you can do to avoid unnecessary requests will help.
Title: Re: SA Chat
Post by: Niko_Bellic on July 07, 2015, 07:36:10 PM
Well, Suki, it's happening. Whether or not you believe it, it is.
Guests can not trigger the server requests for this mod, as they are unable to use it.
This mod is set to members only.

As stated before, as well as just now: Guests can not use this, as it's members only. I am unaware if can even set to allow guest, but if can, I would never use that feature, myself. That's just asking for spammers to open chats with people... LOL
Title: Re: SA Chat
Post by: Kindred on July 08, 2015, 12:08:28 AM
I also fail to believe that statement...
Title: Re: SA Chat
Post by: Niko_Bellic on July 08, 2015, 09:25:17 AM
You can believe what you want to, or not. Does not matter to me.
I know what I changed for settings, and what I did not.
I know what I saw in my server resource usage, and the huge spikes every 11 hours.
So, if you care not to believe, then that's on you. I have stated what happens, and how it was set, and that's that.
Title: Re: SA Chat
Post by: Suki on July 08, 2015, 09:38:56 AM
Quote from: Niko_Bellic on July 07, 2015, 07:36:10 PM
Well, Suki, it's happening. Whether or not you believe it, it is.
Guests can not trigger the server requests for this mod, as they are unable to use it.
This mod is set to members only.

You are still not listening to me. PHP cannot execute itself, there is no PHP script out there that can auto execute itself. Not this mod, not SMF not any other forum software based on PHP not any other generic PHP script.

Something NEEDS to trigger all those server request. Its not a matter of believing, its a fact.

You haven't provide any data, you haven't provide any access logs, it will be pretty difficult to determinate whats the cause of those pikes without any data from you.


Quote from: Niko_Bellic on July 07, 2015, 07:36:10 PM

As stated before, as well as just now: Guests can not use this, as it's members only. I am unaware if can even set to allow guest, but if can, I would never use that feature, myself. That's just asking for spammers to open chats with people... LOL


Ugh, no... thats NOT what I meant....  a chat has more actions than simply posting a message an show it back.  What I meant is that if this chat SHOWS info to guest, info such as the number of people chatting or other kind of info not really directing to posting a message, it will generate server requests and thus trigger those pikes.....

That was only a speculation though, and I can keep on speculating unless you provide some actual info and data.


So how about you quit been so dense about this and start acting helpful towards the people who are trying to actually help you?
Title: Re: SA Chat
Post by: Niko_Bellic on July 08, 2015, 11:29:57 AM
Well, I for one, already stated the answer to your "if this chat SHOWS info to guest" as in it was set not to show for guests. As you even quoted!
If guests can not even see the bar, how are they going to see the number of people chatting?

Also, as I clearly stated before:

Quote from: Niko_Bellic on July 06, 2015, 04:32:28 PM
Lets say, there was only at max, 2 users that would have been logged in at any given time.

That means, even if guests, which max I ever had at one time, is 4, could see this, it would not account for the usage.

So, before you start throwing comments about being dense, look in the mirror!
No, I don't have the mod installed anymore, and the logs got replaced by newer ones without it.
With the GoDaddy cPanel, I'm unable to find the old ones, but maybe I can get them to email them to me. Surely, someone there should have the ability to get them... LOL
Title: Re: SA Chat
Post by: Suki on July 08, 2015, 11:39:47 AM
I'm sorry but you aren't being helpful. If you do not have a way to demonstrate all you have been saying, I cannot help you.

I have no idea how this chats operates, it was pure speculations and this is the third time I said it.

It seems you only want to keep on arguing instead of providing actual data, unless you can provide server access logs, there is no point in keep on discussing this.
Title: Re: SA Chat
Post by: Niko_Bellic on July 08, 2015, 12:16:36 PM
My whole point, was not an actual discussion, but more reporting the issue.
With what little I could provide, along with someone else having the same issue, I'd have thought it would be enough.
Title: Re: SA Chat
Post by: Kindred on July 08, 2015, 01:52:53 PM
except it's not enough to just SAY that it does this -- because it certainly does NOT do that for me on the 2 sites I have this installed on...
Title: Re: SA Chat
Post by: Ninja ZX-10RR on July 10, 2015, 08:11:54 PM
First off, thanks Niko for your 3rd party POV, whoever you are.

As regards php and stuff... Yes, I was the only one on the site and the heartbeat was the only GET action, however, it was occasionally failing and leading the whole site to multiple (nearly a hundred) requests at the same time by sachat itself and many other things. The fact that since I uninstalled none of those issues happened not even once is enough of a proof to me to claim it doesn't work as expected, and the older version was even worse at that (so many calls that SMF said it was unable to connect to db).

Good luck with this mod, it has been banned by avalon webhost already. Ah yeah, another thing, it gets called even when disabled, since action=head is called regardless of setting it to disabled.

Cheers!
Title: Re: SA Chat
Post by: Kindred on July 10, 2015, 09:32:51 PM
And yet again, claims with no logs....
Title: Re: SA Chat
Post by: SA™ on July 11, 2015, 01:08:38 AM
QuoteAh yeah, another thing, it gets called even when disabled, since action=head is called regardless of setting it to disabled
that may be the case but that is just the jquery lib

ive actualy found the issue i think

Quoteif ($results && $smcFunc['db_num_rows']($results) != 0) {
      $context['JSON']['ids'] = array();
      while ($row = $smcFunc['db_fetch_assoc']($results)) {
               $context['JSON']['ids'][$row['id']] = $row['from'];
            
         }
         $smcFunc['db_free_result']($results);
      }   

$smcFunc['db_free_result']($results);

needs to be outside the if statment
Title: Re: SA Chat
Post by: Niko_Bellic on July 11, 2015, 08:02:27 AM
Hey! Nice find. :)
I hope it works, as this chat bar is kind of cool. :)
Please let know when update the package. :)
Title: Re: SA Chat
Post by: SA™ on July 11, 2015, 02:42:03 PM
ok it is updated with that change

still not sure that was the issue but it would make sense at least to me

if there was no results/messages then the database would not get freed
Title: Re: SA Chat
Post by: Ninja ZX-10RR on July 12, 2015, 03:28:12 PM
Will be doing some testing, since I have always loved & supported the mod.
@Kindred I am not going to give you my site logs, really. You, like many others here, aren't exactly people I consider as trusted nor I'd like them to see such informations (especially on a public forum, in particular "this" one) nor keep arguing with you as you never see any other POV other than yours.
Either way, I have never complained about any modification for such an issue and one has already been discovered after me pointing it out, which is already enough.

Like I said, will do more testing. I'd like Avalon admin to lift the ban for this mod, if it improved or whatever. Will see :) Thanks for your concern Kindred and SA™ for the update!
Title: Re: SA Chat
Post by: forcecde on July 16, 2015, 12:01:55 PM
HIII
I install SAChatBar1.0a in my forum 2.0.10 and work but i cant see more user look the imagen

Can see the problem and have other problem.
Cannot modify header information - headers already sent by (output started at /home/forumgigabox/www/sachat/index.php:23)
File: /home/forumgigabox/www/sachat/Sources/Subs.php
Line: 356


PD: sorry for my english
Title: Re: SA Chat
Post by: SA™ on July 16, 2015, 12:28:16 PM
no  scroll bar on who online i see ill take a look when i have time
Title: Re: SA Chat
Post by: nend on July 21, 2015, 02:47:08 PM
On the load thing, you need a good server, no VPS or shared but a good server and fast connection. If your server can't respond fast enough then it's going to be playing catch up which may explain this situation. The request was made but the server is responding too slow that the receiver is already long gone.

I havent missed with this mod in awhile, but I believe the JavaScript has a wait in the request so there is also no way for the request to pile up. The server has to respond to the first request before the script can go on. However the request could constantly keep a load on the server if both conditions of speed are not met.

Like I stated haven't missed with the mod for awhile so allot of speculation from me.
Title: Re: SA Chat
Post by: ErtugrulBEKTIK on July 25, 2015, 11:15:42 AM
Chat's time is 3 hour late according to Forum's time How can I fix this?

(http://hizliresim.com/XoyXGO)

Title: Re: SA Chat
Post by: villasg on August 04, 2015, 07:02:03 AM
Quote from: SA™ on June 13, 2015, 03:40:13 PM
Quote from: villasg on June 13, 2015, 02:04:52 AM
Any idea for my error ?

Quote from: villasg on June 09, 2015, 03:12:44 PM
Warning: Unexpected character in input: '\' (ASCII=92) state=1 in xxxxxxxxxxxxxxlxx/sachat/Sources/Chat-Subs.php on line 176
WARN  Cannot modify header information - headers already sent by (output started at xxxxxxxxx/sachat/Sources/Chat-Subs.php:176)
FATAL Unexpected character in input: '\' (ASCII=92) state=1

thanks for the reports ill try to fix this this week have a new version ready in testing


Hi .
Sorry for asking .
The [SAChatBar1.0a (1).zip] are newest ? , have fix for my errors ?
Thanks
Title: Re: SA Chat
Post by: SA™ on August 04, 2015, 09:35:51 AM
nope not updated yet soon 8)

Quote from: ErtugrulBEKTIK on July 25, 2015, 11:15:42 AM
Chat's time is 3 hour late according to Forum's time How can I fix this?

(http://hizliresim.com/XoyXGO)


this happens because your host does not have a default time zone set  in the php.ini . So this mod sets a default one to GMT
in sachat/index.php
just change this line to your time zone
date_default_timezone_set('GMT');
Title: Re: SA Chat
Post by: player.samp on August 05, 2015, 07:32:02 AM
When will the FATAL error of "Unexpected character in input: '\' (ASCII=92) state=1" in "/sachat/Sources/Chat-Subs.php Line: 176" will be fixed?
Title: Re: SA Chat
Post by: SA™ on August 05, 2015, 09:43:19 AM
Quote from: player.samp on August 05, 2015, 07:32:02 AM
When will the FATAL error of "Unexpected character in input: '\' (ASCII=92) state=1" in "/sachat/Sources/Chat-Subs.php Line: 176" will be fixed?

looked into it today whats your php version?





Title: Re: SA Chat
Post by: Miker1029 on August 05, 2015, 11:33:25 AM
Hey Love the New SA CHAT, Been using it For weeks (Dunno if same version here, Got this one from GIT), And can't wait to try the new ADD-ONS!!

I had a Question, Would there be a way to change the NAME from "Chat" to "Mini-Chat"?  Or is that a No-No??

Thanks

Mike
Title: Re: SA Chat
Post by: SA™ on August 05, 2015, 12:45:06 PM
QuoteHey Love the New SA CHAT, Been using it For weeks (Dunno if same version here, Got this one from GIT), And can't wait to try the new ADD-ONS!!

that version is a dev version not added that here yet still playing with the installer for the plugin system on that version

QuoteI had a Question, Would there be a way to change the NAME from "Chat" to "Mini-Chat"?  Or is that a No-No??
sure sachat/themes/languages/english.php
$txt['whos_on'] = 'Chat';
Title: Re: SA Chat
Post by: Miker1029 on August 05, 2015, 01:03:37 PM
Cool Thanks,  Also had an Idea for your ADD-ONS, Might be alot of work and divert from your Original Intent for the chat window, not sure, But it would be great to have Add-On Option to make it a Full Size pop-out type chat (Pretty Much like the Global You had) that's full featured, BBCODE, Smileys, The Works, I can see you making some $$$ off of something like that... As I have Alax as the MAIN Chat, And yours for a Quick Conversation....

Thanks for a GREAT MOD, and as DEV version goes It's working fine, and NO ERRORS AT ALL!!

Mike
Title: Re: SA Chat
Post by: SA™ on August 05, 2015, 01:18:36 PM
Yes pop out chat is something i want to do as a plugin. There is a some code there for it but it does not work prob never will as i was just playing :D but there is plans for a plugin to do that
Title: Re: SA Chat
Post by: player.samp on August 06, 2015, 08:33:47 AM
Quote from: SA™ on August 05, 2015, 09:43:19 AM
Quote from: player.samp on August 05, 2015, 07:32:02 AM
When will the FATAL error of "Unexpected character in input: '\' (ASCII=92) state=1" in "/sachat/Sources/Chat-Subs.php Line: 176" will be fixed?

looked into it today whats your php version?


"PHP: 5.2.17"
Title: Re: SA Chat
Post by: hains on August 06, 2015, 08:55:41 AM
I installed this mod and nothing comes up  y??

can sombody help??
Title: Re: SA Chat
Post by: Kindred on August 06, 2015, 09:40:29 AM
Quote from: SA™ on June 13, 2015, 03:40:13 PM
if you see no bar after install you just need to goto admin/sachat/maintenance/fix bar
it has been said many many times in this thread
Title: Re: SA Chat
Post by: SA™ on August 06, 2015, 10:40:21 AM
Pho 5.3 is required with the last update
Quote from: player.samp on August 06, 2015, 08:33:47 AM
Quote from: SA™ on August 05, 2015, 09:43:19 AM
Quote from: player.samp on August 05, 2015, 07:32:02 AM
When will the FATAL error of "Unexpected character in input: '\' (ASCII=92) state=1" in "/sachat/Sources/Chat-Subs.php Line: 176" will be fixed?

looked into it today whats your php version?


"PHP: 5.2.17"
Title: Re: SA Chat
Post by: player.samp on August 06, 2015, 04:57:10 PM
Quote from: SA™ on August 06, 2015, 10:40:21 AM
Pho 5.3 is required with the last update
Quote from: player.samp on August 06, 2015, 08:33:47 AM
Quote from: SA™ on August 05, 2015, 09:43:19 AM
Quote from: player.samp on August 05, 2015, 07:32:02 AM
When will the FATAL error of "Unexpected character in input: '\' (ASCII=92) state=1" in "/sachat/Sources/Chat-Subs.php Line: 176" will be fixed?

looked into it today whats your php version?


"PHP: 5.2.17"


Do you know how to update PHP version from 5.2.17 to 5.3? I searched in the website and couldn't find any explanation how to update the PHP version. The forum version is 2.0.10.
Title: Re: SA Chat
Post by: margarett on August 06, 2015, 06:52:50 PM
That is something you need to talk to your host ;)
Title: Re: SA Chat
Post by: ErtugrulBEKTIK on August 07, 2015, 02:00:01 PM
Quote from: SA™ on August 04, 2015, 09:35:51 AM
nope not updated yet soon 8)

this happens because your host does not have a default time zone set  in the php.ini . So this mod sets a default one to GMT
in sachat/index.php
just change this line to your time zone
date_default_timezone_set('GMT');
I change it with this
date_default_timezone_set('Europe/Istanbul');
but nothing has changed.
Title: Re: SA Chat
Post by: Deprecated on August 08, 2015, 02:39:39 PM
I am EXTREMELY pleased you are actively working on this mod. Last time I checked in it wasn't suitable for my forum, but I am very enthusiastic and intend to try it right away!

A few comments on issues discussed earlier. A PHP script is a dead thing. SMF is a state machine. If there are no HTTP requests it stays dead. You'd need a cron job to get it to do anything without site visitors. And as was said, search engine bots are constantly hitting most URLs. Depending on the design of the mod if a guest can kick it off then that's what search engines are.

A sure way to test this is to create a test system on a subdomain, say adjfoi4ew.example.com with just default SMF and the mod installed, nothing else. Nobody and no search engines will ever find that link and such a test setup should give your answer about whether there are resource usage peaks every 11 hours.

Also repeating what was said earlier, resource hungry software must run on a server that can satisfy the resource needs, and chat systems are inherently resource hungry. It wouldn't surprise me at all that this mod is probably not suited for a shared host, probably not even a VPS. I'm fortunate I have a high performance server that surely will have no such problems, not unless my forum grows extremely popular which is unlikely at the present.

I'll get back to y'all with my results after I test the mod. Thanks again SA for updating it!
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 08, 2015, 03:25:50 PM
Tbh, I don't know. What I do know is what I have seen in my logs before uninstalling it and after uninstalling it. It may be related to other mods interfering with it, I just know that as soon as I uninstalled it, my problems disappered.

P.S.: I'm on a premium host, with resources way bigger than the ones I am using (not overseller).
Title: Re: SA Chat
Post by: Deprecated on August 08, 2015, 07:44:52 PM
Ninja, every serious forum operator or mod package author has one or more test forums in addition to their production forum, to test mods and experiment with changes. Anybody who reads this who has a production forum and no test forum, you are making a serious mistake, because you cannot risk your production forum by playing with mod packages or other changes.

Every mod package or theme MUST be tested on a clean SMF install in order to isolate its effects from interaction with your other mods or styles. In fact this is an absolute requirement for mod package or theme authors.

I am concerned about the "11 hour syndrome" but I find it difficult to put credence into the theory without testing it myself.

In the end all I can say is that nobody's results are credible unless they test this mod package on a clean, unused system. Please follow my advice and install it on a random sub-domain that bots won't find, and ensure you have adequate monitoring tools in place so you can observe and document your perceived problem.

Do that and report back and I'll consider your observations may have some credibility. Test it on a production forum with members and search engines and other mods and you are producing data that is worth little more than garbage.

Software engineering is a science. In science we learn to create experiments that isolate the phenomenon we are experimenting with from other unrelated variables. You must isolate your test system from outside variables (the Internet, by creating an impossible to find subdomain) and observe it with just the mod package and your chosen version of SMF.

Until you have done that all you have is a wild guess as to what is happening.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 08, 2015, 08:03:39 PM
Quote from: Ninja ZX-10RR on August 08, 2015, 03:25:50 PM
Tbh, I don't know. What I do know is what I have seen in my logs before uninstalling it and after uninstalling it. It may be related to other mods interfering with it, I just know that as soon as I uninstalled it, my problems disappered.
This is what happened. Whether you believe it or not... I couldn't care less, really. And of course I have another test forum, but as far as I remember I don't even have a full cPanel with analyzers and stuff. However, it did occasionally have lag or misfunctioning, which was gone after uninstalling it as well.

I don't really need to prove anything, nor to justify myself, and not even to make it more "credible", I just wanted to report what happened and it's what I have done. Believe it or not, up to you, but thinking about it and seeing how much I post here, given how I dislike doing it, if I was you, I'd think my statements were true.
I won't reply anymore about this matter, the mod is uninstalled, I might test some future versions, but I am not too sure about it, as I am waiting on another online chat to release its API in order to integrate it directly, which would work a lot better and it wouldn't stress the server in any way, since it works on their own servers. :)

Cheers
Title: Re: SA Chat
Post by: Deprecated on August 09, 2015, 12:12:17 AM
Well Ninja we could use your help because SMF is a members helping members project, but of course if you have decided to discard the mod that absolves you of any expectation of your continued participation. I myself have abandoned interest in mods that wouldn't or couldn't work for me.

In any case the test scenario I proposed would help to verify and isolate the problem and I hope if anybody else observes the 11 hour resource draw that they will report and discuss it. I myself will participate if the mod works for me but has problems.

In my situation a viable system is a must have feature. Now that I think about it, SA Chat has been around since my early days here and I recall it was one of the hottest mods for a time. (I haven't checked the list lately.)

Meanwhile I have to set up a test forum since I'm not in production yet. Don't want to risk my prototype forum.
Title: Re: SA Chat
Post by: SA™ on August 09, 2015, 10:16:15 AM
QuoteI am EXTREMELY pleased you are actively working on this mod. Last time I checked in it wasn't suitable for my forum, but I am very enthusiastic and intend to try it right away!

I never realy stopped working on this :P . i just take a break now and again cos i get burnt out easy.
Title: Re: SA Chat
Post by: Deprecated on August 09, 2015, 04:31:50 PM
Easy to understand. I've been there too. Still am in many ways. It will be good for my mod package users that I'm now in active development of a production forum again, in that I'll be reviewing many of my mods for the new site then updating them at the SMF mod site. Most of them work with 2.0.anything and I just haven't been checking the compatibility boxes as new releases came out.
Title: Re: SA Chat
Post by: Deprecated on August 09, 2015, 04:34:41 PM
One question, what would be the best way to integrate SA Chat inside a forum, portal style, where the main chat window stands at the top of and is embedded into the index page (but not boards). Would you just iframe it, or what?

Well I'm off to set up a couple test forums, maybe answer my own question.
Title: Re: SA Chat
Post by: SA™ on August 11, 2015, 12:17:12 PM
I maybe wrong but I not sure that would be possible todo
Title: Re: SA Chat
Post by: Liquidus on August 13, 2015, 07:56:49 AM
I still waiting for the new update (group chat not available on this version)  ;D

That is just easy to communicate with other staffs.
Title: Re: SA Chat
Post by: Rome99 on August 13, 2015, 01:38:57 PM
I'm on smf 2.0.10 and on php 5.4.

The sa chat dont work....

ps : i have a custom theme
Title: Re: SA Chat
Post by: ErtugrulBEKTIK on August 14, 2015, 04:21:58 PM
Quote from: Rome99 on August 13, 2015, 01:38:57 PM
I'm on smf 2.0.10 and on php 5.4.

The sa chat dont work....

ps : i have a custom theme
Go to SA Chat Settings and enter "Maintence" tab. Next, use to "Fix Bar" button.
Title: Re: SA Chat
Post by: ErtugrulBEKTIK on August 14, 2015, 04:24:28 PM
Quote from: SA™ on August 04, 2015, 09:35:51 AM
nope not updated yet soon 8)

Quote from: ErtugrulBEKTIK on July 25, 2015, 11:15:42 AM
Chat's time is 3 hour late according to Forum's time How can I fix this?

(http://hizliresim.com/XoyXGO)


this happens because your host does not have a default time zone set  in the php.ini . So this mod sets a default one to GMT
in sachat/index.php
just change this line to your time zone
date_default_timezone_set('GMT');
I change it with this:
date_default_timezone_set('Europe/Istanbul');
but nothing has changed.
Title: Re: SA Chat
Post by: Rome99 on August 15, 2015, 11:48:28 AM
Quote from: ErtugrulBEKTIK on August 14, 2015, 04:21:58 PM
Quote from: Rome99 on August 13, 2015, 01:38:57 PM
I'm on smf 2.0.10 and on php 5.4.

The sa chat dont work....

ps : i have a custom theme
Go to SA Chat Settings and enter "Maintence" tab. Next, use to "Fix Bar" button.

dont work... i dont see the chat
Title: Re: SA Chat
Post by: Scott Hamilton on August 15, 2015, 10:08:29 PM
Fantastic Mod!!

Tell me how to correct the user avatar images on the chat bar...

They are trying to load from http://www."forum".com/avatars//avatars/avatar.png

but the actual fiel is located http://www."forum".com/avatar.png
Title: Re: SA Chat
Post by: Kindred on August 15, 2015, 10:13:10 PM
First of all, your avatars should not be in the root of your fourum. If they are, then you have misconfigured soemthing in a serious way.

Second, the fact that it is looking in that directory suggests that your avatar directory IS misconfigured, even if it is not the root
Title: Re: SA Chat
Post by: Scott Hamilton on August 15, 2015, 10:41:51 PM
oops, the actual directory is,

http://www."forum".com/avatars/avatar.png

sorry,,,

:)
Title: Re: SA Chat
Post by: Kindred on August 15, 2015, 10:54:58 PM
Quote from: Kindred on August 15, 2015, 10:13:10 PM

... the fact that it is looking in that directory suggests that your avatar directory IS misconfigured

specifically, you appear to have used a RELATIVE URL for your avatars... you need to use a ABSOLUTE URL..
Go to your avatar settings and correct the URL
Title: Re: SA Chat
Post by: Scott Hamilton on August 16, 2015, 12:14:51 AM
Kindred,

You are the man!!

Thank you much...

;D
Title: Re: SA Chat
Post by: Rome99 on August 16, 2015, 10:09:59 AM
@SA Help me....

I'm on smf 2.0.10 and on php 5.4.

The sa chat dont work....

ps : i have a custom theme
Title: Re: SA Chat
Post by: massillon on August 19, 2015, 03:22:23 PM
Quote from: Liquidus on August 13, 2015, 07:56:49 AM
I still waiting for the new update (group chat not available on this version)  ;D

That is just easy to communicate with other staffs.

If this had a premium version with group chat I'd be buying that in a second.
Title: Re: SA Chat
Post by: Deprecated on August 19, 2015, 06:53:23 PM
Funny how some people want one thing and others want something else.

All I want is one general site chat that only logged in members can join. If I can I'll set it so you can't view chat if not logged in to the forum. It would be idea if I can iframe it in the forum top section. -- vB has a mod like this...'

Even better, if there were an equivalent of the IRC "PRIVMSG" command where the line you type goes only to the specified user(s).

But in if I can use this as an "all forum members" group chat it will be great! ----- I am working on my own "must have to succeed" mod for my forum before I try SA Chat, but I recall SA Chat has been one of the best chat mods for my years since I joined SMF.org.

I may be mistaken but I remember when SA Chat was on the top 10 mods list -- I didn't need chat then -- but I will be very pleased after I get my own custom mod going if SA Chat fits or can be adapted to my new production forum.
Title: Re: SA Chat
Post by: massillon on August 20, 2015, 11:24:26 AM
Quote from: Deprecated on August 19, 2015, 06:53:23 PM
Funny how some people want one thing and others want something else.

All I want is one general site chat that only logged in members can join. If I can I'll set it so you can't view chat if not logged in to the forum. It would be idea if I can iframe it in the forum top section. -- vB has a mod like this...'

Even better, if there were an equivalent of the IRC "PRIVMSG" command where the line you type goes only to the specified user(s).

But in if I can use this as an "all forum members" group chat it will be great! ----- I am working on my own "must have to succeed" mod for my forum before I try SA Chat, but I recall SA Chat has been one of the best chat mods for my years since I joined SMF.org.

I may be mistaken but I remember when SA Chat was on the top 10 mods list -- I didn't need chat then -- but I will be very pleased after I get my own custom mod going if SA Chat fits or can be adapted to my new production forum.

SA CHAT is awesome...  but I need a chat room too for multiple users to chat with each other... 

LOVE sa chat.  works like a dream.

I'm trying to use chatwee for group chat days, but their coding is horrid for the SSO on SMF and it logs every user in 12 times for some reason.  I'm thinking their package has bad code in the load.php changes they make.  I'm not a big code guy but it seems like it's not complete and likely what's causing the issue.

If it were SA it would be clean, working code
Title: Re: SA Chat
Post by: SA™ on August 20, 2015, 12:02:30 PM
I said before but i will say again group chat/chat room will come as a plugin for this mod.
I have spent the last few months working on just the plugin system it is kinda tricky
With the plugin system we will be able to add to the mod with out touching the code in the mod. Plugins will just need to be uploaded and enabled thats it.


You can get the dev version here for testing
http://samods.github.io/SAChatBar/
Title: Re: SA Chat
Post by: massillon on August 20, 2015, 12:09:14 PM
Quote from: SA™ on August 20, 2015, 12:02:30 PM
I said before but i will say again group chat/chat room will come as a plugin for this mod.
I have spent the last few months working on just the plugin system it is kinda tricky
With the plugin system we will be able to add to the mod with out touching the code in the mod. Plugins will just need to be uploaded and enabled thats it.


You can get the dev version here for testing
http://samods.github.io/SAChatBar/

I know... I'm just impatient waiting for people who actually can work code for SMF. 

Frustrating when another dev says they've got SMF integration and it's lazy, sloppy coding that doesn't work.
Title: Re: SA Chat
Post by: Miker1029 on August 21, 2015, 03:12:34 PM
I'm noticing this LAG issue between Chrome & F.F. (Latest), I did notice when typing like 3 Sentences in Quick Succession It LAGS OUT BAD, I mean like I gave up and went to get some other stuff done, and Maybe 5-7 Minutes later the 3 Concurrent Sentences I sent POPPED up!  I'm using the GIT version for I guess a Month-ish....

AND to avoid confusion I load up Ajax-Chat Which I pretty much have for lengthy conversations and don't have any lag issue...

SO either I have a setting wrong (Never changed them so It's the Install Config) or something else...  and Error log is still clean and clear....

Any Ideas???

Thanks,

Mike
Title: Re: SA Chat
Post by: SA™ on August 21, 2015, 05:15:24 PM
hmm so it does i just tested this maybe cos it gets each message one by one instead of all at once ill see if i can change that though im not sure cos i had issues before


Ajax-Chat look quit nice inside a sachat gadget figard id try that real quick :P



Title: Re: SA Chat
Post by: Miker1029 on August 21, 2015, 05:44:13 PM
Quote from: SA™ on August 21, 2015, 05:15:24 PM
hmm so it does i just tested this maybe cos it gets each message one by one instead of all at once ill see if i can change that though im not sure cos i had issues before


Ajax-Chat look quit nice inside a sachat gadget figard id try that real quick :P

Ya No Doubt there, If you need a tester, Wink, Wink Nudge, Nudge  8)

Here's the Screenshots not that it'll help but you can see how it happened...

That's the 3 lines in a row I sent...


Title: Re: SA Chat
Post by: evilservo on August 23, 2015, 01:25:48 AM
Still does not work for me Sadly ... I did the Theme editing as Directed but with no avail. Is there anything I can do?
Title: Re: SA Chat
Post by: SA™ on August 23, 2015, 12:17:04 PM
You do not need to edit nothing install the mod and if it does not show just toto admin Sachat maintenance fix bar
Title: Re: SA Chat
Post by: massillon on August 26, 2015, 04:32:53 PM
Quote from: SA™ on August 23, 2015, 12:17:04 PM
You do not need to edit nothing install the mod and if it does not show just toto admin Sachat maintenance fix bar

SO pretend you were telling a complete moron how to try that....   

I mean, I am clueless for some reason.
Title: Re: SA Chat
Post by: Deprecated on August 29, 2015, 11:23:53 PM
Quote from: massillon on August 26, 2015, 04:32:53 PM
SO pretend you were telling a complete moron how to try that....   

I mean, I am clueless for some reason.

I just had to laugh at this. I used to be one of SMF's top 10 mod package authors and the instructions are clueless to me too.


I'm just curious if anybody wants to tell me exactly how this mod works, or opine whether you think it will work for me.

My ideal chat mod would be a simple group chat where there is ONE conversation, no special features, appears in an area inside my forum main page above the categories and anything that any logged in member types appears readible to all who are logged in. (Not visible to guests. Not visible except on the main forum page.)

Although conflicting with the above, the single improvement that would be nice is a /PRIVMSG feature like IRC that sends your comment to just one person in the chat, for snide remarks etc. :D

For artistic appeal this needs to integrate into my forum, not in a separate window.

It wouldn't unreasonable to say, "Deprecated, why don't you just try it?" but I'm up to my eyeballs in writing other higher priority mods for my new forum, and haven't gotten down to the chat mod level in my punch list yet. (I just finished a major step forward in my main "must have" mod, and I'm in a chatty mood not a thinking mood.)

Ya think this mod will do what I want?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on August 30, 2015, 12:45:21 AM
@Deprecated, simple answer: no. You are looking for a modded shoutbox, with whisper function, rather than a proper chat like this. To give you an idea... Ever used facebook? If so, that's what this mod looks like. ;)
Title: Re: SA Chat
Post by: tranhiep_116 on August 30, 2015, 04:10:35 AM
can 2.0.1 using this??
Title: Re: SA Chat
Post by: Kindred on August 30, 2015, 08:26:02 AM
if you are actually running 2.0.1 -- then you need to upgrade as soon as humanly possible, since you are 9 revisions behind - including multiple security patches.

If you mean 2.1 beta2 -- no, it will probably not run on 2.1 at the moment, since 2.1 is still in beta
Title: Re: SA Chat
Post by: Deprecated on August 31, 2015, 10:55:45 PM
Thanks Ninja. Nothing better than asking a question and getting a human opinion than reading and reading and reading and not being able to ask. -- I have a quest. I need that mod. Maybe I'll rewrite this mod -- if I can! :D Or find something else.

Oh BTW no I've never been on FB. I hate social media, I love privacy, and I'm not giving up my data just to be a member of FB or linkedin

It's sure a biatch when you want to have a very special forum that requires heavy modding and there's no mods and you have to write your own. Good thing I've got a couple dozen under my belt.

I forgot how complicated some parts of SMF are. It makes you really appreciate the SMF developers. Eh, Kindred? :D I'm working on parts right now that I can't even understand the MySQL queries above and below me! Lucky me I was able to understand the data structures they built.

And tranheip_116 you really need to keep your SMF up to date. They update SMF to add features and fix bugs, but they also update SMF to close VULNERABILITIES!!! I've never had my forums hacked and surely don't want to find out what that's like.

I have enough fun fighting off spambots. Good thing 2.0.10 has good anti-spam built in. (If anybody wants a clue, have at least a few dozen verification questions and use only 3-4 at a time. It takes spambot runners a long time to program in all your answers. Then change them! LOLOL!)
Title: Re: SA Chat
Post by: Ninja ZX-10RR on September 01, 2015, 05:25:03 AM
Quote from: Deprecated on August 31, 2015, 10:55:45 PM
Thanks Ninja. Nothing better than asking a question and getting a human opinion than reading and reading and reading and not being able to ask. -- I have a quest. I need that mod. Maybe I'll rewrite this mod -- if I can! :D Or find something else.
No problem :) Want to see the one I am looking at with lots of interest? https://www.tawk.to/ ~ enjoy!

This (dumb) video shows a bit of how the facebook chat looks like, since you don't have it: https://www.youtube.com/watch?v=95deWjRvhXE (at around one minute the little bar is being used).
Title: Re: SA Chat
Post by: hawk11220 on September 09, 2015, 10:15:36 PM
I am curious if this mod will allow for setting up chats as a board.  If so, would this mod allow the ability to save the chat session as a thread on a board when the chat is closed?

Thanks in advance....
Title: Re: SA Chat
Post by: Kindred on September 09, 2015, 11:49:51 PM
No... That is not at all what this mod does
Title: Re: SA Chat
Post by: romanos8 on September 10, 2015, 03:01:06 AM
I dont know how to show this chat in my forum. I have installed and activate the mode but I dont know how to show the chat in the forum.
Title: Re: SA Chat
Post by: joker on September 13, 2015, 03:49:50 AM
Check permissions of your member groups.
AFAIK the defaults are OFF for everybody but the admin.
Title: Re: SA Chat
Post by: desiamerican26 on September 18, 2015, 12:13:45 PM
Hello Friends,

Please see attached Image. My question is, if its possible to remove Settings option from Users side. The reasons I thought about this, if the person is not in your buddy list it will still show up as logged in. I want people to have their privacy while they are logged in unless they
have friends in their list.

Or lets say once I change on the admin side, that's what it should show on the users end.

I was trying in the permission side but didn't see much of the option.

Please help with this.

Thank You
Nikhil
Title: Re: SA Chat
Post by: desiamerican26 on September 20, 2015, 05:50:34 PM
Any Suggestion or help with above?
Title: Re: SA Chat
Post by: SA™ on September 21, 2015, 11:45:06 AM
They would still show because that's the way it was coded. Even if you have show buddy's only enabled you will still show on the who's online list. This will change soon.
Title: Re: SA Chat
Post by: debiwebi on October 17, 2015, 05:51:34 PM
I love this mod. I have a small forum with very few mods and this has been one of them.

A couple of days ago I had a problem installing a different mod on my site, and since then I have been getting thousands (yes, no exaggeration) of errors such as these:

http://speakingofseth.com/index.php?action=admin;area=logs;sa=errorlog;desc;start=50
8: Undefined index: 2sichatloadbal
File: .../Sources/SAChatHooks.php (I shortened the urls here)
Line: 158

http://speakingofseth.com/index.php?action=admin;area=logs;sa=errorlog;desc;start=50
8: Undefined index: 2sichat_linksd2
File: .../Sources/SAChatHooks.php
Line: 157

http://speakingofseth.com/index.php?action=admin;area=logs;sa=errorlog;desc;start=50
8: Undefined index: twosichatGadget
File: .../Sources/SAChatHooks.php
Line: 156

http://speakingofseth.com/index.php?action=admin;area=logs;sa=errorlog;desc;start=50
Unable to load the '2sichat.english' language file

I uninstalled SAChat and then deleted it.

If I reinstall a fresh version of SAChat, do you suppose it will work now? I'm thinking the other mod messed up SAChat. Can you tell if that's the case, from the errors? I'm not that technical, I don't know how to read the error messages.

Thanks.


Title: Re: SA Chat
Post by: nend on October 18, 2015, 12:18:02 AM
By those errors it looks like the mod didn't install all the way. Did you run into any errors during installation?
Title: Re: SA Chat
Post by: debiwebi on October 18, 2015, 02:08:18 AM
Thanks, it was working fine up until I tried to add another mod and had some problems.
I've looked through all my files, cleaned up what I could and will reinstall SAChat in the morning.
Been thinking about it all day, a fresh install and I would think it should be fine. No guts, no glory, huh?

If I have any problems I'll be back. Actually, I'll update either way.
Title: Re: SA Chat
Post by: aegersz on October 18, 2015, 10:25:54 PM
i love this mod, too.
Title: Re: SA Chat
Post by: Maoflowers1 on October 22, 2015, 09:51:23 AM
Thanks to all people around this excellent mod...

Worked for me, but I have one doubt: Global users can chat between them, but if you try to chat between the admin and other people the chat doesn't open a new window. What can I do? Please help.

Thanks.
Title: Re: SA Chat
Post by: aegersz on October 25, 2015, 10:57:15 AM
check their permissions.

i had to change mine so that only mods. or admins. can use it - just a thought.

Title: Re: SA Chat
Post by: Novice on October 30, 2015, 07:44:09 AM
Our group is using this with version 2.0.11 and everything seems to be fine except when someone is viewing a listing in SMFHacks Classifieds by vbgamer, the chat function disappears. this is the only bug we have found...

Great mod just wished we could figure out how to have a true group chat with everyone on the same panel.
Title: Re: SA Chat
Post by: Kindred on October 30, 2015, 07:47:08 AM
flashchat or one of the other external chat systems which can link/bridge to SMF will give you the chatroom function you describe.   SA Chat is a person to person chat, not a chat room...
Title: Re: SA Chat
Post by: Novice on October 30, 2015, 08:27:44 AM
Quote from: Kindred on October 30, 2015, 07:47:08 AM
flashchat or one of the other external chat systems which can link/bridge to SMF will give you the chatroom function you describe.   SA Chat is a person to person chat, not a chat room...

I didn't think that the link/bridge functioned with version 2.0.11?
Title: Re: SA Chat
Post by: Kindred on October 30, 2015, 08:50:24 AM
anything for use with 2.0.x will probably work with any other 2.0.x version -- if not, only minor tweaks should be required since there have been no major changes in the 2.0.x code structure and none at all in the database structure
Title: Re: SA Chat
Post by: Dumke on November 14, 2015, 03:30:31 AM
Generally what's the optimal heartbeat settings?
Title: Re: SA Chat
Post by: mrnuke on November 23, 2015, 07:17:27 PM
I just installed this on my 2.0.11. Seems pretty good, but a few questions or issues.

It spikes a pretty high CPU usage on member's PC's every minute or so. in IE11. Chrome 'seems' better.

It is generating a ton of  404 errors in Developer View with missing avatar files liek this for ex. :
http://www.ctguntalk.com/smf/index.php?action=dlattach;attach=8001;type=avatar

Also the logged in members list to be able to chat with is not scrolling. Am I missing something? When you click on it, it opens with the first list of members to be able to chat with (which works well) but there are about 300 people logged in vs the 20 or so shown initially.

TY.
Title: Re: SA Chat
Post by: 420Connect.co.uk on December 13, 2015, 11:44:52 AM
Hey SA,

Just thought I'd see how this is coming along and wondered if you had got the group chat issues fixed and wondered if there was any 'responsive' version being worked on?

Many thanks as always!
Title: Re: SA Chat
Post by: Dumke on December 22, 2015, 12:13:25 AM
Think it would be possible, to remove addthis or have a button to remove it as it drastically slows down page load and on large sites, every ms counts.
Title: Re: SA Chat
Post by: VileStorms on January 02, 2016, 03:46:18 AM
So my forum is getting an error and isn't showing the Chat bar, not sure what is wrong, but here is the error line, I love this mod so I'd really like to get this figured out.

FATAL
Unexpected character in input: '\' (ASCII=92) state=1
File: /home/a6407485/public_html/forums/sachat/Sources/Chat-Subs.php
Line: 176
Title: Re: SA Chat
Post by: roza on January 04, 2016, 11:44:17 AM
Would somebody explain to me how I should translate this mod properly?! Currently I've translated these files:
2sichat.english.php
2sichat.english-utf8.php
english.php
But just It's setting in admin area is shown translated and chat box/bar still is displayed in English. It is worth noting that I've saved the mentioned translated files besides the English files with the new names (for new language) like the Italian ones that was already in place . But is it necessary to include them some where too?
Thanks in advance.
Title: Re: SA Chat
Post by: Kindred on January 04, 2016, 11:46:19 AM
modifications.english.php
Title: Re: SA Chat
Post by: roza on January 04, 2016, 01:16:10 PM
Thank you Kindred but, I've already seen that file. There is no language string there related to this mod. I also re-installed the mod but nothing was added to the modifications.english.php file.
Title: Re: SA Chat
Post by: Ninja ZX-10RR on January 04, 2016, 01:58:04 PM
Maybe it's just old versions but used to be sachat\themes\default\languages
Title: Re: SA Chat
Post by: roza on January 04, 2016, 03:26:58 PM
Ok, I think I could solve the problem! Instead of making and adding a translation file of  english.php, I just translated it's content. But now I have another question. How can I make the contents of the chat box right to left?
Title: Re: SA Chat
Post by: Ninja ZX-10RR on January 04, 2016, 04:05:29 PM
Quote from: roza on January 04, 2016, 03:26:58 PM
Ok, I think I could solve the problem! Instead of making and adding a translation file of  english.php, I just translated it's content. But now I have another question. How can I make the contents of the chat box right to left?
No, that's stupid, like that you won't have the default text in english and it will be rather confusing :/
Title: Re: SA Chat
Post by: roza on January 05, 2016, 08:09:55 AM
Well, as I said before translation file of english.php is not been loaded for some reason and I did not find another way to solve the issue.
By the way, to make it right to left I had to do a little changes in it's CSS file as well as in it's template file and now everything looks good.
Title: Re: SA Chat
Post by: VileStorms on January 09, 2016, 03:50:19 PM
Quote from: VileStorms on January 02, 2016, 03:46:18 AM
So my forum is getting an error and isn't showing the Chat bar, not sure what is wrong, but here is the error line, I love this mod so I'd really like to get this figured out.

FATAL
Unexpected character in input: '\' (ASCII=92) state=1
File: /home/a6407485/public_html/forums/sachat/Sources/Chat-Subs.php
Line: 176

Still having these issues if anone can assist
Title: Re: SA Chat
Post by: Kortal on January 09, 2016, 07:23:25 PM
Would it be possible to add a scroll bar, or at least put the search bar on the top ? The list is unscrollable when there is more than 40 connected users
Title: Re: SA Chat
Post by: Mike66 on January 30, 2016, 08:15:02 AM
Does anybody know if this mod works well in responsive themes please?

Best wishes
Mike
Title: Re: SA Chat
Post by: Mike66 on February 01, 2016, 05:08:54 AM
OK, I've tried it in a responsive theme.

The upload was trouble free and all is working as it should when installed. Works well on PCs and tablets, but not on phones.

The 'chat box' displays to the left of the 'users online box' and is therefore off screen on a phone. Pity the chat box didn't replace the users online box when you select who to chat with, as it would then work on a phone.

Best wishes
Mike
Title: Re: SA Chat
Post by: Smc75 on February 07, 2016, 01:32:34 AM
Here is the russian language translation file for SA Chat.
Title: Re: SA Chat
Post by: Deprecated on February 13, 2016, 10:29:47 PM
Quote from: roza on January 04, 2016, 03:26:58 PM
Ok, I think I could solve the problem! Instead of making and adding a translation file of  english.php, I just translated it's content. But now I have another question. How can I make the contents of the chat box right to left?

Take your monitor and place it so the top of the monitor is resting on the table. ;) :P

Seriously there is a rtl CSS property, there must be a way to activate that.
Title: SAChat: Hidden members are visible
Post by: debiwebi on February 16, 2016, 09:27:27 AM
Quote from: SA™
QuoteAlso I second the option to allow hidden members to be hidden on chat as standard
i swear it doesnt show hidden members already?

I don't have many mods installed, but I have this one and love it. It's been handy and great communicating in real time.

But, I'm having the issue with hidden members being visible in the Chat Bar. My forum is currently 2.0.10, but I have a couple of test forums using 2.0.11, one has no other mods installed and the problem is the same. I've read through some of the posts here, haven't seen anything recent (that I can tell) that addresses the visible hidden members. Just yesterday I was logged in under a hidden account to do some housecleaning and a member started a Chat with me.

Is there something I'm not turning on? Some checkbox I missed?
Title: Re: SA Chat
Post by: 420Connect.co.uk on February 16, 2016, 03:23:12 PM
Quote from: fishingthefly on February 01, 2016, 05:08:54 AM
OK, I've tried it in a responsive theme.

The upload was trouble free and all is working as it should when installed. Works well on PCs and tablets, but not on phones.

The 'chat box' displays to the left of the 'users online box' and is therefore off screen on a phone. Pity the chat box didn't replace the users online box when you select who to chat with, as it would then work on a phone.

Best wishes
Mike

I'm also interested in using this again on a responsive theme and am facing the same issue.
I like your idea for a workaround though and surely it wouldnt be too hard to add in!

Title: SA Chat unHidden Members
Post by: debiwebi on February 23, 2016, 04:44:58 PM
Quote from: debiwebi on February 16, 2016, 09:27:27 AM

I'm having the issue with hidden members being visible in the Chat Bar.

Is there something I'm not turning on? Some checkbox I missed?


Anyone have a suggestion?

Title: Re: SA Chat
Post by: SolSoCoG on February 24, 2016, 04:05:33 PM
Hello, I'm using SMF behind https (only) and it keeps trying to set my smiley path as h--ps://board.de/https%3Cimg%20src=/board.de/Smileys/default/smile.gif">

Any way to fix this? I tried by manually setting the h--ps://board.de/Smileys/ part at $smiles['file'][] . $modSettings['smileys_url'] . but it kept adding h--ps://board.de in front.

And when typing > it changes to  _3E  and < to  _3C is that a desired behaviour?

Version SA Chat 1.0a Rev120


Title: Re: SA Chat
Post by: SA™ on March 18, 2016, 08:56:07 AM
New update for this 1.0a1

Implemented a plugin system [WIP]
Link are now a plugin
Gadgets are now a plugin
Social links are now a plugin
Removed some older unused code
Fixed scrolling issues in whos online list
Fixed online list showing hidden members

i am working on a more mobile friendly theme for this
Title: Re: SA Chat
Post by: 420Connect.co.uk on March 21, 2016, 12:52:57 PM
Quote from: SA™ on March 18, 2016, 08:56:07 AM
New update for this 1.0a1

Implemented a plugin system [WIP]
Link are now a plugin
Gadgets are now a plugin
Social links are now a plugin
Removed some older unused code
Fixed scrolling issues in whos online list
Fixed online list showing hidden members

i am working on a more mobile friendly theme for this

Just seen this, many thanks for the continuing to update and I'm really looking forward to a responsive version! :D
Title: Re: SA Chat
Post by: runningtrades on April 07, 2016, 10:08:26 AM
Quote from: VileStorms on January 09, 2016, 03:50:19 PM
Quote from: VileStorms on January 02, 2016, 03:46:18 AM
So my forum is getting an error and isn't showing the Chat bar, not sure what is wrong, but here is the error line, I love this mod so I'd really like to get this figured out.

FATAL
Unexpected character in input: '\' (ASCII=92) state=1
File: /home/a6407485/public_html/forums/sachat/Sources/Chat-Subs.php
Line: 176

Still having these issues if anone can assist


I am getting the same error...any resolution to this? Am running 2.0.11
Title: Re: SA Chat
Post by: SA™ on April 07, 2016, 04:46:58 PM
whats your php version?
Title: Re: SA Chat
Post by: runningtrades on April 07, 2016, 06:42:32 PM
Quote from: SA™ on April 07, 2016, 04:46:58 PM
whats your php version?


php version 5.6
Title: Re: SA Chat
Post by: debiwebi on April 07, 2016, 07:54:23 PM
Quote from: SA™ on March 18, 2016, 08:56:07 AM
New update for this 1.0a1
[...]
Fixed online list showing hidden members

This is awesome. I installed the latest version this morning and it seems to be working fine, thank you.
BUT... I was surprised that Admins cannot see hidden users in the Chat box. Is there some sort of setting so Admins can see hidden users? I looked through the settings but didn't see anything that seemed to fit.

Title: Re: SA Chat
Post by: runningtrades on April 07, 2016, 08:25:44 PM
WARN     Cannot modify header information - headers already sent by (output started at /home1/runnicom/public_html/sachat/Sources/Chat Subs.php:176)
File: /home1/runnicom/public_html/sachat/Sources/Subs.php
Line: 201

   
FATAL      Unexpected character in input: '\' (ASCII=92) state=1
               File: /home1/runnicom/public_html/sachat/Sources/Chat-Subs.php
               Line: 176
Title: Re: SA Chat
Post by: runningtrades on April 08, 2016, 12:18:35 PM
What might be obvious to some is not to me...I just started using SMF in January 2016...
Title: Re: SA Chat
Post by: 420Connect.co.uk on April 08, 2016, 01:27:05 PM
Runningtrades..  There's a button in the admin settings to fix / restore the bar. Have you clicked that?  O:)
Title: Re: SA Chat
Post by: runningtrades on April 08, 2016, 03:50:44 PM
I did...that's the "fix" button at the bottom of the page...
Title: Re: SA Chat
Post by: runningtrades on April 09, 2016, 03:10:53 PM
so I uninstalled TinyPortal and the Chat window appears at the bottom right hand corner....now just have to figure out how to get them to play together!
Title: Re: SA Chat
Post by: runningtrades on April 09, 2016, 05:20:08 PM
Contacted the admin for the TinyPortal module, and they're saying to contact the developer of the SAChat mod, for the TP module is a big one, they're suggesting the developer of SAChat might be able to fix it....i'd like to be able to use both modules if I can
Title: Re: SA Chat
Post by: SA™ on April 10, 2016, 01:17:06 AM
Hmmm I'll look into this later tonight
Title: Re: SA Chat
Post by: runningtrades on April 10, 2016, 12:45:29 PM
thanks!
Title: Re: SA Chat
Post by: SA™ on April 10, 2016, 08:29:25 PM
try this
Title: Re: SA Chat
Post by: runningtrades on April 11, 2016, 08:06:24 AM
Awesome, that works! After installing it, had to click on "Fix Bar" but it worked after that
Title: Re: SA Chat
Post by: Debbie3 on May 10, 2016, 10:35:26 AM
Hi,
thank you for this nice mod unfortunately I installed it but it doesn't seem to work I do not see a chat window. I am using smf 2.0.11 and vertex theme, no errors in error log.
Any help to get this working is appreciated.

Thank you
Title: Re: SA Chat
Post by: Debbie3 on May 10, 2016, 10:57:41 AM
I went to maintenance and clicked fix bar and I see it now!
Title: Re: SA Chat
Post by: Debbie3 on May 10, 2016, 11:01:50 AM
hmm but I only see it as admin not as a regular member..any advice please?
nvm fixed it :)
Title: Re: SA Chat
Post by: JaGuR on June 03, 2016, 08:13:00 PM
Hi guys, am having trouble getting this to work, have added this to my custom theme

<script type="text/javascript" src="http://www.racehorsetalk.com.au/sachat/index.php?action=head"></script>
</head>
<body>
<script type="text/javascript" src="http://www.racehorsetalk.com.au/sachat/index.php?action=body"></script>

I have also clcik on fix bar in maintainanace

But still not showing up

Any help greatly appreciated.

Cheers
Title: Re: SA Chat
Post by: mestrecruz on June 08, 2016, 10:20:59 AM
Boa tarde , peço desculpa por estar a escrever em português , pouco percebo inglês , vou usar o translate ok

eu instalei o SA chat no meu forum smf , funciona perfeitamente , é um espetaculo ,
mas o problema que existe , com este chat instalado , não consigo colocar fotos atraves do ( Simple Image Upload ) se desinstalar o Chat  volta  a funcionar o ( Simple Image Upload )  alguém me sabe explicar motivo?

I installed SA chat in my smf forum, works perfectly, is a spectacle,
but the problem that exists with this installed chat, I can not put pictures through the (Simple Image Upload) if you uninstall Chat back up and running (Simple Image Upload) anyone knows me explain why?


Obrigado/ thanks
Title: Re: SA Chat
Post by: ErtugrulBEKTIK on June 17, 2016, 05:48:08 PM


I install SaChat. But Pulling page is blank and group chat is not working. My SMF version is 2.0.10
Title: Re: SA Chat
Post by: Miker1029 on June 17, 2016, 06:05:53 PM
There aren't any plug-ins, Or 1, Maybe, your showing your Admin, Do you have the BAR in your forum Pages?

If not do the fix bar, it works fine, and I'm HEAVILY Modded....

Mike

P.S. Go OUT OF your ADMIN, And Check your Permissions that SACHAT is Allowed for your groups...

P.S.S. Permissions Screenshot

Title: Re: SA Chat
Post by: ErtugrulBEKTIK on June 17, 2016, 06:18:32 PM
I am admin. Pulg-ins are installed but not appere to me. I check premissions. SACHAT is allowed for every groups.
Thx for answer...
Title: Re: SA Chat
Post by: Miker1029 on June 17, 2016, 06:26:01 PM
Okay I didn't know  plug ins were out for it did it work without the plugin? if it did then I'm going to have to leave it up to the developer to answer... Sry
Title: Re: SA Chat
Post by: pixel375 on July 03, 2016, 08:08:24 PM
Need some help.
I installed this chat, but now I get the following two errors in my log when ever I try to send a message:

INFO - Undefined index: database_error - File: C:\website\Sources\Subs-Db-mysql.php - Line: 594
FATAL - Call to undefined function allowedTo() - File: C:\website\Sources\Subs-Db-mysql.php - Line: 595
Title: Re: SA Chat
Post by: Abavagada on August 05, 2016, 05:17:04 PM
I just installed this mod and it looks great on my forum, thanks!

From the introduction information for it, it sounds like I can have this running on other pages (ie, not the forum software) that are part of the same site, integrated via SSI. If this is so, what codes do I need to put in my pages? I copied in the <script src=..> ones from the forum pages, putting one in the header and one in the body, but that didn't do it. If this is possible, what am I missing?

Title: Re: SA Chat
Post by: busymouse on August 07, 2016, 05:30:36 PM
Hi Abavagada,

in <head> goes

<script type="text/javascript" src="http://www.your-site.com/path_to_forum/sachat/index.php?action=head"></script>

and in <body>

<script type="text/javascript" src="http://www.your-site.com/path_to_forum/sachat/index.php?action=body"></script>

;)
Title: Re: SA Chat
Post by: Abavagada on August 08, 2016, 03:53:27 PM
Thanks!

I had done that before, but it hadn't shown up. I realized that my footer, which is set to absolute, was covering it.
Title: Re: SA Chat
Post by: busymouse on August 08, 2016, 04:20:36 PM
On my site it was the same. I gave the z-index from .chatBar_containter in CSS a higher value.  ;)
Title: Re: SA Chat
Post by: JerzyLS on August 23, 2016, 05:00:09 AM
Hello,

I have problem with your mod. I installed it many months ago and delete after few days, because my server was busy.
Recently I checked my error.log on my server and it's spamming the log:

Quote[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/forum.bialenia.stronazen.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/spolecznosc.bialenia.org.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/forum.bialenia.stronazen.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/spolecznosc.bialenia.org.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/forum.bialenia.stronazen.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/spolecznosc.bialenia.org.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/forum.bialenia.stronazen.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/spolecznosc.bialenia.org.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/forum.bialenia.stronazen.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/spolecznosc.bialenia.org.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/forum.bialenia.stronazen.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/spolecznosc.bialenia.org.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/forum.bialenia.stronazen.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/spolecznosc.bialenia.org.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/forum.bialenia.stronazen.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:29 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/spolecznosc.bialenia.org.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:30 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/forum.bialenia.stronazen.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:30 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/spolecznosc.bialenia.org.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:31 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/forum.bialenia.stronazen.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324
[23-Aug-2016 10:55:31 Europe/Warsaw] PHP Warning:  file_exists(): open_basedir restriction in effect. File(/home/bialenia/domains/spolecznosc.bialenia.org.pl/public_html/sachat/Plugins/sociallinks/sociallinksAdmin.php) is not within the allowed path(s): (/dev:/usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html:/usr/home/elmateo777/domains/bialenia.org.pl/public_html:/tmp:/usr/local/share/pear) in /usr/home/elmateo777/domains/spolecznosc.bialenia.org.pl/public_html/Sources/Load.php on line 324

The path of the file /sachat/Plugins/sociallinks/sociallinksAdmin.php isn't correct and the folder doesn't exist since few months - because I deleted this mod as I said..
How to delete it?
Title: Re: SA Chat
Post by: Kindred on August 23, 2016, 09:15:27 AM
did you UNINSTALL it before randomly deleting files?
Title: Re: SA Chat
Post by: JerzyLS on August 23, 2016, 09:23:15 AM
Yes, of course.
Title: Re: SA Chat
Post by: Kindred on August 23, 2016, 09:26:07 AM
it looks like it was not fully uninstalled -- either you ignored errors on the uninstall or something caused (probably the database) to not finish removing the hooks.
Title: Re: SA Chat
Post by: JerzyLS on August 23, 2016, 09:31:46 AM
Is possible to remove the hooks manually?
Title: Re: SA Chat
Post by: Kindred on August 23, 2016, 10:37:40 AM
yes.... in the database. I believe it is the smf_settings table
search for %integrate%
see if any of the responses have a mention of chat in them
Title: Re: SA Chat
Post by: JerzyLS on August 23, 2016, 12:59:12 PM
Thank you. Problem solved.

WHERE `smf_settings`.`variable` = 'integrate_pre_include';
Title: Re: SA Chat
Post by: HerrUU on September 01, 2016, 11:04:02 AM
Nice mod, I'm encountering some problems though. Is there no group chat available? There are no plugins available.
Title: Re: SA Chat
Post by: Dumke on October 20, 2016, 10:43:10 AM
It seems if a user is banned, even temp banned, after they are unbanned they lose all rights to use the mod, is this a bug or a feature?
Title: Re: SA Chat
Post by: Kindred on October 20, 2016, 10:46:49 AM
Well, of course they do. a banned user has no access to ANY SMF function
Title: Re: SA Chat
Post by: Dumke on October 20, 2016, 10:55:01 AM
Quote from: Kindred on October 20, 2016, 10:46:49 AM
Well, of course they do. a banned user has no access to ANY SMF function

I mean, when they become unbanned, sorry i should have that more clear.
Title: Re: SA Chat
Post by: SA™ on October 20, 2016, 11:46:03 AM
If they are banned then unbanned it should unlock the chat bar again
Title: Re: SA Chat
Post by: Dumke on October 21, 2016, 10:53:07 PM
Quote from: SA™ on October 20, 2016, 11:46:03 AM
If they are banned then unbanned it should unlock the chat bar again

But it doesn't so it's a bug, what do you think causes it?
as it doesn't seem to be fixed on reinstall, fix bar, clear cache, clear cache in maintenance...

Title: Re: SA Chat
Post by: Welicak94 on November 17, 2016, 02:31:12 PM
Hi, I have sort of a few problems.
First one, it doesnt showing all smiles right.
Some smailes are showing, some simply wont.
Thats one the problem.
Here is another problem.
BB codes.
I turned on BBC in Chat in Settings via admin panel.
And BB codes do not work.
And it wont show properly links.
Screens in post attachements.

I searched throught all setting for SA Chat. Didnt find the solution. :)
Title: Re: SA Chat
Post by: aegersz on November 20, 2016, 10:07:07 PM
Hi, since i changed my site to SSL, i still have an unsecured dev system on my intranet but when i copy the live files and restore the database unload then run repair_settings, i lose the SA Chat bar. This never happened before SSL.

repair_settings.php is pointing to http only.

i cannot find an errors anywhere (Apache, System, SA Chat or SMF).

what do you think is going wrong here, please ?

This is the failing link:

http://192.168.0.180/sachat/index.php?action=body&theme=default

i get: {"STATUS":"NO ACCESS"}
Title: Re: SA Chat
Post by: aegersz on November 21, 2016, 12:10:30 AM
I worked it out, i have to force https with .htaccess and then set Settings.php to https to access the bar again.

sorry to bother.
Title: Re: SA Chat
Post by: Novaflame on November 25, 2016, 10:10:50 PM
Will there be an update for 2.0.12? Because I am trying to create an RP community and I would love a chatbox for it, but I cannot seem to find a suitable chat mod for the latest SMF version.
Title: Re: SA Chat
Post by: Kindred on November 25, 2016, 10:36:40 PM
Almost any mod for 2.0.x will work on any other 2.0.x version
Title: Re: SA Chat
Post by: Playertrade on December 01, 2016, 08:30:23 PM
I have installed the mod, but it just says "login to chat" down in right corner. I dont understand, it makes me log into the forum again, and it dosnt work?
Title: Re: SA Chat
Post by: Playertrade on December 05, 2016, 01:12:42 PM
Anyone knowing the problem?
Title: Re: SA Chat
Post by: byproduct on December 07, 2016, 12:34:07 PM
SMF Mod page states "Latest Version:    1.0a1"
But has no link for version 1.0a1
Title: Re: SA Chat
Post by: d3vcho on December 07, 2016, 12:50:34 PM
Hello!

Look at the right of your screen:


Regards :)
Title: Re: SA Chat
Post by: byproduct on December 07, 2016, 08:27:49 PM
Ty for your reply.

I seen them.
but,
those are different version numbers


typoed? or a missing version?

Title: Re: SA Chat
Post by: Kindred on December 07, 2016, 09:16:58 PM
Those are the versions available for download and visible and present on the mod site
Title: Re: SA Chat
Post by: byproduct on December 07, 2016, 09:57:35 PM
I can see that.
but is it correct?

description says there is another version.

so is it only a older version that is being supported?
or is there a typo?
a mis-link?
a dropped version?

should someone be correcting the download?
or should interested ppl use the highest/LOWER numbered version and ignore what the descripton/specs say?

getting basic information shouldn't have to be a debate

Title: Re: SA Chat
Post by: SA™ on December 09, 2016, 08:29:12 AM
It correct 1.0a is in fact 1.0a1 just stick with the highest version it is always going to b the latest build I just forgot to rename the package to match the version that's all

No debate needed really
Title: Re: SA Chat
Post by: coltp45 on December 31, 2016, 02:48:08 PM
I have a problem with this mod if i check  Enable group permissions and set the propers permission to users the bar dosen't show but if i uncheck the Enable group permissions.  The bar shows perfect.

The problem is that I don't want that a new user can spam the forum with links to a another forum using the chat. So i need to use permissions. But dosen't work.....
Title: Moving my forum broke SA Chat
Post by: SethStudent on February 08, 2017, 01:20:14 PM
I just moved my forum to new hosting and https. Everything is working except for SA Chat. It's now in the bottom left corner of my site (see attached), the styling is missing and it doesn't work.

I uninstalled & deleted the mod, removed a couple of leftover files, removed the tables from the db and reinstalled. Same problem.

Chat was working on the old site until I repaired the settings on it after I pointed the domain name to the new hosting, so now Chat is doing the same thing on the old site as well.

Any ideas? Thanks.  https://speakingofseth.com/

Update: I also see that when Chat is installed, I get a "site not secure" warning from my browsers.

Title: Re: SA Chat
Post by: profzelonka on February 14, 2017, 01:37:10 AM
Any responsive support?

Also, no plugins show in the admin plugins page... ? It's a blank page.
Using SMF 2.0.13. No errors. Miscellaneous page says there's no plugins.
Title: Re: SA Chat
Post by: xapim on February 15, 2017, 07:02:25 PM
any chance of getting this working on SMF 2.0.13 installs fine all optiond in the admin panel but nothing showing on the forum
Title: Re: SA Chat
Post by: profzelonka on February 16, 2017, 12:33:07 AM
Quote from: xapim on February 15, 2017, 07:02:25 PM
any chance of getting this working on SMF 2.0.13 installs fine all optiond in the admin panel but nothing showing on the forum
Yeah, in settings there's a fix button that makes new installations work. I found that out by searching through this thread.

If you have plugins working, let me know please since that would mean it's only an issue for me.. Though I highly doubt it.
Title: Re: SA Chat
Post by: xapim on February 20, 2017, 07:57:35 PM
Quote from: profzelonka on February 16, 2017, 12:33:07 AM
Quote from: xapim on February 15, 2017, 07:02:25 PM
any chance of getting this working on SMF 2.0.13 installs fine all optiond in the admin panel but nothing showing on the forum
Yeah, in settings there's a fix button that makes new installations work. I found that out by searching through this thread.

If you have plugins working, let me know please since that would mean it's only an issue for me.. Though I highly doubt it.

tried the fix bar no luck still nothing in the plugins section its blank in the errors section i have 3263 pages of errors and always the same 2 errors

WARN

   Cannot modify header information - headers already sent by (output started at /home1/xapim/public_html/uksatiptv.com/sachat/Sources/Chat-Subs.php:205)

   File: /home1/xapim/public_html/uksatiptv.com/sachat/Sources/Subs.php
Line: 245

wich is this line: header('Content-Type: application/x-javascript; text/javascript');

FATAL

   Unexpected character in input: '\' (ASCII=92) state=1

   File: /home1/xapim/public_html/uksatiptv.com/sachat/Sources/Chat-Subs.php
Line: 205

this line : $d = new \DateTime('@'.$value.'');

what do i have to do to fix this any ideas ?

cheers
Title: Re: SA Chat
Post by: profzelonka on February 20, 2017, 11:58:53 PM
Weird, my install is fine. (Other than no plugins....)
I'd make sure it's the right (latest) version. (Currently latest is SAChatBar-1.0a.zip)  and reinstall it.
Title: Re: SA Chat
Post by: xapim on February 21, 2017, 03:29:45 AM
yup its the latest i already unninstalled and installed again a couple of times with no resulp im going to try again this is really weird its always the same error repeating
Title: Re: SA Chat
Post by: OtterlyAdorable on March 03, 2017, 04:54:30 PM
Hi!  This mod is great so far, we really like having a chat on our page!

I have a question about the sound that I haven't been able to figure out.  Is there a way to turn of the... activation chime that plays when the page loads?  It also plays every time the page reloads and every time I switch tabs.  Sometimes I have multiple tabs open and it plays every time I switch between them.

Thank you very much!
Title: Re: SA Chat
Post by: xapim on March 08, 2017, 07:03:04 AM
well u had more luck than me i cant get it to work :(
Title: Re: SA Chat
Post by: OtterlyAdorable on March 30, 2017, 01:15:48 PM
Quote from: OtterlyAdorable on March 03, 2017, 04:54:30 PM
Hi!  This mod is great so far, we really like having a chat on our page!

I have a question about the sound that I haven't been able to figure out.  Is there a way to turn of the... activation chime that plays when the page loads?  It also plays every time the page reloads and every time I switch tabs.  Sometimes I have multiple tabs open and it plays every time I switch between them.

Thank you very much!

Well this is embarrassing.  Wasn't from the chat, so please disregard.

However I do have another question!  I looked at all the posts in this thread referencing timezone issues, but I still haven't been able to solve my issue.  My board has the correct timezone settings.  I updated the timezone in my php.ini file.  But the chat is still not showing the correct timezone.  Has this been updated at all since the last time it was addressed in this thread?

Thanks much!
Title: Re: SA Chat
Post by: coltp45 on March 31, 2017, 11:04:50 AM
Quote from: OtterlyAdorable on March 30, 2017, 01:15:48 PM
Quote from: OtterlyAdorable on March 03, 2017, 04:54:30 PM
Hi!  This mod is great so far, we really like having a chat on our page!

I have a question about the sound that I haven't been able to figure out.  Is there a way to turn of the... activation chime that plays when the page loads?  It also plays every time the page reloads and every time I switch tabs.  Sometimes I have multiple tabs open and it plays every time I switch between them.

Thank you very much!

Well this is embarrassing.  Wasn't from the chat, so please disregard.



I have the same problem with the sound.    you say is not a mod problem? How you solved?

Thanks.
Title: Re: SA Chat
Post by: GreenRacket on May 02, 2017, 04:29:57 PM
Hi,

I ran into a problem with a mod. I'm running SMF 2.0.13 and...

... installed SA Chat 1.0a1 Rev120
https://custom.simplemachines.org/mods/index.php?mod=2534

However I get some errors when running the chat:
QuoteINFO Undefined index: database_error File: /var/www/riget/Sources/Subs-Db-mysql.php
Line: 594
FATAL File: /var/www/riget/Sources/Subs-Db-mysql.php
Line: 595

Looks like a database error to me? I'm running MySQL 5.7 (5.7.18-0ubuntu0.16.04.1)
I'd like to get some more info/details on the error.

Any ideas on how to do that? I'm fairly handy with PHP/MySQL myself.

I have a local installation of the forum and the SA Chat works just fine on that installation.
Title: Re: SA Chat
Post by: PLAYBOY on May 03, 2017, 06:35:59 PM
Is there a Turkish translation provided for this mod yet?
Title: Re: SA Chat
Post by: GreenRacket on May 03, 2017, 09:02:55 PM
Quote from: GreenRacket on May 02, 2017, 04:29:57 PM
Hi,

I ran into a problem with a mod. I'm running SMF 2.0.13 and...

... installed SA Chat 1.0a1 Rev120
https://custom.simplemachines.org/mods/index.php?mod=2534

However I get some errors when running the chat:
QuoteINFO Undefined index: database_error File: /var/www/riget/Sources/Subs-Db-mysql.php
Line: 594
FATAL File: /var/www/riget/Sources/Subs-Db-mysql.php
Line: 595

Looks like a database error to me? I'm running MySQL 5.7 (5.7.18-0ubuntu0.16.04.1)
I'd like to get some more info/details on the error.

Any ideas on how to do that? I'm fairly handy with PHP/MySQL myself.

I have a local installation of the forum and the SA Chat works just fine on that installation.

This is database errors on MySQL 5.7. I can't remember all the details now but first of all the isrd-field in smf_2sichat won't work on MySQL 5.7.

There was one more field that I had to fix to make this work on MySQL. I can't remember which one but try running this on MySQL 5.7 and I'm sure you'll fix this very easily.

I managed to get it work on my local installation but the live version won't work. I have do fix this from scratch on a local installation and write down all the steps to fix it.
Title: Re: SA Chat
Post by: GreenRacket on May 05, 2017, 12:24:34 PM
I got it working live. I set a default value for "inactive" to 0 and changed some code in Chat.php (not ideal)


array(
   'to' => 'int',
   'from' => 'int',
   'msg' => 'string',
   'sent' => 'string',
   'isrd' => 'string'
),
array(
$buddy_id, $member_id, htmlspecialchars(stripslashes(strip_tags($_REQUEST['msg'],'<a>')), ENT_QUOTES),date("Y-m-d H:i:s"),'1970-01-01 00:00:00'
),
array()


The changes are:
'isrd' => 'string'

And

$buddy_id, $member_id, htmlspecialchars(stripslashes(strip_tags($_REQUEST['msg'],'<a>')), ENT_QUOTES),date("Y-m-d H:i:s"),'1970-01-01 00:00:00'


Title: Re: SA Chat
Post by: GreenRacket on May 06, 2017, 01:46:47 AM
Quote from: GreenRacket on May 05, 2017, 12:24:34 PM
I set a default value for "inactive" to 0

Just to clarify: I altered the "inactive" column and set the default value to 0.
Title: Re: SA Chat
Post by: Nicke P on June 07, 2017, 08:07:53 AM
Hi all.

I´ve recently installed this mod and i have some strange problem.
When i tries to chat, i see the person online but i cant press his name to get up the chatbox. But he can press my name and get the chatbox and he can write. But i cant see any chatbox.
I´ve tried on 3 different computers and its the same problem.
Where have i missed?

We have just upgraded SMF to 2.0.14 and are still running in maintance mode.

Title: Re: SA Chat
Post by: thepitster on June 19, 2017, 06:41:56 PM
I have got the same problem Nick has, when installed I see the chat bar at the bottom, I can even see the buddies in my list, but when I click on one, chat bar closes and nothing happens, SMF version 2.0.14.
Title: Re: SA Chat
Post by: OtterlyAdorable on June 20, 2017, 04:09:36 PM
Quote from: coltp45 on March 31, 2017, 11:04:50 AM
I have the same problem with the sound.    you say is not a mod problem? How you solved?

Thanks.

There's an option in the gear button (right on the chat menu bar) to turn off notification sounds.  =)
Title: Re: SA Chat
Post by: aegersz on July 13, 2017, 11:18:36 AM
Hi, I have copied my system to another backup server and have lost the chat bar.

what would cause this and is there an error log (i have checked all the usual places) that could help me ?

EDIT: I found that my other (dev) system had Sources and Plugins, so i copied those as well as the cache - and it worked !

what's going on ? my live site doesn't have them and it's working fine ... i'm confused.
Title: Re: SA Chat
Post by: efk on July 17, 2017, 09:37:47 AM
Hello guys, about 2 weeks ago I tried to install SA Chat and installed it successfully, but box is not showing up at the bottom of the page. Tried with friend some different things to make it work, but without progress. Any clue why box won't show up?
Also I have it on 2nd forum and it works like it should.
Title: Re: SA Chat
Post by: Novice on July 30, 2017, 06:18:00 PM
Quote from: Nicke P on June 07, 2017, 08:07:53 AM
Hi all.

I´ve recently installed this mod and i have some strange problem.
When i tries to chat, i see the person online but i cant press his name to get up the chatbox. But he can press my name and get the chatbox and he can write. But i cant see any chatbox.
I´ve tried on 3 different computers and its the same problem.
Where have i missed?

We have just upgraded SMF to 2.0.14 and are still running in maintance mode.



I have the same problem...Is their a resolution?
Title: Re: SA Chat
Post by: efk on July 30, 2017, 06:30:04 PM
Quote from: Novice on July 30, 2017, 06:18:00 PM
Quote from: Nicke P on June 07, 2017, 08:07:53 AM
Hi all.

I´ve recently installed this mod and i have some strange problem.
When i tries to chat, i see the person online but i cant press his name to get up the chatbox. But he can press my name and get the chatbox and he can write. But i cant see any chatbox.
I´ve tried on 3 different computers and its the same problem.
Where have i missed?

We have just upgraded SMF to 2.0.14 and are still running in maintance mode.



I have the same problem...Is their a resolution?
Check permissions, maybe is something disabled for your membergroup.

Quote from: efk on July 17, 2017, 09:37:47 AM
Hello guys, about 2 weeks ago I tried to install SA Chat and installed it successfully, but box is not showing up at the bottom of the page. Tried with friend some different things to make it work, but without progress. Any clue why box won't show up?
Also I have it on 2nd forum and it works like it should.
Reminder about my problem. I think I saw some solution somewhere about the problem when something is not appearing like it is supposed to be, but forgot where that was.
Title: Re: SA Chat
Post by: Novice on August 07, 2017, 07:33:55 PM
All permissions are set to use the function. I even tried giving everyone admin privileges but, still not working. I wondering if it has something to do with the version of php upgrade done to 2.0.14? I know that the site failed when it upgraded until I updated the version of php we used.
Title: Re: SA Chat
Post by: aegersz on September 01, 2017, 04:40:48 AM
please, is SA Chat encrypted over a SSL enabled site ?
Title: Re: SA Chat
Post by: Arantor on September 01, 2017, 07:07:41 AM
It should be, if you're not getting secure connection warnings in your browser then it works over secure if your site is SSL.
Title: Re: SA Chat
Post by: aegersz on September 01, 2017, 08:11:21 AM
excellent. I only permit chat for staff and trusted members but it's nice to know that our conversations, though not of any pernicious nature, are secure.

thank you.
Title: Re: SA Chat
Post by: Windependence on September 05, 2017, 04:43:06 AM
Quote from: GreenRacket on May 06, 2017, 01:46:47 AM
Quote from: GreenRacket on May 05, 2017, 12:24:34 PM
I set a default value for "inactive" to 0

Just to clarify: I altered the "inactive" column and set the default value to 0.
Sorry, it's not clear at all. Where did you set this value? What file? The admin panel? I can't find this anywhere. I made the code changes in Chat.php, but I have the chat bar and when I type nothing happens when enter is pressed. The typing doesn't appear in the chat window and the message doesn't send. I had the exact 2 errors you did. Would really like to get this working, looks like a great mod.

-Tim
Title: Re: SA Chat
Post by: thepitster on September 05, 2017, 05:57:51 PM
Windependence, I do believe he is talking about the Database column, but I could be wrong.
Title: Re: SA Chat
Post by: ArMaP on September 16, 2017, 04:40:37 PM
Seeing that this was asked twice and, apparently, got no answers, I don't have many hopes of getting an answer either, but here goes.

I installed this mod on a test forum I have on my own computer to see if it would be good for a forum in which I am administrator, but I'm getting two errors in the log:
INFO    Undefined index: database_error    File: C:\XXXX\YYYY\Sources\Subs-Db-mysql.php    Line: 1407

FATAL    Call to undefined function allowedTo()    File: C:\XXXX\YYYY\Sources\Subs-Db-mysql.php    Line: 1408


Any help would be appreciated. :)
Title: Re: SA Chat
Post by: aegersz on September 23, 2017, 02:05:46 PM
I found a conflict with this (old release and current release) and the Levertine Gallery.

I have attached the issue that occurs when i expect to see a media player popup normally. Disabling SA Chat fixes the problem and i suspect that it is theme related.

Can i disable the default theme in SA Chat ? is that possible AND without altering the appearance at all ?

If this makes sense to you then maybe someone could explain to me if i can get this mod and the player to coexist.

here is the Chrome Developer Tools caught error:
Title: Re: SA Chat
Post by: Kindred on September 23, 2017, 09:41:04 PM
As expected, it is a jquery comflict...
Title: Re: SA Chat
Post by: aegersz on September 24, 2017, 04:38:57 AM
I have no idea what that means -- does it imply that SA Chat is faulty?
Title: Re: SA Chat
Post by: Kindred on September 24, 2017, 07:53:27 PM
No, it means that both as chat and the gallery mod are trying to use or define the same code
Title: Re: SA Chat
Post by: Arantor on September 25, 2017, 02:46:44 AM
No, it means that the gallery checks before use if jQuery has been loaded and if not loads it. And chat doesn't look like it does that.
Title: Re: SA Chat
Post by: aegersz on September 25, 2017, 04:02:43 AM
it would be great if i could get this sorted because then i could go live with Levertine Gallery !

it's the only mod out of my 130+ that conflicts with it but is the author of SA Chat prepared to work on this ?

I haven't gone to the new version of SA Chat because i like the bar at the bottom of the page and the new version didn't seem to recognise all new members (?).

Thanks Arantor !
Title: Re: SA Chat
Post by: ErtugrulBEKTIK on January 12, 2018, 04:28:21 PM
Quote from: ErtugrulBEKTIK on August 14, 2015, 04:24:28 PM
I change it with this:
date_default_timezone_set('Europe/Istanbul');
but nothing has changed.

I solve the problem like that:

Open the file below.
sachat => Sources => Chat-Subs.php

Find:
$d = new \DateTime('@'.$value.'');

Replace:
$timeduzgun = $value+10800;
$d = new \DateTime('@'.$timeduzgun.'');



Note: The number in the code "10800" is second form of time. I mean 10800 seconds equal to 3 hours. I write code like this because my time zone is GMT+3. You colud do whatever your timezone. For example, if your timezone is GMT-6, you may write code like this "$timeduzgun = $value-21600;"
Title: Re: SA Chat
Post by: aegersz on January 12, 2018, 11:12:53 PM
is there any way to save a log of all chat messages for audit purposes ?

or something i can do to see some of it ?

it would be a handy thing for a site like mine so any help is most welcome !

thanks
Title: Re: SA Chat
Post by: aegersz on January 19, 2018, 01:55:54 PM
i opted for a daily email of a batch SQL query of the 2sicat table as the messages are purged daily also.

crude but it has the data that i want.

Title: Re: SA Chat
Post by: der_moron on January 22, 2018, 08:05:47 AM
i have installed SA Chat @ SMF- 2.0.15

the menu disappear !

Is there a solution to that?
Title: Re: SA Chat
Post by: aegersz on January 24, 2018, 03:58:24 PM
do you mean this menu: (?)

Home   Help   Search   Profile   My Messages   Calendar   Members   Logout

is this on a live or test system ? if you need to uninstall it quickly then try to via this starting point:

http://your-website-name/index.php?action=admin

then review the error logs and let us know what you find.
Title: Re: SA Chat
Post by: Novice on April 27, 2018, 09:11:33 PM
Quote from: aegersz on September 01, 2017, 04:40:48 AM
please, is SA Chat encrypted over a SSL enabled site ?

Sorry about the tardy reply: I'm a cancer patient and I have been out of commission for a while.

No on the SSL

I did see something about a server setting called "mod_security" that might need turned off if possible. I don't have a clue...Not a coder at all.
Title: Re: SA Chat
Post by: jafonseca on June 05, 2018, 06:13:46 AM
I have this error when install


Incorrect datetime value: '0000-00-00 00:00:00' for column 'isrd' at row 1
Archive: /home/uhdcl/public_html/Packages/temp/db.php
Line: 176

I have  mysql 5.7
Title: Re: SA Chat
Post by: Sir Osis of Liver on March 08, 2019, 11:46:37 PM
Anyone supporting this mod?  It will not work on GoDaddy server, chat windows open both ends, messages do not post.  Clean 2.0.15 install, clean db, no other mods.  No forum or server errors, these errors in chat error log -



INFO  Undefined index: database_error
File: /home/u0fgcfwp0drf/public_html/kotctest/Sources/Subs-Db-mysql.php
Line: 1407

FATAL  Call to undefined function allowedTo()
File: /home/u0fgcfwp0drf/public_html/kotctest/Sources/Subs-Db-mysql.php
Line: 1408



allowedTo() is defined function in Security.phpmod_security is enabled, GD will not disable.  Mod had been working, then tanked.  Works fine on my server.


Title: Re: SA Chat
Post by: shawnb61 on March 14, 2019, 10:53:34 PM
A note for SA Chat users experiencing these issues:

INFO  Undefined index: database_error
File: /blah/blah/Sources/Subs-Db-mysql.php
Line: xxxx

FATAL  Call to undefined function allowedTo()
File: /blah/blah/Sources/Subs-Db-mysql.php
Line: xxxx


We have confirmed that in some instances, providing a default value for the 'inactive' column in the smf_2sichat table resolves this issue.  NULL works. 

The problem is that in more strict mysql environments, inserts into smf_2sichat fail due to the lack of a value.  The error reporting also fails, resulting in these messages.  Providing a default fixes this.

Hope this helps,
Title: Re: SA Chat
Post by: Sir Osis of Liver on March 17, 2019, 06:44:51 PM
Shawn, if you're still watching this topic, found the IE11 login problem.  I know what's causing it, but don't know why.  If using header login, chat works.  Production forum has guest access disabled, so must use login window.  Chat does not see this login.  I've replicated the glitch on clean test install.  Header login, chat works, login window, chat fails.  Both work fine in FF65.  So far, it only happens to me, forum has members using IE successfully.


Found it.  Header login has default cookielength 'forever', login window is 60 min.  If either is set for 1 hr or 60 min, chat fails, otherwise it works.  Must be a conflict with one of the chat settings.
Title: Re: SA Chat
Post by: shawnb61 on March 17, 2019, 10:06:20 PM
SOoL:

(Makes me think of Ghostbusters...)

I cannot duplicate exactly...  HOWEVER, 2 things to look at... 
- I can get odd nonresponse if I let a cookie expire.  So, maybe there are cookie issues.  If you haven't already, clear all your cookies in IE11 & try logging off & back on. 
- I can get various states of non-operation by increasing the IE overall security level.  The highest level I can get SA Chat to work on in IE is Medium.  Try decreasing security, using default settings & restarting IE. 

Hope this helps,
Title: Re: SA Chat
Post by: Sir Osis of Liver on March 18, 2019, 12:39:46 PM
Turns out it's easy to fix.  Changed default login cookie length in server settings to 65 minutes, now it works for me in IE11.  SA Chat drops it's own cookie, there must be a conflict in cookie handling between forum and mod that affects IE.  I had already tried disabling all browser security, didn't help.  Header login would require code edit to implement the fix, but their theme doesn't use header login so I'm not bothering with it.

Title: Re: SA Chat
Post by: 4everBlue on March 22, 2019, 02:21:43 PM
In the Admin CP there is a control to Disable SA Chat.  That one is self- explanatory.  Then there is Disable Bar, which is labeled "Disable chat bar leaving features".  What is the difference between the two?  What features remain?
Title: Re: SA Chat
Post by: Abavagada on April 26, 2019, 05:22:42 PM
I've installed this mod on my forum, version 2.0.15, and got no errors on installing, but nothing appears. FireFox kicks back an error loading "http://www.mydomain.com/forum/sachat/index.php?action=body", saying it failed.

The url is correct, and putting it in the browser directly gets me a "500 Server Error
A misconfiguration on the server caused a hiccup. Check the server logs, fix the problem, then try again. " Nothing shows in my server error logs or the forum error logs.

Any ideas why this is happening and how do I fix it?
Title: Re: SA Chat
Post by: Oldiesmann on May 01, 2019, 11:18:29 PM
If there's nothing in the server error log about it, I'd recommend contacting your host.
Title: Re: SA Chat
Post by: kesulin on June 04, 2019, 09:12:33 AM
Excelent mod. It use create_function() that is obsolete now. I fix it and a minor problem with count() function. Without fix anything the mod works, excelent job.
Title: Re: SA Chat
Post by: Jailer on July 04, 2019, 07:02:24 PM
My error log is getting spammed with this error after trying this chat mod.

WARN

count(): Parameter must be an array or an object that implements Countable

File: /usr/local/www/nginx/sachat/Sources/Users.php
Line: 161


I'm also not able to get anything to show up in the chat window. I type, hit enter and the text disappears. Any idea what is causing this?

Also is it possible to chat with multiple people with this mod?
Title: Re: SA Chat
Post by: Jailer on July 06, 2019, 05:06:56 PM
A little more info in case someone needs it since I can't edit my previous post.

Error in the browser console when trying to start a chat:
index.php?action=head:5 GET https://mlcnfriends.com/sachat/index.php?theme=default&cid=49&msg=test&_=1562446613152 500

Error from my server log when trying to start a chat:
Stack trace:
#0 /usr/local/www/nginx/Sources/Subs-Db-mysql.php(1171): SMF_DB_MySQLi->error('\n\t\t\tINSERT INTO...', Object(mysqli))
#1 /usr/local/www/nginx/Sources/Subs-Db-mysql.php(1487): SMF_DB_MySQLi->query('', '\n\t\t\tINSERT INTO...', Array, Object(mysqli))
#2 /usr/local/www/nginx/sachat/Sources/Chat.php(83): SMF_DB_MySQLi->insert('', 'mlcnf_2sichat', Array, Array, Array)
#3 /usr/local/www/nginx/sachat/index.php(115): savemsg()
#4 {main}
  thrown in /usr/local/www/nginx/Sources/Subs-Db-mysql.php on line 1408
PHP message: PHP Fatal error:  Uncaught Error: Call to undefined function allowedTo() in /usr/local/www/nginx/Sources/Subs-Db-mysql.php:1408
Stack trace:
#0 /usr/local/www/nginx/Sources/Subs-Db-mysql.php(1171): SMF_DB_MySQLi->error('\n\t\t\tINSERT INTO...', Object(mysqli))
#1 /usr/local/www/nginx/Sources/Subs-Db-mysql.php(1487): SMF_DB_MySQLi->query('', '\n\t\t\tINSERT INTO...', Array, Object(mysqli))
#2 /usr/local/www/nginx/sachat/Sources/Errors.php(65): SMF_DB_MySQLi->insert('', '\n\t\t\t\t\t  mlcnf_2...', Array, Array, Array)
#3 /usr/local/www/nginx/sachat/Sources/Errors.php(51): logError('/usr/local/www/...', 1408, 'Uncaught Error:...', 'FATAL')
#4 [internal function]: shutdownHandler()
#5 {main}
  thrown in /usr/local/www/nginx/Sources/Subs-Db-mysql.php on line 1408" while reading response header from upstream, client: 67.209.241.26, server: mlcnfriends.com, request: "GET /sachat/index.php?theme=default&cid=49&msg=test&_=1562446679926 HTTP/1.0", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "mlcnfriends.com", referrer: "https://mlcnfriends.com/index.php?action=profile;u=2;area=theme"
2019/07/06 16:58:43 [warn] 4267#101791: *62031 an upstream response is buffered to a temporary file /var/tmp/nginx/fastcgi_temp/5/11/0000000115 while reading upstream, client: 67.209.241.26, server: mlcnfriends.com, request: "GET /sachat/index.php?action=head HTTP/1.0", upstream: "fastcgi://unix:/var/run/php-fpm.sock:", host: "mlcnfriends.com", referrer: "https://mlcnfriends.com/index.php?action=admin"

Title: Removing SA Chat Completely
Post by: SethStudent on July 19, 2019, 12:56:32 PM
I just did a trial run of updating to 2.1RC2. Mods were turned off in the test site, which is fine. I deleted all Mods, the Package Manager says "No packages yet"  but SA Chat is still showing up as a dropdown in the Admin menu (Main—Configuration—SA Chat—Forum—Members—Maintenance).

I deleted the tables in the db containing smf_2sichat, but it's not going away. Any idea of what I can do to get rid of it completely?
Title: Re: SA Chat
Post by: Kindred on July 19, 2019, 01:19:32 PM
you have to uninstall the mod(s). Deleting them does nothing.
Replacing SMF files only disabled the mods which use code edits.

Mod which use hooks need to be uninstalled....
or use the remove_hooks script (but that removes all hooks)
Title: Re: SA Chat
Post by: SethStudent on July 19, 2019, 03:31:35 PM
Quote from: Kindred on July 19, 2019, 01:19:32 PM
you have to uninstall the mod(s). Deleting them does nothing.

Thanks for the quick reply! I thought all of my mods were uninstalled in the Package Manager after the update since the options were Delete—List Files—Install Mod. Is it even possible to delete a Mod thru the Pkg Mgr without uninstalling it first? I just deleted them all because I only had a few and most are now standards included with 2.1 (partial quotes, drafts, mentions, etc.)

I don't know a thing about the remove_hooks script, I'm not that technical (better at following instructions). Now I'm thinking when the time comes to update to 2.1 for "real" I should first disable and remove all mods, except for maybe the patches that brought me up to 2.0.15.
Title: Re: SA Chat
Post by: Arantor on July 19, 2019, 04:33:15 PM
QuoteIs it even possible to delete a Mod thru the Pkg Mgr without uninstalling it first? I just deleted them all because I only had a few and most are now standards included with 2.1 (partial quotes, drafts, mentions, etc.)

Yes, and it will leave it installed if you do so. This is useful if you have an old forum that's had all the patches (e.g. started out at 2.0.0 and upgraded to 2.0.15) where you can delete the patches and tidy up the package manager without worrying about uninstalling things.

Best suggestion: reupload the SA Chat mod, it should then give you the uninstall option.
Title: Re: SA Chat
Post by: SethStudent on July 19, 2019, 05:30:29 PM
Re-uploaded SA Chat, things looked fine until I clicked "Install Now". Got this:

QuoteYou have an error in your SQL syntax; check the manual that corresponds to your MariaDB server version for the right syntax to use near 'to,from,msg,sent,inactive,rd,isrd)
SELECT id,to,from,msg,sent,inactive,rd,isr' at line 1
File: /home/myname/public_html/speakingofseth_2.1/Packages/temp/db.php
Line: 172

Line 172 in that file is:       array(), 'update');

I'll just note this for when I update my production site, it's really not urgent that I fix it in this test site and I'm just trying to get a feel for what's involved so I can avoid unnecessary problems.

There were a couple of odd things that happened during the update process. Not knowing whether they are bugs, I'll continue to post them here. Unless there's a list somewhere of unresolved bugs that I can look over.
Title: Re: SA Chat
Post by: Arantor on July 19, 2019, 05:52:11 PM
Uh... I said to upload it, just so the file would be there and then you could hit the uninstall button, not to actually install it.

But in theory you should just be able to go back to the package manager to uninstall it and have it clear things up for you.
Title: Re: SA Chat
Post by: SethStudent on July 19, 2019, 06:08:18 PM
I wasn't able to install it anyway, so I deleted it.

Uploading SA Chat gave me these options: Delete — List Files — Install Mod. After deleting, Browse Packages says "No packages yet." But SA Chat remains in the Admin Center as a dropdown. Clicking any link in the dropdown results in "An error has occurred, Unable to load the 'main' template."

As a "PS" settings for another mod that I deleted after updating, Simple Audio Video Embedder, is gone, so at least that worked correctly.
Title: Re: SA Chat
Post by: Kindred on July 19, 2019, 07:15:13 PM
As I said.... any mod that has left hooks will not fully uninstall until you remove those hooks.

with the condition your system is currently in, I expect that you will see other errors scattered around from other mods that were hooked.

Seriously, use the remove hooks script and remove the hooks.
Title: remove hooks
Post by: SethStudent on July 19, 2019, 07:33:41 PM
Quote from: Kindred on July 19, 2019, 07:15:13 PM
Seriously, use the remove hooks script and remove the hooks.

Sorry,  from your earlier post about it sounded like it would affect more than just mods. 

A little searching told me it's part of repair_settings.php, which I ran and it fixed the problem.

Thank you so much, you're off the hook on this one!  :)
Title: Re: SA Chat
Post by: aegersz on September 04, 2019, 06:21:52 PM
for some reason, my dev/test system has lost chat.

the error from my browser dev tools Console error says {"STATUS":"NO ACCESS"} for index.php

... but it's identical to my live system and i just cannot work this out after many hours ~ no problems with file access etc. A reinstall doesn't help. SA Chat simply doesn't start at all.

PLEASE can anyone tell me why i would be getting this error and/or what it means.
Title: Re: SA Chat
Post by: kesulin on February 06, 2020, 02:36:15 AM
I everyone. This mod is not compatible with 2.0.17.

the error is:
{"STATUS":"AUTH FAILED"}

I read about cookies changes in 2.0.16 and test about it with the mod. There are the bug to fix.

This is the function:
function initCookies() {
global $cookiename;

if (isset($_COOKIE[$cookiename]) && preg_match('~^a:[34]:\{i:0;(i:\d{1,6}|s:[1-8]:"\d{1,8}");i:1;s:(0|40):"([a-fA-F0-9]{40})?";i:2;[id]:\d{1,14};(i:3;i:\d;)?\}$~i', $_COOKIE[$cookiename]) == 1) {
list ($member_id, $password) = @unserialize($_COOKIE[$cookiename]);
$member_id = !empty($member_id) && strlen($password) > 0 ? (int) $member_id : 0;

return array($member_id, $password);
} elseif (isset($_COOKIE[$cookiename])) {
list ($member_id, $password) = @unserialize(stripslashes($_COOKIE[$cookiename]));
$member_id = !empty($member_id) && strlen($password) > 0 ? (int) $member_id : 0;

return array($member_id, $password);
}
}


Some knows how to fix the cookies for 2.0.16?
Title: Re: SA Chat
Post by: kesulin on February 06, 2020, 10:02:10 AM
I wrote a post by i can't see it. Why?
Title: Re: SA Chat
Post by: aegersz on February 11, 2020, 02:33:34 AM
Quote from: aegersz on September 04, 2019, 06:21:52 PM
for some reason, my dev/test system has lost chat.

the error from my browser dev tools Console error says {"STATUS":"NO ACCESS"} for index.php

... but it's identical to my live system and i just cannot work this out after many hours ~ no problems with file access etc. A reinstall doesn't help. SA Chat simply doesn't start at all.

PLEASE can anyone tell me why i would be getting this error and/or what it means.

Fixed it as .htaccess had been modified by Pretty URLs.
Title: Re: SA Chat
Post by: aegersz on February 11, 2020, 02:35:00 AM
Staying at 2.0.15 as 2.0.16 loses the Chat Bar.

If anybody knows why (I assume it's something like the guy above me mentioned but I didn't see that error.

Any input would be welcome.
Title: Re: SA Chat
Post by: kesulin on February 11, 2020, 02:37:58 AM
Quote from: aegersz on February 11, 2020, 02:35:00 AM
Staying at 2.0.15 as 2.0.16 loses the Chat Bar.

If anybody knows why (I assume it's something like the guy above me mentioned but I didn't see that error.

Any input would be welcome.
I ask about it in spanish forum and linked me this function:
https://support.simplemachines.org/function_db/index.php?action=view_function;id=246 (https://support.simplemachines.org/function_db/index.php?action=view_function;id=246)

I try use it but can't make work it.
Title: Re: SA Chat
Post by: aegersz on February 11, 2020, 03:36:56 AM
Cleared cookies, changed the cookies' name, ran all maint. uninstalled + reinstalled it, logged off/on but all failed to give me a chat bar and I get the same

STATUS: "AUTH FAILED" twice in index.php (as above)
Title: Re: SA Chat
Post by: aegersz on February 11, 2020, 11:50:40 AM
I also tried this but to no avail:

https://www.simplemachines.org/community/index.php?topic=570989.msg4041539#msg4041539

(Line 326 in .Sources/ManageServer.php also)
Title: Re: SA Chat
Post by: Diego Andrés on February 11, 2020, 05:54:26 PM
So don't really know what I'm doing but to my understanding I couldn't find another instance or usage of $password in the index.php so I did the following

Code (sachat/index.php) Select

//SMF Cookie autentication!!!
list ($member_id, $password) = initCookies();

Code (replace) Select

//SMF Cookie autentication!!!
$member_id = initCookies();


Code (sachat/Sources/Subs.php) Select

function initCookies() {
global $cookiename;

if (isset($_COOKIE[$cookiename]) && preg_match('~^a:[34]:\{i:0;(i:\d{1,6}|s:[1-8]:"\d{1,8}");i:1;s:(0|40):"([a-fA-F0-9]{40})?";i:2;[id]:\d{1,14};(i:3;i:\d;)?\}$~i', $_COOKIE[$cookiename]) == 1) {
list ($member_id, $password) = @unserialize($_COOKIE[$cookiename]);
$member_id = !empty($member_id) && strlen($password) > 0 ? (int) $member_id : 0;

return array($member_id, $password);
} elseif (isset($_COOKIE[$cookiename])) {
list ($member_id, $password) = @unserialize(stripslashes($_COOKIE[$cookiename]));
$member_id = !empty($member_id) && strlen($password) > 0 ? (int) $member_id : 0;

return array($member_id, $password);
}
}

Code (replace) Select
function initCookies() {
global $cookiename;

if (isset($_COOKIE[$cookiename]) && preg_match('~^a:[34]:\{i:0;(i:\d{1,6}|s:[1-8]:"\d{1,8}");i:1;s:(0|40):"([a-fA-F0-9]{40})?";i:2;[id]:\d{1,14};(i:3;i:\d;)?\}$~i', $_COOKIE[$cookiename]) == 1) {
list ($id_member, $password) = @unserialize($_COOKIE[$cookiename]);
$id_member = !empty($id_member) && strlen($password) > 0 ? (int) $id_member : 0;

return $id_member;
} elseif (isset($_COOKIE[$cookiename])) {
list ($id_member, $password, $login_span) = @unserialize($_SESSION['login_' . $cookiename]);
$id_member = !empty($id_member) && strlen($password) > 0 ? (int) $id_member : 0;

return $id_member;
}
}


And seems to be working on SMF 2.0.17

If anyone else with more knowledge about this can give the mod a look would be great and appreciated.  :laugh:




Also

Code (sachat/Sources/User.php) Select

$context['online_count'] = count(isset($context['friends']) ? $context['friends'] : null);
}
if ($type == 'list') {
$data = buddy_list_template();
return $data;
}
if ($type == 'count') {
return count(isset($context['friends']) ? $context['friends'] : null);
}

Code (replace) Select
$context['online_count'] = count(isset($context['friends']) ? $context['friends'] : []);
}
if ($type == 'list') {
$data = buddy_list_template();
return $data;
}
if ($type == 'count') {
return count(isset($context['friends']) ? $context['friends'] : []);
}
Title: Re: SA Chat
Post by: aegersz on February 11, 2020, 06:55:45 PM
will give it a try later, thanks !
Title: Re: SA Chat
Post by: aegersz on February 11, 2020, 07:06:31 PM
There is no sachat/Sources directory so i am totally lost.


Quote from: Diego Andrés on February 11, 2020, 05:54:26 PM
So don't really know what I'm doing but to my understanding I couldn't find another instance or usage of $password in the index.php so I did the following

Code (sachat/index.php) Select

//SMF Cookie autentication!!!
list ($member_id, $password) = initCookies();

Code (replace) Select

//SMF Cookie autentication!!!
$member_id = initCookies();


Code (sachat/Sources/Subs.php) Select

function initCookies() {
global $cookiename;

if (isset($_COOKIE[$cookiename]) && preg_match('~^a:[34]:\{i:0;(i:\d{1,6}|s:[1-8]:"\d{1,8}");i:1;s:(0|40):"([a-fA-F0-9]{40})?";i:2;[id]:\d{1,14};(i:3;i:\d;)?\}$~i', $_COOKIE[$cookiename]) == 1) {
list ($member_id, $password) = @unserialize($_COOKIE[$cookiename]);
$member_id = !empty($member_id) && strlen($password) > 0 ? (int) $member_id : 0;

return array($member_id, $password);
} elseif (isset($_COOKIE[$cookiename])) {
list ($member_id, $password) = @unserialize(stripslashes($_COOKIE[$cookiename]));
$member_id = !empty($member_id) && strlen($password) > 0 ? (int) $member_id : 0;

return array($member_id, $password);
}
}

Code (replace) Select
function initCookies() {
global $cookiename;

if (isset($_COOKIE[$cookiename]) && preg_match('~^a:[34]:\{i:0;(i:\d{1,6}|s:[1-8]:"\d{1,8}");i:1;s:(0|40):"([a-fA-F0-9]{40})?";i:2;[id]:\d{1,14};(i:3;i:\d;)?\}$~i', $_COOKIE[$cookiename]) == 1) {
list ($id_member, $password) = @unserialize($_COOKIE[$cookiename]);
$id_member = !empty($id_member) && strlen($password) > 0 ? (int) $id_member : 0;

return $id_member;
} elseif (isset($_COOKIE[$cookiename])) {
list ($id_member, $password, $login_span) = @unserialize($_SESSION['login_' . $cookiename]);
$id_member = !empty($id_member) && strlen($password) > 0 ? (int) $id_member : 0;

return $id_member;
}
}


And seems to be working on SMF 2.0.17

If anyone else with more knowledge about this can give the mod a look would be great and appreciated.  :laugh:




Also

Code (sachat/Sources/User.php) Select

$context['online_count'] = count(isset($context['friends']) ? $context['friends'] : null);
}
if ($type == 'list') {
$data = buddy_list_template();
return $data;
}
if ($type == 'count') {
return count(isset($context['friends']) ? $context['friends'] : null);
}

Code (replace) Select
$context['online_count'] = count(isset($context['friends']) ? $context['friends'] : []);
}
if ($type == 'list') {
$data = buddy_list_template();
return $data;
}
if ($type == 'count') {
return count(isset($context['friends']) ? $context['friends'] : []);
}

Title: Re: SA Chat
Post by: Kindred on February 11, 2020, 07:13:34 PM
Sources/SAchat...
Title: Re: SA Chat
Post by: aegersz on February 11, 2020, 07:35:26 PM
Quote from: Kindred on February 11, 2020, 07:13:34 PM
Sources/SAchat...

Nope, doesn't exist
Title: Re: SA Chat
Post by: Diego Andrés on February 11, 2020, 07:38:16 PM
It's in the root directory of the forum  :o
Title: Re: SA Chat
Post by: aegersz on February 11, 2020, 07:44:02 PM
Quote from: Diego Andrés on February 11, 2020, 07:38:16 PM
It's in the root directory of the forum  :o

Not on mine. I have no idea where that is other than the SMF Subs.php in Sources and User.php doesn't exist anywhere !
Title: Re: SA Chat
Post by: Antechinus on February 11, 2020, 08:55:43 PM
Umm, this might be your problem. :)
Title: Re: SA Chat
Post by: Diego Andrés on February 11, 2020, 09:27:05 PM
I think you might not have the 1.0a1 version installed which seems to be the latest one according to the mod page  ;D
The cookie changes can be done in the functions.php file for that version that you are using, but I'd recommend using the latest one? Who knows how old the 0.1.5 version is  :o
Title: Re: SA Chat
Post by: aegersz on February 13, 2020, 07:59:50 PM
I have version 0.1.5 Rev110  installed.

I installed the newest version and your changes but no luck. Looks like I'm doomed top sit on 0.15 for the interim.
Title: Re: SA Chat
Post by: -Rock Lee- on February 13, 2020, 09:18:12 PM
Quote from: aegersz on February 13, 2020, 07:59:50 PM
I have version 0.1.5 Rev110  installed.

I installed the newest version and your changes but no luck. Looks like I'm doomed top sit on 0.15 for the interim.

I downloaded the latest version of the modification to apply the changes to the installer and then install, it worked without problems with the suggested changes. That is, download version 1.0a1 Rev120 unzipped it to find the files to be edited, compressed it again to proceed to install and it worked in my test version that I am running 2.0.17.


Regards!
Title: Re: SA Chat
Post by: aegersz on February 13, 2020, 09:19:35 PM
Quote from: aegersz on February 13, 2020, 07:59:50 PM
I have version 0.1.5 Rev110  installed.

Interestingly, the new version of SA Chat failed even before any 2.0.16 changes were applied.

I installed the newest version and your changes but no luck. Looks like I'm doomed top sit on 0.15 for the interim.
Title: Re: SA Chat
Post by: aegersz on February 13, 2020, 09:43:32 PM
I have other issues by the looks of it - the other version (Rev120) doesn't work on my 2.0.15 either.

Anyhow, thanks for your help.

EDIT: After all the changes, I had to remove the Live Clock mod and then it started working ! Thanks for your help.
Title: Re: SA Chat
Post by: kesulin on February 14, 2020, 02:51:38 AM
Quote from: Diego Andrés on February 11, 2020, 05:54:26 PM
So don't really know what I'm doing but to my understanding I couldn't find another instance or usage of $password in the index.php so I did the following

Code (sachat/index.php) Select

//SMF Cookie autentication!!!
list ($member_id, $password) = initCookies();

Code (replace) Select

//SMF Cookie autentication!!!
$member_id = initCookies();


Code (sachat/Sources/Subs.php) Select

function initCookies() {
global $cookiename;

if (isset($_COOKIE[$cookiename]) && preg_match('~^a:[34]:\{i:0;(i:\d{1,6}|s:[1-8]:"\d{1,8}");i:1;s:(0|40):"([a-fA-F0-9]{40})?";i:2;[id]:\d{1,14};(i:3;i:\d;)?\}$~i', $_COOKIE[$cookiename]) == 1) {
list ($member_id, $password) = @unserialize($_COOKIE[$cookiename]);
$member_id = !empty($member_id) && strlen($password) > 0 ? (int) $member_id : 0;

return array($member_id, $password);
} elseif (isset($_COOKIE[$cookiename])) {
list ($member_id, $password) = @unserialize(stripslashes($_COOKIE[$cookiename]));
$member_id = !empty($member_id) && strlen($password) > 0 ? (int) $member_id : 0;

return array($member_id, $password);
}
}

Code (replace) Select
function initCookies() {
global $cookiename;

if (isset($_COOKIE[$cookiename]) && preg_match('~^a:[34]:\{i:0;(i:\d{1,6}|s:[1-8]:"\d{1,8}");i:1;s:(0|40):"([a-fA-F0-9]{40})?";i:2;[id]:\d{1,14};(i:3;i:\d;)?\}$~i', $_COOKIE[$cookiename]) == 1) {
list ($id_member, $password) = @unserialize($_COOKIE[$cookiename]);
$id_member = !empty($id_member) && strlen($password) > 0 ? (int) $id_member : 0;

return $id_member;
} elseif (isset($_COOKIE[$cookiename])) {
list ($id_member, $password, $login_span) = @unserialize($_SESSION['login_' . $cookiename]);
$id_member = !empty($id_member) && strlen($password) > 0 ? (int) $id_member : 0;

return $id_member;
}
}


And seems to be working on SMF 2.0.17

If anyone else with more knowledge about this can give the mod a look would be great and appreciated.  :laugh:




Also

Code (sachat/Sources/User.php) Select

$context['online_count'] = count(isset($context['friends']) ? $context['friends'] : null);
}
if ($type == 'list') {
$data = buddy_list_template();
return $data;
}
if ($type == 'count') {
return count(isset($context['friends']) ? $context['friends'] : null);
}

Code (replace) Select
$context['online_count'] = count(isset($context['friends']) ? $context['friends'] : []);
}
if ($type == 'list') {
$data = buddy_list_template();
return $data;
}
if ($type == 'count') {
return count(isset($context['friends']) ? $context['friends'] : []);
}

¡works great!¡fantastic work!

thanks very much  :-*
Title: Re: SA Chat
Post by: Sir Osis of Liver on February 16, 2020, 12:28:05 AM
I've had this working on a forum in 2.0.15, but it disappears in .16/.17.  Can it be fixed?
Title: Re: SA Chat
Post by: -Rock Lee- on February 16, 2020, 10:31:39 AM
Quote from: Sir Osis of Liver on February 16, 2020, 12:28:05 AM
I've had this working on a forum in 2.0.15, but it disappears in .16/.17.  Can it be fixed?

Did you try the solution I leave @Diego Andrés? I tried it and it worked!


Regards!
Title: Re: SA Chat
Post by: Sir Osis of Liver on February 20, 2020, 04:41:40 PM
Finally got around to this.  Modded SA Chat code as per -

https://www.simplemachines.org/community/index.php?topic=391961.msg4046455#msg4046455

Works in 2.0.17.  Thanks.
Title: Re: SA Chat
Post by: aegersz on February 20, 2020, 05:51:54 PM
The new version (even prior to any 2.0.16/17) does not show the correct number of online users.

Does anyone else have this problem ?

if i can get REV120 working correctly then I can't upgrade.

Can anybody help ?
Title: Re: SA Chat
Post by: Sir Osis of Liver on February 20, 2020, 05:57:32 PM
Did the code edits posted above to 1.0a Rev120, upgraded 2.0.15 -> 2.0.17, and it seems to be working correctly.  Not a very busy forum, only myself and one other member active, but it's showing the one member.
Title: Re: SA Chat
Post by: aegersz on February 20, 2020, 06:28:09 PM
in my dev system, i have 3 active online members and only one member shows the other 2.

Can you please try a third test user or something to see how if behaves ?
Title: Re: SA Chat
Post by: Sir Osis of Liver on February 20, 2020, 06:36:40 PM
Not my forum, don't like to play too much.  I'll try it when there's more members active. 
Title: Re: SA Chat
Post by: aegersz on February 20, 2020, 09:04:57 PM
I found that the new version isn't as reliable as the old version so it looks like I'm staying on 2.0.15 forever.

Thanks anyway.
Title: Re: SA Chat
Post by: kesulin on February 21, 2020, 02:43:28 AM
Quote from: aegersz on February 20, 2020, 09:04:57 PM
I found that the new version isn't as reliable as the old version so it looks like I'm staying on 2.0.15 forever.

Thanks anyway.
In my forum works fine, with the correct number of online users.
Check it:
castronegro.net (http://castronegro.net)
Title: Re: SA Chat
Post by: aegersz on February 21, 2020, 03:46:53 AM
Since the new version (REV120) is not as reliable as the old version for me so this is how to upgrade the old revision (SAChatBar-1.0a) to 2.0.16 -> 17 partially borrowed from SMF's Diego Andrés here (https://www.simplemachines.org/community/index.php?topic=391961.msg4046455#msg4046455)   

Locate: ./sachat/index.php //SMF Cookie autentication!!!
list ($member_id, $password) = initCookies();


Replace: //SMF Cookie autentication!!!
$member_id = initCookies();


Locate:         // Lets validate the password, anyone can put a number in a cookie, lets see if the password checks out.
        if (isset($user_settings['passwd']) && strlen($password) != 40 || isset($user_settings['passwd']) && sha1($user_settings['passwd'] . $user_settings['password_salt']) != $password) {
                $context['JSON']['STATUS'] = 'AUTH FAILED';
                doOutput();
        } else {
                $context['JSON']['STATUS'] = 'ACTIVE';
        }


Replace:         // No need to validate the password since 2.0.16
        $context['JSON']['STATUS'] = 'ACTIVE';


Locate: ./sachat/functions.php function initCookies() {
global $cookiename;

if (isset($_COOKIE[$cookiename]) && preg_match('~^a:[34]:\{i:0;(i:\d{1,6}|s:[1-8]:"\d{1,8}");i:1;s:(0|40):"([a-fA-F0-9]{40})?";i:2;[id]:\d{1,14};(i:3;i:\d;)?\}$~i', $_COOKIE[$cookiename]) == 1) {
list ($member_id, $password) = @unserialize($_COOKIE[$cookiename]);
$member_id = !empty($member_id) && strlen($password) > 0 ? (int) $member_id : 0;

return array($member_id, $password);
} elseif (isset($_COOKIE[$cookiename])) {
list ($member_id, $password) = @unserialize(stripslashes($_COOKIE[$cookiename]));
$member_id = !empty($member_id) && strlen($password) > 0 ? (int) $member_id : 0;

return array($member_id, $password);
}
}


Replace: function initCookies() {
global $cookiename;

if (isset($_COOKIE[$cookiename]) && preg_match('~^a:[34]:\{i:0;(i:\d{1,6}|s:[1-8]:"\d{1,8}");i:1;s:(0|40):"([a-fA-F0-9]{40})?";i:2;[id]:\d{1,14};(i:3;i:\d;)?\}$~i', $_COOKIE[$cookiename]) == 1) {
list ($id_member, $password) = @unserialize($_COOKIE[$cookiename]);
$id_member = !empty($id_member) && strlen($password) > 0 ? (int) $id_member : 0;

return $id_member;
} elseif (isset($_COOKIE[$cookiename])) {
list ($id_member, $password, $login_span) = @unserialize($_SESSION['login_' . $cookiename]);
$id_member = !empty($id_member) && strlen($password) > 0 ? (int) $id_member : 0;

return $id_member;
}
}


This works on 2.0.17
Title: Re: SA Chat
Post by: aegersz on February 21, 2020, 01:19:22 PM
the previous post has an error as it mentions "SAChatBar-1.0a" but it is really called "SAChatBar-0.1.5 "

attached is the file that incorporates the above code changes that I named SAChatBar-0.1.6 Rev 111
Title: Re: SA Chat
Post by: Diego Andrés on February 21, 2020, 03:41:41 PM
Still don't think anyone should be using the old version it's at least 5 years old.
Title: Re: SA Chat
Post by: aegersz on February 21, 2020, 05:00:27 PM
I am all about staying current in all possible situations but the newest version simply fails to work as well for me.

Rather that spend a great deal of time figuring out why it doesn't see all the online members, i will stick with what works best for me.

Anyhow, i learned a little and got it working so that brings with it a sense of satisfaction.

The mod, unlike many others, offers two versions and this might be the reason why.

Due to my large number of mods, i am still not brave enough to upgrade my live environment yet.
Title: Re: SA Chat
Post by: Sir Osis of Liver on February 21, 2020, 10:14:25 PM
Try the attached.
Title: Re: SA Chat
Post by: aegersz on February 24, 2020, 02:25:52 AM
What version of SA Chat and for 2.0.16 ?
Title: Re: SA Chat
Post by: Sir Osis of Liver on February 24, 2020, 12:08:31 PM
1.0a Rev120 running in 2.0.17.  Works fine.
Title: Re: SA Chat
Post by: aegersz on February 24, 2020, 01:01:04 PM
... but that zip file doesn't contain any install code for the Package Manager (?) and isn't in FAT format.
Title: Re: SA Chat
Post by: aegersz on March 15, 2020, 07:21:10 PM
I cannot get this to work on CentOS7. the bar is missing and the Dev Tools say "STATS: NO ACCESS" from the js library but the permissions are correct.

any ideas ? i'm in  Apache/2.4.6 (CentOS)
Title: Re: SA Chat
Post by: aegersz on March 27, 2020, 01:11:31 AM
Fixed ! I ran repair_settings.php and despite being no reported changes, it worked.
Title: Re: SA Chat
Post by: Relaxasaurus on April 18, 2020, 02:27:53 PM
I stopped using this package for my SMF forum a while ago and notice the smf_2sichat db table is enormous. Is it ok if I delete these three tables from my DB?

- smf_2sichat
- smf_2sichat_barlinks
- smf_2sichat_gadgets

I don't see the package in my installed list of packages page anymore.
Title: Re: SA Chat
Post by: Sir Osis of Liver on April 18, 2020, 04:36:12 PM
If the mod is uninstalled you can delete the tables.
Title: Re: SA Chat
Post by: vojislavPrijovic on May 08, 2020, 03:29:50 PM
SMF 2.0.11 work Mozilla, not work Chrome  8)
Title: Re: SA Chat
Post by: Kindred on May 08, 2020, 03:48:39 PM
1- upgrade your SMF. You are 6 versions behind.

2- Yes, new chrome has broken many, if not most things
Title: Re: SA Chat
Post by: vojislavPrijovic on May 08, 2020, 05:09:37 PM
Thanks  :)
Title: Re: SA Chat
Post by: aegersz on May 16, 2021, 01:59:13 AM
Important PHP 7.2 and onwards bug fix:

in ./sachat/index.php:

find:
        session_start();
        session_cache_limiter('nocache'); //Shouldent this be before session_start() http://php.net/manual/en/function.session-cache-limiter.php


replace:
        session_cache_limiter('nocache'); // goes before "session_start();" see php.net/manual/en/function.session-cache-limiter.php
        session_start();
Title: Re: SA Chat
Post by: aegersz on May 16, 2021, 03:28:24 AM
Trivial spyware removal: (see https://www.2-spyware.com/remove-s7-addthis-com.html)

in ./sachat/themes/default/js/body.js.php:

comment out this line so it looks like this:
//                      $sachat.getScript(\'http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-503f263237ff99da\');
Title: Re: SA Chat
Post by: aegersz on May 16, 2021, 11:58:45 AM
another fix (by SMF helpers) for PHP 7.2 and above:

see https://www.simplemachines.org/community/index.php?topic=577720
Title: Re: SA Chat
Post by: Diego Andrés on May 17, 2021, 02:22:19 PM
Thanks, will push those soonish (early next month probably), please remind me if I forget.
Title: Re: SA Chat
Post by: aegersz on May 31, 2021, 08:20:58 AM
With MySQL 5.7, the mod fails and produces multiple php_error_log entries that say:

Undefined index: database_error in ./Sources/Subs-Db-mysql.php

PHP Fatal error: Call to undefined function allowedTo() in /Sources/Subs-Db-mysql.php on line 1427


Now, that function call to allowedTo relies on Security.php to be loaded (how does SMF load it?)

I had to back to MySQL 5.6 to get it working again.

Any ideas on why this would happen ? I tried every trick I had but no luck.

Much appreciated if you could help.
Title: Re: SA Chat
Post by: aegersz on May 31, 2021, 10:07:44 AM
@Diego Andrés,

I did it for you, see attached.
Title: Re: SA Chat
Post by: aegersz on June 07, 2021, 01:43:10 AM
... and here is the original version with it's patches. I keep this one around for group chats as the new version doesn't support that.
Title: Re: SA Chat
Post by: Diego Andrés on June 07, 2021, 02:06:53 PM
Thanks, will take a look later this week and update the repo too.
Title: Re: SA Chat
Post by: Diego Andrés on June 11, 2021, 02:14:32 PM
I pushed the previous changes to a github repo
https://github.com/SMFTricks/SA-Chat

Could you let me know what files you modified on your first attachment so I can add those?
Title: Re: SA Chat
Post by: aegersz on June 11, 2021, 03:29:00 PM
for the latest version (SAChatBar-1.0b):

package-info.xml
Changlog.txt

sachat/index.php

sachat/Sources/Subs.php

sachat/Sources/User.php
Title: Re: SA Chat
Post by: Diego Andrés on June 11, 2021, 10:10:25 PM
Are those the same fixes from before? If so they are already on github then.
I can upload the updated package to the modsite, it'll just be named 1.1 Beta 1 instead
Title: Re: SA Chat
Post by: aegersz on June 11, 2021, 11:12:21 PM
Yes, same as before. The main changes I made were for the original version. The only difference on the recent version is for the null array value - I used array() and you used [].
Title: Re: SA Chat
Post by: aegersz on June 26, 2021, 02:21:36 AM
any more thoughts on my MySQL 5.7 error (mentioned earlier ?) it happens to both versions and SA Chat doesn't send or receive messages.
Title: Re: SA Chat
Post by: aegersz on June 26, 2021, 03:36:56 AM
I did some research and found a workaround. It is failing on the INSERT so I had to change my.cnf for MySQL to add:

sql_mode=NO_ENGINE_SUBSTITUTION

5.7 is far more stricter than 5.6 and you are using a 0 date/time value for the table 2sichat: isrd
column:

INSERT INTO smf209_2sichat(`to`, `from`, `msg`, `sent`, `isrd`)
                        VALUES
                                (2, 1, 'msgtext', '2021-06-26 17:26:07', 0)"


see https://www.percona.com/blog/2016/10/18/upgrading-to-mysql-5-7-beware-of-the-new-strict-mode/
Title: Re: Print the SA Chat log
Post by: aegersz on July 12, 2021, 09:01:19 PM
Since I run a very sensitive forum, I need to archive the chat logs just in case I get in trouble on behalf of people
doing the wrong thing; this is my Linux batch SQL job in case anyone is interested:


mysql -u root -p xxxx -e "USE smf209; SELECT t1.sent, t1.from, t2.member_name, t1.to, t3.member_name, t1.msg FROM smf209_2sichat t1 INNER JOIN smf209_members t2 ON t1.from=t2.id_member INNER JOIN smf209_members t3 ON t1.to=t3.id_member\G;" > /tmp/chatlog

mailx -s "SA_Chat log" -r "SA_Chat" root < "/tmp/chatlog"


The output looks like this:

*************************** 10. row ***************************
       sent: 2021-06-23 05:12:07
       from: 2
member_name: Chipper
         to: 1260
member_name: hanna
        msg: welcome back !
*************************** 11. row ***************************
       sent: 2021-06-23 05:12:49
       from: 1260
member_name: hanna
         to: 2
member_name: Chipper
        msg: thx! been awhile my friend
*************************** 12. row ***************************
Title: Re: SA Chat
Post by: rcane on December 11, 2021, 05:55:41 PM
Hi,

I'm trying each version to see if I can make it work, but no success.

I cannot see the bar anywhere, and in the error log i find (replete throughout)

INFO

   Trying to access array offset on value of type null (in the sources/errors.php file.


Is there something i'm mising to make this work?
Title: Re: SA Chat
Post by: jsx on December 22, 2021, 05:09:34 PM
A lot of errors appear in the error log of this modification.

QuoteType of error   Error message   File/Line
   
INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93


WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93


INFO

Trying to access array offset on value of type null

File: /home/xx/xx/mydomain.pl/sachat/Sources/Errors.php
Line: 42


INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93


WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93


INFO

Trying to access array offset on value of type null

File: /home/xx/xx/mydomain.pl/sachat/Sources/Errors.php
Line: 42


INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93


WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93


INFO

Trying to access array offset on value of type null

File: /home/xx/xx/mydomain.pl/sachat/Sources/Errors.php
Line: 42


INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93


WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93


INFO

Trying to access array offset on value of type null

File: /home/xx/xx/mydomain.pl/sachat/Sources/Errors.php
Line: 42


INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93


WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93


INFO

Trying to access array offset on value of type null

File: /home/xx/xx/mydomain.pl/sachat/Sources/Errors.php
Line: 42


INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93


WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93


INFO

Trying to access array offset on value of type null

File: /home/xx/xx/mydomain.pl/sachat/Sources/Errors.php
Line: 42
Title: Re: SA Chat
Post by: Diego Andrés on December 22, 2021, 06:02:48 PM
Try the updated source files over at https://github.com/SMFTricks/SA-Chat
Let me know if that works and I'll update the package.
Title: Re: SA Chat
Post by: jsx on December 23, 2021, 04:29:06 AM
I downloaded this package from github and I only replaced these two files in sachat/Sources/Errors.php and Subs.php and errors still appear in the error log. There are currently 9 error pages.

QuoteType of error    Error message    File/Line
   
INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

INFO

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93
Title: Re: SA Chat
Post by: jsx on December 23, 2021, 09:56:01 AM
@Diego Andrés

In permissions, groups have SA chat access and chat permission, but no group other than the admin can see the chat window or the chat bar.
Title: Re: SA Chat
Post by: Diego Andrés on December 23, 2021, 10:33:52 AM
When replacing the files or with the old files too?
Title: Re: SA Chat
Post by: jsx on December 23, 2021, 10:52:53 AM
I uploaded the two files to the server where you made the changes, so the two old files were replaced by the two files where you made the changes on github. Still very many errors are generated.

When this feature is enabled: "Enable group permissions
Enable group permissions that you can modify in the permission manager in SMF. Note: The settings here will override permission setting"
then no group can see the chat. What exactly does this function do?


Title: Re: SA Chat
Post by: Diego Andrés on December 23, 2021, 01:16:31 PM
Quote from: jsx on December 23, 2021, 10:52:53 AMWhen this feature is enabled: "Enable group permissions
Enable group permissions that you can modify in the permission manager in SMF. Note: The settings here will override permission setting"
then no group can see the chat. What exactly does this function do?

I believe it shows the chat for every group by default, and using that option allows you to hide or disable access for certain groups.




I can't reproduce these on the original file or new

Undefined index: permissions

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

WARN

array_diff(): Expected parameter 1 to be an array, null given

File: /home/xx/xx/mydomain.pl/sachat/Sources/Subs.php
Line: 93

I also added a fix for something unrelated I discovered while testing.
Title: Re: SA Chat
Post by: jsx on December 24, 2021, 08:46:40 AM
Quote from: Diego Andrés on December 23, 2021, 01:16:31 PMI believe it shows the chat for every group by default, and using that option allows you to hide or disable access for certain groups.

I don't fully understand this feature, because setting SA Chat permissions is in General Permissions for any group. For example, I want to hide the chat for a certain group, so I have to use this "Enable group permissions" function and what should I do next?

Quote from: Diego Andrés on December 23, 2021, 01:16:31 PMI also added a fix for something unrelated I discovered while testing.

I uploaded the modified files to the server and now the errors do not appear anymore. Thanks for fixing this.



I sent a message to a forum member and the window does not show when the message was sent or at what time. Only when I put the mouse cursor on the message, this is displayed:

<strong>Today</strong> at, 13:35:pm

Can you check it out?

How can I disable this feature? I don't want messages to be deleted. Should I enter 0 here?

Purge read messages
Purge read messages after how many days?
Title: Re: SA Chat
Post by: Diego Andrés on December 24, 2021, 10:33:32 AM
- About deleting messages I'm not certain, Wayne would know better, would require testing it.

- For disabling it for groups yes. You enable the setting and then go to permissions and you should have a hide/disable chat permission (funny, it's worded as if it was a setting lol)

- Yes, I noticed the time glitch, it was working before the fix, not sure what caused it, I'll look into it.
Title: Re: SA Chat
Post by: jsx on December 24, 2021, 11:51:33 AM
Quote from: Diego Andrés on December 24, 2021, 10:33:32 AM- About deleting messages I'm not certain, Wayne would know better, would require testing it.

I understand, I see that Wayne is no longer developing this chat. Are you in the development of this chat or just fixing bugs?

Quote from: Diego Andrés on December 24, 2021, 10:33:32 AM- For disabling it for groups yes. You enable the setting and then go to permissions and you should have a hide/disable chat permission (funny, it's worded as if it was a setting lol)

When this setting is enabled or disabled, only these settings is shown in Permissions:

Access SA Chat           
Allowed to Chat           
Disable bar

So this feature does nothing, because whether it is enabled or not, the same settings are displayed in the permissions.
Title: Re: SA Chat
Post by: Diego Andrés on December 24, 2021, 12:28:37 PM
Quote from: jsx on December 24, 2021, 11:51:33 AMSo this feature does nothing, because whether it is enabled or not, the same settings are displayed in the permissions.

I'm certain they are ignored when the setting is disabled.

Quote from: jsx on December 24, 2021, 11:51:33 AMI understand, I see that Wayne is no longer developing this chat. Are you in the development of this chat or just fixing bugs?

For 2.0.x only bug fixing. Will start working on a new version for SMF 2.1 in the future.
You can leave suggestions here or in github so they are properly tracked  :P
Title: Re: SA Chat
Post by: jsx on December 25, 2021, 08:55:34 AM
Quote from: Diego Andrés on December 24, 2021, 12:28:37 PMFor 2.0.x only bug fixing. Will start working on a new version for SMF 2.1 in the future.
You can leave suggestions here or in github so they are properly tracked :P

Very good, this chat needs some changes. :)

So look at these suggestions:

- Add a function in the modification settings that will allow hiding the window Login to chat (https://i.imgur.com/2cKS7z9.png) for guests.

- Implement a wider and larger message box or add the ability to customize the window to the own width and height.

- Implement the button to minimize the window to the bar, now everyone has to click on the username to minimize the window.

- Implement the button (e.g. an arrow) to send the message. Currently, to send a message, need to use enter button. I mean the arrow like in Messenger. Enter may also be responsible for sending, but the arrow is missing.

- Implement the display of the user's avatar in the message window. In Messenger, it is. I mean the photo of both users.

- Think about the like button (thumb up).

- Implement the information with the time that the message was displayed (read) by the user.

- Implement in the window the possibility to select the emoticons that are used in the forum.

- It is possible to send a photo [img] link [/ img], but the photo is displayed very small and cannot be previewed. It would be good if the photo uploaded in this way would display as a larger thumbnail, and after clicking in this thumbnail, the photo will open in full size.

- Add the ability to select a photo from the disk and send it in a message.

- Add the ability to select a GIF from a set of GIFs generated from some GIF website.

- Think about the Notifications feature in the chat window, take a look at Arrowchat have something like this.

- Implement the ability of creating a chatroom with the option of entering the number of users in the conversation and setting a password for this chat.

- Implement the option to delete messages straight in the chat during the conversation, I mean the function for the administrator, and I think it would not be bad if you could implement the permission which will allow the user to undo a sent message.

- Implement the ability to change the sound of the sent message in the main modification settings.

- Think about the Archive Conversation feature.

- Implement the ability to hide online for administration and any user.

- Think about the possibility of changing the name of the Chat in the modification settings. Current name is Chat, which is displayed on the bar.

- It would be nice if there was a possibility of video chat, but it is probably a big challenge and hard to achieve.

This SAChat can be a competition for ArrowChat chat. You can think about creating paid add-ons in the future.
Title: Re: SA Chat
Post by: IP_Board_Rules on July 12, 2022, 01:38:45 AM
> - Add a function in the modification settings that will allow hiding the window Login to chat for guests.

I greatly support this request. Is there any hardcoded work around to not show the bar for guests?
Title: Re: SA Chat
Post by: IP_Board_Rules on November 09, 2022, 11:57:35 AM
What is new in SA-Chat_1.1_B1.zip ?
Title: Re: SA Chat
Post by: Diego Andrés on November 09, 2022, 12:13:43 PM
Nothing, no updates to this mod yet.
I only fixed the page displaying wrong info.