Jump to content

hmmmm.... i need help with this step...


nikes

Recommended Posts

I trying to do a full integration of phpbb3 into dolphin 6.1.4. I'm currently looking at some steps on how to do so. I'm stuck on this step: (instead of (users) it's (profiles))

 

Mapping:

 

Have to create mapping between the users inside the two tables. These will be referred as:

 

user (website users)

- and -

phpbb_user (phpbb users)

 

The question, how should I map website users onto phpbb users? There are many ways to do this. I chose the simplest one to implement. Map user.UserID to phpbb_users.user_id. This way a user can always be looked up into phpbb users and vice versa.

 

There is one problem however. PHPBB3 fresh installation creates about 50 users by default. These include the super administrator, anonymous and search bots. That means user_id 1 to 50 are unavailable.

 

I could have created 50 fake users in the user table so that any further website users can be mapped properly. However, I already had about 250+ users by the time integration was supposed to be made. So I chose to map by adding a constant - 1000. So:

 

Website user #1 becomes phpbb user #1001

Website user #2 becomes phpbb user #1002

...

and so on.

 

This way I don't have to run any lookup queries when I have for find phpbb user given website user id and vice versa.

 

How do i do this?

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.