News:

Want to get involved in developing SMF, then why not lend a hand on our github!

Main Menu

AjaxChat Integration (latest version 3.2.1)

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

Previous topic - Next topic

wladymeer

Tried both but that only caused me errors with not loading shoutbox/chat at all. And as a matter of fact I backep up chat.js and when I uploaded it back now my whole chat isn't working at all :)

link is www.gvosh.bb.rs/forum/chat/

And I'm uploading you my chat.js file.

mrtrc266

Change the file permissions (CMHOM) these to 755

chat/index.php
/shoutbox/index.php

mrtrc266

I think I got it, just tested on my test site and this seems to not show the Sound IO Error, have no idea if this messes with any functionallity though, doesn't seem to.

Comment out this line in /chat/js/chat.js
Find
sound.addEventListener('ioError', this.soundIOErrorHandler);
Replace with
//sound.addEventListener('ioError', this.soundIOErrorHandler);


wladymeer

If it's located under admin->main->packages->file permission I have only  Smileys, Sources and Themes as folder to select. However there is 0755 written in "If "Custom" has been selected use chmod value of:"

mrtrc266

#2824
You want to do it via your FTP Program or cPanel (however your retrieve your files).
http://www.simplemachines.org/community/index.php?topic=257973.msg2130593#msg2130593

wladymeer

I use total commander - is it under files->change attributes? I can see that shoutbox/index.php already has 755 while chat had 666 and I've changed it to 755 but everything is still the same.

mrtrc266

And you have cleared cache and refreshed?

I have to get off to work but will take a look when I get home if it's not sorted by then

wladymeer

Cleared it and no result :(

This is very strange to me because everything worked fine and then I tried those fixes from sourceforge.net and it didn't work so I uploaded backup created just before I applied those changes and from that moment both shoutbox and chat aren't working.

jiminoregon

Quote from: mrtrc266 on June 28, 2009, 12:41:37 PM
LOL, not sure why but the input field and submit button are disabled.....

Open minishout
Find
            <input size="13%" id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);" [disableInput/]/>
            <input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage(); [disableButton/]" />

Replace with
            <input size="13%" id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress(event);"/>
            <input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage();" />


Thanks so much...I had to make a small change for it to work:

<input size="13%" id="ajaxChatInputField" type="text" maxlength="[MESSAGE_TEXT_MAX_LENGTH/]" onkeypress="ajaxChat.handleInputFieldKeyPress
(event);" [enableInput/]/>
                                            <input type="button" id="submitButton" value="Shout" onclick="ajaxChat.sendMessage();" />

TheListener

Went to uninstall the reinstall chat as another member suggested and found this:

Execute Modification     ./Sources/Admin.php     Test failed
      1.    Replace    ./Sources/Admin.php    Test failed
      2.    Replace    ./Sources/Admin.php    Test successful
*    2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
      1.    Replace    ./Sources/BoardIndex.php    Test successful
      2.    Replace    ./Sources/BoardIndex.php    Test successful
*    3.    Execute Modification    ./Sources/Load.php    Test successful
      1.    Replace    ./Sources/Load.php    Test successful
      2.    Replace    ./Sources/Load.php    Test successful
      3.    Add Before    ./Sources/Load.php    Test successful
*    4.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Replace    ./Sources/ManagePermissions.php    Test successful
*    5.    Execute Modification    ./Sources/ManageSettings.php    Test failed
      1.    Replace    ./Sources/ManageSettings.php    Test failed
      2.    Replace    ./Sources/ManageSettings.php    Test failed
      3.    Add Before    ./Sources/ManageSettings.php    Test successful
*    6.    Execute Modification    ./SSI.php    Test successful
      1.    Add Before    ./SSI.php    Test successful
*    7.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Replace    ./Sources/Subs.php    Test successful
      2.    Replace    ./Sources/Subs.php    Test failed

Chit-Chat ChatterBox Boss

Quote from: TheListener on June 28, 2009, 07:18:54 PM
Went to uninstall the reinstall chat as another member suggested and found this:

Execute Modification     ./Sources/Admin.php     Test failed
      1.    Replace    ./Sources/Admin.php    Test failed
      2.    Replace    ./Sources/Admin.php    Test successful
*    2.    Execute Modification    ./Sources/BoardIndex.php    Test successful
      1.    Replace    ./Sources/BoardIndex.php    Test successful
      2.    Replace    ./Sources/BoardIndex.php    Test successful
*    3.    Execute Modification    ./Sources/Load.php    Test successful
      1.    Replace    ./Sources/Load.php    Test successful
      2.    Replace    ./Sources/Load.php    Test successful
      3.    Add Before    ./Sources/Load.php    Test successful
