greatlakes Posted March 15, 2006 Posted March 15, 2006 How would i add a image to this code? <?php $title = array(); $content = array(); $title[] = array('text' => "Coming Soon"); $content[] = array('text' => "Dragonball Z Part 7 & 10"); new infoBoxHeading($title, false, false); new infoBox($content); ?>
greatlakes Posted March 16, 2006 Author Posted March 16, 2006 Anyone?I tried searching the forum but couldnt find anything
Guest Posted March 16, 2006 Posted March 16, 2006 use the tep_image function $content[] = array('text' => tep_image('some_image.gif','Dragonball Z Part 7 & 10') );
Guest Posted March 17, 2006 Posted March 17, 2006 I just changed one line of the code you posted. So you replace that line in your code and then you place it in the file where you extracted the code segment from.
greatlakes Posted March 17, 2006 Author Posted March 17, 2006 ok, i did that but the picture doesnt show up.Where do i put the image so it shows up?
rabbitseffort Posted March 17, 2006 Posted March 17, 2006 assuming you put the image in your images directory and named the line of code the name of your image(instead of the example of some_image.gif) then it should show "I must admit that I personally measure success in terms of the contributions an individual makes to her or his fellow human beings." ---Margaret Mead--- "The answer is never the answer. What's really interesting is the mystery. If you seek the mystery instead of the answer, you'll always be seeking. I've never seen anybody really find the answer -- they think they have, so they stop thinking. But the job is to seek mystery, evoke mystery, plant a garden in which strange plants grow and mysteries bloom. The need for mystery is greater than the need for an answer. --Ken Kesey"
greatlakes Posted March 17, 2006 Author Posted March 17, 2006 i put the image in my images folder and put in the correct name of the image.The image folder from the root install correct?
greatlakes Posted March 17, 2006 Author Posted March 17, 2006 Thats what i have now, and still nothing.You can see it at www.greatlakesanime.com on the left where it says coming soon <?php $title = array(); $content = array(); $title[] = array('text' => "Coming Soon"); $content[] = array('text' => tep_image('dbz7.jpg','DBZ Part 7 & 10') ); new infoBoxHeading($title, false, false); new infoBox($content); ?>
Recommended Posts
Archived
This topic is now archived and is closed to further replies.