This is a discussion on infoboxes and inlcudes/classes/boxes.php within the osCMax v2 Customization/Mods forums, part of the osCMax v2.0 Forums category; Hi all, As i understand it, we can customise, to a degree, each individual infobox by adding a infoxname.tpl.php to ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| |||
| |||
| Hi all, As i understand it, we can customise, to a degree, each individual infobox by adding a infoxname.tpl.php to templates/templatename/boxes/ . That fine and dandy.. all works well. Anyway, i'm a table hater, and want to change all my infoboxes to just divs. BUT, although i can specify a new div layout in the tpl.php box files, its still surrounded by all this crap from includes/classes/boxes.php !!!! I dont want corner images, or table cells, or any of that. I just want the boxcontent ouputted without any of that rubbish surrounding it. Can it be done? can i just scrap the table code from includes/classes/boxes.php somehow and just use the code from the tpl.php files? If so, how? What do i need to keep in there and what do i need to get rid of? cheers adi |
|
#2
| |||
| |||
| Yes it can be done, but you will have to change how infoboxes work. Start by creating a new class for boxes.php called divboxes.php, drop the references for boxes.php rewrite the classes to act as you want and add the new class file divboxes.php which now has your classes that work properly for divs instead of tables. OSC is not dhtml friendly by nature. Adding dhtml to a table based application is NOT easy. It can be done, but you are really taking the entire application apart to put it back together again. On the other hand, if you were to create a dhtml version of BTS you would find many people willing to pay for such an template interface
__________________ 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 |
|
#3
| |||
| |||
| thanks ... i'll look into it. I've already got most of the standard OSC page templates converted into divs ie product pages, category sections , checkout pages, the main template etc etc.. but the infoboxes are really bugging me. A pure div BTS templating system.. would it really be that difficult? i already think i'm half way there. |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| New infoboxes don't appear in page.. | jasper0 | osCMax v2 Customization/Mods | 0 | 08-08-2006 09:19 AM |
| change boxes background color now have double boxes | ANNIE11 | osCMax v1.7 General Mods Discussion | 0 | 08-22-2005 07:16 PM |
| Customizing the look of infoboxes & content boxes | developer_x | osCommerce 2.2 Modification Help | 6 | 03-05-2005 11:07 AM |
| Adding New Classes | JaaMor | osCommerce 2.2 Modification Help | 1 | 11-13-2003 09:26 AM |
| Tax classes | messias | osCommerce 2.2 Modification Help | 3 | 02-07-2003 12:51 AM |