X7 Chat Support Board
Welcome, Guest. Please login or register.
July 31, 2010, 07:40:32 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 66535 Members
Latest Member: svabodabelarus1999
* 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 17396 times)
E-Oreo
Administrator
Member
*****
Offline Offline

Posts: 3710


View Profile Email
« Reply #15 on: May 27, 2008, 04:59:31 PM »
Reply with quote

The first error indicates that one of the chat members belongs to a user group that isn't defined in X7 Chat.  The second two errors are a result of the first one.

Is the board you're setting it up with using normal db authentication or is it using one of phpbb's authentication module things (LDAP/Apache)?
Report to moderator   Logged
Mydnyte Syn
Member
*
Offline Offline

Posts: 9


View Profile
« Reply #16 on: May 27, 2008, 07:56:44 PM »
Reply with quote

Okay, so to correct the first error, I need to be sure to set up the user groups in the chat.

It's using normal db authentication.
Report to moderator   Logged
Mydnyte Syn
Member
*
Offline Offline

Posts: 9


View Profile
« Reply #17 on: May 29, 2008, 11:50:29 AM »
Reply with quote

I managed to correct the first error. But, the chat is still making people login instead of logging in automatically with whatever user account they happen to be logged in with at the phpbb forum.  I also noticed that if a user changes accounts at the forum, it doesn't change in the chat. 
Report to moderator   Logged
E-Oreo
Administrator
Member
*****
Offline Offline

Posts: 3710


View Profile Email
« Reply #18 on: May 29, 2008, 04:33:59 PM »
Reply with quote

Quote
But, the chat is still making people login instead of logging in automatically with whatever user account they happen to be logged in with at the phpbb forum.
Is the problem only with the autologin?  (ie: is the chatroom correctly looking up the user's account data in the PhpBB 3 table when they login using the X7 Chat login form)

Quote
I also noticed that if a user changes accounts at the forum, it doesn't change in the chat
That's something I doubt a default X7 Chat authmod will ever be able to do.  Sure, you could program it to be able to do that, but the situation isn't going to happen often enough during normal use for it to be worth the large amount of time it would require to properly implement something as complex as that.
Report to moderator   Logged
Mydnyte Syn
Member
*
Offline Offline

Posts: 9


View Profile
« Reply #19 on: May 30, 2008, 05:13:37 PM »
Reply with quote

Correct.  The autologin isn't working as it should.  I'm pretty sure the chat is looking up the users account data in the phpbb 3 table, but I noticed something in the phpmyadmin area that I had not noticed before.  There's actually an additional chat query that appears on it own.  It's not in the phpbb tables (though, there is one in there too).  Perhaps its trying to pull from that query instead of the phpbb 3 one?

I had the x7chat installed on phpbb 2.0.21 before.  Because the forum also had the account switch mod installed, if a user switched accounts, their logged in account to the chat would change while they were in the chat room and viewing the forum.  The community that I maintain actually uses this feature often and people switch accounts often.  I'm thinking, though, that if the autologin isn't picking up the user account data from the correct table, this issue may be resolved by correcting that.
Report to moderator   Logged
E-Oreo
Administrator
Member
*****
Offline Offline

Posts: 3710


View Profile Email
« Reply #20 on: May 30, 2008, 06:38:16 PM »
Reply with quote

In the PhpBB 3 admin panel under the General Tab, under the Server Configuration section on the Cookies Settings page is the domain name you have listed there the same one that the chatroom is being accessed on?  Also, what is the cookie path that is set there?

If X7 Chat isn't automatically logging the user in when they have a valid PhpBB session its usually because the chatroom can't read the PhpBB cookies for some reason.

Quote
I had the x7chat installed on phpbb 2.0.21 before.  Because the forum also had the account switch mod installed, if a user switched accounts, their logged in account to the chat would change while they were in the chat room and viewing the forum.  The community that I maintain actually uses this feature often and people switch accounts often.  I'm thinking, though, that if the autologin isn't picking up the user account data from the correct table, this issue may be resolved by correcting that.
That's very interesting, I'm not sure how exactly this worked with the old system but I suspect this doesn't work with the new system because the new system caches the user's data in its own database tables and uses that rather than going back to the PhpBB database every time.  Its somewhat pointless since I don't believe the version 2 port of this integration system allows you to use different databases, but in X7 Chat 3 caching the data gives a significant advantage (and that's where this integration system is from).

This is probably why you are seeing queries against the X7 Chat user table, after the user's account is synchronized upon login X7 Chat should rely only on its own database for the remainder of the user's session.  As I mentioned earlier, not a huge advantage in X7 Chat 2 but in X7 Chat 3 this feature drastically reduces the number of queries that are run.
Report to moderator   Logged
Mydnyte Syn
Member
*
Offline Offline

Posts: 9


View Profile
« Reply #21 on: May 31, 2008, 09:32:08 PM »
Reply with quote

In the PhpBB 3 admin panel under the General Tab, under the Server Configuration section on the Cookies Settings page is the domain name you have listed there the same one that the chatroom is being accessed on?  Also, what is the cookie path that is set there?

If X7 Chat isn't automatically logging the user in when they have a valid PhpBB session its usually because the chatroom can't read the PhpBB cookies for some reason.

The domain name listed in the cookie settings is the same one that the chat is being accessed on.  The cookie path that is set is:  /

Report to moderator   Logged
mohamed
Guest


Email
« Reply #22 on: July 22, 2008, 12:30:34 PM »
Reply with quote

Done and working fine ..

Thanks very very much E-Oreo

and what about X7 Chat 3 and integrate it with phpBB3 ?

Is there a specific date about  X7 Chat 3?
Report to moderator   Logged
E-Oreo
Administrator
Member
*****
Offline Offline

Posts: 3710


View Profile Email
« Reply #23 on: July 22, 2008, 04:34:25 PM »
Reply with quote

X7 Chat 3 will support PhpBB 3 when it is released.  No release date has been set.
Report to moderator   Logged
mohamed
Guest


Email
« Reply #24 on: July 29, 2008, 08:55:07 PM »
Reply with quote

 i have bad news ..

there is problem with encoding

i have arabic users .. and arabic users appears in control panel like this : Huh??

i think the problem with intergration file ..



also this problem happened with me in members box in index page

help me please


Report to moderator   Logged
moh.elmadany
Guest


Email
« Reply #25 on: August 02, 2008, 06:57:05 PM »
Reply with quote

Help me sir  huh
Report to moderator   Logged
Xinora
Guest


Email
« Reply #26 on: August 07, 2008, 02:40:18 PM »
Reply with quote

Please help me what can i do?

Warning: mysql_fetch_row(): supplied argument is not a valid MySQL result resource in /kunden/107893_41363/bvtgilde/BVTForum/Bvtchatroom/lib/db/mysql.php on line 52

Warning: Cannot modify header information - headers already sent by (output started at /kunden/107893_41363/bvtgilde/BVTForum/Bvtchatroom/lib/db/mysql.php:52) in /kunden/107893_41363/bvtgilde/BVTForum/Bvtchatroom/lib/auth.php on line 69

Warning: Cannot modify header information - headers already sent by (output started at /kunden/107893_41363/bvtgilde/BVTForum/Bvtchatroom/lib/db/mysql.php:52) in /kunden/107893_41363/bvtgilde/BVTForum/Bvtchatroom/lib/auth.php on line 70
Report to moderator   Logged
fr8dude
Member
*
Offline Offline

Posts: 1


View Profile Email
« Reply #27 on: August 30, 2008, 08:12:04 AM »
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...
I would like a little help with translatioin on this. I think I have figured some out but the first I can't figure out the "whosonline.php". is this a new file?
Danka
Report to moderator   Logged
Mydnyte Syn
Member
*
Offline Offline

Posts: 9


View Profile
« Reply #28 on: September 11, 2008, 10:29:06 PM »
Reply with quote

I'm getting this error:

Quote
Fatal error: Call to undefined function auth_getpass() in /home/xxx/public_html/xxxx/chat/lib/auth.php on line 48

When I change the $X7CHAT_CONFIG['AUTH_MODE'] = "md5"; to phpbb3.  If I leave it at md5, the chat works fine. 
Report to moderator   Logged
Libelah
Member
*
Offline Offline

Posts: 29


View Profile
« Reply #29 on: September 14, 2008, 08:49:59 AM »
Reply with quote

I would like a little help with translatioin on this. I think I have figured some out but the first I can't figure out the "whosonline.php". is this a new file?
Danka
Yes - the whosonline.php is a new file - just create a file named whosonline.php - insert the code and adjust the Database-parameters.
it has to be stored in phpBB root path then.
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.131 seconds with 15 queries.