AjaxChat Integration (latest version 3.2.1)

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

Previous topic - Next topic

[unplugged]

What is on line 17 of the ..../public_html/chat/index.php?
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Deadairdave

#5021
It's not just that problem now.

When I clicked on the 'home' tab, I got the following error code -

QuoteFatal error: require() [function.require]: Failed opening required '/home/fazakstu/public_html/shoutBox/lib/class/AJAXChat.php' (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/fazakstu/public_html/shoutBox/lib/classes.php on line 11

The above code replaces where the forums were visible on the index.

This is the full error code on the index.php file from my 1st post -

Quote
1 <?php
2 /*
3  * @package AJAX_Chat
4  * @author Sebastian Tschan
5 * @copyright (c) Sebastian Tschan
6  * @license GNU Affero General Public License
7  * @link https://blueimp.net/ajax/
8  */
9
10 // Show all errors:
11 error_reporting(E_ALL);
12
13 // Path to the chat directory:
14 define('AJAX_CHAT_PATH', dirname($_SERVER['SCRIPT_FILENAME']).'/');
15
16 // Include custom libraries and initialization code:
17 require(AJAX_CHAT_PATH.'lib/custom.php');
18
19 // Include Class libraries:
20 require(AJAX_CHAT_PATH.'lib/classes.php');
21
22 // Initialize the chat:
23 $ajaxChat = new CustomAJAXChat();
24 ?>

*edit:  sorry typo, it's not an error code, just the code copied from the index.php fille. ;)

[unplugged]

Can you post or PM me a link to your site please? Also, you may want to check the chmod permissions of the files and folders and make sure they are set properly (on mine it's 644 for files and 755 for folders). These can be accessed from your host's control panel or from your FTP program. My program allows me to right click on a file/folder in the server pain and view "properties".
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



Deadairdave

Well, I have no idea what I have done, but after a couple of uninstalls/reinstalls (and a cup of coffee) the shoutbox/chat loads; and the forums are back as normal.

Downside, I can't seem to be able to post anything.  I can type in the text line, including clicking on the smilies, etc, but on hitting the enter key/pressing shout, nothing happens.  Well, I say nothing, whatever I type into the text box vanishes when pressing the 'shout button' but then doesn't appear in the actual shoutbox or chat room - I've tried both.

Any ideas?  I'm working off of the 'admin' acount, so all permissions one would think are set to work.  Other than enabling the shoutbox/chat via Modification Settings>Chat  ...is there any other sections within the cPanel that needs setting? 

Thanks for your help.

Dave.

Deadairdave

Hi, I've taken a couple of screen shots if they help.

http://img8.imageshack.us/img8/2825/ajax2i.png
http://img709.imageshack.us/img709/2193/ajax1.png

The website link is http://www.fazakstudios.co.uk
I've set-up a guest a/c if you wish to test the chat yourself.

Username:  test (case sensitive).
Pass:          test (case sensitive).

Thanks again for your help,

Dave.

[unplugged]

I would first have a read here for the .htaccess fix. I believe that may be your main issue. Also, you may need to integrate the chat and shoutbox to get the shoutbox to display properly. Keep in mind, integrating the two means that anything typed in the chat will also display in the shoutbox.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



m_nature

#5026
Quote from: m_nature on January 25, 2010, 04:08:25 AM
AjaxChat+Integration_3.2.1, SMF 1.8  (use in the office| Intranet)

I have few questions after install and used it.

1) How can I set to more line for showing(in the picture)?

2) How can I set to make the  shoutbox  to auto refresh ? Because now only update when i click somewhere of forums or chating in shoutbox.

3) How can I set to keep the  line wording more ?  Because  I want to keep 30 line wording (over and above can delete).

Thanks
P.S. Sorry my english not good please try to understanding

I can modify already but only set auto refresh I cannot.

Could you suggest me for modify it?

Thanks

vertese

Can anyone suggest how members can make font bigger in chat and bold if they wish (permanently) and I still can't access admin for logs.
Any ideas?

Deadairdave

Quote from: SunKing on January 26, 2010, 12:48:44 AM
I would first have a read here for the .htaccess fix. I believe that may be your main issue. Also, you may need to integrate the chat and shoutbox to get the shoutbox to display properly. Keep in mind, integrating the two means that anything typed in the chat will also display in the shoutbox.

Hi, I seem to be going around in circles and finding more than one topic in searching for the htaccess fix.  Do you know the direct link to the 'fix' that you talk of, please?  I had a brief (what I think said) 500 connection error flash up in the shoutbox in red print then vanish, but haven't seen it since.

I also cannot see any users 'online' including myself, in the chat room.  I've tried it both with the admin a/c; and a member (test) a/c.  Yet, there's a button that says 'logout' at the top left of the chat room.

I noticed last night in the chat room, the green light flicked to orange for a few seconds.  Does that represent a connection issue? 

Any suggestions, please?

Dave.

Deadairdave

Scrub the above, I have it working!!!

I found the .htaccess file you were on about in the /public_html folder.  I couldn't see where exactly to add the file, so on the first attempt, I added it in between -

Quote# Rules for: boards
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
>>new code<<RewriteRule ^chat/?$ ./chat/index.php [L,QSA]<<<new code<<
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

I was gonna give up, but went back and added the code to the 1st line -

