Any oEmbed WordPress allows but you have to match up field name with code
oh i figured she was just talking about as an update. That code you have there is pretty cool @modemlooper would that work with any oEmbed or just youtube? you know me and code but it looks like it would work with any oEmbed. Also is that something which would be placed inside bp-custom? BTW i like your site design.
no i’m saying if you put the link (as text not anchor tag) it will substitute the embed automatically it’s called an oEmbed more info here:
https://codex.wordpress.org/Embeds
Ben, do you mean I can’t embed the video on the page, and that I can only put a link to YouTube (and therefore send the visitor away from my site)?
fyi you should not be pasting embed code you should be pasting the youtube page url or shortlink for the video
Yes I installed it correctly thanks 😀
Adding and using custom user profile fields
You can show the bp profile fields loop and then write a custom save. Not too difficult but a little work.
Hi guys
Is it possible to show the xprofile fields I have created for BPress to appear on the WordPress edit user profile page, rather than on the front-end on the buddypress user profile page?
I don’t want users editing their profiles on the front end, as we are rebranding the WP dashboard to be the users CMS/admin area, so I would prefer this in there too.
Thanks,
Ian
have you correctly installed BP ?
Read here: https://codex.buddypress.org/user/setting-up-a-new-installation/installation-wizard/
If you use only the BP’s profile component, somewhere it’s like using a hammer to kill flies. 🙂
nina
Thanks I checked for that line of code in green highlight and it is present, so am using the latest version. It seems that some things are missing from my non-standard template then? I have the BuddyPress Template Pack and everything seems otherwise ok. I have no idea how to troubleshoot and fix this. Any ideas?
Thanks for your reply! I guess it’s yet *another* thing that’s not working using the non standard theme. I had thought as much, just wanted someone to confirm. Very frustrating 🙁
Just check in your file that per link I posted, the line of code with the green highlight is there
Hi @scoobydoobydoo wouaaaaaaaah,
the rock’n’roll answer of the day is NO ! I tested on my site and i can insert a youtube URI without problem. The field shows a well formed URI
If you use a custom theme test your config with bp-default and all plugins deactivated and begin to debug…
If you use bp-default, deactivate all plugins and begin to debug…
I’ve created some extended profile fields for my users to add videos. If you paste YouTube code into those profile fields and save the profile, the YouTube code gets stripped out and the field remains empty. Is this normal??
I found it!! I didn’t expect it to be so hidden away: you have to log in as the user, go to the profile tab, click edit, then hidden between the page title “Editing ‘Base’ Profile Group” and the fields for the base group is a button for the additional group. Click on that and the new fields appear. Phew!
Thanks for your reply @mercime
I’ve opened that file but what am I looking for? There’s no version info in here. Thanks
The issue was fixed in BP 1.6 https://buddypress.trac.wordpress.org/ticket/4362 Could you check your wp-content/plugins/buddypress/bp-xprofile/bp-xprofile-classes.php to check if your BP was upgraded properly?
Thanks for your reply. I’m using the latest versions of WP and BP but my theme is not standard and I’m using the template plugin. Is there a way I can fix my template?
@scoobydoobydoo I’ve seen this issue before with old BP version and another one with a theme which has not been updated for some time. What are your WP/BP versions? Are you using BP Default theme?
When a new user is registered the following fields are filled in: ‘First Name’, ‘Last Name’, ‘Nickname’, ‘Display name publicly as’. When you check these fields upon user creation they have values in them. Now when the user logs in for the first time and updates their profile e.g. adds an avatar etc and saves… those fields mentioned above are cleared, leaving them blank. Is this a bug?
If you go to Users>Profile Fields you see the ‘Basics’ group as default. Now if I click “Add New Field Group” and add another group and then some fields, this new group doesn’t appear at the front end of BP at all. Any ideas?
Hi,
I have autocomplete on searching all members in the message component via wp-config
`define( ‘BP_MESSAGES_AUTOCOMPLETE_ALL’, true );`
It seems strange to me that this does not just search names (user names, display names) but rather all xprofile fields.
The autocomplete calls
`BP_Core_User::search_users()`
but this function searches all fields in the xprofile data table, see
http://phpdoc.ftwr.co.uk/buddypress/BuddyPress/BP_Core_User.html#search_users
It means that a user using autocomplete may be presented with irrelevant hence confusing results.
An example is a school intranet for parents. In a parent’s profile is their name and the name of their child(ren), a likely scenario.
I want to send a message to John Doe.
Typing John will return not only parents with ‘John’ in their name, but also parents with a child called ‘John’ and also parents living on ‘John Street’ and so on and so on.
Any hints to get around this are highly appreciated!
Cheers
Mort3n
Thanks for the feedback! I’ll use custom fields then
The WP standard fields are not used, this is default usage with BP activated.
But you can create your own custom fields on the profile.
More about this here: https://buddypress.trac.wordpress.org/ticket/3335