bongo Posted May 19, 2009 Posted May 19, 2009 Hi, I have an oscommerce site i want to change my plain mennu on. I have already figured out all the html around on the site, but when i comes to categories part i get stuck. The design i want has instead many pictures basically on pictures that are transparent and a bakground colour. When i try to change categories.php to look like i want i always get an T_LNUMBER error on the line i have inserted. Here is the text im trying to insert in categories.php file. tr><td height="25" align="left" valign="top" id="L1"><table width="204" border="0" cellspacing="0" cellpadding="0" > <tr align="left" valign="top"> <td width="31" height="25" valign="middle"><img src="media/L1_bulet.png" alt="" width="31" height="10" class="png" /></td> <td width="173" style="padding-right:5px;" valign="middle" class="png" ><a class="Left_links'."> I have tried to insert it in like this for ($i=0; $i<$tree[$counter]['level']; $i++) { $categories_string .= ".'<tr><td height="25" align="left" valign="top" id="L1"><table width="204" border="0" cellspacing="0" cellpadding="0" ><tr align="left" align="top"><td width="31" height="25" valign="middle"><img src="media/L1_bulet.png" alt="" width="31" height="10" class="png" /></td><td width="173" style="padding-right:5px;" align="middle" class="png" ><a class="Left_links'.">"; } and like this if (isset($cPath_array) && in_array($counter, $cPath_array)) { $categories_string .= '<tr> <td height="25" align="left" valign="top" id="L1"><table width="204" border="0" cellspacing="0" cellpadding="0" > <tr align="left" valign="top"> <td width="31" height="25" valign="middle"><img src="media/L1_bulet.png" alt="" width="31" height="10" class="png" /></td> <td width="173" style="padding-right:5px;" valign="middle" class="png" ><a class="Left_links" >'; } Hopefully someone of you have any good ideas for me :D Thanks in advance -Thomas
spooks Posted May 19, 2009 Posted May 19, 2009 1st remove line breaks to prevent parse errors 2nd your opening rows, colums & tables u dont close, do u know html? Sam Remember, What you think I ment may not be what I thought I ment when I said it. Contributions: Auto Backup your Database, Easy way Multi Images with Fancy Pop-ups, Easy way Products in columns with multi buy etc etc Disable any Category or Product, Easy way Secure & Improve your account pages et al.
bongo Posted May 19, 2009 Author Posted May 19, 2009 1st remove line breaks to prevent parse errors 2nd your opening rows, colums & tables u dont close, do u know html? Yes, i tried some more and got rid of the error. Yes i have closed them but longer down in the script. Yes i now html, at least some. (I am not an expert.) When i now tries the page i get no error, but the formatting doesn't show, I have an white box with links (I don't see the links before i hold the mouse pointer over them) Regards, Thomas
Recommended Posts
Archived
This topic is now archived and is closed to further replies.