My websites require phpBB3 and wordpress plugged-in as an add-on to the main site. In such a case if the main website already has a membership module in place, then it is desirable that when a member signups on the main website, he also becomes a member in phpBB and wordpress.
There are 3 ways of doing this:
1.Manually redirect the user to the phpbb signup form after signing up on the main site
2.Do an automated form post in code to the phpbb registration page
3.Add data to the phpbb database directly thus bypassing all the phpbb code
4.Use phpbb functions to add the user to the phpbb database
Method 1 is cumbersome and messy as the user is forced to enter his details twice- once for the main site and then for phpbb. This is not a very good option as you are making the user do all the dirty work for you.
Method 2 is not possible with the latest version of phpBB (3.0 Olympus) as it requires Captcha authentication, unless you have a way of hacking the captcha code
Method 3 is very undesirable as there are around 4 tables and 60 fields to update when a member signs up. Besides some of the fields like password etc are hashed using code internal to phpBb.
Method 4 is the most seamless and safe.
It just needs 3 fields to be prefilled: username, user_password and user_email . The rest of the fields are filled with default values by phpBB.
mysite.com/register.php (has own database)
mysite.com/phpbb3 (has own database)
mysite.com/wordpress (has own database)
can someone together develope with me by helping me in coding when someone register at mysite.com/register.php, the script will automatic generate his registration to phpbb3 and wordpress automatically..
There are 3 ways of doing this:
1.Manually redirect the user to the phpbb signup form after signing up on the main site
2.Do an automated form post in code to the phpbb registration page
3.Add data to the phpbb database directly thus bypassing all the phpbb code
4.Use phpbb functions to add the user to the phpbb database
Method 1 is cumbersome and messy as the user is forced to enter his details twice- once for the main site and then for phpbb. This is not a very good option as you are making the user do all the dirty work for you.
Method 2 is not possible with the latest version of phpBB (3.0 Olympus) as it requires Captcha authentication, unless you have a way of hacking the captcha code
Method 3 is very undesirable as there are around 4 tables and 60 fields to update when a member signs up. Besides some of the fields like password etc are hashed using code internal to phpBb.
Method 4 is the most seamless and safe.
It just needs 3 fields to be prefilled: username, user_password and user_email . The rest of the fields are filled with default values by phpBB.
mysite.com/register.php (has own database)
mysite.com/phpbb3 (has own database)
mysite.com/wordpress (has own database)
can someone together develope with me by helping me in coding when someone register at mysite.com/register.php, the script will automatic generate his registration to phpbb3 and wordpress automatically..