Hi,
When a user is registering in WP Side, he has to choose 2 usernames :
One classic "username" for Wordpress and one "Name" for buddypress.
I had a few questions about it.
1. The Main Username doesn't allow Underscore like "antoine_4". The user has to put this entire username in the "name" section if we wants to use the underscore. Maybe you have any idea about how to allow underscore ?
2. 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 disaplayed !
Do you have any idea how to displays the "Name" of buddypress on phpBB (and maybe WP) instead of the main username of wordpress ?
Thanks by advance
Questions about Registration / Login
-
- User www
- Posts: 70
- Joined: Fri Nov 11, 2016 3:50 pm
- kaspir
- Moderator
- Posts: 88
- Joined: Mon Mar 20, 2017 2:38 pm
- Location: USA
- Contact:
Re: Questions about Registration / Login
You're running both BBpress and phpBB? Why two different forums' platforms? Anyways, nevermind that.. this is what I know...
There is a phpBB ACP setting for usernames: http://prntscr.com/er3aii
There you will see my setting, as instructed here by w3all that this is a required setting in order for the plugin to work, and the reasoning behind it is because that Wordpress by default has strict username name requirements by default.
As far as BBpress is concerned, I never used it. Sorry, but I would assume it has the same strict username requirements?
A quick google gave me this, looks like some of the username strings from bbpress: https://buddypress.wp-a2z.org/oik_api/sanitize_user/
There is a phpBB ACP setting for usernames: http://prntscr.com/er3aii
There you will see my setting, as instructed here by w3all that this is a required setting in order for the plugin to work, and the reasoning behind it is because that Wordpress by default has strict username name requirements by default.
As far as BBpress is concerned, I never used it. Sorry, but I would assume it has the same strict username requirements?
A quick google gave me this, looks like some of the username strings from bbpress: https://buddypress.wp-a2z.org/oik_api/sanitize_user/
World of Phaos RPG online is making it's come back! Play free now!
Check out phpBB contributions & extension downloads.
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Questions about Registration / Login
Yes, but my first ideas often aren't right ... i will install buddypress definitively on the test localhost site to adjust something more also, i presume i will do after 1.6.7 or 1.6.8 looking better on this.Do you have any idea how to displays the "Name" of buddypress on phpBB (and maybe WP) instead of the main username of wordpress ?
The first part: display choosed name instead of username in WP. Yes easy like to use
Code: Select all
apply_filters( 'the_author', $authordata_display_name );
After (this question has been done already by someone else also) you would like to display into phpBB the same. I think this can be achieved better in phpBB side, but i need to check well because possibilities coming in mind are very numerous. Let you know as i've better clear this point.
A code that i can't find out right now has also been provided, will try to find out for next reply on this.
In the while i was blocked in these days about ajax iframe requests between phpBB and WP that i've just resolve: all the code about PM notification count, updated also on iframe mode without reloading page (as well ready to add any other action) is +- ready and soon available. This will be together the code about correct redirect to iframe, on email notification links (seo compatible) and some little trick more that will go to return us an iframe experience, like the real full page when all finished. Some little time more.
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Questions about Registration / Login
the other topic about this question is here
https://www.axew3.com/w3/index.php/foru ... wtopic=460
https://www.axew3.com/w3/index.php/foru ... wtopic=460
-
- User www
- Posts: 70
- Joined: Fri Nov 11, 2016 3:50 pm
Re: Questions about Registration / Login
Hi,
No ! Buddypress, not BBpress. I have only one forum, with phpBB.
For WP Side : Where did i have to put this filter ? BP-custom ?
For PhpBB : So you will check when you have time... Thanks
- axew3
- w3all User
- Posts: 2883
- Joined: Fri Jan 22, 2016 5:15 pm
- Location: Italy
- Contact:
Re: Questions about Registration / Login
look that this change author's name for posts in WP. Do not change top menu username or something else.
There are other filters/hooks to add in case.
This need to be placed for example into wp_w3all.php file, right before the very last
closing tag on bottom of the file.
In the case of wp_w3all last topics or login widgets, you would like to have the same? It is little bit more complicate, but very easy also ...
There are other filters/hooks to add in case.
Code: Select all
function w3filter_the_author( $authordata_display_name ) {
$current_user = wp_get_current_user();
return $current_user->display_name;
};
add_filter( 'the_author', 'w3filter_the_author', 10, 1 );
Code: Select all
?>
In the case of wp_w3all last topics or login widgets, you would like to have the same? It is little bit more complicate, but very easy also ...