Replies
- Brajesh Singh on September 14, 2018 at 12:54 am in reply to: [Resolved] Embed streamable.com video in member profile field #17338
Hi Max,
I have looked into it a little more.It seems to me you are copying the “Embed” code and pasting in the field. In that case, there is exact same markup as you have posted.
If I create a field “Streamable” and change the code from above to use oembed for Streamable too, It does not provide the Div.
The iframe still contains fixed width/height. We can remove that using regular expression.
Here is your code from first post modified.
function bp_enable_embed_in_profile( $val, $type, $key ) { $field = new BP_XProfile_Field( $key ); $field_name = $field->name; $provider = array( 'youtube', 'vimeo', 'instagram', 'bliptv', 'twitter', 'streamable' ); if ( strtolower( $field_name ) == in_array( strtolower( $field_name ), $provider ) ) { $val = strip_tags( $val ); $content = wp_oembed_get( $val, array( 'width' => 400 ) ); if ( $content && 'streamable' === strtolower( $field_name ) ) { $content = preg_replace( array( '/width="\d+"/i', '/height="\d+"/i' ), array( sprintf( 'width="%s"', '100%' ), sprintf( 'height="%s"', '100%' ) ), $content ); } return $content; } return $val; } add_filter( 'bp_get_the_profile_field_value', 'bp_enable_embed_in_profile', 9, 3 );If you create a field and Name it “Streamable” and then simply paste the video url into it. It will fetch the video.
You don’t need the embed code. The above code changes width=100%, height=100% but still the result does not seem too good.
let me know if that works for you.
- Brajesh Singh on September 13, 2018 at 6:51 pm in reply to: [Resolved] Embed streamable.com video in member profile field #17336
Hi Max,
No, It does not work that way.Please take a look at youtube’s output
Example 1:- 480
https://www.youtube.com/oembed?url=http%3A//youtube.com/watch%3Fv%3DJGwWNGJdvx8&format=json
Example 2: Max width 200
https://www.youtube.com/oembed?url=http%3A//youtube.com/watch%3Fv%3DJGwWNGJdvx8&maxwidth=200&format=jsonIt is the oembed provider(Youtube or streamable or others) that needs to support/respect the max width. Youtube does, streamable does not.
Yes, we can replace the width using php but it will be a bad solution as it is bound to break the site in future.
My advise is to avoid hacks which are not supported to be sure that everything works for a long time. - Brajesh Singh on September 13, 2018 at 6:35 pm in reply to: Using Font Awsome in Tabs Creator Pro and other design matters #17332
Hi Carsten,
The plugin does not support icons. It is theme supported. If you are using a premium theme, most of them supports it. Please do check the feature list of the plugin. We have all supported features mentioned there.
You can add icon on your own, the plugin will not be able to do it. We have to separate between the functionality and the appearance and themes are most suitable for managing appearance.
As of navigation, It is again a theme issue and the plugin can not help you.
If you are looking for a free theme with pro features, in next 3 weeks, we are going to release a lite version of Community Builder 2.0 for free and you may want to give that a try. Please do note that the 2.0 is nothing like 1.x series.
Regards
Brajesh - Brajesh Singh on September 13, 2018 at 6:10 pm in reply to: BuddyPress User Profile Tabs Creator Pro – how to link tabs? #17330
Hi Carsten,
Thank you.1. I think the plugin does not need documentation about directory as it will be more confusing for most of the people. The name is User Profile Tabs and that should suffice for most.
In case of other members, I and my team do assist on the forum and clarify. So, I will leave it as it is.
I do agree that different sites have different requirements and they can have their own reasons for organizing the members list in this way. If you do think it is needed, I can help with the shortcode.
The layout may not look great but it will work. Let me know and I will help with the basic shortcode for this.
Regards
Brajesh - Brajesh Singh on September 13, 2018 at 5:58 pm in reply to: [Resolved] Embed streamable.com video in member profile field #17329
Hi Max,
WordPress is able to discover the streamable oembed end point.I had a look at the streamable API.
Streamable does not support maxwidth/maxheight for the video
Example
https://api.streamable.com/oembed.json?url=https://streamable.com/vns0q&maxwidth=600That’s why it is happening on your site. If possible, you may mail the streamable support and ask if there is a way to support maxheight/maxwidth.
Regards
Brajesh Ahh sorry,
I see you are not using the context option.I though you were using logged/displayed context.
If you don’t use the context, It can list user by role and the list is correct.
Regards
Brajesh- Brajesh Singh on September 13, 2018 at 3:17 pm in reply to: Buddy Press Member Home Widget Media Press Galleries Issues. #17325
Hi Buko,
I am sorry, I did miss it in the widget for videos. I will link to an update today.Thank you.
Hi Carsten,
A. I am sorry but It can not substitute the cards plugin. It can only show the detail for one user at a time.
1. No. Profile Tabs does not support widget yet. You need to use shortcodes for dynamic content. User Info widget does not have shortcodes.
2. The widget area is decided by your theme. The widget will work in any widget area you assign it. Most probably, the main widget area where you have added it is acting as a sidebar.
PS?:- I will be helping you with the cards plugin this week as discussed in another topic.
- Brajesh Singh on September 13, 2018 at 1:42 pm in reply to: BuddyPress User Profile Tabs Creator Pro – how to link tabs? #17318
Hi Carsten,
1. Login redirect:- No, The plugin does not redirect on login. What you read in documentation is correct too.
It sets the default landing tab for profile. In other words, when you click a user’s name in members directory(or any list) or activity stream etc, you are redirected to user’s profile. What tab is shown by default is controlled by that settings.
You may use my plugin redirect to profile to achieve what you are looking for
https://wordpress.org/plugins/bp-redirect-to-profile/
That plugin is less than 10 lines of code.
About BuddyPress pages:- There are two things
1. collections- Like members list, groups list etc. It is called directory
2. Single Items page(e.g User’s profile, or a Group) show information related to that item(user or group in context)For example, “Friends” menu in your profile shows your friends.
The directories normally show the global(sitewide) list of items and provide a few ways to filter/search it.
BuddyPress User Profile tabs plugin allows you to create single user profile tabs(navigation items on user’s profile).
The tabs can be of two types:-
Link:- Either it can link to another page on your site or anywhere else.
Component:- In this case, the actual content is shown on user’s profile/some-slug pageSince the purpose of profile is to show information related to that particular user, It does not make sense to show the Search Form or the All Members List there. That’s why I recommended not showing it.
If you want to show it, You can. You will need some way to embed the “Members List” and shortcode is the preferred way.
I am not sure if there exists any plugin that allows members list as shortcode. If there is one, Please embed it.
Still, I will suggest to reconsider embedding the whole members list on a user’s profile.
Regards
Brajesh - Brajesh Singh on September 13, 2018 at 1:34 pm in reply to: [Resolved] BP Ajax registration – Ajax Login #17317
Thank you David.
I am looking forward to it.Regards
Brajesh