|
Video in Panel
|
| Vyper69 |
Posted on 24-11-2012 16:07
|

Senior Member

Posts: 367
Joined: 25/05/2012
|
I need to know what I am doing wrong. with this piece of code:
Codeopenside("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. |
| |
|
|
| smokeman |
Posted on 24-11-2012 17:04
|

Veteran Member

Posts: 960
Joined: 23/06/2006
|
Put the code in the echo ""; -statement and change all " with ' :
Codeopenside("Featured Video");
echo "<iframe width='560' height='315' src='http://www.youtube.com/embed/fDtkBsWgzWE' frameborder='0' allowfullscreen></iframe>";
closeside();
|
| |
|
|
| Vyper69 |
Posted on 24-11-2012 17:36
|

Senior Member

Posts: 367
Joined: 25/05/2012
|
Thanks.
But what about this one. It is a flash ad. It works differant I take it.
Codeecho"<script type='text/javascript'
src='http://elink2biz.com/themes/TOTHEME/My Ad.swf'>
</script>";
Or do I need all of this.
Code<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 17:46
|
| |
|
|
| smokeman |
Posted on 24-11-2012 18:11
|

Veteran Member

Posts: 960
Joined: 23/06/2006
|
Try this:
Codeopenside("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'
|
| |
|
|
| Vyper69 |
Posted on 24-11-2012 18:23
|

Senior Member

Posts: 367
Joined: 25/05/2012
|
Thanks smoke worked out great |
| |
|
|
| Craig |
Posted on 25-11-2012 13:50
|

Fusioneer

Posts: 3980
Joined: 27/09/2005
|
http://www.php-fu...d_id=28080
|
| |
|
|
| Kvido |
Posted on 28-11-2012 08:08
|

Member

Posts: 75
Joined: 01/08/2007
|
I have another problem. I use HTML5. I have a video of the panel for this code:
Codeopentable("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čem podporováno. <br> Stáhně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...
|
| |
|
|
| ctokepa |
Posted on 28-11-2012 10:30
|

Junior Member

Posts: 49
Joined: 01/12/2009
|
Kvido wrote:
I have another problem. I use HTML5. I have a video of the panel for this code:
Codeopentable("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čem podporováno. <br> Stáhně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
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čem podporováno. <br> Stáhně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 11:18
|
| |
|
|
| Kvido |
Posted on 28-11-2012 15:05
|

Member

Posts: 75
Joined: 01/08/2007
|
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 05:28
Linux-Ubuntu, Windows7-WinXP SP3, PHP5, HTML5, Mozilla-Firefox 3.6.3, Opera 10.51, IE 8.0.6
http://www.pc-pol...
|
| |
|
|
| ctokepa |
Posted on 29-11-2012 21:44
|

Junior Member

Posts: 49
Joined: 01/12/2009
|
Can't you use flash? |
| |
|
|
| Vyper69 |
Posted on 04-12-2012 00:43
|

Senior Member

Posts: 367
Joined: 25/05/2012
|
how would you add a iframe to a post instead of a panel.
Code<iframe width="640" height="360" src="http://www.prochan.com/embed?f=43f_1354430530" frameborder="0" allowfullscreen></iframe>
|
| |
|