Uploading And Display Link

Discussion in 'PHP' started by oo7ml, Jun 9, 2012.

  1. #1
    Hi, i want to add a section to my site so that my members can add a youtube video to their profile page.

    I have added a section called My Video to the My Account section of my site.

    I now want users to be able to enter a youtube link so that i can then display it on their profile page BUT i am not sure what link / url i should be asking the members to upload.

    For example, there are 3 different links / options:
    1 - the youtube url for this video is http://www.youtube.com/watch?v=f_JRZI9o49w
    2 - the share url is http://youtu.be/f_JRZI9o49w
    3 - the embed code is <iframe width="853" height="480" src="http://www.youtube.com/embed/f_JRZI9o49w" frameborder="0" allowfullscreen></iframe>

    Q1 - what should i ask my members to upload

    Q2 - what code should i build into my script so that when i call the member's $youtube_video it will play the video back in my script

    Thanks in advance for any help that you can give...
     
    oo7ml, Jun 9, 2012 IP
  2. interwho

    interwho Member

    Messages:
    198
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    30
    #2
    It depends - what do you want the user to be able to see - the embedded video or the link to the video?
     
    interwho, Jun 11, 2012 IP
  3. oo7ml

    oo7ml Well-Known Member

    Messages:
    656
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    105
    #3
    Hi, I need to show the video
     
    oo7ml, Jun 11, 2012 IP
  4. DaySeven

    DaySeven Peon

    Messages:
    17
    Likes Received:
    0
    Best Answers:
    2
    Trophy Points:
    0
    #4
    If you want the video to show within your page, then you need the embed code. That's why its provided.

    If you want a link to the video so someone can click through to the actual YT page, then either of the other links will work.
     
    DaySeven, Jun 11, 2012 IP