Get started with PHP-Fusion

Start a New Thread

Users Participated

  • Craig
    Post made: 1
  • smokeman
    Post made: 2
  • Kvido
    Post made: 2
  • ctokepa
    Post made: 2
  • Vyper69
    Post made: 4

Similar Discussions


  1. PHP-Fusion Support Forums
  2. PHP-Fusion 7 Support
  3. Content Administration

Video in Panel

This forum is for questions regarding the addition of content to your site

10 Replies 2,622 Views Last Updated on 2 years ago

Vyper69


Senior Member

#1

Posted 2 years ago

I need to know what I am doing wrong. with this piece of code:

Code Gist: Download source  
openside("Featured Video");
<iframe width="560" height="315" src="http://www.youtube.com/embed/fDtkBsWgzWE" frameborder="0" allowfullscreen></iframe>
closeside();


I am trying to place this one video on the home page. I already have a video infusion, but I need this here.

Posts: 474

Joined: 25/05/2012

smokeman


Veteran Member

#2

Posted 2 years ago

Put the code in the echo ""; -statement and change all " with ' :
Code Gist: Download source  
openside("Featured Video");
echo "<iframe width='560' height='315' src='http://www.youtube.com/embed/fDtkBsWgzWE' frameborder='0' allowfullscreen></iframe>";
closeside();

Posts: 924

Joined: 23/06/2006

Vyper69


Senior Member

#3

Posted 2 years ago

Thanks.

But what about this one. It is a flash ad. It works differant I take it.

Code Gist: Download source  
echo"<script type='text/javascript'
src='http://elink2biz.com/themes/TOTHEME/My Ad.swf'>
</script>";


Or do I need all of this.
Code Gist: Download source  
<script src="Scripts/swfobject_modified.js" type="text/javascript"></script>
</head>

<body>
<object id="FlashID" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="290" height="340">
  <param name="movie" value="My Ad.swf" />
  <param name="quality" value="high" />
  <param name="wmode" value="opaque" />
  <param name="swfversion" value="6.0.65.0" />
  <!-- This param tag prompts users with Flash Player 6.0 r65 and higher to download the latest version of Flash Player. Delete it if you don’t want users to see the prompt. -->
  <param name="expressinstall" value="Scripts/expressInstall.swf" />
  <!-- Next object tag is for non-IE browsers. So hide it from IE using IECC. -->
  <!--[if !IE]>-->
  <object type="application/x-shockwave-flash" data="My Ad.swf" width="290" height="340">
    <!--<![endif]-->
    <param name="quality" value="high" />
    <param name="wmode" value="opaque" />
    <param name="swfversion" value="6.0.65.0" />
    <param name="expressinstall" value="Scripts/expressInstall.swf" />
    <!-- The browser displays the following alternative content for users with Flash Player 6.0 and older. -->
    <div>
      <h4>Content on this page requires a newer version of Adobe Flash Player.</h4>
      <p><a href="http://www.adobe.com/go/getflashplayer"><img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" width="112" height="33" /></a></p>
    </div>
    <!--[if !IE]>-->
  </object>
  <!--<![endif]-->
</object>
<script type="text/javascript">
swfobject.registerObject("FlashID");
</script>

Edited by Vyper69 on 24-11-2012 18:46

Posts: 474

Joined: 25/05/2012

smokeman


Veteran Member

#4

Posted 2 years ago

Try this:
Code Gist: Download source  
openside("Flash Ad");

echo "<param name='src' value='http://elink2biz.com/themes/TOTHEME/My Ad.swf' /><embed type='application/x-shockwave-flash' width='300' height='200' src='http://elink2biz.com/themes/TOTHEME/My Ad.swf'></embed>";

closeside();

- and adjust the width + height:
width='300' height='200'

Posts: 924

Joined: 23/06/2006

Vyper69


Senior Member

#5

Posted 2 years ago

Thanks smoke worked out great

Posts: 474

Joined: 25/05/2012

Craig


Fusioneer

#6

Kvido


Member

#7

Posted 2 years ago

I have another problem. I use HTML5. I have a video of the panel for this code:

Code Gist: Download source  
opentable("INFO - video");
   ?>
<div class="image">
<div style='position: relative; left: 80px; top: 0px; height: 300px; width: 480px; padding:1em;'>
<video width='400' height='300' controls='controls'>
<source src='http://www.pc-politika.cz/videos/fitnes.files/html5video/fitnes_cumil.mp4' type='video/mp4' >
<source src='http://www.pc-politika.cz/videos/fitnes.files/html5video/fitnes_vychytralec.webm' type='video/webm' />
<source src='http://www.pc-politika.cz/videos/fitnes.files/html5video/fitnes_vychytralec_mpeg4.mp4' type='video/mp4' />
<source src='http://www.pc-politika.cz/videos/fitnes.files/html5video/fitnes_vychytralec.ogv' type='video/ogg'>
<p>HTML5 video není tímto prohlíže&#269;em podporováno. <br> Stáhn&#283;te
<a href='http://easyhtml5video.com'>ogg codec html5</a></p>
  </video>
</div></div></div>
<?
 closetable();






The video shows all brovserech. But not in IE?
How do I fix this?
Thank you very much!
Linux-Ubuntu, Windows7-WinXP SP3, PHP5, HTML5, Mozilla-Firefox 3.6.3, Opera 10.51, IE 8.0.6
http://www.pc-pol...

Posts: 124

Joined: 01/08/2007

ctokepa


Junior Member

#8

Posted 2 years ago

Kvido wrote:

I have another problem. I use HTML5. I have a video of the panel for this code:

Code Gist: Download source  
opentable("INFO - video");
   ?>
<div class="image">
<div style='position: relative; left: 80px; top: 0px; height: 300px; width: 480px; padding:1em;'>
<video width='400' height='300' controls='controls'>
<source src='http://www.pc-politika.cz/videos/fitnes.files/html5video/fitnes_cumil.mp4' type='video/mp4' >
<source src='http://www.pc-politika.cz/videos/fitnes.files/html5video/fitnes_vychytralec.webm' type='video/webm' />
<source src='http://www.pc-politika.cz/videos/fitnes.files/html5video/fitnes_vychytralec_mpeg4.mp4' type='video/mp4' />
<source src='http://www.pc-politika.cz/videos/fitnes.files/html5video/fitnes_vychytralec.ogv' type='video/ogg'>
<p>HTML5 video není tímto prohlíže&#269;em podporováno. <br> Stáhn&#283;te
<a href='http://easyhtml5video.com'>ogg codec html5</a></p>
  </video>
</div></div></div>
<?
 closetable();






The video shows all brovserech. But not in IE?
How do I fix this?
Thank you very much!


Try:
Code Gist: Download source  

opentable("INFO - video");
echo "
<div class='image'>
<div style='position: relative; left: 80px; top: 0px; height: 300px; width: 480px; padding:1em;'>
<video width='400' height='300' controls='controls'>
<source src='http://www.pc-politika.cz/videos/fitnes.files/html5video/fitnes_cumil.mp4' type='video/mp4' >
<source src='http://www.pc-politika.cz/videos/fitnes.files/html5video/fitnes_vychytralec.webm' type='video/webm' />
<source src='http://www.pc-politika.cz/videos/fitnes.files/html5video/fitnes_vychytralec_mpeg4.mp4' type='video/mp4' />
<source src='http://www.pc-politika.cz/videos/fitnes.files/html5video/fitnes_vychytralec.ogv' type='video/ogg'>
<p>HTML5 video není tímto prohlíže&#269;em podporováno. <br> Stáhn&#283;te
<a href='http://easyhtml5video.com'>ogg codec html5</a></p>
  </video>
</div></div></div>";
 closetable();


P.S. I strongly suggest reading the whole post especially the last post craig made.
Edited by ctokepa on 28-11-2012 12:18

Posts: 47

Joined: 01/12/2009

Kvido


Member

#9

Posted 2 years ago

Oi, oi .... thanks for the code.
But even so the video does not show "the Panel" in the browser IE9 and Firefox.
This video shows only in Opera, Chrome,

The standard web page, however, the video appears in the panel, or perhaps the news you see!.

Merged on Nov 29 2012 at 06:28:59:
The problem is that IE9 supports H.264 codec format and the plugin fails to install. So the video in HTML5 displayed. In other brovserech yes, except Safari.
Edited by Kvido on 29-11-2012 06:28
Linux-Ubuntu, Windows7-WinXP SP3, PHP5, HTML5, Mozilla-Firefox 3.6.3, Opera 10.51, IE 8.0.6
http://www.pc-pol...

Posts: 124

Joined: 01/08/2007

ctokepa


Junior Member

#10

Posted 2 years ago

Can't you use flash?

Posts: 47

Joined: 01/12/2009

Vyper69


Senior Member

#11

Posted 2 years ago

how would you add a iframe to a post instead of a panel.

Code Gist: Download source  
<iframe width="640" height="360" src="http://www.prochan.com/embed?f=43f_1354430530" frameborder="0" allowfullscreen></iframe>

Posts: 474

Joined: 25/05/2012

Jump to Forum:
34 users are online
0 member and 34 guests