First, thanks for that great module and all that work you done for all us.

I have installed it without any major issues, your instructions in INSTALL.TXT are clear enough. There's just one issue left which bothers me a little. I am trying to setup profile fields mapping. It works fine for all field types except "selection lists".

I want to create Birthday field in Drupal's profile and PHPBB3 profile. Of course, I want them synchronized. I have created "list selection" in Drupal with 3 options - Male, Female, N/A. I created the same field in PHPBB3, with the same values. The only problem is that Drupal stores these values in text, while PHPBB does this in integer - it stores values as numbers of rows.... so when I update field in PHPBB and then login to Drupal I see that phpbbforum synchronize value from PHPBB but with an integer value. Which means phpbbforum doesn't work well with selection lists.

Could this be corrected somehow?

Thanks anyway! Well done.

Tim

Comments

yakuza-fs’s picture

not Birthday but Gender
sorry

vb’s picture

phpBB

Administration Control Panel > Users and Groups -> Edit profile field

Field type: Dropdown box
Field identification: gender
Visibility options
Display in user control panel: V
Language specific options [en]
Field name/title presented to the use: gender
Entries:
-
Male
Female

(Minus - first value!)

Drupal

phpBBforum settings
Custom profile fields mapping
Name of `gender` custom profile field:
profile_gender

Administer > User management > Profiles
Add new field
list selection

Gender
Form name:
profile_gender

Selection options:
Male
Female

(Male - first value!)

yakuza-fs’s picture

Hi! Thanks for instructions! Works great except it always uses English values of the dropdown list in PHPBB3...

I have PHPBB3 setup with two languages - Russian and English. First one is default.
When I set Gender to Male (in russian) on PHPBB3 and then go back to Drupal it synchronizes well but places English value of the Gender field of PHPBB3.

I think that this couldn't be solved quickly so I will probably look for workaround - will try to remove English language from PHPBB3 and leave just single Russian language there.

Thanks
Tim

yakuza-fs’s picture

Solved!!!!
I searched thru the source code and found that you use t('Male'), t('Female') to represent this fields. So I have translated Male and Female for Russian language in Drupal and it works just perfect!!!!

Thanks a lot Dude!

lukas84r’s picture

Hi,

I decided to create some new profile fields in Drupal and synchronized them with phpBBforum.

I created them in Drupal and also in phpBBforum I expected to see them in phpbbfurm module settings but when I expand "Custom
profile fields mapping" I see just nothing. Firstly I did it with module Profile.

Then I read out that for this perpouse there is needed custom profile module so I installed it.

I created again new field with CCK but still nothing under custom profile fields mapping :/.

Is somewhere any tutorial how to use this content profile and also how to use it with phpbbforum module?

I have no idea what i do wrongly that I can't see any custom fields in phpbbforum settings :/.

Thanks in advance for any hint.

juan.huerta’s picture

Hi lukas84r,

I had a similar problem. I could not see anything under 'Custom profile fields mapping'

Eventually, I copy .../phpbbforum/contrib/phpbbdrupal/includes/functions_user.php to my /phpBB3/includes/functions_user.php

... and it worked!

Notice that this is descried in the install.txt file ... although it was not clear to me whether I should copy over or not :P

[ install.txt ]
"
...
III. Apply patch to phpBB

The patch is made from clean phpBB3-3.0.6.

If you do not want to use embedded mode, you may simple
copy .../phpbbforum/contrib/phpbbdrupal/includes/functions_user.php to your /phpBB3/includes/functions_user.php
..."

superfedya’s picture

What file I need modify for Profile mapping? Only functions_user.php or something else?

superfedya’s picture

Version: 6.x-2.0-beta5 » 6.x-2.0-rc6

I modified all files but doesn't work at all...

fizk’s picture

Status: Active » Closed (fixed)

Please reopen of this is still an issue.

RicardoJBarrios’s picture

Version: 6.x-2.0-rc6 » 6.x-2.x-dev
Status: Closed (fixed) » Active

I'm trying with Drupal 6, "phpBB 3.0.10", "phpBB3 Drupal Bridge for phpBB 3.0.10" and "phpBB Forum Integration 6.x-2.x-dev 2012-Jan-08".

I've tried all ways and workaround in this issues and didn't make it work with custom list.

If I use the profile module, I can see the default fields, as gender, msn, etc, but if I install and configure content profile I can't see even this.