News:

SMF 2.1.4 has been released! Take it for a spin! Read more.

Main Menu

AjaxChat Integration (latest version 3.2.1)

Started by .HuNTeR., August 27, 2008, 12:59:06 AM

Previous topic - Next topic

PLAYBOY

QuotePlayboy, that's defo the answer,

What is defo?

Below is the content of public_html/forum/chat/js

/*
* @package AJAX_Chat
* @author Sebastian Tschan
* @copyright (c) Sebastian Tschan
* @license GNU Affero General Public License
* @link https://blueimp.net/ajax/
*/

// Overriding client side functionality:

/*
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
return text;
}
*/

ajaxChat.handleLogout = function(url) {
   setTimeout("window.close()", 1);
}

Farjo


TheListener

Farajo

The packages usually show on a pc as a zipped folder image.

The 3.2.2b one didn't.

Farjo

Brack1 maybe something went wrong when it was downloaded to your PC, because I've just downloaded it and it looks OK and opens normally.

fobo

Quote from: Farjo on September 21, 2011, 03:03:31 PM
Playboy, that's defo the answer, I looked it up! Would you please attach the file. Did you put it under the chat folder?

fobo, something has gone wrong with the installation as your screen shows "3.2.1 (modified for SMF2 RC3)"
i have using 3.2.2 for smf 2.0 default thme, since intalled success chat room work fine and  problem shoutbox only  ( no sound for admin and user cannot  found of  smiley icon and  to shout )  ??? i hope suggest for fix this  :laugh:

Farjo

fobo, I don't understand. Why does the package manager say 3.2.1? When did you get that error - every time you use that screen or when you were installing 3.2.2b?

TheListener

AjaxChat Integration    3.2.1 (modified for SMF 2 RC3)

This is what is stated for the version in the package manager.

FYI I have 3.2.2a installed.

fobo

Quote from: Farjo on September 21, 2011, 08:05:21 PM
fobo, I don't understand. Why does the package manager say 3.2.1? When did you get that error - every time you use that screen or when you were installing 3.2.2b?
My first use of MOD  3,2,2, then the problem on the shoutbox which users can not use the shoutbox as you have seen, then I tried the version 3.2.2b, then the problem arises as in the screen shoot, , so i get that error science first installed the MOD 3.2.2, i hope you can give me solution ... thanks


PLAYBOY

Quote from: Farjo on September 21, 2011, 06:16:42 PM
defo is definitely, which I couldn't be bothered to type out in full (sorry).

See here: http://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=Close_chat_window_on_logout

yeah i think it works in every browser except ff because its doesnt open as a popup in ff.
Thx though. Helped a lot.

T3CHN0

Quote
yeah i think it works in every browser except ff because its doesn't open as a popup in ff.
Thx though. Helped a lot.

Nar I think it depends on your theme, mine now works with ff the best, ok with Opera and IE9
but always connections problems with Google Chrome.
Not only ShoutBox and Chat window but other things in my theme as well Chrome always has problems
Avatars not showing, posts not posting and more....
so yeah to me I would say depends on theme ""or"" maybe hosts

PLAYBOY

Quote from: Farjo on September 21, 2011, 05:27:55 AM
Playboy it's on here somewhere but I can't remember where, and I can't recall where I changed it either, but it looks like in chat/js/custom.js
ajaxChat.handleLogout = function(url) {
   setTimeout("window.close()", 1);
}

I assume it was originally 0 and I've changed it to 1??

This script doesnt log you off. It just closes the popup but you still appear in the chatroom. Or is there like a time set limit or something? Because it was logging me off before i added the above script. Now it just closes the window before log me off.

Farjo

My impression is that it only calls that script when someone is logging off :-\

PLAYBOY

Quote from: Farjo on September 25, 2011, 06:18:57 PM
My impression is that it only calls that script when someone is logging off :-\

So? What do you think i should do?

Farjo

Follow that link and see if they can provide the answer.

Perspective

Quote from: .HuNTeR. on July 29, 2011, 12:44:54 AM
yes
but i might take 1 week or 2 until a stable version

Any NEWS about it, Hunter ?

fobo

ohooow my problem SLOVED mod 3.2.2b after using update SMF2.0.1 .........


T3CHN0

has anyone had this problem, I had a look around but can't find anything..
chat loads fine everything looks ok but when clicking on text box to typeI get an error; but if I say ok to the error and I can still chat and only happens
after refreshing the page.

what happen, to why i am getting this error
I installed a new weather mod, "not from smf" ''but would be nice to have one for smf''
to show on my forum you can have a look and download it

it's when I have the java script from this mod running is when I get the error from firefox and google chrome
but shoutbox works fine with internet explorer "no error", makes no sense

remove the java script command from this mod and chat works fine again with no error
but when I add the script back again the chat/shoutbox has this error

the mod I am adding works fine but it somehow conflict's with my shoutbox/chat

the errors are

firefox error


google chrome error


what do the errors mean?
do I need to add or remove a string command from the shoutbox java scripts  ?

cheers

fobo

@techno489

before i have same problem like you ..... problem resolved after uinstall another mod like > ad managmen, spoiller, stop forum spam, and i tried re instal ajaxchat and re install all mod again and update from smf 2.0 to 2.0.1 .. shoutbox work fine  :D

T3CHN0

Quote from: fobo on September 28, 2011, 08:29:05 AM
@techno489

before i have same problem like you ..... problem resolved after install another mod like > ad managmen, spoiller, stop forum spam, and i tried re install ajaxchat and re install all mod again and update from smf 2.0 to 2.0.1 .. shoutbox work fine  :D
that's a good idea if only a few mods installed. but I have 89 mods installed and about another 20 still to work on. :)
I'm not about to go back and do them all over again... it must be a java script error but were
in Ajax chat or in weather

this file swfobject.js is what is needed for the weather to work but chat makes the error's. if I rename it
to swfobject.js.old then weather stops working and chat is good again I have download swfobject.js
from a number of sites and also tried using another sited url something like www.othersite.com/js/swfobject.js
and same thing, weather will work bit chat error's.

this leads me to think the problem must be an ajaxchat problem it conflicts with swfobject.js
if anyone knows of another .js file that will work a .swf file please let me know and i will try.

cheers

Farjo

Only a guess but perhaps there is a function in swfobject.js that also exists in one of this mod's js files, and the weather version is being found before the chat version.

Discussing whether it's weather or chat's fault is futile - it is more relevant to decide from which mod you will get the better support, and you will probably need help from both camps.

Is the weather mod more supported than this one? I.e. does the author still provide support? Which weather mod is it?

Advertisement: