Iframe Fields Profile

Home Forums Legacy Support Support queries Setup issues Iframe Fields Profile

Tagged: , ,

Viewing 15 posts - 1 through 15 (of 20 total)
  • Author
    Posts
  • #300238
    Rafael
    Participant
    Hi 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.
    #300523
    Anshuman Sahu
    Keymaster
    Well 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/
    #300546
    Rafael
    Participant
    Hi 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?
    #300858
    Anshuman Sahu
    Keymaster
    Well its coming from buddypress . refer : http://donmik.com/buddypress-xprofile-custom-fields-type/
    #301065
    Rafael
    Participant
    Hi 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?
    #301470
    Anshuman Sahu
    Keymaster
    Ok can you please share your site url and admin credentials and the url where it should show ? (in private reply)
    #301479
    Rafael
    Participant
    This reply has been marked as private.
    #301754
    Anshuman Sahu
    Keymaster
    Ohh 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?
    #301757
    RafaelBotelho_843
    Participant
    This reply has been marked as private.
    #301762
    Rafael
    Participant
    This reply has been marked as private.
    #302069
    Anshuman Sahu
    Keymaster
    Ok 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 .
    #302091
    Rafael
    Participant
    Hi Alex. Yes, I'm using elementor for the members profile page, but I haven't found how to turn the url into an iframe.
    #305687
    Anshuman Sahu
    Keymaster
    please try adding this given code in your wplms-customizer.php file in wplms customizer plugin :
    add_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;
    });
    and in textarea field user just need to put url
    #310573
    Rafael
    Participant
    Hi Alex. This worked. But the fields "Social" change for html elements too. Believe need to create an "if" for Social fields.
    #311775
    Anshuman Sahu
    Keymaster
    in such case I would need the id of that field in which video url will be entered : https://prnt.sc/uizg60
Viewing 15 posts - 1 through 15 (of 20 total)
  • The topic ‘Iframe Fields Profile’ is closed to new replies.