PHP Classes

Has anyone tried this? Having Problem

Recommend this page to a friend!

      PHPBB Login Integration  >  All threads  >  Has anyone tried this? Having Problem  >  (Un) Subscribe thread alerts  
Subject:Has anyone tried this? Having Problem
Summary:Has anyone gotten this to work?
Messages:16
Author:Jordan B
Date:2005-01-28 23:36:52
Update:2007-06-07 04:03:40
 
  1 - 10   11 - 16  

  11. Re: Has anyone tried this? Having Problem   Reply   Report abuse  
Picture of Ricardo Ojeda Ricardo Ojeda - 2005-12-06 02:19:49 - In reply to message 10 from Ricardo Ojeda
and what if i want to do a logout?

  12. Re: Has anyone tried this? Having Problem   Reply   Report abuse  
Picture of Georgi Momchilov Georgi Momchilov - 2006-03-05 07:51:43 - In reply to message 11 from Ricardo Ojeda
It is the user_id indeed. but strange enough - it doesn't work now either... I have a username and get the user_id from the USERS table but the class doesn't seem to log me in. did you make it work with phpBB 2.0.19?

  13. Re: Has anyone tried this? Having Problem   Reply   Report abuse  
Picture of Georgi Momchilov Georgi Momchilov - 2006-03-05 07:58:24 - In reply to message 12 from Georgi Momchilov
actualy - when I var_dump() the result from $phpBB_login->login - I get user_id = -1 ... quite strange because I am sure I pass the right user_id to it.

  14. Re: Has anyone tried this? Having Problem   Reply   Report abuse  
Picture of Konstantin Ivanov Konstantin Ivanov - 2006-06-09 09:07:52 - In reply to message 13 from Georgi Momchilov
I'm geting same error to. Pleace help.
I print $_COOCIE and this i got:

when log in from my website using class:

Array ( [PHPSESSID] => d3ea9bb9d3d8c9b90f009c835c09e546 [phpbb2mysql_data] => a:2:{s:11:\"autologinid\";s:0:\"\";s:6:\"userid\";i:-1;} [phpbb2mysql_sid] => 9e6ea3c19275f58349973a0445ca8fc0 )



when log in grom phpbb:

Array ( [PHPSESSID] => 745832e7a1b92815b2609f985f4ece0b [phpbb2mysql_data] => a:2:{s:11:\"autologinid\";s:0:\"\";s:6:\"userid\";s:1:\"3\";} [phpbb2mysql_sid] => 92f290928b3e783d5ad843acd66c3dde )

I'm passing 3 to $phpBB->login

  15. Re: Has anyone tried this? Having Problem   Reply   Report abuse  
Picture of Russell Russell - 2006-08-01 05:12:30 - In reply to message 13 from Georgi Momchilov
Hi. I was also having trouble with this class. I was able to solve it though. I hope this helps someone.

My problem was that the user in phpbb that I was using was inactive. The function session_begin() automatically sets the user id to -1 (anonymous) whenever the user id given is an inactive account. This usually happens when users are not automatically. What I did was I changed the user table, set the user i want to use to be active. After that the script worked fine for me. I know this setting can be changed somewhere in the admin panel, in the user administration page.

  16. Re: Has anyone tried this? Having Problem   Reply   Report abuse  
Picture of Model Locate Model Locate - 2007-06-07 04:03:40 - In reply to message 15 from Russell
I'm having a similar problem. My page that does the integrated login to phpbb works, but only if you go to the forum, and then back to the integrated login page.

 
  1 - 10   11 - 16