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 ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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
| |||
| |||
| 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
| |||
| |||
| 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? |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| removing extra TD's in the box or infobox headers | line47 | osCommerce 2.2 Modification Help | 0 | 09-30-2005 07:16 AM |
| OSCMAX graphics | driwashsolutions | osCMax v2 Customization/Mods | 3 | 06-25-2005 06:23 PM |
| Let's see what we have here - graphics missing | mgrooten | osCMax v1.7 Installation | 3 | 05-21-2005 02:03 PM |
| infoBox headers | glynn | osCMax v1.7 General Mods Discussion | 2 | 03-19-2004 11:54 AM |
| Repacing some typing by graphics | Anonymous | osCommerce 2.2 Installation Help | 0 | 11-11-2002 04:16 PM |