AjaxChat Integration (latest version 3.2.1)

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

Previous topic - Next topic

RoyalMess

Quote from: mrtrc266 on April 14, 2010, 10:17:59 AM
Quote from: RoyalMess on April 14, 2010, 04:28:37 AM
Quote from: mrtrc266 on April 13, 2010, 11:24:29 AM
Quote from: RoyalMess on April 13, 2010, 05:07:32 AM
Currently the chat isn't displaying anything.
I tried to solve it with the .htaccess but it didn't solve anything :(

If anyone knows how to fix it please tell :)

Try changing your file permissions to 755 on /chat/index.php and /shoutBox/index.php

I did but no effect, still a empty chat :P

What the link to your site. PM me if you don't want it public.

www.topsportleeuwarden.nl

Its a Dutch sports discussion website.

wodema

Got it working fine now. Just had to change the chmod. One more little question. I can't seem to find any way to delere the test chat I put in there. Can it be deleted?


mrtrc266

#5842
@RoyalMess
Sending PM

@  hcfwesker
Have you asked your host if there's see if they can diagnose what's causing the lag? In 300 pages of support I haven't heard of this issue. It seems that you have a pretty active board so this might just take too much of a load in addition to your forums current activity.

@ Nachtfalke
That's very odd as that Mod does an extremely minor edit to the index.template.php file. Don't see how it could interfere with the Chat. Glad you got it sorted though.

@ Caesarrrrr
Does it work on the Core theme though? If you use a custom theme then you have to manually do the edits to get the button to show up on your theme. Also there are some edits that need to be done to show the # of users in chat on your BoardIndex and User Info area. Manual Installation of Mods

For Admin Setting - Admin/Configuration/Features and Options/
Please see FAQ's for more info.


@ wodema
Glad you got it sorted! Ummm where did you put it? LOL
You should have 2 folders yourforum/chat/ and yourforum/shoutBox/ and others you can delete.

wodema

#5843
They are in my main forum folders under /chat and /shoutbox. I turned off the shoubox though because I didn't like it. It took up half my screen...lol


ProfDrDenis

I use chat in the popup window, is there any way after logout that the window will close automatically?

thanks for helping

Caesarrrrr

Quote from: mrtrc266 on April 16, 2010, 10:01:50 AM
@RoyalMess
Sending PM

@  hcfwesker
Have you asked your host if there's see if they can diagnose what's causing the lag? In 300 pages of support I haven't heard of this issue. It seems that you have a pretty active board so this might just take too much of a load in addition to your forums current activity.

@ Nachtfalke
That's very odd as that Mod does an extremely minor edit to the index.template.php file. Don't see how it could interfere with the Chat. Glad you got it sorted though.

@ Caesarrrrr
Does it work on the Core theme though? If you use a custom theme then you have to manually do the edits to get the button to show up on your theme. Also there are some edits that need to be done to show the # of users in chat on your BoardIndex and User Info area. Manual Installation of Mods

For Admin Setting - Admin/Configuration/Features and Options/
Please see FAQ's for more info.


@ wodema
Glad you got it sorted! Ummm where did you put it? LOL
You should have 2 folders yourforum/chat/ and yourforum/shoutBox/ and others you can delete.

no it doesnt work on the core theme either

jjzx2sr

thanks for the tips and help mrtrc266 your always a great help.  I got everything tweaked perfectly. 

JJ
If it doesn't fit get a bigger hammer.

mrtrc266

Quote from: wodema on April 16, 2010, 12:07:46 PM
They are in my main forum folders under /chat and /shoutbox. I turned off the shoubox though because I didn't like it. It took up half my screen...lol

You can adjust the height of your shout box in /chat/css/shoutbox.css or just use the chat room like you said. Glad it going for you.
#ajaxChatContent #ajaxChatChatList {
height:169px;
overflow:auto;
}

mrtrc266

#5848
Quote from: ProfDrDenis on April 16, 2010, 12:58:34 PM
I use chat in the popup window, is there any way after logout that the window will close automatically?

thanks for helping

Your welcome....
Find /chat/js/custom.js
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
   return text;
}
*/

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

mrtrc266

Quote from: jjzx2sr on April 16, 2010, 09:25:04 PM
thanks for the tips and help mrtrc266 your always a great help.  I got everything tweaked perfectly. 

