Posted by aaron.coates on March 19, 2010 at 8:54pm
Hi All, would reall be greatfull if someone could help me with this issue - I am using CCK and flowplayer to add video to my page with CCK filling out the video URL. When i post a page using the following template all code is removed! Seperatley they work fine, but with the post function inside the flowplayer php code nothing happens.
Please take a look...
Thanks in advance!
<?php
$video = theme('flowplayer', array(
'clip' => array(
'url' => 'print check_plain($node->field_flowplayer_url[0]['value'])',
'autoPlay' => TRUE, // Turn autoplay off
),
'plugins' => array(
'rtmp' => array(
'url' => 'flowplayer.rtmp.swf',
),
),
));
?>
<div id="flowplayer" style="width:640px; height:386px;"></div>
Comments
Thanks for amending my markup
Thanks for amending my markup
Where are you placing that
Where are you placing that code?
That goes in a body field of
That goes in a body field of the template I set up called 'video' - A CCK text field is whats providing the 'print check_plain($node->field_flowplayer_url[0]['value'])' inside the URL segment.
This "That goes in a body
This "That goes in a body field of the template I set up called 'video' " is unclear, does this mean it's php code inside the body or php code in node.tpl.php/node-video.tpl.php?
I made a content type called
I made a content type called 'video' and then through the content template module I added added that php code through the body field. Not the node.tpl.php etc
don't you need to add the
don't you need to add the output of your logic to the div?
something like this:
<div id="flowplayer" style="width:640px; height:386px;"> <?php print $video; ?> </div>-Blake
www.BlakeSenftner.com www.MissingUbercartManual.com www.cg-general-store.com www.droplabs.net