Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Infobox images instead of text


msaunders

Recommended Posts

Hi,

I know this has been asnwered loads of times im sure, i tried searching for it but couldnt find it.

 

I want to put images in the heading boxes instead of justtext (like categories / search / manufacturers etc)

 

Can someone point me as to what files I need to edit ?

 

Thanks

martin

Link to comment
Share on other sites

It really could do with being renamed that mod.

 

I could never find the bugger.

In fact I still havent found it on OSC.

I just found it in one of my OSC files on my system. :shock:

 

I have reuploaded this to the correct category in contributions, making easier to find.

 

See here:

http://www.oscommerce.com/community/contributions,867

 

CC.

Link to comment
Share on other sites

There is an easier way:-

 

Standard Box code

 

$info_box_contents = array();

   $info_box_contents[] = array('align' => 'left',

                                'text'  => BOX_HEADING_BESTSELLERS

                               );

   new infoBoxHeading($info_box_contents, false, false);

 

where

BOX_HEADING_BESTSELLERS

is your text

 

change to

 

$info_box_contents = array();

   $info_box_contents[] = array('align' => 'left',

                                'text'  => '' . tep_image('infobox/Bestseller.gif', BOX_HEADING_BESTSELLERS) . ''

                               );

   new infoBoxHeading($info_box_contents, true, true);

 

where

Bestseller.gif

is the name of your header gif stored in this case in the folder infobox.

 

 

 

:lol: Jules :lol:

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...