| 
 | 
  Seaslug - 2008-10-23 11:13:41  
I have spent the last week looking for a decent script thats simple to implement into PHPBB and my site this seems to be it 
 
although i'm having hassles getting it to work 
 
Login works fine 
 
my problem is adduser fails everytime 
 
any ideas what it could be ? 
 
 
 
  
  cybz - 2008-11-08 01:56:41 -  In reply to message 1 from Seaslug 
I've had the same problem. There is a mistake in the example file, when you set your variables in the example it says: 
$phpbb_vars = array("username" => "test", "password" => "123", "email" => " [email protected]", "group_id" => "2");
 
it should be:
 
$phpbb_vars = array("username" => "test", "user_password" => "123", "user_email" => " [email protected]", "group_id" => "2");
 
Hope this helps.  
  
  Seaslug - 2008-11-10 10:47:42 -  In reply to message 2 from cybz 
Thanks that works 
 
also just a reminder to anyone when adding  passwords it has to meet PHPbb3 requirements on length etc or it will fail. 
  
  Bren Lynne - 2009-02-04 20:02:39 -  In reply to message 3 from Seaslug 
There also appears to be a bug on line 99 where it checks the user_rows array before it has been created on line 111.  Changing those checks to $phpbb_vars appears to work. 
 
Also, you need to remove !isset($phpbb_vars['user_type'] from this check as it is not set by example_phpbb.php. 
 
This class is a good idea, but it's buggy as hell. 
  
  Felix Manea - 2010-03-19 07:13:55 -  In reply to message 4 from Bren Lynne 
Hi, 
 
I am not using class, it was created for a project that never finished, so its not very well maintained, so please for all the bugs found contact me and I will add the fix for it. I have studied the forum and added the fixes found here. Thank you all for helping me making this class better. 
 
Thanks, 
Felix 
  
   |