From 778fccf167016e34fa3d93cd1ccd3bafa442d57d Mon Sep 17 00:00:00 2001 From: Frug Date: Tue, 7 Jan 2014 12:27:41 -0500 Subject: [PATCH 1/5] mybb database fixed --- chat/changelog.txt | 1 + 1 file changed, 1 insertion(+) diff --git a/chat/changelog.txt b/chat/changelog.txt index 81e8ca6..763349a 100644 --- a/chat/changelog.txt +++ b/chat/changelog.txt @@ -842,3 +842,4 @@ Bugfixes: - Fixed a case where the default channel could be blocked from the limitChannelList config option. - Fix potential conflict between php and mysql timezones by using mysql's FROM_UNIXTIME(). - thanks to ManOnDaMoon. - Normalized sound volumes a bit. +- Fixed mybb integration database connection. Connection details should be pulled automatically now. \ No newline at end of file From 7f2079fd54cacf30f94252b155559df75bd00a45 Mon Sep 17 00:00:00 2001 From: Frug Date: Tue, 7 Jan 2014 14:29:22 -0500 Subject: [PATCH 2/5] mybb guest logins --- chat/changelog.txt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/chat/changelog.txt b/chat/changelog.txt index 763349a..42bcfca 100644 --- a/chat/changelog.txt +++ b/chat/changelog.txt @@ -842,4 +842,5 @@ Bugfixes: - Fixed a case where the default channel could be blocked from the limitChannelList config option. - Fix potential conflict between php and mysql timezones by using mysql's FROM_UNIXTIME(). - thanks to ManOnDaMoon. - Normalized sound volumes a bit. -- Fixed mybb integration database connection. Connection details should be pulled automatically now. \ No newline at end of file +- Fixed mybb integration database connection. Connection details should be pulled automatically now. +- Fidex mybb integration guest logins to accept guests that don't enter a username (assign numbers like other versions) \ No newline at end of file From fb9cfa4a5836ad9e4ea3febf2d090419e495c4bf Mon Sep 17 00:00:00 2001 From: Frug Date: Tue, 7 Jan 2014 15:40:13 -0500 Subject: [PATCH 3/5] minor corrections --- chat/readme.html | 104 +++++++++++++++++++++++++++++++---------------- 1 file changed, 68 insertions(+), 36 deletions(-) diff --git a/chat/readme.html b/chat/readme.html index f6264a9..fefeb8c 100644 --- a/chat/readme.html +++ b/chat/readme.html @@ -58,22 +58,21 @@

Table of Contents

License

-

This is the standalone version of blueimp's AJAX Chat designed to run on its own, without another web application.
If you want to integrate AJAX Chat with one of the forums we support, go back and choose the right version.
This version is good for customizing your own integration, or using on its own.

-AJAX stands for "Asynchronous JavaScript and XML".
-The AJAX Chat client (your browser) uses JavaScript to query the web server for updates.
-Instead of delivering a complete HTML page only updated data is sent in XML format.
-By using JavaScript the chat page can be updated without having to reload the whole page.
-PHP is used to communicate with the database and authenticate users. + AJAX stands for "Asynchronous JavaScript and XML".
+ The AJAX Chat client (your browser) uses JavaScript to query the web server for updates.
+ Instead of delivering a complete HTML page only updated data is sent in XML format.
+ By using JavaScript the chat page can be updated without having to reload the whole page.
+ PHP is used to communicate with the database and authenticate users.

Requirements

- +
@@ -98,15 +97,20 @@

Installation

Download your preferred version of AJAX Chat and unzip the file on your computer.

Before You Begin

-

In order to edit PHP files you will need a good text editor. You should not use Windows notepad, wordpad, or Microsoft Word to edit PHP files. These programs will add something called a byte-order-mark (BOM) to the files and this may prevent chat from functioning properly. We recommend using Notepad ++ ( http://notepad-plus.sourceforge.net ) for editing all files. It also has the benefit of color-coding your files so you can edit them more easily.
- If you get an error message like "Cannot modify header information - headers already sent" it is likely because you have used one of the above programs to edit files.

+

+ In order to edit PHP files you will need a good text editor. You should not use Windows notepad, wordpad, or Microsoft Word to edit PHP files. These programs will add something called a byte-order-mark (BOM) to the files and this may prevent chat from functioning properly. + We recommend using Notepad ++ ( http://notepad-plus-plus.org ) for editing all files. It also has the benefit of color-coding your files so you can edit them more easily.
+ If you get an error message like "Cannot modify header information - headers already sent" it is likely because you have used one of the above programs to edit files. +

+

Configure Database Settings

-

The first and most important thing you need to do is tell AJAX Chat how to connect to your database. This, and all core settings must be located inside the file lib/config.php.
- You need to create this file.
- An example config.php file can be found in lib/config.php.example that shipped with chat.
- Duplicate this file and save it as config.php (or just delete .example from the end of the file name) and then fill out at least the following four fields in the file:

+

+ The first and most important thing you need to do is tell AJAX Chat how to connect to your database. This, and all core settings must be located inside the file lib/config.php.
+ You need to create this file.
+ An example config.php file can be found in lib/config.php.example that shipped with chat.
+ Duplicate this file and save it as config.php (or just delete .example from the end of the file name) and then fill out at least the following four fields in the file:

$config['dbConnection']['host'] = 'your_database_hostname';
$config['dbConnection']['user'] = 'your_database_username';
@@ -124,16 +128,18 @@

Configure Database Settings

$config['dbConnection']['link'] = null;
If this is set to null, a new database connection is created.

-

Choose Your Channel Settings

-
-

Edit the file lib/data/channels.php.
- We have provided you with two sample channels, named public and private. You can add your own, or leave it as-is.
- Channels follow the following format: -
- $channels[channel id] = 'channel name'; - Each channel must have a unique channel id number and a unique name.
- Whitespace in the channel names will be converted to the underscore "_".

-
+ +

Choose Your Channel Settings

+
+

Edit the file lib/data/channels.php.
+ We have provided you with two sample channels, named public and private. You can add your own, or leave it as-is.
+ Channels follow the following format: +
+ $channels[channel id] = 'channel name'; + Each channel must have a unique channel id number and a unique name.
+ Whitespace in the channel names will be converted to the underscore "_".

+
+

Add Your Users

Edit users in lib/data/users.php.
@@ -150,6 +156,7 @@

Add Your Users

The list of channels a user has access to can be set for each user individually. Channel id's are separated by commas. eg: array(0,1,23); allows channels 0, 1 and 23.
Whitespace in the user names will be converted to the underscore "_".

+

Upload to Your Server

Upload the chat folder to your server somewhere under your document root:
@@ -167,10 +174,12 @@

Create the Database Tables

Either of these methods will create the tables your database needs to store chat messages and other information.

+

Delete the Installation Script

Delete the file install.php from the chat directory on your server. You may also delete the file chat.sql.

+

Congradulation! You Are Winner!

Yay! You're done! To test your chat, navigate to your chat URL in a browser: http://example.org/path/to/chat/index.php
@@ -189,6 +198,7 @@

Configuration Files

Both of these files are well commented with information on what the settings mean.

+

Customizing the Layout

The layout of AJAX Chat is fully customizable by using CSS (Cascaded Style Sheets).
@@ -210,6 +220,7 @@

Customizing the Layout

Just edit lib/config.php and set the following option:

$config['contentType'] = 'text/html';

+

Adjusting the Language Settings

AJAX Chat comes with two language file directories:

@@ -240,8 +251,8 @@

Adding Features

AJAX Chat is designed with numerous hooks and overrides available to improve core functionality without requiring you to edit the core files. With an intermediate understading of PHP and javascript you can modify your chat to suit your needs.

-

Have a look through a few examples available on the sourceforge wiki: - https://sourceforge.net/apps/mediawiki/ajax-chat/index.php?title=General_Modifications +

Have a look through a few examples available on the wiki: + https://github.com/Frug/AJAX-Chat/wiki/General-modifications

@@ -262,9 +273,11 @@

Accessing the Logs

You can search for IPs, using the following syntax: ip=127.0.0.1

+

Shoutbox

AJAX Chat is also usable as shoutbox - this is a short guide on how to set it up:

+

Shoutbox Stylesheet

Add the following line to the stylesheet (CSS) of all pages displaying the shoutbox:

@@ -272,6 +285,7 @@

Shoutbox Stylesheet

Replace http://example.org/path/to/chat/ with the URL to the chat.
Modify css/shoutbox.css to your liking.

+

Shoutbox Function

Add the following function to your PHP code:

@@ -305,12 +319,14 @@

Shoutbox Function

?>

Make sure AJAX_CHAT_URL and AJAX_CHAT_PATH point to the chat directory.

+

Shoutbox Output

Display the shoutbox content using the shoutbox function:

<div style="width:200px;"><?php echo getShoutBoxContent(); ?></div>

+

Socket Server

Using the AJAX technology alone the chat clients have to permanently pull updates from the server.
@@ -352,16 +368,21 @@

Installation

If your socket server is running on another host you should set the broadcast_clients option to the chat server IP.

Using the socket server increases response time while improving server performance at the same time.

+

Flash Permissions

-

Since Flash 9.0.115.0 and all Flash 10 versions, permissions for creating sockets using Flash have changed.
- Now an explicit permission (using xml-syntax) is required for creating socket connections.
- In the current state, socket server won't work with the newest Flash versions.
- You will get a "Flash security error" in the browser.

-

A solution is to use a policy-files server which will listen to connections in port 843 in the server.
- Each time a client tries to connect to the chat, the Flash client will request the policy authorization to the server.
- The policy-files server is downloadable from http://ammonlauritzen.com/FlashPolicyService-09b.zip
- It works with FF3 and IE7 (not yet tested in other browsers).

+

+ Since Flash 9.0.115.0 and all Flash 10 versions, permissions for creating sockets using Flash have changed.
+ Now an explicit permission (using xml-syntax) is required for creating socket connections.
+ In the current state, socket server won't work with the newest Flash versions.
+ You will get a "Flash security error" in the browser. +

+

+ A solution is to use a policy-files server which will listen to connections in port 843 in the server.
+ Each time a client tries to connect to the chat, the Flash client will request the policy authorization to the server.
+ The policy-files server is downloadable from http://ammonlauritzen.com/FlashPolicyService-09b.zip
+ It works with FF3 and IE7 (not yet tested in other browsers). +

A more detailed explanation can be found here:

* http://ammonlauritzen.com/blog/2007/12/13/new-flash-security-policies/
* http://ammonlauritzen.com/blog/2008/04/22/flash-policy-service-daemon/
@@ -384,12 +405,23 @@

Support

-
Your donations contribute to the growth and development of this project and are always appreciated.
+
+

+ Your donations contribute to the growth and development of this project and are always appreciated.
+
+ + + + + + I'm on gittip at https://www.gittip.com/Frug +

+

License

-

Bluimp's AJAX Chat is released under a Modified MIT License.

-

You should also find this license included with your download of this project.

+

Bluimp's AJAX Chat is released under a Modified MIT License.

+

You should also find this license included with your download of this project.

back to top

From 017dcdd7d8213651e5751b47cfba6c0feffda766 Mon Sep 17 00:00:00 2001 From: Frug Date: Tue, 7 Jan 2014 15:46:37 -0500 Subject: [PATCH 4/5] more fixes --- chat/readme.html | 209 ++++++++++++++++++++++++----------------------- 1 file changed, 107 insertions(+), 102 deletions(-) diff --git a/chat/readme.html b/chat/readme.html index fefeb8c..145e188 100644 --- a/chat/readme.html +++ b/chat/readme.html @@ -7,6 +7,7 @@
Server-Side Client-Side