Re: Integrating PHPBB3 with Zencart
Wondering if people are still working on this project, or if a final consensus has been reached as to the best actions for getting the forum/Zen Cart linkage?
Re: Integrating PHPBB3 with Zencart
I don't have the time to devote to it right now. Hopefully in the next couple of weeks I can look at it more. I'm trying to get a big project finished.
Re: Integrating PHPBB3 with Zencart
Good day all,
I did find that PHPBB3 is using its own hashing function not MD5.
the funtion is phpbb_hash(password); and is located in includes/functions.php
Re: Integrating PHPBB3 with Zencart
started working on this today, the above posts do not correctly hash the password and while it appears to work it makes any future bridge/session management painful to work with.
Re: Integrating PHPBB3 with Zencart
i have tried both example codes and my phpbb3 still does not get a new user when i sign up a new account on zen
Re: Integrating PHPBB3 with Zencart
I think it's still not solved... I have downloaded version 1.3.8 and it doesn't seem to integrate properly with my phpBB3 during the zencart installation.
Someone suggested installing 1.3.8a, but the general finding is somewhat oblivious = meaning, problem still unsolved.
Re: Integrating PHPBB3 with Zencart
Quote:
Originally Posted by
sadr1an1
I have succesfuly begin integration with phpbb3, all i have managed to do is sincronising account creation from zencart into phpbb. After the modification in admin section Configuration->My store->Enable phpBB linkage? = true, and the config file, i have to modify class.phpbb.php, just the following function:
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'] . "
( username,username_clean, user_password, user_email, user_regdate)
values
( '" . $nick . "','" . $nick . "', '" . md5($password) . "', '" . $email_address . "', '" . time() ."')";
$this->db_phpbb->Execute($sql);
//could do a check here to see if Insert_ID() matches $user_id...
// @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?
}
}
Now when i register a new user in zencart it will be registered in phpbb too.
Now i'm loking for something like wordpress integration: wordpress is oppend inside zencart. If iwon\t find anithing usefull this day i will start customisation myself.:wink:
I used this method (page 2 of this thread I think) several months ago and It is working fine for me, is this not working for everyone else?
Thanks, Ben.
Re: Integrating PHPBB3 with Zencart
Quote:
Originally Posted by
lazerradial2003
I used this method (page 2 of this thread I think) several months ago and It is working fine for me, is this not working for everyone else?
Thanks, Ben.
Hello,
Could you please tell me your ways to do ? I read all of them but it still misunderstand ....
Thanks !
Re: Integrating PHPBB3 with Zencart
Inside the includes folder there is a file called: class.phpbb.php, look for: function phpbb_create_account($nick, $password, $email_address) {
This is the function which creates the new account, it looks very similar to the code above. replace the function (all of it, not just the title, i think it finshes just above the line: function phpbb_check_for_duplicate_nick($nick='') {) with the code above and it should work.
As has been mentioned, this code doesn't seem to use phpbb's new password hashing methods but it does work for now.
Re: Integrating PHPBB3 with Zencart
Hello, was jsut dropping by to check how far devlopment was on this integration/brdige.
What features are there going to be? Becuase I may be interested in helping :)