Forums / General Questions / Integrating PHPBB3 with Zencart

Integrating PHPBB3 with Zencart

Locked

Views: 41,750

Results 61 to 80 of 82
This thread is locked. New replies are disabled.
3 Sep 2008, 4:46 AM
#61
szarin avatar

szarin

New Zenner

Join Date:
Aug 2008
Posts:
47
Plugin Contributions:
0

Integrating PHPBB3 with Zencart

okies as a follow up to my last post...

The code change listed above to includes/classes/class.phpbb.php will not enter the the latest user on your phpbb forums index page.

if you want your Zen Cart users to be displayed on your phpBB forums then edit includes/classes/class.phpbb.php and look for phpbb_create_account

replace that the entire function with the following code.

   function phpbb_create_account($nick, $password, $email_address) {
      if ($this->phpBB['installed'] != true || !zen_not_null($password) || !zen_not_null($email_address) || !zen_not_null($nick)) return false;
      if ($this->phpbb_check_for_duplicate_email($email_address) == 'already_exists') {
//        $this->phpbb_change_email($old_email, $email_address);
      } else {
        $sql = "select max(user_id) as total from " . $this->phpBB['users_table'];
        $phpbb_users = $this->db_phpbb->Execute($sql);
        $user_id = ($phpbb_users->fields['total'] + 1);
//        $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() ."')";
        $sql = "insert into " . $this->phpBB['users_table'] . "
                ( username,username_clean, user_password, user_email, user_regdate, user_passchg, group_id, user_permissions, user_sig, user_occ, user_interests, user_email_hash)
                values
                ( '" . $nick . "','" . $nick . "', '" . md5($password) . "', '" . $email_address . "', '" . time() . "', '" . time(). "', 2, '', '', '', '', '" . crc32(strtolower($email_address)) . strlen($email_address) . "')";
        $this->db_phpbb->Execute($sql);
//could do a check here to see if Insert_ID() matches $user_id...

    $sql = "SELECT user_id, username, user_colour
        FROM " . $this->phpBB['users_table'] . "
        WHERE user_type IN ('0', '3')
        ORDER BY user_id DESC LIMIT 1";
    $phpbb_newest_user = $this->db_phpbb->Execute($sql);

    $sql = "UPDATE " . $this->phpBB['config_table'] . "
        SET config_value = '" . $phpbb_newest_user->fields['user_id'] . "'
        WHERE config_name = 'newest_user_id'";
    $this->db_phpbb->Execute($sql);
    
    $sql = "UPDATE " . $this->phpBB['config_table'] . "
        SET config_value = '" . $phpbb_newest_user->fields['username'] . "'
        WHERE config_name = 'newest_username'";
    $this->db_phpbb->Execute($sql);    
    
    $sql = "UPDATE " . $this->phpBB['config_table'] . "
        SET config_value = '" . $phpbb_newest_user->fields['user_colour'] . "'
        WHERE config_name = 'newest_user_colour'";
    $this->db_phpbb->Execute($sql);    
    
    $sql = "UPDATE " . $this->phpBB['config_table'] . "
        SET config_value = config_value + 1 
        WHERE config_name = 'num_users'";
    $this->db_phpbb->Execute($sql);

// @TODO: MySQL5

//      $sql = "INSERT INTO " . $this->phpBB['groups_table'] . " (group_name, group_desc, group_single_user, group_moderator)
//              VALUES (0, 'Personal User', 1, 0)";
//      $this->db_phpbb->Execute($sql);
//      $group_id = $this->db_phpbb->Insert_ID();
        $sql = "INSERT INTO " . $this->phpBB['user_group_table'] . " (user_id, group_id, user_pending)
                VALUES ($user_id, 2, 0)";
        $this->db_phpbb->Execute($sql);
        //might optionally send an extra email welcoming them to the phpBB forum, reminding them of their nickname?
      }
    }  

that will work. As a reminder, phpbb can be set not to accept the same email. if you are using a test email account in your store account it will not work in phpBB. it does not give any errors, the user simply wont be added.

To test out the system thoroughly, delete the user from your store as well as from your phpbb users.

this will ensure that your not running around in circles with working code...

4 Sep 2008, 2:22 PM
#62
jvalent avatar

jvalent

New Zenner

Join Date:
Feb 2008
Posts:
68
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

Thanks for that very clear post Szarin....

I set the location of my forum as

define('DIR_WS_PHPBB', '../forum/');

The actual location of my forum is http://togentertainment.com/forum/

I cut and pasted the code as you had posted, this is from my site:

function phpbb_create_account($nick, $password, $email_address) {
if ($this->phpBB['installed'] != true || !zen_not_null($password) || !zen_not_null($email_address) || !zen_not_null($nick)) return false;
if ($this->phpbb_check_for_duplicate_email($email_address) == 'already_exists') {
// $this->phpbb_change_email($old_email, $email_address);
} else {
$sql = "select max(user_id) as total from " . $this->phpBB['users_table'];
$phpbb_users = $this->db_phpbb->Execute($sql);
$user_id = ($phpbb_users->fields['total'] + 1);
// $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() ."')";
$sql = "insert into " . $this->phpBB['users_table'] . "
( username,username_clean, user_password, user_email, user_regdate, user_passchg, group_id, user_permissions, user_sig, user_occ, user_interests, user_email_hash)
values
( '" . $nick . "','" . $nick . "', '" . md5($password) . "', '" . $email_address . "', '" . time() . "', '" . time(). "', 2, '', '', '', '', '" . crc32(strtolower($email_address)) . strlen($email_address) . "')";
$this->db_phpbb->Execute($sql);
//could do a check here to see if Insert_ID() matches $user_id...

$sql = "SELECT user_id, username, user_colour
    FROM " . $this->phpBB['users_table'] . "
    WHERE user_type IN ('0', '3')
    ORDER BY user_id DESC LIMIT 1";
$phpbb_newest_user = $this->db_phpbb->Execute($sql);

$sql = "UPDATE " . $this->phpBB['config_table'] . "
    SET config_value = '" . $phpbb_newest_user->fields['user_id'] . "'
    WHERE config_name = 'newest_user_id'";
$this->db_phpbb->Execute($sql);

$sql = "UPDATE " . $this->phpBB['config_table'] . "
    SET config_value = '" . $phpbb_newest_user->fields['username'] . "'
    WHERE config_name = 'newest_username'";
$this->db_phpbb->Execute($sql);    

$sql = "UPDATE " . $this->phpBB['config_table'] . "
    SET config_value = '" . $phpbb_newest_user->fields['user_colour'] . "'
    WHERE config_name = 'newest_user_colour'";
$this->db_phpbb->Execute($sql);    

$sql = "UPDATE " . $this->phpBB['config_table'] . "
    SET config_value = config_value + 1 
    WHERE config_name = 'num_users'";
$this->db_phpbb->Execute($sql);

// @TODO: MySQL5

// $sql = "INSERT INTO " . $this->phpBB['groups_table'] . " (group_name, group_desc, group_single_user, group_moderator)
// VALUES (0, 'Personal User', 1, 0)";
// $this->db_phpbb->Execute($sql);
// $group_id = $this->db_phpbb->Insert_ID();
$sql = "INSERT INTO " . $this->phpBB['user_group_table'] . " (user_id, group_id, user_pending)
VALUES ($user_id, 2, 0)";
$this->db_phpbb->Execute($sql);
//might optionally send an extra email welcoming them to the phpBB forum, reminding them of their nickname?
}
}

And I still get absolutely nothing referencing the forum when I create a new user..... can't figure this out at all?

Can anyone offer any suggestions?

Jeff

5 Sep 2008, 8:05 PM
#63
szarin avatar

szarin

New Zenner

Join Date:
Aug 2008
Posts:
47
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

where is your store located?

9 Sep 2008, 2:28 PM
#64
jvalent avatar

jvalent

New Zenner

Join Date:
Feb 2008
Posts:
68
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

From above...

The actual location of my forum is http://togentertainment.com/forum/

It resides in the public_html folder

Jeff

14 Sep 2008, 12:50 PM
#65
phillipharrison avatar

phillipharrison

New Zenner

Join Date:
Jan 2007
Location:
England
Posts:
83
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

felixh:

These are steps to integrate zencart 1.3.8 with phpbb3. This step will ensure your phpbb3 display appropriate Total number of user and Newest Member nickname at the board index.

  1. Install your phpbb3 and ensure it runs perfectly.
  2. Edit your configure.php replace ```php
    define('DIR_WS_PHPBB', 'C:/your server/www/phpbb3/');
> 
> 3. Enable link to your phpbb3 from your zencart administrator. Inside your store configuration set the Link to phpbb3 to true.
> 
> 4. edit "class.phpbb.php" inside your .../includes/classes folders. Try to find phpbb_create_account function and replace with the following code. 
> 
> ```php
  function phpbb_create_account($nick, $password, $email_address) {
      if ($this->phpBB['installed'] != true || !zen_not_null($password) || !zen_not_null($email_address) || !zen_not_null($nick)) return false;
      if ($this->phpbb_check_for_duplicate_email($email_address) == 'already_exists') {
//        $this->phpbb_change_email($old_email, $email_address);
      } else {
        $sql = "select max(user_id) as total from " . $this->phpBB['users_table'];
        $phpbb_users = $this->db_phpbb->Execute($sql);
        $user_id = ($phpbb_users->fields['total'] + 1);
        $sql = "insert into " . $this->phpBB['users_table'] . "
                (user_id, group_id, username, username_clean, user_password, user_email, user_regdate)
                values
                ('" . (int)$user_id . "',2, '" . $nick . "', '" . $nick . "', '" . md5($password) . "', '" . $email_address . "', '" . time() ."')";
        $this->db_phpbb->Execute($sql);
        $sql = "update phpbb_config SET config_value = '{$user_id}' WHERE config_name = 'newest_user_id'";
        $this->db_phpbb->Execute($sql);
        $sql = "update phpbb_config SET config_value = '{$nick}' WHERE config_name = 'newest_username'";
        $this->db_phpbb->Execute($sql);
        $sql = "update phpbb_config SET config_value = config_value + 1 WHERE config_name = 'num_users'";
        $this->db_phpbb->Execute($sql);


        $sql = "INSERT INTO " . $this->phpBB['user_group_table'] . " (user_id, group_id, user_pending)
                VALUES ($user_id, 2, 0)";
        $this->db_phpbb->Execute($sql);
      }
    }
```5. Enjoy your nicely integrated phpbb3 forum with zencart, and if you find better solution please let me know :smile:
> 
> You can find other zencart tips and tricks at my blog - ferolen.com/blog

I implemented this and cant get it to create the php account. No other errors.

Anyone managed to get this to work recently?

thanks
22 Sep 2008, 10:38 PM
#66
szarin avatar

szarin

New Zenner

Join Date:
Aug 2008
Posts:
47
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

well after a week and a half, my store stopped updating the message board which i had working. now its not importing the name or displaying the new users at the bottom like it used to, I am back to the beginning with this and now its driving me nuts.

22 Sep 2008, 11:54 PM
#67
szarin avatar

szarin

New Zenner

Join Date:
Aug 2008
Posts:
47
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

i am not sure if this has been brought before....

However, after a large amount of testing and beer consumption (and not in that order) i have come across an interesting find.

The above code will only work if the email address does not exist in the phpbb user table.

If there is an existing "forum nick" the code will send an error back to your store account creation page informing the user trying to create the new account they must pick another forum nick name.

However and i believe this is where a lot of frustration may be occurring. The code which we are inputting does not send an error back if the email account you are entering on the store account creation page is tied to an existing phpbb user.

It will not create forum nick in the user table of your phpbb forums and thus not make the announcement at the bottom of the page.

Work around: Make sure when you are testing your store and phpbb forums you must be using a unique email address and nick in both the store and phpbb forums.

The easiest way to do this is during the testing phase, delete the user in both store and the phpbb forums during the testing. This will allow you to use the same email address during the testing phase and not have to use 2 or 3 different email addresses.

Store info:
To delete the test account login to your store admin > customers > select your test account and hit delete and confirm it.

Forums info:
To delete the test account login to your forums ACP > users and groups > find a member > click the 'last' page of your users > (your test account will be the last one, it is listed chronological) > select > submit > delete user: > retain posts > submit > confirm

Yes this is the long way of doing it, and yes your user ID's in your store/forums will jump because your are creating new entries in both MYSQL tables.

before following this step, make a backup!!!

One way to avoid this mess is to make sure you put a disclaimer beside the forum nick on the account creation page. To do this edit includes > Languages > english.php

search for 'ENTRY_NICK_TEXT'

In that spot, put something similar to this: For existing users who have a forum accounts/message board account/phpbb user id you will need to pick a new name, you may continue to use your old account. For new users please pick a unique forum name.

Something similar, english/grammar was never one of my strong suits heh.

to the ppl who made the code to do this, is there a way to make a pop-up or warning message on the account creation page stating the user was not created in the forums because of an existing email account. - just a thought.

23 Sep 2008, 2:44 AM
#68
andyii avatar

andyii

Zen Follower

Join Date:
Mar 2007
Posts:
153
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

could someone put back the part of the code that does this checking?
I was thinking that the ones that got it to work with PHPBB3 would know quickest where to get it and place it??

29 Sep 2008, 1:52 AM
#69
dishguy05 avatar

dishguy05

New Zenner

Join Date:
Sep 2008
Posts:
2
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

Hello,

I downloaded Zen-Cart 1.38a and phpBB 3.02.
I applied the patch mentioned in this topic and i am able to get a user registered on my phpbb3 forums. However, when i try to use the login information, it does not like the password and i cannot login using the username and password chosen in zen cart signup.
I am able to log into zencart fine using the email address and password.

any idea what might be going on?

29 Sep 2008, 2:22 AM
#70
dishguy05 avatar

dishguy05

New Zenner

Join Date:
Sep 2008
Posts:
2
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

please diregard my previous post. I redod the class.phpbb file modification and its working now...

Now if only someone could update session handling :-)

1 Oct 2008, 2:58 PM
#71
jvalent avatar

jvalent

New Zenner

Join Date:
Feb 2008
Posts:
68
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

Well, I have tried this about 10 times now and I can't get it to work. I don't get error codes or nothing.

Nothing happens. One thing I noticed is that the login info required for Zen uses email address and you need a username on PhpBB which is not being created when you make an account in ZEN.

I am at the point where I need to hire someone to fix this problem. I need to get the site announced and start generating traffic. I cannot have users having to register in the store and then the forum.

Anyone who is interested please email me at [email protected] and let me know what you would charge to fix this.

Thanks

Jeff

18 Oct 2008, 8:58 AM
#72
dmagic avatar

dmagic

Totally Zenned

Join Date:
Oct 2008
Posts:
594
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

Whats the point if the user need regiter twicw
one to store and two to the forum ?

i can install the forum without the zen cart
anyone can explain what's the point ? :(

Thanks

19 Oct 2008, 2:59 AM
#73
jvalent avatar

jvalent

New Zenner

Join Date:
Feb 2008
Posts:
68
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

The point is that you try to make your site as user friendly to your customers so that they wan to come back. Registering for both Zen and the forums at one time is way more user friendly.

Jeff

19 Oct 2008, 7:49 AM
#74
dmagic avatar

dmagic

Totally Zenned

Join Date:
Oct 2008
Posts:
594
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

jvalent:

The point is that you try to make your site as user friendly to your customers so that they wan to come back. Registering for both Zen and the forums at one time is way more user friendly.

Jeff

but i can't register both it's not working . :frusty:

26 Oct 2008, 12:15 AM
#75
hookah avatar

hookah

New Zenner

Join Date:
Oct 2008
Location:
Oregon
Posts:
57
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

You were pretty close! I got it to work but the only thing wrong in your code was that you assume that the config table is "phpbb_config" in all installations I have seen it is just "config" and therefore the update queries failed. But it was an easy fix, I just changed the table names to config and all is working nicely.

felixh:

These are steps to integrate zencart 1.3.8 with phpbb3. This step will ensure your phpbb3 display appropriate Total number of user and Newest Member nickname at the board index.

  1. Install your phpbb3 and ensure it runs perfectly.
  2. Edit your configure.php replace ```php
    define('DIR_WS_PHPBB', 'C:/your server/www/phpbb3/');
> 
> 3. Enable link to your phpbb3 from your zencart administrator. Inside your store configuration set the Link to phpbb3 to true.
> 
> 4. edit "class.phpbb.php" inside your .../includes/classes folders. Try to find phpbb_create_account function and replace with the following code. 
> 
> ```php
  function phpbb_create_account($nick, $password, $email_address) {
      if ($this->phpBB['installed'] != true || !zen_not_null($password) || !zen_not_null($email_address) || !zen_not_null($nick)) return false;
      if ($this->phpbb_check_for_duplicate_email($email_address) == 'already_exists') {
//        $this->phpbb_change_email($old_email, $email_address);
      } else {
        $sql = "select max(user_id) as total from " . $this->phpBB['users_table'];
        $phpbb_users = $this->db_phpbb->Execute($sql);
        $user_id = ($phpbb_users->fields['total'] + 1);
        $sql = "insert into " . $this->phpBB['users_table'] . "
                (user_id, group_id, username, username_clean, user_password, user_email, user_regdate)
                values
                ('" . (int)$user_id . "',2, '" . $nick . "', '" . $nick . "', '" . md5($password) . "', '" . $email_address . "', '" . time() ."')";
        $this->db_phpbb->Execute($sql);
		$sql = "update phpbb_config SET config_value = '{$user_id}' WHERE config_name = 'newest_user_id'";
		$this->db_phpbb->Execute($sql);
		$sql = "update phpbb_config SET config_value = '{$nick}' WHERE config_name = 'newest_username'";
		$this->db_phpbb->Execute($sql);
		$sql = "update phpbb_config SET config_value = config_value + 1 WHERE config_name = 'num_users'";
		$this->db_phpbb->Execute($sql);


        $sql = "INSERT INTO " . $this->phpBB['user_group_table'] . " (user_id, group_id, user_pending)
                VALUES ($user_id, 2, 0)";
        $this->db_phpbb->Execute($sql);
      }
    }
  1. Enjoy your nicely integrated phpbb3 forum with zencart, and if you find better solution please let me know :smile:

You can find other zencart tips and tricks at my blog - ferolen.com/blog

The Hookah Store www.TheHookahStore.com

26 Oct 2008, 12:34 AM
#76
jvalent avatar

jvalent

New Zenner

Join Date:
Feb 2008
Posts:
68
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

Where specifically did you change it cause I still cant get mine to work

Jeff

26 Oct 2008, 2:05 AM
#77
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,513
Plugin Contributions:
176

Re: Integrating PHPBB3 with Zencart

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 Nov 2008, 11:45 AM
#78
dmagic avatar

dmagic

Totally Zenned

Join Date:
Oct 2008
Posts:
594
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

where is phpbb_create_account ?

Thanks .

11 Nov 2008, 5:45 AM
#79
veronika7747 avatar

veronika7747

Zen Follower

Join Date:
Nov 2007
Posts:
270
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

szarin:

i am not sure if this has been brought before....

..some text deleted..

Forums info:
To delete the test account login to your forums ACP > users and groups > find a member > click the 'last' page of your users > (your test account will be the last one, it is listed chronological) > select > submit > delete user: > retain posts > submit > confirm

.

Well I created two new "users" via zencart that I cannot delete from phpbb3 by following the info above. I can see those 2 names but when I select them and hit "submit" I get an error Information - The requested user does not exists.

I have changed the config.php, used the new class.phpbb.php, get an correct error message if "nick" exists, I get the "new member" showing in my footer on phpbb3, but cannot login with those two accounts and cannot delete them!Any help??:dontgetit
Both zencart and phpbb3 are new no active users.

12 Nov 2008, 5:13 AM
#80
jhardman avatar

jhardman

New Zenner

Join Date:
Nov 2008
Posts:
9
Plugin Contributions:
0

Re: Integrating PHPBB3 with Zencart

So, I have put in this code in my class.phpbb.php file:

function phpbb_create_account($nick, $password, $email_address) {
      if ($this->phpBB['installed'] != true || !zen_not_null($password) || !zen_not_null($email_address) || !zen_not_null($nick)) return false;
      if ($this->phpbb_check_for_duplicate_email($email_address) == 'already_exists') {
//        $this->phpbb_change_email($old_email, $email_address);
      } else {
        $sql = "select max(user_id) as total from " . $this->phpBB['users_table'];
        $phpbb_users = $this->db_phpbb->Execute($sql);
        $user_id = ($phpbb_users->fields['total'] + 1);
//        $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() ."')";
        $sql = "insert into " . $this->phpBB['users_table'] . "
                ( username,username_clean, user_password, user_email, user_regdate, user_passchg, group_id, user_permissions, user_sig, user_occ, user_interests, user_email_hash)
                values
                ( '" . $nick . "','" . $nick . "', '" . md5($password) . "', '" . $email_address . "', '" . time() . "', '" . time(). "', 2, '', '', '', '', '" . crc32(strtolower($email_address)) . strlen($email_address) . "')";
        $this->db_phpbb->Execute($sql);
//could do a check here to see if Insert_ID() matches $user_id...

    $sql = "SELECT user_id, username, user_colour
        FROM " . $this->phpBB['users_table'] . "
        WHERE user_type IN ('0', '3')
        ORDER BY user_id DESC LIMIT 1";
    $phpbb_newest_user = $this->db_phpbb->Execute($sql);

    $sql = "UPDATE " . $this->phpBB['config_table'] . "
        SET config_value = '" . $phpbb_newest_user->fields['user_id'] . "'
        WHERE config_name = 'newest_user_id'";
    $this->db_phpbb->Execute($sql);
    
    $sql = "UPDATE " . $this->phpBB['config_table'] . "
        SET config_value = '" . $phpbb_newest_user->fields['username'] . "'
        WHERE config_name = 'newest_username'";
    $this->db_phpbb->Execute($sql);    
    
    $sql = "UPDATE " . $this->phpBB['config_table'] . "
        SET config_value = '" . $phpbb_newest_user->fields['user_colour'] . "'
        WHERE config_name = 'newest_user_colour'";
    $this->db_phpbb->Execute($sql);    
    
    $sql = "UPDATE " . $this->phpBB['config_table'] . "
        SET config_value = config_value + 1 
        WHERE config_name = 'num_users'";
    $this->db_phpbb->Execute($sql);

// @TODO: MySQL5

//      $sql = "INSERT INTO " . $this->phpBB['groups_table'] . " (group_name, group_desc, group_single_user, group_moderator)
//              VALUES (0, 'Personal User', 1, 0)";
//      $this->db_phpbb->Execute($sql);
//      $group_id = $this->db_phpbb->Insert_ID();
        $sql = "INSERT INTO " . $this->phpBB['user_group_table'] . " (user_id, group_id, user_pending)
                VALUES ($user_id, 2, 0)";
        $this->db_phpbb->Execute($sql);
        //might optionally send an extra email welcoming them to the phpBB forum, reminding them of their nickname?
      }
    }

Everything pretty much works. Both accounts are created and all info in every table is updated correctly. The problem is that after clicking submit I just get a blank white page. Nothing. If I hit back, then I can see I am logged into the store. My phpbb login works too.

The URL I am taken too when clicking submit on the registration is > http://stungunsdefense.com/index.php?main_page=create_account

What could be causing this problem?