SpangieUK Posted November 25, 2003 Share Posted November 25, 2003 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 found some code on the wiki site for the first problem - < table><td><tr><img src="/images/guarantee.gif" width="150" height="125" border="1"></tr></td></table> but 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 am on day three of trying to sort this and am really getting frustrated. Pleaseeee can someone help? Link to comment Share on other sites More sharing options...
joeleo Posted November 26, 2003 Share Posted November 26, 2003 Ok on the top of your colum_left.php document you need to insert a PHP echo command because in PHP you cannot just write in plain html w/out thsi command. So paste the following echo('<table><td><tr><img src="/images/guarantee.gif" width="150" height="125" border="1"></tr></td></table> '); Link to comment Share on other sites More sharing options...
joeleo Posted November 26, 2003 Share Posted November 26, 2003 Not sure if this is what you are looking for, however if you create a box called spend_over.php then you would have to do this in one of your column files. (ex column_left.php) require(DIR_WS_BOXES . 'shopping_cart.php'); This will tell that column "HEY PUT THIS BOX HERE". You may have to consider that you have to have proper table tags in your "spend_over.php" file, however you can probably just refer to a simple box to find the table tags. Not sure if I just confused you, but thats my shot at explaining. Link to comment Share on other sites More sharing options...
SpangieUK Posted November 26, 2003 Author Share Posted November 26, 2003 Joel Thanks so much for replying to me!! I have finally sorted it!! The first problem was cool. You sorted that (although I changed the order of the table cell and row around. The second problem was more tricky. I had to edit the actaul box-info file. Basically did it bit by bit until I had a static box with and image in it when it was calling the array in php english file. (just incase anyone else needs to know!!) Thanks again for your assistance. I am very happy now!! :D Link to comment Share on other sites More sharing options...
joeleo Posted November 26, 2003 Share Posted November 26, 2003 Sounds good, glad you got it rolling! Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.