SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Addict
    Join Date
    Sep 2011
    Posts
    266
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Uploading And Display Link

    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...

  2. #2
    SitePoint Zealot
    Join Date
    Jan 2011
    Location
    Portland
    Posts
    148
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    You will have to use the embedded URL for youtube video's unless you use your own video player. Then the task becomes a little more tricky.
    coming soon sitejuju.com my new development portfolio


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •