SpangieUK Posted November 25, 2003 Share Posted November 25, 2003 Hiya I am having two problems at the moment - both relating to images! I want to add an image in the column_left.php with no info box - basically a .gif that gives a guarantee to my customers. I keep getting a parse error. The second thing I am trying to do is create a new box (done that) - but in the box I just want to have an image with no links - ie Spend over ?X and get this free. at the moment I have the text I want - the image is displayed with the dreaded red X and the page links to another .php file. I dont want a link - just a static box!! I have searched high and low and read god knows how many messages to try find some one with something similar and to no avail. I haved been to wiki - nothing there. I would be so grateful for some assistance - I ahve spent two days on this now!! Thank you! Link to comment Share on other sites More sharing options...
berkedam Posted November 25, 2003 Share Posted November 25, 2003 image in the column_left.php ? It would be helpful to mention what you have already done or where we can see your efforts. Anyway, if the image may be placed under the last box in the left column, the following quick-n-dirty solution may help: Open /includes/boxes/information.php. The last lines are (on my PC): $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> change that to: $info_box_contents = array(); $info_box_contents[] = array('text' => '<a href="' . tep_href_link(FILENAME_SHIPPING) . '">' . BOX_INFORMATION_SHIPPING . '</a><br>' . '<a href="' . tep_href_link(FILENAME_PRIVACY) . '">' . BOX_INFORMATION_PRIVACY . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' . '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>'); new infoBox($info_box_contents); ?> </td> </tr> <!-- information_eof //--> <tr><td><img src="http://yoursite.tld/img/xyz.gif" width="?" height="?" alt="" title=""></td></tr> Addition: the last line under <!-- information_eof //--> second problem: box with image + link which is wrong Can't help you there without exactly knowing what you already did (my cristal ball broke a few years ago and still no money for a new one). Put it (that page only?) on the web somewhere and let's see it. "If you're working on something new, then you are necessarily an amateur." Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.