I need to be able to some stuff on my site which will require the use of the user data held on the site’s forums (phpbb).
Basically the site (EpicDiscs) allows visitors to post reviews of online retailers they’ve shopped from and on hifi kit etc. At present you do not need a user account to do this. You simply fill in a form with name etc.
I want to redo the site so that only people with forum accounts can perform reviews.
Essentially what I want is as follows:
user comes to a page which displays a form to submit a review. Instead of the ‘name’ and ‘email’ fields I want the form to display their forum username if they are logged in. Rather than writing text into the review table I’ll modify the form to record the user’s forum id.
If the user is not logged in I want the form to display 2 buttons, login and register. On clicking the login button they will be shown a basic login form but one displayed within the main site’s template, not the forum’s. On completion they will be logged in and returned to the review submission form they were looking at before clicking login.
If they click register then again a form displayed within the main site template (rather than the forum template) will be displayed. This will obviously have to have exactly the same fields etc. as the forum reg form. On completion this form should again return the user to the review forum they were originally looking at.
Both the main site and the forums new user reg forms will also be updated to include a message to say that the account they are setting up can be used as part of the main site and the forum.
The idea is to keep things as integrated and seemless as possible.