Closed (fixed)
Project:
FlashVideo
Version:
5.x-2.7
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
10 Apr 2008 at 17:40 UTC
Updated:
18 Mar 2009 at 19:19 UTC
I added the [video] tag into the content template for the body so the videos would automatically be shown, but no videos are shown, just [video]. What can I do to actually show them? And should I just be using the file attach field?
Comments
Comment #1
Kripsy commentedUse
<?php print flashvideo_get_video($node); ?>in contemplate to display the video you uploaded to that node in the node.Comment #2
mrgoltra commentedhow about if you want to enter this tag on your node template?
i tried using this, but it doesn't work. any suggestions?
if (flashvideo_get_video($node) && !teaser):print flashvideo_get_video($node);endif;thanks
mark
Comment #3
giorgio79 commentedThanks this is great stuff.
Was looking for it a while, this way I can hack directly my node tpl php files, and not just rely on the body field.
Cheers,
G
Comment #4
travist commentedComment #5
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.
Comment #6
Sophia commented@mrgoltra:
try this, copy your node.tpl.php file and name the new file node-video.tpl.php (if your file type for video is "video").
Find:
<?php print $content?>Add one line below that:
Now you will see the video in the full mode, and not the teaser.
Oops, I just realized you wanted to do this in Contemplate. Well, really, I like this method better but whatever works for you :)