Results 1 to 7 of 7

Thread: php them help

  1. #1
    03moscropl's Avatar
    03moscropl is offline Flash Freak
    Join Date
    Jun 2005
    Location
    England
    Posts
    349

    Question php them help

    i have a theme in phpnuke in php (header.php) and i am trying to put a flash header in to it but it alway says unxpecter tsrting in line 59 here is the page i will pay 100 points for some one who can fix it!

    PHP Code:
    <?php
    /************************************************************************/
    /* PHP-Nuke Platinum: Expect to be impressed                 COPYRIGHT */
    /*                                                                     */
    /* Copyright (c) 2004 - 2006 by http://www.techgfx.com                 */
    /*     Techgfx - Graeme Allan                     (goose@techgfx.com) */
    /*                                                                     */
    /* Copyright (c) 2004 - 2006 by http://www.conrads-berlin.de            */
    /*     MrFluffy - Axel Conrads                 (axel@conrads-berlin.de) */
    /*                                                                     */
    /* Refer to TechGFX.com for detailed information on PHP-Nuke Platinum */
    /*                                                                     */
    /************************************************************************/
    /************************************************************************/
    /************************************************************************/
    /* ************** F-LIQUID THEME v1.0***********************************/
    /* Theme design by effectica @ http://www.effectica.com 
    /************************************************************************/                                                                 
    /* Copyright (c) 2004 by http://www.effectica.com                 */
    /*                                                                     */
    /*         (effectica@effectica.com)                                 */
    /************************************************************************/
    if (stristr($_SERVER['SCRIPT_NAME'], "header.php")) {
    die (
    "Access Denied");
    }
    echo 
    "<table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
    echo 
    " <tr>\n";
    echo 
    "    <td>\n";
    echo 
    " <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
    echo 
    "     <tr>\n";
    echo 
    "        <td width=\"30\" height=\"24\" align=\"left\"><img src=\"themes/F-Liquid/images/bnr_Tb1_crn_T_L.jpg\" width=\"30\" height=\"24\"></td>\n";
    echo 
    "        <td width=\"182\" height=\"24\" align=\"left\" background=\"themes/F-Liquid/images/bnr_Tb1_struct_L.jpg\"></td>\n";
    echo 
    "        <td background=\"themes/F-Liquid/images/bnr_Tb1_tll.jpg\"><img src=\"themes/F-Liquid/images/spacer.gif\" width=\"8\" height=\"8\" align=\"absmiddle\"></td>\n";
    echo 
    "        <td width=\"182\" height=\"24\" background=\"themes/F-Liquid/images/tab_structTR.jpg\"></td>\n";
    echo 
    "        <td width=\"30\" height=\"24\"><img src=\"themes/F-Liquid/images/bnr_Tb1_crn_T_L.jpg\" width=\"30\" height=\"24\"></td>\n";
    echo 
    "     </tr>\n";
    echo 
    "    </table>\n";
    echo 
    " \n";
    echo 
    " <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
    echo 
    "     <tr>\n";
    echo 
    "        <td width=\"30\" height=\"20\"><img src=\"themes/F-Liquid/images/bnr_Tb1_crn_B_L.jpg\" width=\"30\" height=\"20\"></td>\n";
    echo 
    "        <td width=\"182\" align=\"left\" background=\"themes/F-Liquid/images/bnr_Tb1_btm_01.jpg\"><img src=\"themes/F-Liquid/images/spacer.gif\" width=\"182\" height=\"1\" align=\"absmiddle\"></td>\n";
    echo 
    "        <td width=\"116\" background=\"themes/F-Liquid/images/bnr_Tb1_btm_02.jpg\"></td>\n";
    echo 
    "        <td align=\"left\" background=\"themes/F-Liquid/images/bnr_Tb1_btm_04.jpg\"><img src=\"themes/F-Liquid/images/spacer.gif\" width=\"8\" height=\"8\" align=\"absmiddle\"></td>\n";
    echo 
    "        <td width=\"161\" align=\"center\" background=\"themes/F-Liquid/images/bnr_Tb1_btm_03.jpg\">&nbsp;</td>\n";
    echo 
    "        <td align=\"right\" background=\"themes/F-Liquid/images/bnr_Tb1_btm_04.jpg\"><img src=\"themes/F-Liquid/images/spacer.gif\" width=\"8\" height=\"8\" align=\"absmiddle\"></td>\n";
    echo 
    "        <td width=\"116\" background=\"themes/F-Liquid/images/bnr_Tb1_btm_05.jpg\"></td>\n";
    echo 
    "        <td width=\"182\" background=\"themes/F-Liquid/images/bnr_Tb1_btm_06.jpg\"></td>\n";
    echo 
    "        <td width=\"30\"><img src=\"themes/F-Liquid/images/bnr_Tb1_crn_B_L-12.jpg\" width=\"30\" height=\"20\"></td>\n";
    echo 
    "     </tr>\n";
    echo 
    "    </table>\n";
    echo 
    " \n";
    echo 
    " <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
    echo 
    "     <tr>\n";
    echo 
    "        <td width=\"30\" height=\"132\"><img src=\"themes/F-Liquid/images/F-Liquid_14.jpg\" width=\"30\" height=\"132\"></td>\n";
    echo 
    "        <td width=\"399\" height=\"132\">FLASH HERE</td>\n";
    echo 
    "        <td background=\"themes/F-Liquid/images/F-Liquid_16.jpg\">&nbsp;</td>\n";
    echo 
    "        <td width=\"158\" valign=\"top\" background=\"themes/F-Liquid/images/tll_black_R.jpg\">\n";
    echo 
    " \n";
    echo 
    "    <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
    echo 
    "         <tr>\n";
    echo 
    "            <td height=\"20\"><img src=\"themes/F-Liquid/images/spacer.gif\" width=\"1\" height=\"1\"></td>\n";
    echo 
    "         </tr>\n";
    echo 
    "         <tr>\n";
    echo 
    "            <td>$searchbox</td>\n";
    echo 
    "         </tr>\n";
    echo 
    "        </table></td>\n";
    echo 
    "        <td width=\"15\" align=\"right\" background=\"themes/F-Liquid/images/F-Liquid_16.jpg\"><img src=\"themes/F-Liquid/images/F-Liquid_23.jpg\" width=\"15\" height=\"132\"></td>\n";
    echo 
    "        <td width=\"30\" height=\"132\" align=\"right\"><img src=\"themes/F-Liquid/images/F-Liquid_20.jpg\" width=\"30\" height=\"132\">FLASH HERE</td>\n";
    echo 
    "     </tr>\n";
    echo 
    "    </table>\n";
    echo 
    " \n";
    echo 
    " <table width=\"100%\" border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
    echo 
    "     <tr>\n";
    echo 
    "        <td width=\"30\" height=\"63\"><img src=\"themes/F-Liquid/images/F-Liquid_27.jpg\" width=\"30\" height=\"63\"></td>\n";
    echo 
    "        <td width=\"141\" background=\"themes/F-Liquid/images/bnrBL_23.jpg\"><img src=\"themes/F-Liquid/images/spacer.gif\" width=\"141\" height=\"1\"></td>\n";
    echo 
    "        <td width=\"61\" align=\"left\"><img src=\"themes/F-Liquid/images/F-Liquid_29.jpg\" width=\"61\" height=\"63\"></td>\n";
    echo 
    "        <td align=\"right\" background=\"themes/F-Liquid/images/F-Liquid_30.jpg\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
    echo 
    "         <tr>\n";
    echo 
    "            <td align=\"right\" width=\"100\"><a href=\"".$themeconsole['hlinkurl1']."\" class=\"theconsole\">".$themeconsole['hlink1']."</a></td>\n";
    echo 
    "            <td align=\"center\" width=\"150\"><a href=\"".$themeconsole['hlinkurl2']."\" class=\"theconsole\">".$themeconsole['hlink2']."</a></td>\n";
    echo 
    "         </tr>\n";
    echo 
    "         <tr>\n";
    echo 
    "            <td><img src=\"themes/F-Liquid/images/spacer.gif\" width=\"1\" height=\"30\"></td>\n";
    echo 
    "            <td>&nbsp;</td>\n";
    echo 
    "         </tr>\n";
    echo 
    "        </table></td>\n";
    echo 
    "        <td width=\"88\" align=\"center\"><img src=\"themes/F-Liquid/images/centerT.jpg\" width=\"88\" height=\"63\"></td>\n";
    echo 
    "        <td align=\"left\" background=\"themes/F-Liquid/images/F-Liquid_30.jpg\"><table border=\"0\" cellspacing=\"0\" cellpadding=\"0\">\n";
    echo 
    "         <tr>\n";
    echo 
    "            <td align=\"center\" width=\"150\"><a href=\"".$themeconsole['hlinkurl3']."\" class=\"theconsole\">".$themeconsole['hlink3']."</a></td>\n";
    echo 
    "            <td align=\"left\" width=\"100\"><a href=\"".$themeconsole['hlinkurl5']."\" class=\"theconsole\">".$themeconsole['hlink5']."</a></td>\n";
    echo 
    "         </tr>\n";
    echo 
    "         <tr>\n";
    echo 
    "            <td><img src=\"themes/F-Liquid/images/spacer.gif\" width=\"1\" height=\"30\"></td>\n";
    echo 
    "            <td>&nbsp;</td>\n";
    echo 
    "         </tr>\n";
    echo 
    "        </table></td>\n";
    echo 
    "        <td width=\"61\" align=\"right\"><img src=\"themes/F-Liquid/images/F-Liquid_34.jpg\" width=\"61\" height=\"63\"></td>\n";
    echo 
    "        <td width=\"130\" background=\"themes/F-Liquid/images/F-Liquid_36.jpg\">&nbsp;</td>\n";
    echo 
    "        <td width=\"46\" align=\"right\"><img src=\"themes/F-Liquid/images/F-Liquid_38.jpg\" width=\"46\" height=\"63\"></td>\n";
    echo 
    "     </tr>\n";
    echo 
    "    </table> </td>\n";
    echo 
    " </tr>\n";
    echo 
    "</table>\n";
    ?>

    the part that says FLASH HERE is were i need the code! oh and i am not putting Flash here on the pages it just shows you were to put it!
    Last edited by 03moscropl; 11-05-2005 at 12:36 PM.
    my customised games module for phpnuke
    http://dragongamer.net/modules.php?name=arcade

  2. #2
    Jake's Avatar
    Jake is offline Developer
    Join Date
    Apr 2005
    Location
    Winona, MN
    Posts
    2,092

    Re: php them help

    you can use ' instead of \" you know... anyways...

    try this
    Code:
    <object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,29,0' width='yourheight' height='yourwidth'>\n
      <param name='movie' value='whatever to .swf'>\n
      <param name='quality' value='high'>\n
      <embed src='whatever to .swf' quality='high' pluginspage='http://www.macromedia.com/go/getflashplayer' type='application/x-shockwave-flash' width='yourwidth' height='yourheight'></embed>\n
    </object>\n
    you need to change the "whatever to .swf" to the link to the .swf file (make sure you put .swf onto the file too

    for yourheight and yourwidth, its the height and width of the flash
    Last edited by Jake; 11-05-2005 at 12:53 PM.
    Jake Omann | Developer
    █ 888-X10-9668 - jake[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  3. #3
    03moscropl's Avatar
    03moscropl is offline Flash Freak
    Join Date
    Jun 2005
    Location
    England
    Posts
    349

    Re: php them help

    iv tryed that it sead unxpected t string!
    my customised games module for phpnuke
    http://dragongamer.net/modules.php?name=arcade

  4. #4
    Jake's Avatar
    Jake is offline Developer
    Join Date
    Apr 2005
    Location
    Winona, MN
    Posts
    2,092

    Re: php them help

    you know why dont you make a html file and then add it in instead of all the echos? this needs to be on its own lines

    also you never put \n at the nend of them

    *updated code to have \n's*

    also make sure after each of the \n's you put "; or else it will give errors
    Last edited by Jake; 11-05-2005 at 12:54 PM.
    Jake Omann | Developer
    █ 888-X10-9668 - jake[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  5. #5
    03moscropl's Avatar
    03moscropl is offline Flash Freak
    Join Date
    Jun 2005
    Location
    England
    Posts
    349

    Re: php them help

    i got it i used s theme varible &flash then in theme.php i put

    $flash = "<object classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" codebase=\"http://download.macromedia.com/pub/shockwave/cabs/
    flash/swflash.cab#version=6,0,29,0\" width=\"399\" height=\"132\"> "
    ."<param name=\"movie\" value=\"themes/F-Liquid/images/header.swf\"> "
    ."<param name=quality value=high> "
    ."<embed src=\"themes/F-Liquid/images/header.swf\" quality=high pluginspage=\"http://www.macromedia.com/shockwave/download/
    index.cgi?P1_Prod_Version=ShockwaveFlash\" type=\"application/x-shockwave-flash\"
    width=\"399\" height=\"132\"></embed>"
    ."</object>";


    since i got but you helped i will donate 30 points.
    my customised games module for phpnuke
    http://dragongamer.net/modules.php?name=arcade

  6. #6
    Jake's Avatar
    Jake is offline Developer
    Join Date
    Apr 2005
    Location
    Winona, MN
    Posts
    2,092

    Re: php them help

    ok well thanks, and looks good

    Edit: btw its off by a pixel
    Last edited by Jake; 11-05-2005 at 01:02 PM.
    Jake Omann | Developer
    █ 888-X10-9668 - jake[@]x10hosting.com
    x10Hosting - Giving Away Hosting Since 2004
    Premium Hosting | VPS Services

  7. #7
    03moscropl's Avatar
    03moscropl is offline Flash Freak
    Join Date
    Jun 2005
    Location
    England
    Posts
    349

    Re: php them help

    Edit: btw its off by a pixel
    i know im banging my head off the wall about it
    my customised games module for phpnuke
    http://dragongamer.net/modules.php?name=arcade

Similar Threads

  1. Ever Been Suspended For Using PHP?
    By dragoneye_xp in forum Off Topic
    Replies: 26
    Last Post: 08-16-2009, 07:17 PM
  2. [PHP] Variables in PHP
    By Bryon in forum Tutorials
    Replies: 15
    Last Post: 01-29-2009, 09:46 AM
  3. tons of PHP Resources
    By Chris S in forum Scripts, 3rd Party Apps, and Programming
    Replies: 10
    Last Post: 01-16-2009, 10:07 AM
  4. [PHP] PHP For Starters
    By Complex in forum Tutorials
    Replies: 24
    Last Post: 06-14-2008, 11:40 PM
  5. Unstand PHP?
    By o0slowpaul0o in forum Tutorials
    Replies: 8
    Last Post: 01-07-2008, 09:16 PM

Posting Permissions

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