osCommerce and osCMax shopping cart software forums

Shopping Cart Software

osCommerce with teeth!

 
 

Customization of info boxes

This is a discussion on Customization of info boxes within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Is it possible to customize the info boxes so that different boxes are different colors and have a different icon/arrow? ...


Go Back   osCommerce and osCMax shopping cart software forums > osCMax v2.0 Forums > osCMax v2 Customization/Mods

Register FAQ Members List Calendar Mark Forums Read


Free community membership! Fast easy FREE membership
Closed Thread

 

LinkBack Thread Tools
  #1  
Old 01-19-2006, 06:51 AM
New Member
 
Join Date: Oct 2004
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
islander is an unknown quantity at this point
Default Customization of info boxes

Is it possible to customize the info boxes so that different boxes are different colors and have a different icon/arrow?

If so, what is the naming scheme in the template system? I only see one box template.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
  #2  
Old 02-09-2006, 12:20 PM
deviantla's Avatar
New Member
 
Join Date: Jan 2006
Posts: 28
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
deviantla
Default RE: Customization of info boxes

Sounds like a tough one. Infobox class is defined in the box.tpl.php, which is a template for every infobox (unless I am mistaken). If you wantt o change the infobox details in CSS then it is infoBoxHeading and infoBoxContents.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #3  
Old 02-09-2006, 01:18 PM
New Member
 
Join Date: Oct 2004
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
islander is an unknown quantity at this point
Default RE: Customization of info boxes

Thank you very much for a reply.

I'm not sure what template I am going to use yet, "CSS-fluid-1" or "aabox", but what I had in mind was to have various infoboxes headers different colors.

Looking at the content folder in the "fallback" template, I didn't know if personalizing the info boxes could be done in a similar fashion?
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #4  
Old 03-02-2006, 02:41 PM
New Member
 
Join Date: Oct 2004
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
islander is an unknown quantity at this point
Default Different boxes with different colors

Can anybody point me in the right direction here?

Is there any way to make different templates for different info boxes, such as templates/mytemplate/boxes/"box.tpl.php", "box2.tpl.php", "box3.tpl.php", and then point includes/boxes/"categories.php" or "information.php" to one of the other box templates.

I am just trying to change the background colors of various boxes and titles and getting to my wits end.

Anyone have some pointers here? Please.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #5  
Old 03-05-2006, 12:22 AM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 468
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 8
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default RE: Different boxes with different colors

1) make a list of the infoboxes
2) make a class for each infobox in the CCS using tah background: style that you want, etc.
3) locate the line below
Code:
               <table border="0" width="100%" cellspacing="0" cellpadding="0">
                <tr>
                  <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>
                </tr>
              </table>
or something very similar (this line was taken from the fallback template)

4) replace the code with something like:

Code:
<td height="14" class="<?echo $box_base_name; ?>"
or


Code:
<td height="14" class="<?echo $box_id; ?>"
The secret to all of this is found in the /includes/boxes where you will find the following code



Code:
$box_base_name = 'information'; // for easy unique box template setup (added B
TSv1.2)

  $box_id = $box_base_name . 'Box';  // for CSS styling paulm (editted BTSv1.2)
where the people that came before you put all the hooks in to permit you to do JUST what you want to do.

(or you can put a lot of if-then-else code into the box template, but it's easier to make the stylesheets do all the work )

Is that enough pointing in the right direction?
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
The Following 3 Users Say Thank You to met00 For This Useful Post:
aaanativearts (06-09-2007), adris72 (08-11-2007), theengineer (07-22-2007)
  #6  
Old 03-05-2006, 03:17 AM
New Member
 
Join Date: Oct 2004
Posts: 18
Thanks: 0
Thanked 1 Time in 1 Post
Rep Power: 0
islander is an unknown quantity at this point
Default RE: Different boxes with different colors

This is an immense help, Thank you very much for your support.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
  #7  
Old 03-05-2006, 01:46 PM
Active Member
 
Join Date: Oct 2005
Location: wherever I happen to be at the moment
Posts: 468
Thanks: 4
Thanked 79 Times in 73 Posts
Rep Power: 8
met00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nicemet00 is just really nice
Default RE: Different boxes with different colors

pay it forward...
__________________
so endith the lesson
<think>sometimes I just sit's and thinks</think>
"Here you are with a hand full of holes, a thumb up your ass, and a big grin to pass the time of day with." - TWB
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Sponsored Links
Advertisement
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
image headers in info boxes? Dragonmom osCMax v2 Customization/Mods 4 12-20-2006 08:13 AM
how do i alter the width of the info boxes??? tafkap osCMax v2 Customization/Mods 2 02-21-2006 02:26 AM
how do I increase the width of the info boxes ? twinklep osCommerce 2.2 Modification Help 1 09-09-2004 09:38 PM
Gaps between info boxes (how do I change ?) dsmcphee osCommerce 2.2 Modification Help 2 09-25-2003 08:52 PM
Adding outside links to info boxes chardae osCommerce 2.2 Modification Help 2 11-15-2002 10:46 AM


All times are GMT -8. The time now is 12:15 AM.


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