RE: propose a code change in box structure

cannuck1964 <[email protected]>
Newsgroups gmane.comp.web.oscommerce.suggestions
Message-ID <398dd0357a03cfc70638fd6aa49c2e03@osCommerce-Forums>
This message was sent from: Suggestions and Proposals
http://forums.oscommerce.com/viewtopic.php?p=191931#191931
----------------------------------------------------------------

[quote]If that was implemented it would be more difficult for a green user to remove out the unwanted infoboxes by // commenting them. [/quote]

Actually, I was thinking more along the lines of implemnting or using a column controller system similar to Linda McGrath's contribution.  By doing so, this would eliminate any need for the average non-programmer to edit the columns file, rather they would do this via an admin tool.

[quote]If they did so, they would be left with an unused <tr><td> </td></tr> which would cause issues with some browsers and so on. [/quote]

not true, they would just have to comment these out as well, if a admin tool was not used.....the column file structure could be made so that these tags were done via php as well..

thus each tag would be done


[code]//start a box call....
echo '<TR>  <TD>';
require (BOX . 'box.php');
echo '</TR>  </TD>';
//end box call[/code]

so now the person would just use /*.....box code......*/


[quote]A better proposal ( IMO only !! ) would be to do away with the existing method of creating infoboxes (classes creating nested tables), and use .css [/quote]

Well the css thing is interesting, but not many people are fully fluent in css design work.  As well, doing the info box is pretty straight forward since it is a static type of box,  what about the catagories box?  is css easy to use to set this box up as well?  The css solution might be a good way to work towards, but I think that using it fully in osc might be a fairly large under-taking....

[quote]Thoughts ? Doing it this way makes boxes easier to change appearance quickly ( IMO )[/quote]

Well along the same line, I would like to see the layout of the box, (ie the infobox_heading and footing) be placed in the column files as well....thus the info_boxes will only contain the actual box contents,  only the implementing php code for the box contents would be placed in the info box themselves.

What this will do is allow for boxes to be created, which are plug and play with any type of layout, it will give the flexibility to add a box top and bottom images to give truely unique looks to any box.  And will streamline the existing code more effeciently....


cheers,
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.