Page 3 of 3

Re: Questions about Registration / Login

Posted: Thu Apr 06, 2017 3:22 pm
by axew3
About member list in phpBB, think you have misunderstand the linked topic.
About custom requests into phpBB, these are features that can't be added on WP side code.
Is possible to edit the plugin code and of course, add with easy WP custom display_name as usernames into phpBB on WP user registration. Maybe a filter that should force to choose one when user register than should also be added.

Or a custom field yes of course, but after you need the phpBB side code. The fact you want display a custom wp name in place of username in phpBB, that isn't a possible option by default into phpBB, can be achieved in really many ways but that require to edit and add some code into phpBB.

I will follow to check buddypress as soon i can.

[EDITED]

Re: Questions about Registration / Login

Posted: Sat Apr 08, 2017 8:59 am
by kaspir
antoinegdln4 wrote: -- Yeah, i want exactly this : the buddypress name as the default username in WP and Phpbb, not only on the memberlist, bu on all the forum. So maybe a custom field should be the right idea.
Sorry I was away all week swimming in php..

After reading this conversation now, I understand better what you are seeking. And axew3 would know best, but yea it wouldn't be possible for him to help you with this within the w3all plugin. The changes you seek, would need to be made within phpBB (which again there is no current known way of doing this) and Wordpress. For Wordpress, I googled the php code to display buddypress's username and it might be this:

Code: Select all

bp_get_displayed_user_fullname()
OR

Code: Select all

bp_core_get_username($user_id)
OR display name of logged in user

Code: Select all

echo bp_core_get_user_displayname( bp_loggedin_user_id() );
For phpBB however, I don't think it can be done, and if it can, wouldn't be easy or quick.

Re: Questions about Registration / Login

Posted: Sat Apr 08, 2017 1:12 pm
by axew3
yes, to me it is only needed to be clear what to do. I mean this because the way to integrate are several. Allow users on both systems to register? This change the logic as the code should be done. On register force the user to choose for a display name in WP? if registration are allowed on both, than this need to be true also for phpBB.
If not forced to choose a display_name, what should display the username? The id?
Even, it can be achieved just with a call into wp db from phpBB, retrieving display_names and, replacing.
But i still have not take a look to the think about change phpBB usernames into something else in phpBB, i will do as i can to better answer.

In the while, the new little ajax code addition for overall_foooter.html and page-forum.php is coming.
It will update any event of phpBB, into WP. So when for example, into WP bar address if is option active to display new pm, and we are in iframe mode, when we look a message into phpBB iframe, the count of unread PM messages will be updated (without reload WP) also into the WP address bar.
This same will be applied for logins done without remember me, so when in iframe the user can at one point result logged out into phpBB, but until wp not reload, the top bar of wp display logged user.

So, from now on there is no more limit to develop this aspect with easy, adding any event.
With .htaccess tutorial about notification email links to point to iframe, as well the event copy link on iframe, all will result ... let say awesome ;)