JJ

Your very welcome, glad you got it to your liking. Enjoy :)

mrtrc266

@  Caesarrrrr
What's the link to your site?
What language are you using?

mrtrc266

@ RoyalMess it seems that your host does not allow .htaccess files on their server. If you notice when you upload it, it immediately disappears that's why it was not having any effect LOL. Get in contact with them to see if they can fix that for you then create an .htaccess file and try adding this line to it then upload it to your forums root folder (the same place your SSI.php file is located).
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

RoyalMess

Quote from: mrtrc266 on April 17, 2010, 10:43:04 AM
@ RoyalMess it seems that your host does not allow .htaccess files on their server. If you notice when you upload it, it immediately disappears that's why it was not having any effect LOL. Get in contact with them to see if they can fix that for you then create an .htaccess file and try adding this line to it then upload it to your forums root folder (the same place your SSI.php file is located).
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]

It doesn't show in FTP clients but when i use the build in FTP through PLESK i find a .htaccess file and it has that line in it.

See these 2 screenshots.

http://img685.imageshack.us/img685/1108/94891622.jpg

http://img714.imageshack.us/img714/5290/68837273.jpg

wodema

Is there any way  for the moderator or admin to log in annonimously or invisibly unless they want their name to show?

TurtleKicker

Quote from: mrtrc266 on April 16, 2010, 09:37:46 PM
Your welcome....
Find /chat/js/custom.js
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
   return text;
}
*/

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


A few pages back, I posted that this doesn't always work, and often just logs you out then logs you right back in again without closing the tab. I never got any response.

ProfDrDenis

Quote from: sremick on April 17, 2010, 01:13:03 PM
I never got any response.

sorry I was busy. Before the code was not working. I test the new one

ProfDrDenis

without */ its working. Means:

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

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

Thanks so much

ProfDrDenis

I have an other problem. In my index.template.php file is inside:

Quote// Chat start
                if (!empty($modSettings['enableChatBelowPM'])){
                $count = count(chatOnlineUsers());
                if ($count == 0 )
                echo '<li>' . $txt['chat_no_user'] . '</li>';
            elseif ($count == 1 )
                echo '<li>1' . $txt['chat_aUser'] . '</li>';
            else
                echo '<li> ' . $count . $txt['chat_users'] . '.</li>';
                }
        // Chat the end

but its not counting. What can I do?

mrtrc266

Quote from: sremick on April 17, 2010, 01:13:03 PM
Quote from: mrtrc266 on April 16, 2010, 09:37:46 PM
Your welcome....
Find /chat/js/custom.js
// Example - Overriding the replaceCustomCommands method:
ajaxChat.replaceCustomCommands = function(text, textParts) {
   return text;
}
*/

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


A few pages back, I posted that this doesn't always work, and often just logs you out then logs you right back in again without closing the tab. I never got any response.

The logout might happen often if you have the idle time set too short......

Set how long you want members to be idle before they are timed out.
Open.....yourforum/chat/lib/config.php (Change to whatever you like.)
Find
// Minutes until a user is declared inactive (last status update) - the minimum is 2 minutes:
$config['inactiveTimeout'] = 2;
// Interval in minutes to check for inactive users:
$config['inactiveCheckInterval'] = 5;

mrtrc266

Quote from: ProfDrDenis on April 17, 2010, 03:16:36 PM
I have an other problem. In my index.template.php file is inside:

Quote// Chat start
                if (!empty($modSettings['enableChatBelowPM'])){
                $count = count(chatOnlineUsers());
                if ($count == 0 )
                echo '<li>' . $txt['chat_no_user'] . '</li>';
            elseif ($count == 1 )
                echo '<li>1' . $txt['chat_aUser'] . '</li>';
            else
                echo '<li> ' . $count . $txt['chat_users'] . '.</li>';
                }
        // Chat the end

but its not counting. What can I do?

That just shows the # of users in chat somewhere around.....

QuoteWillkommen Gast. Bitte einloggen  oder registrieren.
Haben Sie Ihre Aktivierungs E-Mail übersehen?
18. April 2010 | 07:04:02

....you might have to play with the location of it since every theme is different.

Advertisement: