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

aaron.coates’s picture

Thanks for amending my markup

nevets’s picture

Where are you placing that code?

aaron.coates’s picture

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.

nevets’s picture

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?

aaron.coates’s picture

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

bsenftner’s picture

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>