osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 

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 ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v1.7 Forums > osCMax v1.7 General Mods Discussion

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 03-22-2004, 04:28 PM
New Member
 
Join Date: Mar 2004
Posts: 20
Thanks: 0
Thanked 2 Times in 1 Post
Rep Power: 0
xtech
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #2  
Old 03-22-2004, 08:19 PM
Anonymous
Guest
 
Posts: n/a
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!
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 03-22-2004, 08:47 PM
New Member
 
Join Date: Mar 2004
Posts: 20
Thanks: 0
Thanked 2 Times in 1 Post
Rep Power: 0
xtech
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?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Closed Thread

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads

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


All times are GMT -8. The time now is 04:01 AM.


Powered by vBulletin®
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO
http://www.oscmax.com/forums/
Copyright 2008 osCMax