SA Chat

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

Previous topic - Next topic

nend

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.

Hj Ahmad Rasyid Hj Ismail

I would say: Great Mod! Keep it up. I've looking and waiting for this.

Nirose

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


redbaby92

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

nend

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.

nend

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

!RFAN

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

Threepwud

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

nend

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?

redbaby92

How i know which php version im using?

theguise

You'd have to look at your webhosts Cpanel.  Mine has it listed with a bunch of other statistics. 

diamondred123

ok im going to see if i can make a theme for it
Learner but knows a little

crustybum

Seems like all the good stuff goes on the 2.0.....anything like this for the 1.11.1? ;D

Boricua012

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.

theguise

It is now included in Revision 26 which I believe is available here now.

crustybum

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?

PastorMartin

#76
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.

lucas-ruroken

Perfect man, i love it

It's a excelent mod. Congrats.
Adk Portal 3.1 is coming....

Design your universe!

!RFAN

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

theguise

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

Advertisement: