in reply to Displaying Youtube Video (Resolved)
Can you post an example of what you have stored in $vidlect? If it's simply the URL to a youtube video you won't be able to view it on the page. To embed a youtube video you need the 'embed' code, which includes the flash player etc:
<object width="425" height="344"> <param name="movie" value="http://www.youtube.com/v/GwQMnpUsj8I&hl=en& +fs=1"> </param><param name="allowFullScreen" value="true"> </param><param name="allowscriptaccess" value="always"> </param><embed src=http://www.youtube.com/v/GwQMnpUsj8I&hl=en&fs=1 type="application/x-shockwave-flash" allowscriptaccess="always" allowf +ullscreen="true" width="425" height="344"> </embed></object>
You're restricting this to 140 characters in your text field.
Update: confised size and maxlength. OP has updated their post
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Displaying Youtube Video
by Tsalagi_4 (Initiate) on Jun 11, 2010 at 12:23 UTC | |
by marto (Cardinal) on Jun 11, 2010 at 12:32 UTC | |
by Tsalagi_4 (Initiate) on Jun 11, 2010 at 13:13 UTC | |
by Tsalagi_4 (Initiate) on Jun 11, 2010 at 14:01 UTC | |
by Tsalagi_4 (Initiate) on Jun 11, 2010 at 19:31 UTC | |
by Tsalagi_4 (Initiate) on Jun 11, 2010 at 15:52 UTC | |
by Anonymous Monk on Jun 11, 2010 at 17:58 UTC | |
|
Re^2: Displaying Youtube Video
by StommePoes (Scribe) on Jun 13, 2010 at 10:26 UTC |