Quote# Rules for: boards
>>new code<<RewriteRule ^chat/?$ ./chat/index.php [L,QSA]<<<new code<<
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/?$ ./index.php?pretty;board=$1.0 [L,QSA]
RewriteRule ^([-_!~*'()$a-zA-Z0-9]+)/([0-9]*)/?$ ./index.php?pretty;board=$1.$2 [L,QSA]

....and voila, on refreshing the forums (pressing F5 twice) the chat allows me to post in both the shoutbox and chat room - I also see what you mean about what you type in the chat room appears a second later in the shoutbox; and vice versa.

One question though, something I've notice with both the admin and member account.  On the 'channel' drop down tab, it lists 'public' then every available forum for that member, then what appears to be a 'private' room for that member.  Is it possible to remove all the forum headings from the 'channel' as I only have the shoutbox visible on the main forum index; and I cannot see why any member would need to see these forums?

I've attached a screen shot of what I mean....

http://img204.imageshack.us/img204/893/ajax3.png

Thanks again.

Dave.

Deadairdave

Please mark my issues as solved.  I came across these codes on my travels....

http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

They've done the trick nicely.

Thanks for all your help.

Dave.

PedroM

Buenas, tengo un problema ya que al integral este mod, me queda en error 500 les dejo el link para que vean el error y me puedan ayudar, gracias!
hxxp:foro.viciosmu.com.ve/index.php [nonactive]

[unplugged]

@m_nature and vertese
I am not ignoring your questions, they are just best answered by someone who knows this mod a bit better.  :P Sorry.

@deadairdave
Glad you got it all sorted. In my post about the .htaccess fix, I meant to have the word "here" point to the exact post. Looking back at that post now, I see that I forgot to. LOL. I apologize for making your eyes bleed in all of the searching.

@pedroM
aquí: http://www.simplemachines.org/community/index.php?board=101.0
y aquí: http://www.simplemachines.org/community/index.php?topic=257973.msg1981766#msg1981766

The first link is to the Spanish support boards.

The second link is to the FAQ for this mod. There are solutions for the error 500 in there.
« Next Edit: Tomorrow at 08:34:45 PM by SunKing »   <---- « someone stole my sig... :o »



virtualdave

#5033
I've been snooping around for a couple days looking for something to help out with a prob I have. It doesn't seem to be addressed anywhere so here goes. I have 2 SMF forums based in one hosting account. the first has a successfully operating Ajax Chat Room (AjaxChat Integration 3.2.1). This is an SMF 1.1.10 forum. Yesterday morning I uploaded and installed an instance of the same version of Ajax Chat on the 2nd forum (SMF 1.1.11). At first I was getting the,  Error: Connection status: 404, message. After looking around a bit i found the htaccess fixes and tried this one.
RewriteEngine on
RewriteBase /forum

# Rules for: actions
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


I recalled having an htaccess file issue, involving having the domain open up an index.html file instead of the forum's index.php file. We solved that with the htaccess with this little bit.

DirectoryIndex index.htm


htaccess now looks like this:


DirectoryIndex index.htm

   RewriteEngine on
RewriteBase /forum

# Rules for: actions
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


This did accomplish something but not exactly what I wanted.

What seems to be happening is that the second instance of chat is now seeing the first instance. I can log into the chat happening on forum 1 from forum 2. all the settings from forum 1 are applied and I can see and chat with guys on the other forum. I figure that the second install didn't get its own data base or that something didn't get pointed right when the second forum was installed. I would like to have two independant chat rooms one associated with each forum. Any suggestions?
thanks
virtualdave

Road Rash Jr.

Now that is really weird. I have this mod install on several forums, seperated by their individual folders in the main root and they DO NOT see each other.
My SMF version for all is 2.0 RC1.2 updated from SMF 1.1.10
Maybe you should update your SMF version.
Never argue with an Idiot like myself, they just drag you down to their level then beat you with experience.

vertese

Thank you Sunking
Is anyone able to help please
Can anyone suggest how members can make font bigger in chat and bold if they wish (permanently) and I still can't access admin and see Realtime monitoring and logs viewer
Any ideas?

virtualdave

I love it when I can figure some of this jazz out for my self. I got it!

It was in the htaccess file as I was convinced.


RewriteEngine on
RewriteBase /forum
# Rules for: actionsRewriteRule ^chat/?$ ./chat/index.php [L,QSA]


In the example above I noticed that the bit of htaccess file I had copied had /forum in it. that happens to be one of my folder designations, forum #1 in fact. I changed forum to f247 the name of forum #2's root folder and all was good. :) So simple!
virtualdave

Quote from: virtualdave on January 26, 2010, 02:35:28 PM
I've been snooping around for a couple days looking for something to help out with a prob I have. It doesn't seem to be addressed anywhere so here goes. I have 2 SMF forums based in one hosting account. the first has a successfully operating Ajax Chat Room (AjaxChat Integration 3.2.1). This is an SMF 1.1.10 forum. Yesterday morning I uploaded and installed an instance of the same version of Ajax Chat on the 2nd forum (SMF 1.1.11). At first I was getting the,  Error: Connection status: 404, message. After looking around a bit i found the htaccess fixes and tried this one.
RewriteEngine on
RewriteBase /forum

# Rules for: actions
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


I recalled having an htaccess file issue, involving having the domain open up an index.html file instead of the forum's index.php file. We solved that with the htaccess with this little bit.

DirectoryIndex index.htm


htaccess now looks like this:


DirectoryIndex index.htm

   RewriteEngine on
RewriteBase /forum

# Rules for: actions
RewriteRule ^chat/?$ ./chat/index.php [L,QSA]


This did accomplish something but not exactly what I wanted.

What seems to be happening is that the second instance of chat is now seeing the first instance. I can log into the chat happening on forum 1 from forum 2. all the settings from forum 1 are applied and I can see and chat with guys on the other forum. I figure that the second install didn't get its own data base or that something didn't get pointed right when the second forum was installed. I would like to have two independant chat rooms one associated with each forum. Any suggestions?
thanks
virtualdave

TNoob

Where is a list of commands?

How do I ban users from the chatbox? Or clear the chatbox?

LisaNY

#5038
I have SMF version 1.1.11 and uploaded the mod through my admin panel.  It installed with no problems.  I got the Connection status error: 500, and set my chat, shout and index.php file permissions to 755 as per the instructions in the FAQ  section.  I am still getting the same error.

I have also checked all of the necessary options in my features/options panel.

Any other suggestions?

Thanks!

ETA: Also, the shoutbox appears at the top of the forum.  The chat appears with the other icons at the top, but when I click on it I get a server error 500.

UPDATE: I fixed it. 

Saulbadguy

I'm still getting ChatBot: Error: Connection status: 0 quite a bit.  I did the mod to the chat.js that was recommended earlier in this thread but still no dice. 

I'm on SMF 1.1.11 and using the latest ajax chat package.

Advertisement: