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

oggie62

Quote from: T3CHN0 on October 19, 2011, 10:39:46 AM
Quote from: oggie62 on October 19, 2011, 09:52:08 AM
Quote from: T3CHN0 on October 18, 2011, 10:09:40 PM
Scratch my edit,, even though it worked for me there is a better answer in FAQ look for Redirect the Logout back to your forum when you log out of the Chat Room

Thanks....found it and made changes.  :D

Another thing : a user reports that he can seechat in IE9 only in Compatibility Mode - is this a known issue or a user error problem ?
Sounds like user error or a java update is needed but have a read of this posting a few pages back and see if this is what happening to you.
http://www.simplemachines.org/community/index.php?topic=257973.msg2432266#msg2432266
before you do. can you see chat with IE FF and G,Chrome ? plus PM me your forum address and I will have a look with all three browsers as well

Thank you for all the help...looks like the user has a problem - another 3 users use IE9 and they don't have any problems.

A small suggestion : how about "slimming" this thread a bit - a user (like me) who needs something is demoralized by the sheer size of this thread....as of today it's 417 pages....intimidating!

cloksin

SMF 2.0.1
SimplePortal 2.3.3

TheListener

Unfortunately only a moderator can slim the thread down.


cloksin

I still need help with this.  I've installed the mod, version 3.2.2b on SMF 2.0.1 with simple portal 2.3.3.  Here are the mods I have installed:

1. Stars And Badges           2.2    
2. AjaxChat Integration           3.2.2b    
3. WYSIWYG Quick Reply           2.3    
4. Order Custom Profile Fields           1.1.1    
5. Member NotePad           2.0.2    
6. D+X Graduate Page           1.7    
7. Karma Description Mod           2.7.1    
8. Tapatalk SMF 2.0 RC4/RC5/Final Plugin    3.0.0    
9. Switch Permissions           1.0    
10. Member Color Link           3.1    
11. SMFShop              3.1.7    
12. Post Unapproval           1.1.4    
13. Aeva Media              1.4w    
14. SMF Staff Page              1.7    
15. Member Awards           2.2.3    
16. SMF Links              2.3.2    
17. Topic Solved              1.1.1    
18. Bookmarks              2.3    
19. SimplePortal              2.3.3

When I click on the "chat" button in the menu I get the chat popup window (as specified in the settings) but it doesn't show anyone online. (see attached screenshot)

I clicked the parse button for version 2.0 RC3 (as it doesn't seem there is a version higher than that available) and compared every piece of code line by line and it is all correct, no extra code, no missing code, nothing.

I checked the database tables against tables_2.php file and they are all correct.  I checked the helpful hints earlier in this thread and added a couple .htaccess files.  Apache points to /var/www/html as my document root, so I added this .htaccess file in that directory.


RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
DirectoryIndex portal.php index.php index.html index.htm


in the "forum" directory, where my smf files are located, I added this .htaccess file:


RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]
DirectoryIndex portal.php index.php index.html index.htm


in the "chat" directory I added this .htaccess file:


RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


and in the shoutBox directory I added this .htaccess file:


RewriteEngine on
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


I really need to get this mod working, but it has been giving me headaches for nearly a year now.  What do I need to do to get it to work?
SMF 2.0.1
SimplePortal 2.3.3

Farjo

When you type something in to the reply box does it appear?

If the answer is no...
Do you have it set so that members cannot see the chats before they entered the chat room? If so try turning that off and see what happens.

Farjo

Quote from: Farjo on October 25, 2011, 08:31:22 PM
When you type something in to the reply box does it appear?
To clarify I meant "If you type something in the reply box and hit enter does it appear in the main panel?"

cloksin

Quote from: Farjo on October 25, 2011, 08:31:22 PM
When you type something in to the reply box does it appear?

If the answer is no...
Do you have it set so that members cannot see the chats before they entered the chat room? If so try turning that off and see what happens.

No, when you type into the reply box you can see what you are typing, but when you hit enter or click the submit button it disappears and does NOT go into the main window.  The messages DO however populate the database.

I'm not sure of what settings you are referring.  Under members -> permissions I have "Access to chat" "Moderate chat" "View shoutBox" "Can shout" and "Moderate shoutBox" all checked for all membergroups (even though I'm not using the shoutbox), and under configuration -> modification settings -> chat I have "chat in popup page" "Enable online chat users numbering on chat button" and "Show online users below total logged in time section" all checked.

