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? ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| 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. |
| Sponsored Links | ||
| ||
|
#2
| ||||
| ||||
| 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. |
|
#3
| |||
| |||
| 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? |
|
#4
| |||
| |||
| 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. |
|
#5
| |||
| |||
| 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>
4) replace the code with something like: Code: <td height="14" class="<?echo $box_base_name; ?>" Code: <td height="14" class="<?echo $box_id; ?>" 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) (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 |
| The Following 3 Users Say Thank You to met00 For This Useful Post: | ||
|
#6
| |||
| |||
| This is an immense help, Thank you very much for your support. |
|
#7
| |||
| |||
| 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 |
| Sponsored Links | ||
| ||
| Thread Tools | |
| |
| ||||
| 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 |