php them help

03moscropl

Flash Freak
Messages
698
Reaction score
0
Points
0
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:
<?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:

Jake

Developer
Contributors
Messages
4,057
Reaction score
5
Points
0
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:

Jake

Developer
Contributors
Messages
4,057
Reaction score
5
Points
0
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:

03moscropl

Flash Freak
Messages
698
Reaction score
0
Points
0
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.
 

Jake

Developer
Contributors
Messages
4,057
Reaction score
5
Points
0
ok well thanks, and looks good

Edit: btw its off by a pixel :wink:
 
Last edited:
Top