News:

Bored?  Looking to kill some time?  Want to chat with other SMF users?  Join us in IRC chat or Discord

Main Menu

AjaxChat Integration (latest version 3.2.1)

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

Previous topic - Next topic

primetime

Quote from: Brack1 on September 20, 2011, 07:09:33 PM
Quote from: primetime on September 20, 2011, 07:07:11 PM
Does this chat MOD work with version 2.01? I am sure that this has been asked before but I did not find anything in the search and I did not want to manually search 409 pages.  :P

Look through the posts for version 3.2.2

I put 3.2.2 in the search in this topic and it came up with 2 posts. Those posts dont actually state if this MOD works with 2.01. Can anyone give me a definitive answer if it works with 2.01 or not?

TIA,
Brock

TheListener

*Cough*

That is the reason why I said to look for 3.2.2

I am using the mod on 2.0.1

primetime

Quote from: Brack1 on September 20, 2011, 08:34:00 PM
*Cough*

That is the reason why I said to look for 3.2.2

I am using the mod on 2.0.1

Uhh Ok. Thank you for the answer.

PLAYBOY

Quote from: PLAYBOY on September 17, 2011, 10:43:33 PM
How can i automatically (redirect to) close the window when people logoff from the room?

Anybody help?
Is it very hard to do?

Farjo

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

Donnie_K

Quote from: Brack1 on September 20, 2011, 08:34:00 PM
*Cough*

That is the reason why I said to look for 3.2.2

I am using the mod on 2.0.1

I downloaded it from post #8161 in this thread, and 2.0.1 is telling me it's corrupt and cannot install... how did you get it to work?

fobo

hi all
here http://www.simplemachines.org/community/index.php?topic=257973.8160 not resolve
so more problem >> Invalid argument supplied for foreach() in /home2/forumpa1/public_html/shoutBox/lib/class/AJAXChat.php on line 1461 <<< what i do for this ?

Farjo

Try the attached version 3.2.2b - I haven't installed SMFv2.0.1 yet so cannot test it, therefore please ensure you have backed up your database and files.

KidCactus

Is there an easy way to list the usernames that are logged into the chat?

Kind of like how this shows the number of people in the chat:

$num = count(chatOnlineUsers());
echo '<li', $current_action == 'chat' ? ' id="active"' : '', '><a href="/chat" target="_blank">' , $txt[993] ,' ', ($num > 0) ?  ('('.$num.')') : '' , '</a></li>';

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

I couldnt find it. There is nothing in custom.js
I tried to find it in other js files within the same folder but i couldnt find it. Can you find the file for me?

mlsred

Hi,

I installed this on 2.0.1 earlier and it worked fine in IE but was completely broken in Chrome i installed 3.2.2. I can't really leave it installed if it doesn't work in all browsers. Is there a fix for this?

Thanks
Michael

Farjo

KidCactus, it shows the names under the list of people presently logged into the site...

Playboy, yes I remember now! Add that code to custon.js :)

mlsred, the version I uploaded contins the fix for Chrome - is this in Chat or Shout? What exactly does "completely broken" mean?

PLAYBOY

Quote from: Farjo on September 21, 2011, 02:00:33 PM

Playboy, yes I remember now! Add that code to custon.js :)


I added this code
ajaxChat.handleLogout = function(url) {
   setTimeout("window.close()", 1);
}
In custom.js
but it didint make any change. My chat opens in a seperate window (not popup but a seperate window in FF) and when i click on logoff, it just logsoff and doesnt close the window.

fobo

Quote from: Farjo on September 21, 2011, 09:27:43 AM
Try the attached version 3.2.2b - I haven't installed SMFv2.0.1 yet so cannot test it, therefore please ensure you have backed up your database and files.
after attached the mod like result below

KidCactus

Quote from: Farjo on September 21, 2011, 02:00:33 PM
KidCactus, it shows the names under the list of people presently logged into the site...
Awesome, thanks! :) Didn't realize this since it's not in the theme I use on my forum.

TheListener

Would you care to enlighten us as to the theme used and your forums link?


Farjo

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

TheListener

@ Farjo

I downloaded the attachment you supplied.

It would not install on my test forum.

(Didn't show as a zipped folder).

Farjo


Farjo

(Didn't show as a zipped folder) - would you please explain what this means as it is OK when I try on a new 2.0.1, ta.

Advertisement: