Guest Posted May 22, 2009 Share Posted May 22, 2009 I have inseted some HTML code into the column_left.php. The image appears and the link works but I want it to show up att he bottom of the boxes, not at the top. Below is my code from colum_left....Can anyone tell me what I am doing wrong? if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'information.php'); ?> <HTML> <a href="buynow.html"><img src="images/payment_pix.gif"></a> </html> Thanks for any help anyone might have Link to comment Share on other sites More sharing options...
germ Posted May 22, 2009 Share Posted May 22, 2009 <HTML> <a href="buynow.html"><img src="images/payment_pix.gif"></a> </html> Should be: <tr><td> <a href="buynow.html"><img src="images/payment_pix.gif"></a> </td></tr> Linking to a "pure" HTML page will probably logout your customers if they're logged in. :blush: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Guest Posted May 23, 2009 Share Posted May 23, 2009 <HTML> <a href="buynow.html"><img src="images/payment_pix.gif"></a> </html> Should be: <tr><td> <a href="buynow.html"><img src="images/payment_pix.gif"></a> </td></tr> Linking to a "pure" HTML page will probably logout your customers if they're logged in. :blush: Link to comment Share on other sites More sharing options...
Guest Posted May 23, 2009 Share Posted May 23, 2009 <HTML> <a href="buynow.html"><img src="images/payment_pix.gif"></a> </html> Should be: <tr><td> <a href="buynow.html"><img src="images/payment_pix.gif"></a> </td></tr> Linking to a "pure" HTML page will probably logout your customers if they're logged in. :blush: So here is what I did: <?php if ((USE_CACHE == 'true') && empty($SID)) { echo tep_cache_categories_box(); } else { include(DIR_WS_BOXES . 'categories.php'); } require(DIR_WS_BOXES . 'search.php'); require(DIR_WS_BOXES . 'information.php'); <tr> <td> <a href="buynow.html"><img src="images/payment_pix.gif"></a>; </td> </tr> ?> and here is the error message i get with that: Parse error: syntax error, unexpected '<' in /home/content/n/i/n/ninaadmin/html/catalog/includes/column_left.php on line 24 Thanks Link to comment Share on other sites More sharing options...
germ Posted May 23, 2009 Share Posted May 23, 2009 ?> <tr> <td> <a href="buynow.html"><img src="images/payment_pix.gif"></a> </td> </tr> Rearrange it like you had it originally. :huh: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Guest Posted May 23, 2009 Share Posted May 23, 2009 ?> <tr> <td> <a href="buynow.html"><img src="images/payment_pix.gif"></a> </td> </tr> Rearrange it like you had it originally. :huh: I can put it back and works except for 2 things: 1. I really want it to show up on the bottom of the column - not the top 2. I would like to know why the above code does not work. Is it because it is not in a table to begin with? Thanks - everytime I turn around there are 3 others things I don't know.... Link to comment Share on other sites More sharing options...
germ Posted May 23, 2009 Share Posted May 23, 2009 If you do it like I said it should be at the bottom. If not, I'll need your URL to see what you've done wrong. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
germ Posted May 23, 2009 Share Posted May 23, 2009 You may be looking at your PC's cache of your page. After you make the change, when you view the page hold the <Ctrl> key down while doing a page refresh in the browser to force the browser to reload all contents from the server. This works with IE and Firefox. Just for "grins and giggles" I tried this to be sure and it's at the bottom for me.... If you don't want to post your URL, you can PM it to me and it will remain confidential. If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Guest Posted May 23, 2009 Share Posted May 23, 2009 You may be looking at your PC's cache of your page. After you make the change, when you view the page hold the <Ctrl> key down while doing a page refresh in the browser to force the browser to reload all contents from the server. This works with IE and Firefox. Just for "grins and giggles" I tried this to be sure and it's at the bottom for me.... If you don't want to post your URL, you can PM it to me and it will remain confidential. Been there - done that - unless I am missing something. Here is the link... My testing site Link to comment Share on other sites More sharing options...
germ Posted May 23, 2009 Share Posted May 23, 2009 This is what I see in the HTML source: <!-- information_eof //--> [b][color="#FF0000"]<html> <a href="buynow.html"><img src="images/payment_pix.gif"></a> </html>[/color][/b] The code I told you to use isn't present. :huh: If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
germ Posted May 23, 2009 Share Posted May 23, 2009 If you want the pic to be centered in the left column, alter the code slightly as shown below: <tr><td align="center"> <a href="buynow.html"><img src="images/payment_pix.gif"></a> </td></tr> If I suggest you edit any file(s) make a backup first - I'm not perfect and neither are you. "Given enough impetus a parallelogramatically shaped projectile can egress a circular orifice." - Me - "Headers already sent" - The definitive help "Cannot redeclare ..." - How to find/fix it SSL Implementation Help Like this post? "Like" it again over there > Link to comment Share on other sites More sharing options...
Guest Posted May 24, 2009 Share Posted May 24, 2009 If you want the pic to be centered in the left column, alter the code slightly as shown below: <tr><td align="center"> <a href="buynow.html"><img src="images/payment_pix.gif"></a> </td></tr> Now I understand! I was putting the 'buynow'code before the php ending code which was resulting in errors. Now I have used your code after the phpending code and it is all peachy!!! Thank you from the bottom of my newbie heart, Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.