1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

XF 1.3 Youtube in profil page

Discussion in 'Styling and Customization Questions' started by Lexy, Mar 27, 2014.

  1. Lexy

    Lexy Active Member

    How to add youtube video in profil page, any tutorial
     
  2. Amaury

    Amaury Well-Known Member

    Profile posts do not support BB code. You will need custom development.
     
  3. Lexy

    Lexy Active Member

    can be done using custom user field??
     
  4. Amaury

    Amaury Well-Known Member

    No, you'll need custom development.

    @AlexT has an add-on that does this.
     
  5. Lexy

    Lexy Active Member

    ok thank you
     
  6. Brogan

    Brogan XenForo Moderator Staff Member

    In the sidebar, yes.
    I have that on my site.

    upload_2014-3-27_20-27-27.png
     
  7. Lexy

    Lexy Active Member

    Yea i know that i thinkin about something like IPB

    oie_27212851qap3mVD9.png
     
  8. Lexy

    Lexy Active Member

    can you provide the code
     
  9. Brogan

    Brogan XenForo Moderator Staff Member

    Create a custom user field with a field ID of profile_youtube.
    Add this to the ad_member_view_below_avatar template.

    Code:
    <xen:hook name="ad_member_view_below_avatar" />
    
    <xen:if is="{$user.customFields.profile_youtube}">
        <div style="margin-top: 4px; margin-bottom: -5px;">
            <iframe width="246" height="172" src="http://www.youtube.com/embed/{$user.customFields.profile_youtube}?wmode=opaque" frameborder="0" allowfullscreen></iframe>
        </div>
    </xen:if>
    Change the code to suit your style and sidebar width.
     
    Amaury likes this.
  10. Lexy

    Lexy Active Member

    its default style
     
  11. Brogan

    Brogan XenForo Moderator Staff Member

    So change the code to suit the default style then.
     
  12. Lexy

    Lexy Active Member

    and not works for me
     

    Attached Files:

  13. Lexy

    Lexy Active Member

    also i remove double entry from attach still not works what i need add inside custom field some iframe video code or what??
     
  14. Sheldon

    Sheldon Well-Known Member

    It does work, just ensure everything is matching the way it is supposed to be. Here is the full resource: http://xenadmins.com/threads/youtube-on-profile-page.341/
     

Share This Page