This works on Osc 2.3? I"ve tried many times without success...
Thank you!
Latest News: (loading..)
Graphical Borders
Started by spooks, Jul 04 2008 09:50 AM
244 replies to this topic
#241
Posted 10 March 2011 - 06:56 AM
#242
Posted 10 March 2011 - 06:41 PM
No, this works on osC 2.2. Making it work on 2.3 would require a complete rewrite.
Regards
Jim
Regards
Jim
My Addons
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
Banners Box 2.3.x Support
Categories Accordion Box 2.3.x Support
Categories Images Box 2.2x 2.3.x Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box 2.3.x Support
Get 1 Free 2.2x Support
jQuery Banner Rotator 2.2x 2.3.x Support
Modular Front Page 2.3.x Support
Modular SEO Header Tags 2.3.x Support
MVS 2.2x Support
PDF Datasheet 2.3.x Support
Price Updater 2.2x
Products Specifications 2.2x 2.3.x Development Version Support Bugs/Suggestions
Request a Review 2.2x - 2.3.x Support
Similar Products Box 2.2x
Specials Image Overlay 2.3x Support
Theme Switcher 2.3.x Support
#243
Posted 12 December 2011 - 05:27 PM
Olá, sou do Brasil Português
Os amigos poderia mim ajudar? queria redondar como que faço? não quero instalar contribuição queria
só redondar tem como?
Veja a imagem
Redondar.gif 10.46K
9 downloads
Hello, I'm from Brazil Portuguese
The friends could help me? wanted round like I do? contribution would not want to install only has the round?
See the picture
Os amigos poderia mim ajudar? queria redondar como que faço? não quero instalar contribuição queria
só redondar tem como?
Veja a imagem
Redondar.gif 10.46K
9 downloadsHello, I'm from Brazil Portuguese
The friends could help me? wanted round like I do? contribution would not want to install only has the round?
See the picture
#244
Posted 12 April 2012 - 03:53 PM
My frontpage is mess up after installation of this nice contrib. look at www.dk-toys.dk and http://www.dk-toys.dk/brainbox-c-90.html but this page work fine http://www.dk-toys.dk/brainbox-construction-set-c-90_102.html
What am i doing wrong?
Use 2.2RC2
My includes/classes/boxes.php look like this:
What am i doing wrong?
Use 2.2RC2
My includes/classes/boxes.php look like this:
<?php
/*
$Id: boxes.php 1739 2007-12-20 00:52:16Z hpdl $
osCommerce, Open Source E-Commerce Solutions
http://www.oscommerce.com
Copyright (c) 2003 osCommerce
Released under the GNU General Public License
*/
class tableBox {
var $table_border = '0';
var $table_width = '100%';
var $table_cellspacing = '0';
var $table_cellpadding = '2';
var $table_parameters = '';
var $table_row_parameters = '';
var $table_data_parameters = '';
// class constructor
function tableBox($contents, $direct_output = false) {
$tableBox_string = '<table border="' . tep_output_string($this->table_border) . '" width="' . tep_output_string($this->table_width) . '" cellspacing="' . tep_output_string($this->table_cellspacing) . '" cellpadding="' . tep_output_string($this->table_cellpadding) . '"';
if (tep_not_null($this->table_parameters)) $tableBox_string .= ' ' . $this->table_parameters;
$tableBox_string .= '>' . "\n";
for ($i=0, $n=sizeof($contents); $i<$n; $i++) {
if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= $contents[$i]['form'] . "\n";
$tableBox_string .= ' <tr';
if (tep_not_null($this->table_row_parameters)) $tableBox_string .= ' ' . $this->table_row_parameters;
if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) $tableBox_string .= ' ' . $contents[$i]['params'];
$tableBox_string .= '>' . "\n";
if (isset($contents[$i][0]) && is_array($contents[$i][0])) {
for ($x=0, $n2=sizeof($contents[$i]); $x<$n2; $x++) {
if (isset($contents[$i][$x]['text']) && tep_not_null($contents[$i][$x]['text'])) {
$tableBox_string .= ' <td';
if (isset($contents[$i][$x]['align']) && tep_not_null($contents[$i][$x]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i][$x]['align']) . '"';
if (isset($contents[$i][$x]['params']) && tep_not_null($contents[$i][$x]['params'])) {
$tableBox_string .= ' ' . $contents[$i][$x]['params'];
} elseif (tep_not_null($this->table_data_parameters)) {
$tableBox_string .= ' ' . $this->table_data_parameters;
}
$tableBox_string .= '>';
if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= $contents[$i][$x]['form'];
$tableBox_string .= $contents[$i][$x]['text'];
if (isset($contents[$i][$x]['form']) && tep_not_null($contents[$i][$x]['form'])) $tableBox_string .= '</form>';
$tableBox_string .= '</td>' . "\n";
}
}
} else {
$tableBox_string .= ' <td';
if (isset($contents[$i]['align']) && tep_not_null($contents[$i]['align'])) $tableBox_string .= ' align="' . tep_output_string($contents[$i]['align']) . '"';
if (isset($contents[$i]['params']) && tep_not_null($contents[$i]['params'])) {
$tableBox_string .= ' ' . $contents[$i]['params'];
} elseif (tep_not_null($this->table_data_parameters)) {
$tableBox_string .= ' ' . $this->table_data_parameters;
}
$tableBox_string .= '>' . $contents[$i]['text'] . '</td>' . "\n";
}
$tableBox_string .= ' </tr>' . "\n";
if (isset($contents[$i]['form']) && tep_not_null($contents[$i]['form'])) $tableBox_string .= '</form>' . "\n";
}
$tableBox_string .= '</table>' . "\n";
if ($direct_output == true) echo $tableBox_string;
return $tableBox_string;
}
}
class infoBox extends tableBox {
// Graphical Borders
function infoBox($contents) {
$info_box_contents = array();
$info_box_contents[] = array('text' => $this->mws_infoBoxContents($contents));
$this->tableBox($info_box_contents, true);
}
function mws_infoboxcontents($contents) {
global $mws_headerText, $mws_headerLink, $mws_TxtLink;
if ($mws_TxtLink) $mws_headerText = '<a href="' . $mws_TxtLink . '" class="mws_boxTop">' . $mws_headerText . '</a>';
$this->table_cellpadding = '0';
$this->align = 'center';
$info_box_contents = array();
$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
for ($i=0, $n=sizeof($contents); $i<$n; $i++) {
$info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''),
'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''),
'params' => 'class="boxText"',
'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : '')));
}
$output = '
<table cellspacing="0" cellpadding="0" border="0">
<tr>
<td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_left.gif','') . '</td>
<td class="mws_boxTop" width="100%">' . $mws_headerText;
if ($mws_headerLink != false) {
$output .= ' <a href="' . $mws_headerLink . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';
}
$output .= '</td>
<td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_right.gif','') . '</td>
</tr>
<tr>
<td class="mws_boxLeft"></td>
<td class="mws_boxCenter">' . $this->tableBox($info_box_contents) . '</td>
<td class="mws_boxRight"></td>
</tr>
<tr>
<td>' . tep_image(DIR_WS_IMAGES . 'infobox/lower_left.gif','') . '</td>
<td class="mws_boxBottom"></td>
<td>' . tep_image(DIR_WS_IMAGES . 'infobox/lower_right.gif','') . '</td>
</tr>
</table>';
$mws_headerText = ''; $mws_headerLink = ''; $mws_TxtLink = '';
return $output;
}
// Graphical Borders - end modification
function infoBoxContents($contents) {
$this->table_cellpadding = '3';
$this->table_parameters = 'class="infoBoxContents"';
$info_box_contents = array();
$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
for ($i=0, $n=sizeof($contents); $i<$n; $i++) {
$info_box_contents[] = array(array('align' => (isset($contents[$i]['align']) ? $contents[$i]['align'] : ''),
'form' => (isset($contents[$i]['form']) ? $contents[$i]['form'] : ''),
'params' => 'class="boxText"',
'text' => (isset($contents[$i]['text']) ? $contents[$i]['text'] : '')));
}
$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));
return $this->tableBox($info_box_contents);
}
}
// Graphical Borders
class infoBoxHeading extends tableBox {
function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false, $title_link = false) {
global $mws_headerText, $mws_headerLink, $mws_TxtLink;
$mws_headerText = $contents[0]['text'];
$mws_headerLink = $right_arrow;
$mws_TxtLink = $title_link;
}
}
// Graphical Borders - end modification
// Graphical Borders
class contentBox extends tableBox {
function contentBox($contents) {
$this->table_cellpadding = '0';
$this->table_cellspacing = '3';
$this->table_data_parameters = 'class="noborderBox"';
$this->tableBox($contents, true);
echo mws_boxFooter ();
}
function contentBoxContents($contents) {
$this->table_cellpadding = '4';
$this->table_parameters = 'class="infoBoxContents"';
return $this->tableBox($contents);
}
}
// Graphical Borders - end modification
// Graphical Borders
class contentBoxHeading extends tableBox {
function contentBoxHeading($contents, $head = true) {
echo mws_boxHeader ($contents[0]['text']);
}
}
// Graphical Borders - end modification
class errorBox extends tableBox {
function errorBox($contents) {
$this->table_data_parameters = 'class="errorBox"';
$this->tableBox($contents, true);
}
}
// Graphical Borders
class productListingBox extends tableBox {
function productListingBox($contents) {
global $mws_headerText;
echo mws_boxHeader ($mws_headerText);
$this->table_parameters = 'class="productListing"';
$this->tableBox($contents, true);
$mws_headerText = '';
echo mws_boxFooter ();
}
}
class noborderBox extends tableBox {
function noborderBox($contents) {
$this->table_cellpadding = '0';
$this->table_cellspacing = '3';
$this->table_data_parameters = 'class="noborderBox"';
$this->tableBox($contents, true);
}
}
// Graphical Borders - end modification
?>
Edited by DK-Toys.dk, 12 April 2012 - 04:02 PM.
#245
Posted 12 April 2012 - 05:01 PM
I`ve not looked through your above but viewing your site you have invalid table nesting
http://validator.w3.org/check?uri=http%3A//www.dk-toys.dk/brainbox-construction-set-c-90_102.html
Whenever you have that any addition can make the layout change drastically, even when that addition has no errors whatever. Fix your table issues on your site in general, then its likely this issue will disappear.
http://validator.w3.org/check?uri=http%3A//www.dk-toys.dk/brainbox-construction-set-c-90_102.html
Whenever you have that any addition can make the layout change drastically, even when that addition has no errors whatever. Fix your table issues on your site in general, then its likely this issue will disappear.
Sam
Remember, What you think I ment may not be what I thought I ment when I said it.
Contributions:
Auto Backup your Database, Easy way
Multi Images with Fancy Pop-ups, Easy way
Products in columns with multi buy etc etc
Disable any Category or Product, Easy way
Secure & Improve your account pages et al.
Remember, What you think I ment may not be what I thought I ment when I said it.
Contributions:
Auto Backup your Database, Easy way
Multi Images with Fancy Pop-ups, Easy way
Products in columns with multi buy etc etc
Disable any Category or Product, Easy way
Secure & Improve your account pages et al.









