Home › Forums › Legacy Support › Support queries › Setup issues › Iframe Fields Profile
- This topic has 19 replies, 3 voices, and was last updated 4 years, 1 month ago by Rafael.
-
AuthorPosts
-
September 2, 2020 at 8:37 pm #300238RafaelParticipantHi there. I have a custom URL field on the registration form. But when I insert or update profile, the url of a YouTube video, Vimeo, it doesn't display on the frontend as a video, only as a link. I tried with the video iframe, with other types of fields, but it didn't work.September 3, 2020 at 3:08 pm #300523Anshuman SahuKeymasterWell yes there is no provision for iframe there as of now. you can check this plugin if it has such custom field : https://wordpress.org/plugins/advanced-xprofile-fields-for-buddypress/September 3, 2020 at 4:36 pm #300546RafaelParticipantHi Alex. The plugin unfortunately didn't work. I will need to create the field manually. Where is the profile fields creation file located? Or how can I insert a custom field in the instructor panel in the profile edit section?September 4, 2020 at 2:50 pm #300858Anshuman SahuKeymasterWell its coming from buddypress . refer : http://donmik.com/buddypress-xprofile-custom-fields-type/September 5, 2020 at 9:42 am #301065RafaelParticipantHi Alex. This plugin have what I need, the Embed field. https://wordpress.org/plugins/bp-xprofile-custom-field-types/ But the only issue now, the field don't display on the Dashboard Instructor. Display only label, but the field for I to put url don't show. Do you know if I need make some setting?September 7, 2020 at 1:45 pm #301470Anshuman SahuKeymasterOk can you please share your site url and admin credentials and the url where it should show ? (in private reply)September 7, 2020 at 2:40 pm #301479RafaelParticipantThis reply has been marked as private.September 8, 2020 at 2:30 pm #301754Anshuman SahuKeymasterOhh I see that you are using wplms version V4 with vibebp which does not allows custom profile field types to be edited and show right now . What we can do is select the traditional url type field and we can change the behaviour how it shows at the front end. Can you please share where exactly you want to show instructor video for the other users?September 8, 2020 at 2:42 pm #301757RafaelBotelho_843ParticipantThis reply has been marked as private.September 8, 2020 at 2:52 pm #301762RafaelParticipantThis reply has been marked as private.September 9, 2020 at 2:27 pm #302069Anshuman SahuKeymasterOk this is possible with the help of the Member Profile Field block in elementor settings. If you will use this block to display the field we have a filter on it which we can convert the url to iframe . Please confirm if the page you have is craeted using the elementor member layout .September 9, 2020 at 4:15 pm #302091RafaelParticipantHi Alex. Yes, I'm using elementor for the members profile page, but I haven't found how to turn the url into an iframe.September 11, 2020 at 2:22 pm #305687Anshuman SahuKeymasterplease try adding this given code in your wplms-customizer.php file in wplms customizer plugin :
and in textarea field user just need to put urladd_filter('vibebp_profile_field_block_value',function($value){ if(strpos($value, 'https')!==false){ global $wp_embed; $value = $wp_embed->run_shortcode('[embed]'.$value.'[/embed]'); } return $value; });
September 14, 2020 at 7:52 pm #310573RafaelParticipantHi Alex. This worked. But the fields "Social" change for html elements too. Believe need to create an "if" for Social fields.September 17, 2020 at 2:54 pm #311775Anshuman SahuKeymasterin such case I would need the id of that field in which video url will be entered : https://prnt.sc/uizg60 -
AuthorPosts
- The topic ‘Iframe Fields Profile’ is closed to new replies.