*    4.    Execute Modification    ./Sources/ManagePermissions.php    Test successful
      1.    Replace    ./Sources/ManagePermissions.php    Test successful
*    5.    Execute Modification    ./Sources/ManageSettings.php    Test failed
      1.    Replace    ./Sources/ManageSettings.php    Test failed
      2.    Replace    ./Sources/ManageSettings.php    Test failed
      3.    Add Before    ./Sources/ManageSettings.php    Test successful
*    6.    Execute Modification    ./SSI.php    Test successful
      1.    Add Before    ./SSI.php    Test successful
*    7.    Execute Modification    ./Sources/Subs.php    Test failed
      1.    Replace    ./Sources/Subs.php    Test successful
      2.    Replace    ./Sources/Subs.php    Test failed

Other mods that you may have installed might be clashing with it to uninstall/install properly. What you should do is continue with the install/uninstall as you were make it complete but be sure to take not of ALL the files that failed because then you need to go to the mod and parse the mod and the version you used to your smf version. WIth the parse open look at the files that it shows how to mod with the ones that failed and manually do the edits it says. If installing add the edits if uninstalling remove the edits.
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

TheListener

Can you explain that again please CC

Chit-Chat ChatterBox Boss

If you are installing or uninstalling the mod and those failed errors popup you need to write down EVER file that has failed and then continue with the uninstall or install and finish it (even tho those errors were there). Then after you finished uninstalling or installing the mod, go HERE and make the bubble checked for the ajax version you have 3.0 or 3.2 then to the left of the parse button choose the smf version you have and click parse. Once the parse opens (showing you the edits the mod makes in the files) go to the files that you wrote down that failed and you need to download that file from the website to your pc and make the edits it is saying manually.

If you are trying to install the mod and say it says
Find:
// Note the comma!! The setting with automatically appear with the first mod to be added.
Add After:

'chat' => array($txt['chat']),

Then you would do exactly what it says. Find that location in that file it is telling you the edit is in (in the parse) and do what it says.

If you are trying to uninstall the mod and say it says
Find:
// Note the comma!! The setting with automatically appear with the first mod to be added.
Add After:

'chat' => array($txt['chat']),

Then you will be looking for

'chat' => array($txt['chat']),

and removing it. after you make the proper edits reupload the files to your site ... clear the cache and test. REMEMBER TO MAKE BACKUPS BEFORE EDITING!
Chit-Chat ChatterBox

Our site is open to everyone. It is a resource for anyone and everyone to talk about anything and everything you could possibly think of. It's a great place to come and talk, ask questions, or just simply hang out. We offer many great features. All we ask is that you follow by the site rules. Hope to see you around!
www.chitchatchatterbox.com
Remember in the "Referral" box to put "Caleb" while registering.

TheListener

Uninstalled the chat reinstalled the chat now I get:

File "/home/visionar/public_html/chat/index.php" is writeable by group

mrtrc266

Quote from: wladymeer on June 28, 2009, 02:36:21 PM
Cleared it and no result :(

This is very strange to me because everything worked fine and then I tried those fixes from sourceforge.net and it didn't work so I uploaded backup created just before I applied those changes and from that moment both shoutbox and chat aren't working.

Try uploading the chat.js file from the AjaxChat Integration_3.2.zip (or 3.0.zip...whatever you are using)

mrtrc266

Quote from: TheListener on June 28, 2009, 11:23:39 PM
Uninstalled the chat reinstalled the chat now I get:

File "/home/visionar/public_html/chat/index.php" is writeable by group

Can't even get to your site ???

TheListener

Go to the forum tab but it looks normal when logged in.

mrtrc266

Quote from: TheListener on June 29, 2009, 12:57:11 AM
Go to the forum tab but it looks normal when logged in.

When I click your website under your avatar  WWW  here on SMF I get this....

Sorry, we couldn't find www.paranormalhaunt.co.uk

TheListener


tfs

I've been getting hundreds of these in the log.  Any ideas?

8: Undefined index: chat
File: /homepages/31/d284504567/htdocs/dsc053382567/Sources/Subs.php
Line: 3730


Looking at that area of Subs.php...

$num = empty($modSettings['enableChatButtonNo']) ? 0 : count(chatOnlineUsers());
$chatButton = $txt['chat'];
$chatButton .= ($num > 0) ?  ('('.$num.')') : '';
$chatLink = str_replace("index.php", "chat/index.php", $scripturl);
if (!empty($modSettings['chatPopUp']))
$chatLink .= '" onclick="openWindow(this.href);this.blur();return false;';


The offending line is the one that has...

$chatButton = $txt['chat'];
A good tree cannot bring forth evil fruit, neither can an evil tree bring forth good fruit.

Advertisement: