Hi. I want to be able to click on member name in phpbb and this link to go to drupal user profile. Is there a way to do this, and if so, how?

I have phpbbforum integrated as Drupal 6.x. page. phpbb version 3.0.9

Thanks in advance for any suggestions / solutions.

Comments

waynedrupal’s picture

Ok, we have created a solution.

For member profile link: phpbb/includes/functions_content.php

Find the following code....

$_profile_cache['base_url'] = append_sid("{$phpbb_root_path}memberlist.$phpEx", 'mode=viewprofile&u={USER_ID}');

... and change it to:


$_profile_cache['base_url'] = append_sid('/users/{USERNAME}');


For members link (if you created a view of your members):phpbb/includes/functions.php

Find the following code....


'U_MEMBERLIST'			=> append_sid("{$phpbb_root_path}memberlist.$phpEx"),

... and change it to:


'U_MEMBERLIST'			=> append_sid("/members"),

where /members is actually the view of your members that you created in Drupal.

superfedya’s picture

Very usefull, thanks! Any way to create a 2 profile buttons, one for forum profile another one for drupal's?

Thanks

fizk’s picture

Status: Active » Closed (fixed)