I don't know of any other settings for this mod.
SMF 2.0.1
SimplePortal 2.3.3

Farjo

It's a manual setting in ./chat/lib/config.php
$config['requestMessagesPriorChannelEnter'] = false;

If yours is false set it to true and see if it changes owt.

cloksin

Quote from: Farjo on October 26, 2011, 03:12:13 AM
It's a manual setting in ./chat/lib/config.php
$config['requestMessagesPriorChannelEnter'] = false;

If yours is false set it to true and see if it changes owt.

OK, checked that, it was already set to "true", I changed it to false to see if it helped anything, but there was no change, so I set it back to "true".  Still not working.
SMF 2.0.1
SimplePortal 2.3.3

R6

#8349
Quote from: MrNicotine on October 08, 2011, 06:21:01 PM
The file you downloaded is simply "Ajaxchat" with no extension, so SMF doesn't recognize it as a zip-file. Simply rename the file through properties of the file to Ajaxchat.zip [nofollow].
Then it will be accepted by your packagemanager

I'm still in the stone age and trying up upload ajax chat to my SMF forum via <<Admin/package manager/download packages/upload>...

Using Techno's compressed zip file (AjaxChat_Integration_3.2.2b.zip)  <<thanks techno>>  it says ''An Error Has Occurred!'' when I press upload in SMF 2.0.1.
Does the same if i rename the file to Ajaxchat.zip [nofollow] too.
Sadly I am a newbie and have no idea as you can see.  :-[

:(

Farjo

What details does it give about the error? Without any more info. it's difficult to make a diagnosis. Try downloading the file again - maybe it got corrupted during a transfer.

T3CHN0

after you get the error
QuoteAn Error Has Occurred!
does the package now show in your list of packages.
sounds like you need to emulate it yoursiteURL/index.php?action=admin;area=packages
look at bottom of page and check your emulation is set to the correct install Version
for this mod.

R6

#8352
Hi Farjo & Techno and thanks for your replies.
I'll try and do a big reply to see if it helps explain my total amateur skill set!

Ok, first off:

The route I previously took when logged into my smf forum to try and install AJAX Chat software on SMF 2.0.1 was this:

Adminstration Center
Main
Package Manager
Download Packages
Upload a Package
Browse (C:/AjaxChat_Intergration_3.2.2b.zip)  <--- This is the 'tweaked' AJAX chat zip file that you guys got to work with SMF 2.0.1
Upload


When pressing the 'upload' button the web browser goes onto a new screen saying:

''An Error Has Occured!''.    No other info is given on the screen. 


I read Techno's new reply and went to this URL: myweburl/index.php?action=admin;area=packages
I got a 404.  Even if I put  myweburl/forum/index.php?action=admin;area=packages  and still get  a 404  (my smf forum is inside a folder called 'forum').



Following Techno's next point.........Logged into the forum, to see what packages are installed I followed this route and got the following answer when logged into the forum:

Admin
Package Manager
Browse Packages

''No packages yet''.

Also if I follow this route it says:

Installed Packages
View and Remove Installed Packages

''No mods currently installed''.



So this shows, I think, that the ZIP definately didn't upload and thus AJAX Chat cannot possibly work as the files are absent.
Then I had a brainwave of newbie proportions and thought maybe I need to upload the ZIP via FTP first and not via SMF 2.0.1 and I had accidently confused everyone further with the above error.....

So I opened the ZIP [AjaxChat_Intergration_3.2.2b.zip] and extracted the files on my PC and found the folder called 'chat'. The readme said I need to upload the contents of the chat folder (not the entire zip?) via FTP so I did that. Just the contents of the chat folder in the ZIP.

I did this, because the readme said:

Quote
1.   Upload to the server
   --------------------

   Upload the chat folder to your server into your SMF forum directory:
   e.g. http://example.org/forum/chat/ [nofollow]


2.   Creation of database tables
   ---------------------------

   Execute the provided installation script by visiting the following URL with your browser:
   http://example.org/forum/chat/install.php [nofollow]
   
   Replace "http://example.org/forum/chat/ [nofollow]" with the real URL to your chat directory.


3.   Delete the installation script
   ------------------------------
   
   Delete the file install.php from the chat directory on your server.

Ready!

I followed those instructions above, but when I run the install.php file I get a 404 Error which I think means it cannot find the install.php file on my server inside the chat folder I uploaded.

So...............

I looked inside the 'chat' folder I uploaded (from the AjaxChat_Integration_3.2.2b.zip) and
I cannot find an install.php file there. Which I guess explains it!!!!  I don't know why it's missing, presumably as I haven't uploaded it and it's in another folder in the ZIP file? (AjaxChat_Integration_3.2.2b.zip).

All the other contents of the ZIP, I didn't upload to my server as apparently you don't need to to make AJAX chat work with SMF 2.0.1

If it helps, the files I missed out and didn't upload to my server via FTP are called:

shoutbox (windows folder) <-- Lots of files in here.
Changelog.txt
install_1.1.X document
install_2 XML document
package-info XML document
Readme.txt
Shout.english Php Script
Shout.persian Php Script
Shout.template Php Script
Tables_1.1.X Php Script
Tables_2  Php Script


Sorry if this is very confusing and I am getting muddled up.

To recap:

I'm running SMF 2.0.1 forum and it works fine.
I've uploaded  a folder from the Ajax Chat ZIP file Techno tweaked to run with SMF 2.0.1, because the readme says I should. I put in via FTP, in the SMF directory where my forum is located.
I didn't upload the entire ZIP (AjaxChat_Integration_3.2.2b.zip) via FTP and when trying to using SMF function (Admin/package manager/download packages/upload) I get an error saying ''An Error has occured''.

:-[

I hope that makes some sense, it seems very complicated but probably I've missed an incredibly basic point.

T3CHN0

that file.zip was not done by me but i did re-upload it without spaces so others would download it correctly.
but thanks for the thanks :D
QuoteThen I had a brainwave of newbie proportions and thought maybe I need to upload the ZIP via FTP
you almost got it right... upload the ajax.zip not extracted to you site folder called Packages and then look again on your
site where i told you to look before. you should now be able to see the ajax chat in there ready to install.
try and install it now, if you get an error DO NOT INSTALL, come back here and tell us what the error is

dpenguin

#8354
Is there a link to download the 3.2.2b? I have been unable to locate it. I would really like to add Ajax Chat integrated, but it isn't compatible with 2.0.1.


Disregard; found it here

dpenguin

#8355
Ok, it says that it will work on the default theme but not on the theme we are currently using. Is there any way to add it to the current theme? I know a little about php and would be able to edit theme files to add it, if it is possible.


This is the theme:
http://custom.simplemachines.org/themes/index.php?lemma=1078

ETA: Test is failing on ALL other themes, including "Core."

dpenguin


Airclown

can't expect replies to fast sometimes..

in the package manager you can see what tasks it fails on. it fails because it can't find specific parts of code but often it's because of an extra space or things like that
note those down (couple things it looks for and places code before or after that part)
install using the package manager and then manually edit the needed files in the theme your using.

that's what i did 2 days ago and it's working perfectly

MrNicotine

I was able to change the moderator color in the shoutbox (shoutbox.css) but I cannot find the same option for the Chat.
I would like it to be the same color instead of the standard green. Where can I find this?
If it's to be found at all ;). I'm not sure this is possible

Tx, Nicotine

R6

Quote from: T3CHN0 on October 30, 2011, 01:40:29 AM
that file.zip [nofollow] was not done by me but i did re-upload it without spaces so others would download it correctly.
but thanks for the thanks :D
QuoteThen I had a brainwave of newbie proportions and thought maybe I need to upload the ZIP via FTP
you almost got it right... upload the ajax.zip [nofollow] not extracted to you site folder called Packages and then look again on your
site where i told you to look before. you should now be able to see the ajax chat in there ready to install.
try and install it now, if you get an error DO NOT INSTALL, come back here and tell us what the error is

Hi Techno, thanks so much for the reply it was helpful.
I managed to get onto the next step with your advice and I got this error when installing 'AjaxChat_Integration_3.2.2b.zip' from the Package Manager.

NB: Before I uploaded the ZIP via 'package manager' using the forum, I deleted the yellow 'chat' folder on my server where SMF is, that I had uploaded via FTP.
I hope this was the correct thing to do.

I didn't click on the button 'install now', as you sensibly advised.  ;)


Quote


Installations actions for "AjaxChat Integration"
Installing this package will perform the following actions:


1.
Type: Execute Modification
Action: ./Sources/Admin.php
Description: Test successful

2.
Type: Execute Modification
Action: ./Sources/BoardIndex.php   
Description: Test successful

3.
Type: Execute Modification
Action: ./Sources/Load.php
Description: Test successful

4.
Type: Execute Modification
Action: ./Sources/ManagePermissions.php
Description: Test successful


5.
Type: Execute Modification
Action: ./Sources/ManageSettings.php
Description: Test successful


6.
Type: Execute Modification
Action: ./SSI.php
Description: Test successful


7.
Type: Execute Modification
Action: ./Sources/Subs.php
Description: Test successful


8.
Type: Execute Modification
Action: .\Themes\default/BoardIndex.template.php
Description: Test successful


9.
Type: Execute Modification
Action: .\Themes\default/index.template.php
Description: Test successful


10.
Type: Execute Modification
Action: .\Themes\default/languages/Help.english.php
Description: Test successful


11.
Type: Execute Modification
Action: .\Themes\default/languages/Help.persian.php
Description: Skipping file


12.
Type: Extract File
Action: .\Themes\default/Shout.template.php
Description:

13.
Type: Extract File
Action: .\Themes\default/languages/Shout.english.php
Description:

14.
Type: Extract File
Action: .\Themes\default/languages/Shout.persian.php
Description:

15.
Type: Extract File
Action: .\Themes\default/shoutbox.css
Description:

16.
Type: Extract Tree
Action: ./chat
Description:

17.
Type: Extract Tree
Action: ./shoutBox/css
Description:

18.
Type: Extract Tree
Action: ./shoutBox/flash
Description:

19.
Type: Extract Tree
Action: ./shoutBox/img
Description:

20.
Type: Extract Tree
Action: ./shoutBox/js
Description:

21.
Type: Extract Tree
Action: ./shoutBox/lib
Description:

22.
Type: Extract Tree
Action: ./shoutBox/socket
Description:

23.
Type: Extract Tree
Action: ./shoutBox/sounds
Description:

24.
Type: Extract Tree
Action: ./shoutBox/src
Description:

25.
Type: Extract Tree
Action: ./shoutBox
Description:

26.
Type: Execute Code
Action: Tables_2.php
Description:


I'm running an SMF 2.0.1 compatible theme, called ''MyTheme''.

I downloaded the theme from this forum, here: http://custom.simplemachines.org/themes/index.php?action=search;version[]=65;start=40  in the preview box it's called 'My Theme'
Details say:  Author: Trax2K11, Last Update: October 21, 2011, 04:14:16 PM, Downloads: 416,SMF versions: 2.0, 2.0.1

Somaybe for some reason the 'Theme' looks like it's intefering with the chat working correctly.  :-[
It said this below after trying to install the chat with the errors above using 'Package Manager'............................

Quote

Install in Other Themes
To use this modification in themes other than the default, the package manager needs to make additional changes to the other themes. If you'd like to install this modification in the other themes, please select these themes below.

Core Theme:  Execute Modification   .\Themes\core/BoardIndex.template.php  Test failed
1.  Add Before  .\Themes\core/BoardIndex.template.php  Test failed

Core Theme: Execute Modification .\Themes\core/index.template.php  Test failed
1.  Replace  .\Themes\core/index.template.php  Test successful
2. Add Before  .\Themes\core/index.template.php  Test failed

MyTheme:  Execute Modification  .\Themes\MyThemeu/BoardIndex.template.php  Test successful
1. Add Before  .\Themes\MyThemeu/BoardIndex.template.php  Test successful

MyTheme: Execute Modification  .\Themes\MyThemeu/index.template.php  Test failed
1. Replace .\Themes\MyThemeu/index.template.php Test successful
2. Add Before .\Themes\MyThemeu/index.template.php Test failed

NB: I noticed next to the 'Execute Modification' command, there is a little white box you can tick.  They're all unticked. Also next to the word 'Core Theme' and 'My Theme' there's the same little white box, also unticked.



To recap:

1) Got the Ajax Chat Zip to upload with Package Manager using the SMF 2.0.1
2) Seems to have a few errors, maybe due to the 'Theme'?
3) I didn't click on 'Install'.

Thank you again for trying to help me.
:)

Advertisement: