X7 Chat Support Board
Welcome, Guest. Please login or register.
July 31, 2010, 07:32:44 PM

Login with username, password and session length
Search:     Advanced search
X7 Chat Version 3.0.0 Alpha 2 is now available (http://x7chat.com/support_forum/index.php?topic=3198.msg11497#new).
13036 Posts in 3760 Topics by 66534 Members
Latest Member: magdemis1945
* Home Help Search Login Register
+  X7 Chat Support Board
|-+  X7 Chat General
| |-+  FAQs
| | |-+  How to integrate with PhpBB3
« previous next »
Pages: [1] 2 3 Reply Send this topic Print
Author Topic: How to integrate with PhpBB3  (Read 17395 times)
E-Oreo
Administrator
Member
*****
Offline Offline

Posts: 3710


View Profile Email
« on: February 09, 2008, 05:19:47 PM »
Reply with quote

The PhpBB 3 integration file for X7 Chat 3 has been written now.  By popular request this integration file has been backported to version 2, however doing so required some significant changes (read: an entire rewrite) of one of the X7 Chat 2 library files.  There are both good and bad aspects to this; first, the bad news is that the installation is a bit more complicated and the simple autodetect & config feature of the installer is not compatible with PhpBB 3.  The good news is that the new library can use very slightly modified copies of the X7 Chat 3 integration files, which means that as the integration files for X7 Chat 3 are released they will also become available for version 2, so eventually all of version 2's integration files should support the latest version of the software that they integrate with.  Additionally, the new library supports guest access with integration enabled and is significantly more efficient that the old library.

How to Install (From the beginning)

1) Download the latest version of X7 Chat 2 from http://x7chat.com/download.php

2) Unzip the zip file and rename the folder x7chat2 to whatever you want (such as chat or chatroom)

3) Upload the folder into your PhpBB3 root directory, so that you access the contents by going to http://yoursite.com/phpbb3directory/x7chat2directory/

4) If necessary, CHMOD 777 the files and folders: ./logs/, ./mods/, ./uploads/, ./config.php (paths relative to the x7chat2 directory)

5) Visit http://yoursite.com/phpbb3directory/x7chat2directory/install.php and proceed with an un-integrated install.  The installer may incorrectly detect your PhpBB 3 board and auto configure itself for integration, this means that on the step where you enter your database information you will need to select md5 as the Auth Type and enter appropriate database values (these might have been detected automatically ok)

Note: When you create the default admin account in the installer it MUST have the same username as your PhpBB 3 user account.  If you did not or cannot use the same username, then use a different username that is not registered on your board and then register a PhpBB 3 user account with that name or disable registration to protect that account.

6) Delete the files install.php and upgradev1.php from the x7chat2 directory on the server after you finish going through all the steps in the installer.  Your chatroom should be fully working as a stand alone chatroom at this point, if it does not, fix it before continuing.

7) Download this zip package: http://x7chat.com/mods/v2_improved_integration.zip

8) The zip file contains two important files, ./lib/auth.php and ./lib/auth/phpbb3.php.  These need to be uploaded to the server in the appropriate location.  The paths are relative to the x7chat2 directory on your server.  When you upload auth.php you should overwrite the existing auth.php already on your server.  When you upload phpbb3.php you may or may not have to overwrite an existing file.

9) After the files have been uploaded you need to edit the file config.php that is on the server inside the x7chat2 directory.  Use your FTP client to download this file and then open it in a simple text editor.  In the following line change md5 to phpbb3, then save the file and reupload it and overwrite the X7 Chat 2 config.php file stored on the server.
Code:
$X7CHAT_CONFIG['AUTH_MODE'] = "md5";

Warning: PhpBB 3's config file is also called config.php also, make sure you don't overwrite the PhpBB 3 config file with the X7 Chat 2 one or vice versa.

10) Your chatroom should be integrated with PhpBB 3 now.  If you don't want to allow guests, go into the settings section of the admin panel and disable them.  I would also recommend disabling registration in the X7 Chat 2 admin panel and just using PhpBB 3's account database.  Unless you do this it is still possible for people to register accounts with the chatroom only and not with the forum and these accounts will work, but if a PhpBB 3 account with the same name is registered it will overwrite the X7 Chat 2 account even if that account is a registered account (and not a guest).

Please report any bugs that you discover with the new authentication library or the new integration file.  At the moment consider it still in beta phase, it should work fine but hasn't been extensively tested.

One note: Changing your password in X7 Chat 2 will not work in many cases and will never change your PhpBB 3 password.
« Last Edit: February 09, 2008, 05:23:50 PM by E-Oreo » Report to moderator   Logged
Danawyn
Guest


Email
« Reply #1 on: February 24, 2008, 06:30:06 PM »
Reply with quote

Hi!

My Website: www.the-vagabonds-maiar.de (phpbb3)

I installed the X7 Chat in /modules/chat and changed the /lib/auth.php and /lib/auth/config.php like it's discribed above.

But i get this message when i run www.the-vagabonds-maiar.de/modules/chat :

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/web3/html/phpBB3/modules/chat/lib/auth/phpbb3.php:337) in /srv/www/htdocs/web3/html/phpBB3/modules/chat/lib/auth.php on line 69

Warning: Cannot modify header information - headers already sent by (output started at /srv/www/htdocs/web3/html/phpBB3/modules/chat/lib/auth/phpbb3.php:337) in /srv/www/htdocs/web3/html/phpBB3/modules/chat/lib/auth.php on line 70

Btw: If a user is  logged in (at the homepage), the chat finds out the username an the users will be logged in the chat too. (very nice)
But the users can't chat.. they can write, but the other users in the room see nothing.. I think if i solve the first problem, the second is solved too...

please help.

Report to moderator   Logged
Libelah
Member
*
Offline Offline

Posts: 29


View Profile
« Reply #2 on: February 26, 2008, 06:15:12 AM »
Reply with quote

the error message means that the script gives something out to early.
here's a little explanation (http://www.tech-recipes.com/php_programming_tips1489.html)

please post some lines of the file phpbb3.php around line 337, perhaps we'll see whats wrong there
Report to moderator   Logged
E-Oreo
Administrator
Member
*****
Offline Offline

Posts: 3710


View Profile Email
« Reply #3 on: February 26, 2008, 10:41:21 AM »
Reply with quote

It looks like there might be an unintended newline at the end of the phpbb3.php file, try removing that and see if it works.
Report to moderator   Logged
Acousticman3
Guest


Email
« Reply #4 on: March 11, 2008, 02:15:42 AM »
Reply with quote

It's doing the same thing while trying to integrate with XMB ("Not allowed to run this file directly.") on the "...x7chat2/install.php?step=1" link.

Everything is chmod'd correctly and I'm familiar with installing PHP scripts... could this just be a problem with xmb.php?

THanks!
Report to moderator   Logged
Ardbeggordon
Member
*
Offline Offline

Posts: 19


View Profile
« Reply #5 on: March 16, 2008, 09:01:17 AM »
Reply with quote

Hi E-Oreo ,
I've been toying with Whether or not to integrate my current freestanding Version 2 X7 chat with my Phpbb3 board , would i have to install a new chatroom and go through the whole process or could i just move the existing board into the Phpbb3 board folder then just install the new modified files ?
Cheers
Gordon
« Last Edit: March 16, 2008, 09:03:33 AM by Ardbeggordon » Report to moderator   Logged
E-Oreo
Administrator
Member
*****
Offline Offline

Posts: 3710


View Profile Email
« Reply #6 on: March 16, 2008, 04:21:48 PM »
Reply with quote

Using the new method of integration you shouldn't need to reinstall X7 Chat to change an existing standalone chatroom to an integrated one, although I've never actually tried doing that.
Report to moderator   Logged
Ardbeggordon
Member
*
Offline Offline

Posts: 19


View Profile
« Reply #7 on: March 16, 2008, 05:14:26 PM »
Reply with quote

Using the new method of integration you shouldn't need to reinstall X7 Chat to change an existing standalone chatroom to an integrated one, although I've never actually tried doing that.
Even though the Chatroom is outside the Board ? will just changing the two library files and config file do ?
« Last Edit: March 16, 2008, 05:57:18 PM by Ardbeggordon » Report to moderator   Logged
Ardbeggordon
Member
*
Offline Offline

