Page 1 of 1

youtube content embed: problems...

Posted: Mon Apr 22, 2013 4:12 pm
by stevenryals
in my template file:

Code: Select all

              {content block="Youtube Url" assign="youtubeurl" oneline="true" wysiwyg="false"}
              <p>{youtube url=$youtubeurl}</p>

For some reason the movies are not loading..

Any ideas? I'm helping a friend who's developer kind of skipped out on him.. I cant find a plug in or module to handle {youtube .....}
but it seems to be there somewhere.. as the page isnt white screened.. it's loading flash, but will not load the videos...

Amy ideas?

Re: youtube content embed: problems...

Posted: Mon Apr 22, 2013 4:23 pm
by stevenryals
Sorry , i meant to say:

user defined tags: "youtube"

/*
Embed a YouTube video with valid XHTML
Parameter: url
Reference: http://www.bernzilla.com/item.php?id=681
*/
echo '<object class="youtube" type="application/x-shockwave-flash" width="405" height="300"';
echo ' data="'.$params['url'].'">';
echo '<param name="movie" value="'.$params['url'].'" />';
echo '<param name="wmode" value="transparent" />';
echo '</object>';