Buddypress new feature: how to use tutorial (missed!)
Posted: Fri Sep 15, 2017 9:11 am
I'm sorry to have not find out the time to write down some hint about how to use the Buddypress profile integration fields, where:
COMING soon ...
So how to setup these fields in phpBB ACP to be useful?.... As read on post above, is assumed that you have recreate or you already have the default situation in phpBB about users profile fields, but for the integration with Buddypress about profile fields, it is not sufficient.
Here we must choose how to proceed, because in phpBB some profile field is displayed using a placeholder, appended to something that you decide.
Advanced phpBB users know what this mean, if not, take a look on
ACP -> Users and Groups tab -> Custom profile fields
for example, click the green icon to edit the Twitter profile field:
look how this field need to be setup for twitter where option:
Display field as a contact field:
Contact fields are displayed within the contact section of the user profile and are displayed differently in the mini profile next to posts and private messages. You can use %s as a placeholder variable which will be replaced by a value provided by the user.
The mentioned %s placeholder, could be so the passed value that an user have set into Buddypress profile.
So is needed that this value will come as valid to be used in phpBB as placeholder, because the contact link (as you see when you are on edit screen for the phpbb_twitter field) is in this way:
http://twitter.com/%s
If we leave the field in this way in phpBB, and in WordPress profile, an user setup as Twitter value the complete Twitter URL, like x example https://twitter.com/alessio_nanni
than the result in phpBB will be
http://twitter.com/ + https://twitter.com/alessio_nanni, so http://twitter.com/https://twitter.com/alessio_nanni
because the placeholder contain the value the user have setup in Buddypress profile, and phpBB will concatenate the string http://twitter.com/ with the passed value.
To resolve you can put as description for Twitter profile field in Buddypress, that is necessary to setup the value as Twitter account name, (alessio_nanni) and not as complete URL, but this may will not be very useful in WordPress if the link to Twitter in WordPress/Buddypress is not rebuilt as complete Twitter URL to display, like phpBB do.
COMING soon ...