Posts: 19


View Profile
« Reply #8 on: March 20, 2008, 02:21:14 PM »
Reply with quote

Well i copied the chatroom folder into the phpbb3 folder , changed the two files , changed the Config file , disabled the Allow registration , deleted the existing accounts and everything seems to be working hunky-dory off the phpbb3 database !
Cheers E-Oreo for another good job ! Looking forward to when version 3 is ready !!!

Gordon
Report to moderator   Logged
E-Oreo
Administrator
Member
*****
Offline Offline

Posts: 3710


View Profile Email
« Reply #9 on: March 21, 2008, 12:14:53 AM »
Reply with quote

Quote
Even though the Chatroom is outside the Board ? will just changing the two library files and config file do ?
If the chatroom is not installed in a direct subdirectory of the PhpBB3 root you'll need to edit the new integration file (/auth/phpbb3.php) so that the include statement correctly finds the config.php file.  The include() function is called near the top and has a file path in quotation marks.  You'll need to edit the path so that it points to your PhpBB3 config.php file.  After doing that it should work fine.
Report to moderator   Logged
sdh
Guest


Email
« Reply #10 on: May 04, 2008, 02:36:52 PM »
Reply with quote

I firstly, put extracted http://x7chat.com/mods/v2_improved_integration.zip files (./lib/auth.php and ./lib/auth/phpbb3.php) in chat directory, and installed x7chat2, through number 1-5.. Then, deleted install.php, upgradev1.php files.. It worked in that way..
Report to moderator   Logged
banth
Member
*
Offline Offline

Posts: 1


View Profile
« Reply #11 on: May 05, 2008, 12:44:41 PM »
Reply with quote

How to Install (From the beginning)


I just wanted to give X7 Chat a big thumbs up.  I upgraded to phpbb3 then reinstalled x7chat over the weekend and used the phpbb3 integration files.

X7 integrated nicely, no problems at all.  The only thing missing is the writeup on how to modify the phpbb3 header page to add the chat icon and link, but I can probably figure that out.

Thanks for the great product.


Leslie
Report to moderator   Logged
Libelah
Member
*
Offline Offline

Posts: 29


View Profile
« Reply #12 on: May 05, 2008, 12:51:33 PM »
Reply with quote

there is an instruction on how to integrate x7 chat in phpBB3 - in german.
http://www.phpbb.de/viewtopic.php?p=978617#978617
I could translate it in english if you'd like to have it.
It adds a link in the header menu and shows the online users...
Report to moderator   Logged
Mydnyte Syn
Guest


Email
« Reply #13 on: May 27, 2008, 04:20:02 AM »
Reply with quote

I'm getting this message at the top when I load the chat to choose a room to enter:

Notice: Undefined index: Moderator in /home/xxxx/public_html/sim/chat/lib/load.php on line 280
Report to moderator   Logged
Mydnyte Syn
Member
*
Offline Offline

Posts: 9


View Profile
« Reply #14 on: May 27, 2008, 04:38:11 AM »
Reply with quote

Sorry for the double post.  I thought I had registered this account previously and realized I had not and wasn't able to edit my post above.  I'm getting this errors:

Notice: Undefined index: Moderator in /home/xxxxx/public_html/sim/chat/lib/load.php on line 280

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/sim/chat/lib/load.php:280) in /home/xxxxx/public_html/sim/chat/index.php on line 249

Warning: Cannot modify header information - headers already sent by (output started at /home/xxxxx/public_html/sim/chat/lib/load.php:280) in /home/xxxxx/public_html/sim/chat/index.php on line 250

Also, the chat isn't detecting the phpbb 3.0.1's members passwords and its making them have to reset/request new ones.  Is there something in the database I can change so it recognizes the registered members of the forum and their existing forum passwords?  This chat install was fresh and I followed the directions to integrate with phpbb3.  I have done this on another phpbb 3.0.1 board and didn't have any issues so I know it can be done. 
Report to moderator   Logged
Pages: [1] 2 3 Reply Send this topic Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.9 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
Page created in 0.109 seconds with 15 queries.