Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Adding Image


greatlakes

Recommended Posts

Posted

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);

 

?>

Posted

use the tep_image function

 

 

$content[] = array('text' => tep_image('some_image.gif','Dragonball Z Part 7 & 10') );

Posted

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.

Posted

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"

Posted

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);

 

?>

Posted

the image shows up here. I just checked it.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...