Results 1 to 2 of 2
  1. #1
    Join Date
    May 2007
    Posts
    9
    Plugin Contributions
    0

    Default phpBB User Creation

    As far as i can tell, there was a bug in the includes/classes/class.phpbb.php file on line 189 the code is:
    PHP Code:
    $sql "insert into " $this->phpBB['users_table'] . "
                    (user_id, username, user_password, user_email, user_regdate)
                    values
                    ('" 
    . (int)$user_id "', '" $nick "', '" md5($password) . "', '" $email_address "', '" time() ."')"
    The problem is the "(int)" in the SQL

    My fix code is:
    PHP Code:
    $sql "insert into " $this->phpBB['users_table'] . "
                    (user_id, username, user_password, user_email, user_regdate)
                    values
                    ('" 
    $user_id "', '" $nick "', '" md5($password) . "', '" $email_address "', '" time() ."')"
    Without this change, the user was not created in my phpBB forums when a user creates their user account in zen-cart. After making this code change it works perfectly for me...

    Jadnet

  2. #2
    Join Date
    Aug 2004
    Posts
    1,590
    Plugin Contributions
    1

    Default Re: phpBB User Creation

    In that file,

    find:

    PHP Code:
    $user_id = ($phpbb_users->fields['total'] + 1); 
    replace with:

    PHP Code:
    $user_id = (isset($phpbb_users->fields['total']) && is_numeric($phpbb_users->fields['total'])) ? $phpbb_users->fields['total'] + 0
    This should work as expected with the int.

 

 

Similar Threads

  1. phpBB issues Zen v1.3.9h with phpBB 2.0.23
    By stevefriedman71 in forum General Questions
    Replies: 11
    Last Post: 8 May 2011, 10:02 PM
  2. PHPbb error after new user signp
    By jmatson in forum Bug Reports
    Replies: 2
    Last Post: 13 Mar 2009, 09:33 AM
  3. Adding a Username Field to account creation? Issues with Zen+phpBB
    By Yuchant in forum Managing Customers and Orders
    Replies: 0
    Last Post: 15 Oct 2007, 10:47 AM
  4. PHPBB Account Creation
    By PortMan in forum General Questions
    Replies: 0
    Last Post: 15 May 2006, 09:40 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg