1
nadordream
how to include this html code inside xoops
  • 2007/6/8 16:56

  • nadordream

  • Just popping in

  • Posts: 11

  • Since: 2006/8/6 1


Hi all

like the title of my topic says: how to include the fellowing html code in xoops. i tried self to do it but i get this error messages

[08-Jun-2007 10:30:40] PHP Warning: main(mainfile.php) [function.main]: failed to open stream: No such file or directory in /home/nadordre/public_html/tv/TV.php on line 2
[08-Jun-2007 10:30:40] PHP Warning: main(mainfile.php) [function.main]: failed to open stream: No such file or directory in /home/********/public_html/tv/TV.php on line 2
[08-Jun-2007 10:30:40] PHP Warning: main() [function.include]: Failed opening 'mainfile.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/*******/public_html/tv/TV.php on line 2
[08-Jun-2007 10:30:40] PHP Warning: main(header.php) [function.main]: failed to open stream: No such file or directory in /home/********/public_html/tv/TV.php on line 3
[08-Jun-2007 10:30:40] PHP Warning: main(header.php) [function.main]: failed to open stream: No such file or directory in /home/********/public_html/tv/TV.php on line 3
[08-Jun-2007 10:30:40] PHP Warning: main() [function.include]: Failed opening 'header.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/********/public_html/tv/TV.php on line 3
[08-Jun-2007 10:30:40] PHP Warning: main(footer.php) [function.main]: failed to open stream: No such file or directory in /home/*******/public_html/tv/TV.php on line 125
[08-Jun-2007 10:30:40] PHP Warning: main(footer.php) [function.main]: failed to open stream: No such file or directory in /home/********/public_html/tv/TV.php on line 125
[08-Jun-2007 10:30:40] PHP Warning: main() [function.include]: Failed opening 'footer.php' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /home/********/public_html/tv/TV.php on line 125

the html code is:

<center><IMG 
style
="LEFT: 580px; WIDTH: 136px; POSITION: absolute; TOP: 170px; HEIGHT: 361px" 
alt="" src="images/bg1.jpg" align=top border=0
<
DIV>DIV>

<
DIV 
style
="Z-INDEX: 2; LEFT: 141px; WIDTH: 576px; POSITION: absolute; TOP: 107px; HEIGHT: 58px" 
align=left><IMG height=58 src="images/tvlogo.jpg" width=576 
align
=top border=0>&nbspDIV>
<
DIV 
style
="Z-INDEX: 4; LEFT: 139px; WIDTH: 578px; POSITION: absolute; TOP: 535px; HEIGHT: 27px" 
align=left><IMG height=27 alt="" src="images/strip.gif" width=578 
align
=top border=0DIV>

<
DIV><IMG style="Z-INDEX: 8; LEFT: 618px; POSITION: absolute; TOP: 188px" 
height=39 alt="" src="images/logo_tv2m.jpg" width=75 border=0
<
DIV 
style
="Z-INDEX: 9; LEFT: 582px; WIDTH: 129px; POSITION: absolute; TOP: 253px; HEIGHT: 259px" 
align=left>
<
P dir=rtl align=right><FONT face=Tahoma size=2>Channel 2M&nbsp;&nbsp
&
nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &#1575;لمصدر : المغرب
lang=ar-ma>&nbsp;&nbsp;&nbsp;&nbspSPAN>FONT>
<
P dir=rtl align=center><FONT face=Tahoma size=2>&nbsp;&nbsp;<SPAN lang=ar-ma
SPAN>FONT>P>DIV>

<
DIV 
style
="Z-INDEX: 11; LEFT: 141px; WIDTH: 434px; POSITION: absolute; TOP: 168px; HEIGHT: 363px" 
align=left>
<
OBJECT id=WMPlay 
codeBase
=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701 
type=application/x-oleobject height=363 
standby
="Loading Microsoft® Windows® Media Player components..." width=434 
classid
=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95><PARAM NAME="fileName" VALUE="http://www.tvtuga.com/live02/2m.asx"><PARAM NAME="AnimationAtStart" VALUE="0"><PARAM NAME="AutoStart" VALUE="-1"><PARAM NAME="ShowControls" VALUE="0"><PARAM NAME="ShowStatusBar" VALUE="-1"><PARAM NAME="TransparentAtStart" VALUE="0"><PARAM NAME="ShowDisplay" VALUE="0"><PARAM NAME="AutoSize" VALUE="0"><PARAM NAME="AudioStream" VALUE="-1"><PARAM NAME="AllowScan" VALUE="-1"><PARAM NAME="AllowChangeDisplaySize" VALUE="-1"><PARAM NAME="AutoRewind" VALUE="0"><PARAM NAME="Balance" VALUE="0"><PARAM NAME="BaseURL" VALUE=""><PARAM NAME="BufferingTime" VALUE="5"><PARAM NAME="CaptioningID" VALUE=""><PARAM NAME="ClickToPlay" VALUE="-1"><PARAM NAME="CursorType" VALUE="0"><PARAM NAME="CurrentPosition" VALUE="-1"><PARAM NAME="CurrentMarker" VALUE="0"><PARAM NAME="DefaultFrame" VALUE=""><PARAM NAME="DisplayBackColor" VALUE="0"><PARAM NAME="DisplayForeColor" VALUE="16777215"><PARAM NAME="DisplayMode" VALUE="0"><PARAM NAME="DisplaySize" VALUE="4"><PARAM NAME="Enabled" VALUE="-1"><PARAM NAME="EnableContextMenu" VALUE="-1"><PARAM NAME="EnablePositionControls" VALUE="-1"><PARAM NAME="EnableFullScreenControls" VALUE="0"><PARAM NAME="EnableTracker" VALUE="-1"><PARAM NAME="InvokeURLs" VALUE="-1"><PARAM NAME="Language" VALUE="-1"><PARAM NAME="Mute" VALUE="0"><PARAM NAME="PlayCount" VALUE="1"><PARAM NAME="PreviewMode" VALUE="0"><PARAM NAME="Rate" VALUE="1"><PARAM NAME="SAMILang" VALUE=""><PARAM NAME="SAMIStyle" VALUE=""><PARAM NAME="SAMIFileName" VALUE=""><PARAM NAME="SelectionStart" VALUE="-1"><PARAM NAME="SelectionEnd" VALUE="-1"><PARAM NAME="SendOpenStateChangeEvents" VALUE="-1"><PARAM NAME="SendWarningEvents" VALUE="-1"><PARAM NAME="SendErrorEvents" VALUE="-1"><PARAM NAME="SendKeyboardEvents" VALUE="0"><PARAM NAME="SendMouseClickEvents" VALUE="0"><PARAM NAME="SendMouseMoveEvents" VALUE="0"><PARAM NAME="SendPlayStateChangeEvents" VALUE="-1"><PARAM NAME="ShowCaptioning" VALUE="0"><PARAM NAME="ShowAudioControls" VALUE="-1"><PARAM NAME="ShowGotoBar" VALUE="0"><PARAM NAME="ShowPositionControls" VALUE="-1"><PARAM NAME="ShowTracker" VALUE="-1"><PARAM NAME="VideoBorderWidth" VALUE="0"><PARAM NAME="VideoBorderColor" VALUE="0"><PARAM NAME="VideoBorder3D" VALUE="0"><PARAM NAME="Volume" VALUE="-600"><PARAM NAME="WindowlessVideo" VALUE="0">OBJECT>
<
SCRIPT language=JavaScript1.1>

SCRIPT>

<
SCRIPT language=JavaScript>

SCRIPT>
DIV>
<
SCRIPT

SCRIPT>center>


is have placed :

include("mainfile.php");
include(
"header.php");
$xoopsOption['show_rblock'] = 1//0 for no right block
?>

Here...


include("footer.php");
?>


can please someone tell me how to include that code in a good way ?

2
phppp
Re: how to include this html code inside xoops
  • 2007/6/8 17:29

  • phppp

  • XOOPS Contributor

  • Posts: 2857

  • Since: 2004/1/25


seems that the path to mainfile.php from TV.php is not correct

3
nadordream
Re: how to include this html code inside xoops
  • 2007/6/8 18:31

  • nadordream

  • Just popping in

  • Posts: 11

  • Since: 2006/8/6 1


Hi phppp

do u know how do i correct that ?

4
kurak_bu
Re: how to include this html code inside xoops
  • 2007/6/8 18:44

  • kurak_bu

  • Quite a regular

  • Posts: 342

  • Since: 2005/9/5 1


maybe TV.php is in other dorectory ?
tv/TV.php, right ?
mainfile is in / ?
so you should try this:
include("../mainfile.php");
include("../header.php");
include("../footer.php");

5
nadordream
Re: how to include this html code inside xoops
  • 2007/6/8 20:07

  • nadordream

  • Just popping in

  • Posts: 11

  • Since: 2006/8/6 1


Thanx a lot Kurak_bu its solved now and yes it was in another dirrectory

Login

Who's Online

358 user(s) are online (282 user(s) are browsing Support Forums)


Members: 0


Guests: 358


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: Nov 30
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits