This is a discussion on differnet header bar for each infobox within the osCMax v1.7 Discussion forums, part of the osCMax v1.7 Forums category; Hi, How can I have a different heder bar(image) for each infobox. When I tried applying an image by editing ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| Hi, How can I have a different heder bar(image) for each infobox. When I tried applying an image by editing the box.tpl file of the one of the templates folder, the image got appplied on every box except the category box. I wont prefer an image in the background via stylesheet editing. Is there any other easy way?
__________________ Regards, developer X Web Developer [color=blue]HTTPPoint Web Talk - Discuss about Web Design, Web Hosting, Programming & Web Development |
|
#2
| ||||
| ||||
| I know it won't be hard. Comeone guys, guide me. |
|
#3
| |||
| |||
| Actually it is a bit fiddly. You need to create your own customised boxes. There is a wealth of info here http://www.oscommerce.info/kb/osComm...t/Catalog_Area but you may need to adapt it to your own needs. Below is a procedure on customising boxes that I developed that might be helpful. Files Affected: /catalog/includes/column_left.php /catalog/includes/column_right.php /catalog/includes/boxes/ /catalog/templates/mytemplate/boxes/ The first 2 are the main programs to be addressed when removing or adding side boxes. Column_left.php and column_right.php are included in the main template and this is where all the side boxes are added, removed or swapped from right to left. e.g. // require(DIR_WS_BOXES . 'whats_new.php'); // require(DIR_WS_BOXES . 'affiliate.php'); require(DIR_WS_BOXES . 'information.php'); The "What's New" and "Affiliate" boxes have been removed (commented out) while the information.php box remains (contains the static information pages) Action Steps Step 1: Edit these files to include or remove new boxes as required. Step 2 – Create new side boxes: Two files/folders are affected: /catalog/includes/boxes/ /catalog/templates/mytemplate/boxes/ Step 3 – Create new side boxes: In the following folder: /catalog/includes/boxes Create your own box file here, using others as examples or amend as required. Each box in the template has a file here: /catalog/templates/mytemplate/boxes/ This file is where you can create customised boxes doing different things and having different layouts. See box.tpl.php as an example to create your own. Name your new file (mynewfile.tpl.php) and set $box_base_name in includes/boxes/mynewfile.php to mynewfile. E.g. $box_base_name = 'manufacturers'; It will then automatically call manufacturers.tpl.php Step 4 – Upload: Any of the above files that have been amended or created. |
|
#4
| ||||
| ||||
| Thanks. I have read most of what is there in the kb. But its my first time at oscmax. I'm gonna give it a try to what you said.
__________________ Regards, developer X Web Developer [color=blue]HTTPPoint Web Talk - Discuss about Web Design, Web Hosting, Programming & Web Development |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| infobox problem | bersh31 | osCMax v2 Customization/Mods | 4 | 10-12-2006 10:45 PM |
| help removing 1px space separating infobox header/contents | adam71o | osCMax v2 Customization/Mods | 4 | 03-15-2006 08:48 AM |
| infobox admin | chfields | osCMax v2 Features Discussion | 1 | 10-25-2005 08:20 AM |
| header / header.php top logo problem | the_error_king | osCommerce 2.2 Modification Help | 0 | 04-05-2004 05:02 PM |
| infobox height | judoka | osCMax v1.7 Discussion | 2 | 03-05-2004 12:23 AM |