Ravens PHP Scripts: Forums
 

 

View next topic
View previous topic
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules
Author Message
hicuxunicorniobestbuildpc
The Mouse Is Extension Of Arm



Joined: Aug 13, 2009
Posts: 1123

PostPosted: Sun Mar 03, 2013 8:31 am Reply with quote

Since World Baseball Classic begun yesterday I decided to make a module to pull some tv channel with iframe. If there is a better way to make it let me know.

Code:
<?php

//Created by unicornio
if (!defined('MODULE_FILE')) {
    die ('You can\'t access this file directly...');
}



$iframesite = 'www.tves.gob.ve/senal/EnVivo/senal.html'; // Must be www.
//////////////////////////////////////////////////////////////////

$iframein = '<iframe width="100%" src="http://'.$iframesite.'" style="height: 390px" scrolling="auto"></iframe>';
include_once 'header.php';
opentable();
echo ''.$iframein.'';
closetable();
include_once 'footer.php';


I wonder if I can use div to get the same result to make it validate it maybe.
 
View user's profile Send private message
nuken
RavenNuke(tm) Development Team



Joined: Mar 11, 2007
Posts: 2024
Location: North Carolina

PostPosted: Sun Mar 03, 2013 11:08 am Reply with quote

Assuming they allow you to include it into your site without restrictions.

Code:


<?php
if (!defined('MODULE_FILE')) {
    die ('You can\'t access this file directly...');
}



include_once 'header.php';
OpenTable();
echo '<script type="text/javascript" src="http://flash.telepuertovirtual.tv/tves-flash/swfobject.js"></script>
      <div id="container"  style="background-color:transparent; margin-top:28px; margin-left:270px; padding:0px; width:547px;">
         <div align="center" id="player"></div>         
         <script type="text/javascript">
            var so = new SWFObject("http://flash.telepuertovirtual.tv/tves-flash/player.swf","mpl","547","488","9");
            so.addParam("allowscriptaccess","always");
            so.addParam("allowfullscreen","true");           
           so.addParam("flashvars",//This flashvar contains the name of the RTMP stream to check/load.
         "plugins=livestream-1&livestream.file=tves.sdp"+    
         "&livestream.streamer=rtmp://movipbox.streamguys.net/tves" +           
         "&livestream.image=TVES_logo1.jpg" +      
         "&livestream.message=Your Video Message Here" +         
         "&livestream.interval =5" +
              "&type=rtmp" +
              "&controlbar=over" +
              "&skin=http://flash.telepuertovirtual.tv/telemiami-flash/player.swf" +
              "&stretching=uniform");
            so.write("player");
         </script>       
      </div>
      <script type="text/javascript">
swfobject.registerObject("FlashID");
swfobject.registerObject("FlashID");
</script>';
CloseTable();
include_once 'footer.php';

?>

_________________
Only registered users can see links on this board! Get registered or login! 
View user's profile Send private message Send e-mail Visit poster's website
hicuxunicorniobestbuildpc







PostPosted: Tue Mar 05, 2013 7:24 am Reply with quote

Shocked Wow!

I didn't think about this trick. How beautiful.

http://www.bestbuildpc.org/modules.php?name=Baseball__World_Cup

It is working smooth and validated Smile . I wonder if I can load this file swfobject.js so it loads faster. Does it make any different?

I love baseball and I do know how to play it. Thanks a lot!
 
hicuxunicorniobestbuildpc







PostPosted: Tue Mar 05, 2013 9:36 am Reply with quote

Nuken, I created another module like you showed me but I still get 1 warning validation.

Code:
<div align="center">

<br />
<table border="0" cellpadding="0" cellspacing="0" width="320">
  <tbody><tr>
    <td style="height:242px; background-image:url(http://www.bestbuildpc.org/modules/Radio_Rebelde/images/audios-Tvo.jpg); width:320%;">
</td>
  </tr>
  <tr>
    <td>
    <object classid="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" codebase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" type="application/x-oleobject" name="MediaPlayer1" standby="Loading Microsoft Windows Media Player components..." id="MediaPlayer1" width="320" height="53">
      <param name="FileName" value="mms://media.enet.cu/radiorebelde" />
      <param name="DisplaySize" value="1" />
      <param name="ShowControls" value="1" />
      <param name="ShowStatusBar" value="1" />
      <param name="ShowPositionControls" value="1" />
      <param name="ShowAudioControls" value="1" />
      <param name="ShowTracker" value="0" />
      <param name="ShowDisplay" value="0" />
      <param name="ShowStatusBar" value="1" />
      <param name="ShowGotoBar" value="0" />
      <param name="ShowCaptioning" value="0" />
      <param name="AutoStart" value="1" />
      <param name="AutoSize" value="0" />
      <param name="AllowChangeDisplaySize" value="1" />
      <param name="AnimationAtStart" value="0" />
      <param name="TransparentAtStart" value="0" />
      <embed type="application/x-mplayer2" pluginspage="http://www.microsoft.com/Windows/Downloads/Contents/Products/MediaPlayer/" filename="mms://media.enet.cu/radiorebelde" displaysize="0" name="MediaPlayer1" showcontrols="1" showdisplay="0" showstatusbar="1" showpositioncontrols="1" autostart="1" showtracker="1" showgotobar="0" showcaptioning="0" autosize="0" animationatstart="1" transparentatstart="0" width="320" height="53">
    </embed>
    </object></td>
  </tr>
  <tr>
    <td><div align="center"><font face="Verdana, Arial, Helvetica, sans-serif" size="1">Si
tienes problemas al escuchar el audio, abre cualquier reproductor de
MP3, y utiliza la opci&oacute;n de abrir URL y coloca la siguiente direcci&oacute;n<br />
<a href="#" style="text-decoration:none">mms://media.enet.cu/radiorebelde </a></font></div></td>
  </tr>
</tbody></table></div>


I wonder what could cause the error?
 
nuken







PostPosted: Tue Mar 05, 2013 10:42 am Reply with quote

http://bit.ly/13Eu3RF
 
hicuxunicorniobestbuildpc







PostPosted: Tue Mar 05, 2013 4:40 pm Reply with quote

I found the error. Thanks for guiding me. Wink
 
Display posts from previous:       
Post new topic   Reply to topic    Ravens PHP Scripts And Web Hosting Forum Index -> Converting/Creating Modules

View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum


Powered by phpBB © 2001-2007 phpBB Group
All times are GMT - 6 Hours
 
Forums ©