Jump to content



Photo
* * * * * 1 votes

Graphical Borders


  • Please log in to reply
244 replies to this topic

#241   XaPeToNeS

XaPeToNeS
  • Members
  • 1 posts
  • Real Name:Renan Kfouri

Posted 10 March 2011 - 06:56

This works on Osc 2.3? I"ve tried many times without success...

Thank you!

#242 ONLINE   kymation

kymation

    Code Monkey

  • Community Sponsor
  • 8,209 posts
  • Real Name:Jim Keebaugh
  • Gender:Male
  • Location:Aberdeen WA USA

Posted 10 March 2011 - 18:41

No, this works on osC 2.2. Making it work on 2.3 would require a complete rewrite.

Regards
Jim

My Addons

Banners Box Download Support
Categories Accordion Box Download Support
Closest Shipper 2.2x Support
Document Manager 2.2x Support
Generic Box Download Support
Get 1 Free 2.2x Support
Price in Cart Only/MAPP Download Support
Modular Front Page Download Support
Modular SEO Header Tags Download Support
MVS 2.2x Support
PDF Datasheet Download Support
Price Updater 2.2x
Products Specifications 2.3.x Development Version Support Bugs/Suggestions
Request a Review Download Support

Shopping List Download Support New!
Specials Image Overlay Download Support
Superfish Categories Box Download Support
Theme Switcher 2.3+ Support  Updated


#243   Nisinho Brazil

Nisinho Brazil
  • Members
  • 17 posts
  • Real Name:Nisinho
  • Gender:Male

Posted 12 December 2011 - 17:27

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
Attached File  Redondar.gif   10.46KB   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

#244   DK-Toys.dk

DK-Toys.dk
  • Members
  • 17 posts
  • Real Name:Kim

Posted 12 April 2012 - 15:53

My frontpage is mess up after installation of this nice contrib. look at www.dk-toys.dk and http://www.dk-toys.d...inbox-c-90.html but this page work fine http://www.dk-toys.d...t-c-90_102.html

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 .= '&nbsp;&nbsp;<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 - 16:02.


#245   spooks

spooks
  • Members
  • 7,017 posts
  • Real Name:Sam
  • Gender:Male
  • Location:UK

Posted 12 April 2012 - 17:01

I`ve not looked through your above but viewing your site you have invalid table nesting

http://validator.w3....t-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.