Quote:
Originally Posted by ZombieAndy
You can make a simple edit to the standard code to make it accept the full URL instead of just the code, for example my youtube vid code is:
PHP Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="1"> <tbody> <tr> <td class="tcat" colspan="2"> <div align="left"><a target="_blank" href="http://uk.youtube.com/watch?v={param}">Youtube Video</a></div> </td> </tr> </thead> <tr> <td class="alt2" colspan="2"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="395" height="331"></embed></object><br> </td> </tr> </tbody> </table>
That just uses the video code from the end of the URL, but you could edit it to
PHP Code:
<table class="tborder" cellpadding="$stylevar[cellpadding]" cellspacing="$stylevar[cellspacing]" border="1"> <tbody> <tr> <td class="tcat" colspan="2"> <div align="left"><a target="_blank" href="{param}">Youtube Video</a></div> </td> </tr> </thead> <tr> <td class="alt2" colspan="2"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="{param}" type="application/x-shockwave-flash" width="395" height="331"></embed></object><br> </td> </tr> </tbody> </table>
And that will now take the full URL instead.

|
This doesn't work. I've been searching for a
full url bbcode for months!!! Is there anyone that can help me on modifying this code so it works?
Basically what do I change in this code so I could use the full url when embed you tube?
Quote:
<object width="425" height="350"><param name="movie" value="http://www.youtube.com/v/{param}"></param><embed src="http://www.youtube.com/v/{param}" type="application/x-shockwave-flash" width="425" height="350"></embed></object>
|