Results 1 to 4 of 4
  1. #1
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default Whats wrong with this PHP Code?

    Im Getting the Error:
    Parse error: parse error, unexpected T_STRING in /home/habtouch/public_html/mambo/templates/Hab-Touch/index.php on line 1

    PHP Code:
    <?php/*** template_name - Mambo 4.5.1 template* @version 4.5.1* @copyright (C) 2004 by yourname* @license licensce info here*/defined'_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );$iso split'='_ISO );echo '<?xml version="1.0" encoding="'$iso[1] .'"?' .'>';?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml">  <head>    <?php if ( $my->id initEditor(); ?>    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />    <?php mosShowHead(); ?><?php echo "<meta name=\"author\" content=\"www.mambosolutions.com\" />" ?>   <?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ?>   <?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/images/favicon.ico\" />" ?>  <style type="text/css">
    <!--
    body,td,th {
        color: #D4D0C8;
    }
    body {
        background-color: #FFCC00;
    }
    -->
    </style></head>

    <body>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td><?php mosPathWay(); ?></td>
            <td width="30%"><?php echo mosCurrentDate(); ?></td>
          </tr>
        </table></td>
      </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><table width="100%" border="0" cellspacing="0" cellpadding="0">
          <tr>
            <td width="18%" valign="top"><?php mosLoadModules 'left' ); ?>
              <?php mosLoadModules 'user1' ); ?>
              <br /><OBJECT ID="MediaPlayer" WIDTH=153 HEIGHT=45
    CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95"
    STANDBY="Loading Windows Media Player components and BOBBAmyroom.com radio..."
    TYPE="application/x-oleobject">

    <PARAM NAME="FileName" VALUE="change me wen radio is ready" valuetype="ref" ref>
    <param name="AudioStream" value="1">
    <param name="AutoSize" value="0">
    <param name="AutoStart" value="1">
    <param name="AnimationAtStart" value="0">
    <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="1">
    <param name="DisplaySize" value="1">
    <param name="Enabled" value="-1">
    <param name="EnableContextMenu" value="-1">
    <param name="EnablePositionControls" value="-1">
    <param name="EnableFullScreenControls" value="-1">
    <param name="EnableTracker" value="-1">
    <param name="InvokeURLs" value="-1">
    <param name="Language" value="-1">
    <param name="Mute" value="0">
    <param name="PlayCount" value="0">
    <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="ShowControls" value="-1">
    <param name="ShowAudioControls" value="-1">
    <param name="ShowDisplay" value="0">
    <param name="ShowGotoBar" value="0">
    <param name="ShowPositionControls" value="0">
    <param name="ShowStatusBar" value="-1">
    <param name="ShowTracker" value="-1">
    <param name="TransparentAtStart" value="0">
    <param name="VideoBorderWidth" value="0">
    <param name="VideoBorderColor" value="333333">
    <param name="VideoBorder3D" value="17">
    <param name="Volume" value="-20000">
    <param name="Video" value="-1">
    <EMBED TYPE="application/x-mplayer2" SRC="../ms_dwtutorial/change me wen radio is ready" NAME="MediaPlayer" WIDTH=320 HEIGHT=45>
    </EMBED></OBJECT></td>
            <td valign="top"><?php mosMainBody(); ?></td>
            <td width="18%" valign="top"><form action="../ms_dwtutorial/index.php" method="post">
              <div align="center">
                <input class="inputbox" type="text" name="searchword" size="15" value="<?php echo _SEARCH_BOX?>"  onblur="if(this.value=='') this.value='<?php echo _SEARCH_BOX?>';" onfocus="if(this.value=='<?php echo _SEARCH_BOX?>') this.value='';" />
                <input type="hidden" name="option" value="search" />
              </div>
            </form>
            <?php mosLoadModules 'right' ); ?>
              <?php mosLoadModules 'user2' ); ?></td>
          </tr>
        </table></td>
      </tr>
    </table>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td><div align="center">
          <?php mosLoadComponent"banners" ); ?>
          <?php include_once('includes/footer.php'); ?>
        </div></td>
      </tr>
    ?>
    </body>
    </html>
    Thanks,
    willow135

    P.S.: There is a few weird things in there like
    PHP Code:
    <?php mosLoadModules 'left' ); ?>
    but thats part of the Mambo template coding...
    Last edited by Recursion; 19-03-2006 at 07:39 PM.
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  2. #2
    Join Date
    Aug 2005
    Location
    Newcastle
    Posts
    1,417
    Tokens
    0

    Latest Awards:

    Default

    PHP Code:
    <?php
    /*** template_name - Mambo 4.5.1 template* @version 4.5.1* @copyright (C) 2004 by yourname* @license licensce info here*/
    defined'_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' );
    $iso split'='_ISO );
    echo 
    '<?xml version="1.0" encoding="'$iso[1] .'"?' .'>';?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>    
    <?php if ( $my->id initEditor();
     
    ?>    
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />    
    <?php mosShowHead(); 
    ?>
    <?php 
    echo "<meta name=\"author\" content=\"www.mambosolutions.com\" />" 
    ?>   
    <?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>"
    ?>   
    <?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/images/favicon.ico\" />"
    ?>  
    <style type="text/css"> 
    <!-- Replace up to here. -->
    Try that, Not entirely sure.
    Last edited by craigg.; 19-03-2006 at 08:46 PM.



  3. #3
    Join Date
    May 2005
    Location
    /etc/passwd
    Posts
    19,110
    Tokens
    1,139

    Latest Awards:

    Default

    It worked, Thank-You xP

    The site i got that top bit from was wrong then lol.

    +Rep
    Last edited by Recursion; 19-03-2006 at 08:53 PM.
    Quote Originally Posted by Chippiewill View Post
    e-rebel forum moderator
    :8

  4. #4
    Join Date
    Aug 2005
    Location
    Newcastle
    Posts
    1,417
    Tokens
    0

    Latest Awards:

    Default

    No problem



Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •