knifeman Posted June 3, 2005 Share Posted June 3, 2005 Are you all ready for a totally basic question? I know you can't just place an html link in the pages or you lose the session. So what about pictures? In the code I see some images called by tep_draw and others by tep_image. I want to put 4 images in the footer. Actually they are already there, but they are links and I want to remove the link portion and just put pictures.My Webpage Here is the code <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'credit_cards.gif', 'My Knife Store') . '</a>'; ?></td><td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'ppslv2.gif', 'My Knife Store') . '</a>'; ?></td> <td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'usps.gif', 'My Knife Store') . '</a>'; ?></td><td valign="middle"><?php echo '<a href="' . tep_href_link(FILENAME_DEFAULT) . '">' . tep_image(DIR_WS_IMAGES . 'ups.gif', 'My Knife Store') . '</a>'; ?></td></tr></table> No matter what i have tried, I can't insert the images unless I leave them as links. Can I just do img src= like regular html or do I need a tep_image code? Thanks, Tim Link to comment Share on other sites More sharing options...
Dada1 Posted June 3, 2005 Share Posted June 3, 2005 You can use basic HTML in the footer, just make sure it is below the last ?> try this table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td valign="middle"><img src="images/credit_cards.gif" border="0" alt="My Knife Store" title=" My Knife Store "></a></td><td valign="middle"><img src="images/ppslv2.gif" border="0" alt="My Knife Store" title=" My Knife Store "></a></td> <td valign="middle"><img src="images/usps.gif" border="0" alt="My Knife Store" title=" My Knife Store "></a></td><td valign="middle"><img src="images/ups.gif" border="0" alt="My Knife Store" title=" My Knife Store "></a></td></tr></table> something like that. Link to comment Share on other sites More sharing options...
knifeman Posted June 3, 2005 Author Share Posted June 3, 2005 You can use basic HTML in the footer, just make sure it is below the last ?> <{POST_SNAPBACK}> Dada1, That works. I guess as long as it is past the last ?> it will work on secure pages. I have come up with this code for higher up <td><?php echo tep_image(DIR_WS_IMAGES . 'ups.gif'); ?></td> Now if I can just get all four pics in place without breaking the footer again. Whenever I code it wrong, the footer will not show on the site. Thank you for the help! Link to comment Share on other sites More sharing options...
knifeman Posted June 3, 2005 Author Share Posted June 3, 2005 I bet this could probably be done with less code, but this works higher up and on secure pages <table border="0" width="100%" cellspacing="0" cellpadding="0"> <tr class="header"> <td><?php echo tep_image(DIR_WS_IMAGES . 'credit_cards.gif'); ?></td><td><?php echo tep_image(DIR_WS_IMAGES . 'ppslv2.gif'); ?></td><td><?php echo tep_image(DIR_WS_IMAGES . 'usps.gif'); ?></td><td><?php echo tep_image(DIR_WS_IMAGES . 'ups.gif'); ?></td></tr></table> Tim Link to comment Share on other sites More sharing options...
Dada1 Posted June 3, 2005 Share Posted June 3, 2005 Yea that will work also. I didn't get to test the code I gave you above. My dreamweaver is acting up so I wasn't sure if they would be on the same row or not. I just took the code from your page source and removed the <a href= tags. Are you still having problems with the footer showing? I can give you an exmaple I placed in the footer using HTML if you like? Link to comment Share on other sites More sharing options...
knifeman Posted June 3, 2005 Author Share Posted June 3, 2005 Are you still having problems with the footer showing? I can give you an exmaple I placed in the footer using HTML if you like? <{POST_SNAPBACK}> I really appreciate the help. Your code works at the bottom of the footer just like you said. The code in my last post works before the last ?>. I doubt it is the simplest way, but I finally got it to work. I am more of a cut and paste person, than a coder. But I learn more every day... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.