Questions about Registration / Login

Post a reply


This question is a means of preventing automated form submissions by spambots.
Smilies
:D :) ;) :( :o :shock: :? 8-) :lol: :x :P :oops: :cry: :evil: :twisted: :roll: :!: :?: :idea: :arrow: :| :mrgreen: :geek: :ugeek:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

If you wish to attach one or more files enter the details below.

Maximum filesize per attachment: 1 MiB.

Expand view Topic review: Questions about Registration / Login

Re: Questions about Registration / Login

by axew3 » Sat Apr 08, 2017 1:12 pm

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 ;)

Re: Questions about Registration / Login

by kaspir » Sat Apr 08, 2017 8:59 am

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

by axew3 » Thu Apr 06, 2017 3:22 pm

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

by antoinegdln4 » Thu Apr 06, 2017 1:19 pm

(And, what about members who visits WP-side, but are not mentionned in the phpBB memberlist ? (it was a request of an other topic , and you said it should be a feature for 1.6.8)

Re: Questions about Registration / Login

by antoinegdln4 » Thu Apr 06, 2017 12:49 pm

axew3 wrote: Wed Apr 05, 2017 11:46 pm
The Main Username doesn't allow Underscore like "antoine_4"
where? seem in wp you can use it. So i assume In buddypress maybe no?
I think it's on Buddypress maybe ? But you can not register (new users) with underscore, and that's bad for users who wants underscore in their username.

-- 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.

Re: Questions about Registration / Login

by axew3 » Wed Apr 05, 2017 11:46 pm

so resuming (as you'll have understand i can't focus well the thing):
The Main Username doesn't allow Underscore like "antoine_4"
where? seem in wp you can use it. So i assume In buddypress maybe no?
Because of the previous problem, the rightfull username is on the "name" section and not the "username" section in the registration.
But in WP, in phpBB, only the main username is displayed !
Only the main username, because phpBB not provide a custom name to use in place of username (or i'm wrong?) . So to get this result...
You want WP custom name, display for users in members list of phpBB or as username in phpBB on any phpBB contest?

Thinking better on it and how should done, included into this plugin maybe.
Add a custom phpBB profile field for user (can be created also via phpBB ACP admin): this field on db, will be filled by the plugin code with WP display name, and also maybe something custom until user not choose to setup the custom display_name on wp or phpBB profile.

So in phpBB, as above mentioned, it is needed just a function that switch to display the custom display_name in place of username, because due to the above at this point this data is available value to display into phpBB.

This should be the complete, correct easy joke.

p.s ways to achieve the result are several, it depend by the needed result to choose the best route.

I will follow with this about custom profile fields, and buddypress ...

Top