osCmax v2.5 User Manual
Results 1 to 3 of 3

Replace InfoBox Headers with Graphics

This is a discussion on Replace InfoBox Headers with Graphics within the osCMax v1.7 General Mods Discussion forums, part of the osCmax v1.7 Forums category; Forgive my stupidity... I've searched around and not seen this question on the MS2MAX forum. I'd like to replace the ...

      
  1. #1
    New Member
    Join Date
    Mar 2004
    Posts
    20
    Rep Power
    0


    Default Replace InfoBox Headers with Graphics

    Forgive my stupidity...

    I've searched around and not seen this question on the MS2MAX forum. I'd like to replace the text infobox headers with graphics.

    On the OSC forum, there are a couple of contributions that work on the MS2 release, but they don't work on MS2-MAX.

    I tried installing http://www.oscommerce.com/community/contributions,1379
    which doesn't have any effect. I'm assuming that's due to the BTS mod.

    I tried the above contrib on a standard OSC install and it worked.

    I'm a novice who doesn't mind digging, I think I broke my shovel!

    I think I may have run into a related answer last night, but I don't remember where now, and I didn't know enough then to know it would help me...

    Using the includes/boxes/infobox.php as an example, can I set $boxHeading="image file" somehow. Isn't there some way I can set $boxHeading to "tep_info WS_IMAGES" something - or am I in space. It seems like I can specify the path to the image file and replace the text.

    Am I in space. I know that the below doesn't work, but can someone point me in the right direction or tell me to put my shovel in the shed and quit trying?

    <!-- information //-->
    <?php
    ---------------------------------
    $boxHeading = 'info.gif';
    ---------------------------------
    $corner_left = 'square';
    $corner_right = 'square';

    $boxContent = '<a href="' . tep_href_link(FILENAME_SHIPPING) . '"> ' . BOX_INF
    ORMATION_SHIPPING . '</a><br>' .
    '<a href="' . tep_href_link(FILENAME_PRIVACY) . '"> ' . BOX_INFO
    RMATION_PRIVACY . '</a><br>' .


    Thanks!

  2. #2
    Anonymous
    Guest


    Default

    Hi all,

    I wasn't sure where to focus until I asked the question, but I took a break and poked around a bit. This may help another newb.
    Using information.php as the example file, and info.gif as the example graphic, the solution was:

    $boxHeading = tep_image(DIR_WS_IMAGES . 'info.gif');

    I looked at the categories.php file and saw a similar instance where an image file was being assigned to $boxHeading.

    Hope that helps someone!

  3. #3
    New Member
    Join Date
    Mar 2004
    Posts
    20
    Rep Power
    0


    Default

    Hey, there's another thing that needs to be done. The "templates/box.tpl.php" file adds the right and left corner images onto the gif - so you'll need to take out those references:

    Basically change the following lines:

    <td height="14" class="infoBoxHeading"><img src="images/infobox/<?php switch ($corner_left) { case 'square': echo 'corner_right_left.gif'; break; case 'rounded': echo 'corner_left.gif'; break;} ?>" border="0" alt="" width="11" height="14"></td>
    <td width="100%" height="14" class="infoBoxHeading"><?php echo $boxHeading; ?></td>
    <td height="14" class="infoBoxHeading" nowrap><?php echo $boxLink; ?><img src="images/<?php switch ($corner_right) { case 'square': echo 'pixel_trans.gif'; break; case 'rounded': echo 'infobox/corner_right.gif'; break;} ?>" border="0" alt="" width="11" height="14"></td>

    To this:

    <td width="100%" class="infoBoxHeading"><?php echo $boxHeading; ?></td>

    I'll let you know if anything else needs to change. Is there anyone out there who knows of any issues with doing this?

Similar Threads

  1. removing extra TD's in the box or infobox headers
    By line47 in forum osCommerce 2.2 Modification Help
    Replies: 0
    Last Post: 09-30-2005, 07:16 AM
  2. OSCMAX graphics
    By driwashsolutions in forum osCmax v2 Customization/Mods
    Replies: 3
    Last Post: 06-25-2005, 06:23 PM
  3. Let's see what we have here - graphics missing
    By mgrooten in forum osCMax v1.7 Installation
    Replies: 3
    Last Post: 05-21-2005, 02:03 PM
  4. infoBox headers
    By glynn in forum osCMax v1.7 General Mods Discussion
    Replies: 2
    Last Post: 03-19-2004, 10:54 AM
  5. Repacing some typing by graphics
    By Anonymous in forum osCommerce 2.2 Installation Help
    Replies: 0
    Last Post: 11-11-2002, 03:16 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •