Jump to content
Sign in to follow this  
spooks

Graphical Borders

Recommended Posts

Nice tip, but there is an easier way!:

 

 

 

add above to whatever you want

 

<?php echo mws_boxHeader (); ?>

 

here goes what you want to include in this border effect

 

<?php echo mws_boxFooter(); ?>

 

here it ends this effect! ;)


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.

Share this post


Link to post
Share on other sites

Hi Sam,

 

at first I want to thank you for your work but in fact i have a problem with it... ;)

 

A few days ago I stumbled upon "Graphical Borders v2.1" and installed it.

It only took effect a my box "new products". So I removed it and installed it again... No change so I removed it again.

 

I came here to get some support for this contrib but found yours. Sounds good! Seems to be the same contrib but less files to change so less chances for me to make mistakes ;) I thought... But somethings still wrong with my install.

 

It still only effects the box "new products". No other box is effected... The shopping cart itself shows the new borders but the box "shopping cart" not...

 

Where´s my mistake?

Share this post


Link to post
Share on other sites

Hi Sam,

 

at first I want to thank you for your work but in fact i have a problem with it... wink.gif

 

A few days ago I stumbled upon "Graphical Borders v2.1" and installed it.

It only took effect a my box "new products". So I removed it and installed it again... No change so I removed it again.

 

I came here to get some support for this contrib but found yours. Sounds good! Seems to be the same contrib but less files to change so less chances for me to make mistakes wink.gif I thought... But somethings still wrong with my install.

 

It still only effects the box "new products". No other box is effected... The shopping cart itself shows the new borders but the box "shopping cart" not...

 

Where´s my mistake?

 

Have you reset your cache?

 

Otherwise triple check your edits again! smile.gif


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.

Share this post


Link to post
Share on other sites

Have you reset your cache?

 

Otherwise triple check your edits again! smile.gif

 

I resetted my cache using "ccleaner" and additional the function within my Firefox 3.5 But it appears to be the same picture...

 

Ok I didn´t triple check my edits but I just did them again ;)

 

Here´s what they look like (I marked the changes blue-unfortunately the "color"tag is not working within the "code"tag so I had to post the code without the "code"tags):

 

stylesheet.css

 

/*

$Id: stylesheet.css,v 1.56 2003/06/30 20:04:02 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2003 osCommerce

 

Released under the GNU General Public License

*/

 

.boxText { font-family: Verdana, Arial, sans-serif; font-size: 10px; }

.errorBox { font-family : Verdana, Arial, sans-serif; font-size : 10px; background: #ffb3b5; font-weight: bold; }

.stockWarning { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #cc0033; }

.productsNotifications { background: #f2fff7; }

.orderEdit { font-family : Verdana, Arial, sans-serif; font-size : 10px; color: #70d250; text-decoration: underline; }

 

 

/* Hauptbereich des Shops */

BODY {

text-align: center;

background-image: url('images/bg.gif');

color: #000000;

margin: 0px;

}

 

/* Farbe der Links im Shop */

.fixcenter {

width: 80%;

border: solid; border-width: 1px;

background: #ffffff;

color: #000000;

margin: auto;

margin-top: 20px;

text-align: left;

}

 

A {

color: #000000;

text-decoration: underline;

}

 

/* Farbe bei MouseOver */

A:hover {

color: #AABBDD;

text-decoration: underline;

}

 

FORM {

display: inline;

}

 

/* Kopfbereich der Seite wo das Banner von oscommerce eingefuegt ist */

TR.header {

background: #efefef;

}

 

/* Navigationszeile unmittelbar unter dem Kopfbereich */

TR.headerNavigation {

background: #ffffff;

}

 

/* Navigationszeile z.B. die >> Zeichen */

TD.headerNavigation {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:43px;

color: #ffffff;

font-weight : bold;

}

 

/* Navigationszeile Textfarbe */

A.headerNavigation {

color: #FFFFFF;

}

 

/* Navigationszeile bei MouseOver */

A.headerNavigation:hover {

color: #ffffff;

}

 

/* Einblendung bei Fehler oder Warnung z.B. AGB nicht akzeptiert */

TR.headerError {

background: #ff0000;

}

 

TD.headerError {

font-family: Tahoma, Verdana, Arial, sans-serif;

font-size: 12px;

background: #ff0000;

color: #ffffff;

font-weight : bold;

text-align : center;

}

 

/* Einblendung beim Versand eines neuen Passworts */

TR.headerInfo {

background: #00ff00;

}

 

TD.headerInfo {

font-family: Tahoma, Verdana, Arial, sans-serif;

font-size: 12px;

background: #00ff00;

color: #ffffff;

font-weight: bold;

text-align: center;

}

 

/* Balken unten mit Datum und Anzahl Zugriffe */

TR.footer {

background: #efefef;

}

 

TD.footer {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:43px;

color: #efefef;

font-weight: bold;

}

 

/* Farbe des Rahmens um alle Boxen */

.infoBox {

background: #fc3e3c;

}

 

/* Fuellfarbe aller Boxen */

.infoBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

.infoBoxNotice {

 

}

 

.infoBoxNoticeContents {

background-image: url('images/bground2.gif');

background-repeat:repeat;

height:15px;

background: #fc3e3c;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

/* Fuellfarbe Ueberschrift aller Boxen */

TD.infoBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background: #CCCCCC;

color: #ffffff;

}

 

TD.infoBox, SPAN.infoBox {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

.contentBox {

background: #fc3e3c;

}

 

TD.contentBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

 

.contentBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

 

.BestSellersBox {

background: #fc3e3c;

}

TD.BestSellersBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

.BestSellersBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

 

.CategoriesBox {

background: #fc3e3c;

}

TD.CategoriesBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

.CategoriesBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

 

.CurrenciesBox {

background: #fc3e3c;

}

TD.CurrenciesBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

.CurrenciesBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

 

.InformationBox {

background: #fc3e3c;

}

TD.InformationBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

.InformationBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

 

.LanguagesBox {

background: #fc3e3c;

}

TD.LanguagesBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

.LanguagesBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

 

.ManufacturerInfoBox {

background: #fc3e3c;

}

TD.ManufacturerInfoBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

.ManufacturerInfoBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

 

.ManufacturersBox {

background: #fc3e3c;

}

TD.ManufacturersBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

.ManufacturersBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

 

.OrderHistoryBox {

background: #fc3e3c;

}

TD.OrderHistoryBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

.OrderHistoryBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

 

.ProductNotificationsBox {

background: #fc3e3c;

}

TD.ProductNotificationsBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

.ProductNotificationsBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

 

.ReviewsBox {

background: #fc3e3c;

}

TD.ReviewsBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

.ReviewsBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

 

.SearchBox {

background: #fc3e3c;

}

TD.SearchBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

.SearchBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

 

.ShoppingCartBox {

background: #fc3e3c;

}

TD.ShoppingCartBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

.ShoppingCartBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

 

.SpecialsBox {

background: #fc3e3c;

}

TD.SpecialsBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

.SpecialsBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

 

.TellaFriendBox {

background: #fc3e3c;

}

TD.TellaFriendBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

.TellaFriendBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

/* war vorher WhatsNewBox */

.infoBox {

background: #fc3e3c;

}

/* war vorher WhatsNewBoxHeading */

TD.infoBoxHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

font-weight: bold;

background-image: url('images/bground.gif');

background-repeat:repeat;

height:30px;

color: #ffffff;

}

/* war vorher WhatsNewBoxContents */

.infoBoxContents {

background: #efefef;

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

/* Farbe Produktliste ungerade Zeilen */

TR.accountHistory-odd, TR.addressBook-odd, TR.alsoPurchased-odd, TR.payment-odd, TR.productListing-odd, TR.productReviews-odd, TR.upcomingProducts-odd, TR.shippingOptions-odd {

background: #dfdfdf;

}

 

/* Farbe Produktliste gerade Zeilen */

TR.accountHistory-even, TR.addressBook-even, TR.alsoPurchased-even, TR.payment-even, TR.productListing-even, TR.productReviews-even, TR.upcomingProducts-even, TR.shippingOptions-even {

background: #efefef;

}

 

TABLE.productListing {

border: 0px;

border-style: solid;

border-color: #b6b7cb;

border-spacing: 0px;

}

 

/* Produkttabelle Ueberschrift Fuellfarbe */

.productListing-heading{

font-family: Verdana, Arial, sans-serif;

font-size: 11px;

font-weight: bold;

color: #999999;

vertical-align: middle;

white-space: nowrap;

}

 

TD.productListing-data {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

/* Farbe Seitenauswahl unten rechts */

A.pageResults {

color: #fc3e3c;

}

 

/* Farbe Seitenauswahl unten rechts bei bei MouseOver */

A.pageResults:hover {

color: #fc3e3c;

background: #fc3e3c;

}

 

/* Ueberschrift Farbe wie unser Angebot, Kategorien, etc. */

TD.pageHeading, DIV.pageHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 20px;

font-weight: bold;

color: #000000;

}

 

TR.subBar {

background: #f4f7fd;

}

 

/* Sub Titelzeile z.B. Es wurden keine Artikel gefunden ... */

TD.subBar {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

color: #000000;

}

 

/* Haupt-Schrift */

TD.main, P.main {

font-family: Verdana, Arial, sans-serif;

font-size: 11px;

line-height: 1.5;

}

 

TD.smallText, SPAN.smallText, P.smallText {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

TD.accountCategory {

font-family: Verdana, Arial, sans-serif;

font-size: 13px;

color: #aabbdd;

}

 

TD.fieldKey {

font-family: Verdana, Arial, sans-serif;

font-size: 12px;

font-weight: bold;

}

 

TD.fieldValue {

font-family: Verdana, Arial, sans-serif;

font-size: 12px;

}

 

TD.tableHeading {

font-family: Verdana, Arial, sans-serif;

font-size: 12px;

font-weight: bold;

}

 

/* Farbe der neuen Artikel im Warenkorb */

SPAN.newItemInCart {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

color: #ff0000;

}

 

CHECKBOX, INPUT, RADIO, SELECT {

font-family: Verdana, Arial, sans-serif;

font-size: 11px;

}

 

TEXTAREA {

width: 100%;

font-family: Verdana, Arial, sans-serif;

font-size: 11px;

}

 

/* Farbe Schriftzug Gast bei der Begruessung */

SPAN.greetUser {

font-family: Verdana, Arial, sans-serif;

font-size: 12px;

color: #fc3e3c;

font-weight: bold;

}

 

/* Formularbereich bei Weiterempfehlungen und Kundenkonto */

TABLE.formArea {

background: #f1f9fe;

border-color: #7b9ebd;

border-style: solid;

border-width: 1px;

}

 

TD.formAreaTitle {

font-family: Tahoma, Verdana, Arial, sans-serif;

font-size: 12px;

font-weight: bold;

}

 

SPAN.markProductOutOfStock {

font-family: Tahoma, Verdana, Arial, sans-serif;

font-size: 12px;

color: #c76170;

font-weight: bold;

}

 

SPAN.productSpecialPrice {

font-family: Verdana, Arial, sans-serif;

color: #ff0000;

}

 

SPAN.errorText {

font-family: Verdana, Arial, sans-serif;

color: #ff0000;

}

 

/* MouseOver-Balken im checkout-Bereich */

.moduleRow { }

.moduleRowOver { background-color: #D7E9F7; cursor: pointer; cursor: hand; }

.moduleRowSelected { background-color: #E9F4FC; }

 

/* Navigationsleiste unten im checkout */

.checkoutBarFrom, .checkoutBarTo { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #8c8c8c; }

.checkoutBarCurrent { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #000000; }

 

/* message box */

 

.messageBox { font-family: Verdana, Arial, sans-serif; font-size: 10px; }

.messageStackError, .messageStackWarning { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #ffb3b5; }

.messageStackSuccess { font-family: Verdana, Arial, sans-serif; font-size: 10px; background-color: #99ff00; }

 

/* input requirement */

 

.inputRequirement { font-family: Verdana, Arial, sans-serif; font-size: 10px; color: #ff0000; }

 

.cssButton {

background: #f0f0ff;

color: #000080;

width: 130px;

height: 20px;

vertical-align: top;

font-weight: normal;

font-family: Verdana, Arial, sans-serif;

font-size: 12px;

cursor: pointer;

text-align: center;

text-decoration: none;

border: 1px;

border-style: solid;

border-color: #000080;

border-spacing: 1px;

}

 

#thecategories a:hover {

background-color: #eeeeee;

color: #000000;

}

 

.catwithsubs, .catwithnosubs {

padding-right: 5px;

}

 

#thecategories {

position: relative;

top: -9px;

margin-bottom: -16px;

width: 140px;

}

 

.activelink {

display: block;

font-weight: bold;

}

 

#thecategories a {

display: block;

padding-bottom: 7px;

padding-top: 3px;

width: 100%;

}

 

/*mozilla fix*/

html>body #thecategories a {

width: auto;

}

/*end of mozilla fix*/

 

#topcat a {

padding-left: 5px;

}

 

#secondcat a {

padding-left: 20px;

}

 

#thirdcat a {

padding-left: 35px;

}

 

#fourthcat a {

padding-left: 50px;

}

 

#fifthcat a {

padding-left: 65px;

}

 

.tax_info {

font-family: Verdana, Arial, sans-serif;

font-size: 9px;

color: #758389;

}

 

.mws_boxTop { background: url('images/infobox/top.gif');

font-family: Tahoma;

font-size: 11px;

text-align : center;

color: #999999;

font-weight: bold;

background-repeat:repeat-x;

vertical-align: middle;

white-space: nowrap; }

.mws_boxLeft { background: url('images/infobox/left.gif'); }

.mws_boxRight { background: url('images/infobox/right.gif'); }

.mws_boxBottom { background: url('images/infobox/bot.gif');

font-family: Verdana, Arial, sans-serif;

font-size: 11px;

text-align : center;

vertical-align: middle;

white-space: nowrap; }

.mws_boxCenter { background: #FFFFFF; }

 

.mws_boxTop_main { background: url('images/infobox_main/top.gif');

font-family: Tahoma;

font-size: 11px;

text-align : center;

font-weight: bold;

background-repeat:repeat-x;

vertical-align: middle;

white-space: nowrap; }

.mws_boxLeft_main { background: url('images/infobox_main/left.gif'); }

.mws_boxRight_main { background: url('images/infobox_main/right.gif'); }

.mws_boxBottom_main { background: url('images/infobox_main/bot.gif');

font-family: Verdana, Arial, sans-serif;

font-size: 11px;

text-align : center;

vertical-align: middle;

white-space: nowrap; }

.mws_boxCenter_main { background: #FFFFFF; }

A.mws_boxTop {

color: #999999;

}

TD.noborderbox {

font-family: Verdana, Arial, sans-serif;

font-size: 10px;

}

 

application_top.php

 

<?php

/*

$Id: application_top.php 1833 2008-01-30 22:03:30Z hpdl $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 2008 osCommerce

 

Released under the GNU General Public License

*/

 

// start the timer for the page parse time log

define('PAGE_PARSE_START_TIME', microtime());

 

// set the level of error reporting

error_reporting(E_ALL & ~E_NOTICE);

 

// check support for register_globals

if (function_exists('ini_get') && (ini_get('register_globals') == false) && (PHP_VERSION < 4.3) ) {

exit('Server Requirement Error: register_globals is disabled in your PHP configuration. This can be enabled in your php.ini configuration file or in the .htaccess file in your catalog directory. Please use PHP 4.3+ if register_globals cannot be enabled on the server.');

}

 

// Set the local configuration parameters - mainly for developers

if (file_exists('includes/local/configure.php')) include('includes/local/configure.php');

 

// include server parameters

require('includes/configure.php');

 

if (strlen(DB_SERVER) < 1) {

if (is_dir('install')) {

header('Location: install/index.php');

}

}

 

// define the project version

define('PROJECT_VERSION', 'osCommerce Online Merchant v2.2 RC2a');

 

// some code to solve compatibility issues

require(DIR_WS_FUNCTIONS . 'compatibility.php');

 

// set the type of request (secure or not)

$request_type = (getenv('HTTPS') == 'on') ? 'SSL' : 'NONSSL';

 

// set php_self in the local scope

if (!isset($PHP_SELF)) $PHP_SELF = $HTTP_SERVER_VARS['PHP_SELF'];

 

if ($request_type == 'NONSSL') {

define('DIR_WS_CATALOG', DIR_WS_HTTP_CATALOG);

} else {

define('DIR_WS_CATALOG', DIR_WS_HTTPS_CATALOG);

}

 

// include the list of project filenames

require(DIR_WS_INCLUDES . 'filenames.php');

 

// include the list of project database tables

require(DIR_WS_INCLUDES . 'database_tables.php');

 

// customization for the design layout

define('BOX_WIDTH', 125); // how wide the boxes should be in pixels (default: 125)

 

// include the database functions

require(DIR_WS_FUNCTIONS . 'database.php');

 

// make a connection to the database... now

tep_db_connect() or die('Unable to connect to database server!');

 

// set the application parameters

$configuration_query = tep_db_query('select configuration_key as cfgKey, configuration_value as cfgValue from ' . TABLE_CONFIGURATION);

while ($configuration = tep_db_fetch_array($configuration_query)) {

define($configuration['cfgKey'], $configuration['cfgValue']);

}

 

// if gzip_compression is enabled, start to buffer the output

if ( (GZIP_COMPRESSION == 'true') && ($ext_zlib_loaded = extension_loaded('zlib')) && (PHP_VERSION >= '4') ) {

if (($ini_zlib_output_compression = (int)ini_get('zlib.output_compression')) < 1) {

if (PHP_VERSION >= '4.0.4') {

ob_start('ob_gzhandler');

} else {

include(DIR_WS_FUNCTIONS . 'gzip_compression.php');

ob_start();

ob_implicit_flush();

}

} else {

ini_set('zlib.output_compression_level', GZIP_LEVEL);

}

}

 

// set the HTTP GET parameters manually if search_engine_friendly_urls is enabled

if (SEARCH_ENGINE_FRIENDLY_URLS == 'true') {

if (strlen(getenv('PATH_INFO')) > 1) {

$GET_array = array();

$PHP_SELF = str_replace(getenv('PATH_INFO'), '', $PHP_SELF);

$vars = explode('/', substr(getenv('PATH_INFO'), 1));

for ($i=0, $n=sizeof($vars); $i<$n; $i++) {

if (strpos($vars[$i], '[]')) {

$GET_array[substr($vars[$i], 0, -2)][] = $vars[$i+1];

} else {

$HTTP_GET_VARS[$vars[$i]] = $vars[$i+1];

}

$i++;

}

 

if (sizeof($GET_array) > 0) {

while (list($key, $value) = each($GET_array)) {

$HTTP_GET_VARS[$key] = $value;

}

}

}

}

 

// define general functions used application-wide

require(DIR_WS_FUNCTIONS . 'general.php');

require(DIR_WS_FUNCTIONS . 'html_output.php');

 

// set the cookie domain

$cookie_domain = (($request_type == 'NONSSL') ? HTTP_COOKIE_DOMAIN : HTTPS_COOKIE_DOMAIN);

$cookie_path = (($request_type == 'NONSSL') ? HTTP_COOKIE_PATH : HTTPS_COOKIE_PATH);

 

// include cache functions if enabled

if (USE_CACHE == 'true') include(DIR_WS_FUNCTIONS . 'cache.php');

 

// include shopping cart class

require(DIR_WS_CLASSES . 'shopping_cart.php');

 

// include navigation history class

require(DIR_WS_CLASSES . 'navigation_history.php');

 

// check if sessions are supported, otherwise use the php3 compatible session class

if (!function_exists('session_start')) {

define('PHP_SESSION_NAME', 'osCsid');

define('PHP_SESSION_PATH', $cookie_path);

define('PHP_SESSION_DOMAIN', $cookie_domain);

define('PHP_SESSION_SAVE_PATH', SESSION_WRITE_DIRECTORY);

 

include(DIR_WS_CLASSES . 'sessions.php');

}

 

// define how the session functions will be used

require(DIR_WS_FUNCTIONS . 'sessions.php');

 

// set the session name and save path

tep_session_name('osCsid');

tep_session_save_path(SESSION_WRITE_DIRECTORY);

 

// set the session cookie parameters

if (function_exists('session_set_cookie_params')) {

session_set_cookie_params(0, $cookie_path, $cookie_domain);

} elseif (function_exists('ini_set')) {

ini_set('session.cookie_lifetime', '0');

ini_set('session.cookie_path', $cookie_path);

ini_set('session.cookie_domain', $cookie_domain);

}

 

// set the session ID if it exists

if (isset($HTTP_POST_VARS[tep_session_name()])) {

tep_session_id($HTTP_POST_VARS[tep_session_name()]);

} elseif ( ($request_type == 'SSL') && isset($HTTP_GET_VARS[tep_session_name()]) ) {

tep_session_id($HTTP_GET_VARS[tep_session_name()]);

}

 

// start the session

$session_started = false;

if (SESSION_FORCE_COOKIE_USE == 'True') {

tep_setcookie('cookie_test', 'please_accept_for_session', time()+60*60*24*30, $cookie_path, $cookie_domain);

 

if (isset($HTTP_COOKIE_VARS['cookie_test'])) {

tep_session_start();

$session_started = true;

}

} elseif (SESSION_BLOCK_SPIDERS == 'True') {

$user_agent = strtolower(getenv('HTTP_USER_AGENT'));

$spider_flag = false;

 

if (tep_not_null($user_agent)) {

$spiders = file(DIR_WS_INCLUDES . 'spiders.txt');

 

for ($i=0, $n=sizeof($spiders); $i<$n; $i++) {

if (tep_not_null($spiders[$i])) {

if (is_integer(strpos($user_agent, trim($spiders[$i])))) {

$spider_flag = true;

break;

}

}

}

}

 

if ($spider_flag == false) {

tep_session_start();

$session_started = true;

}

} else {

tep_session_start();

$session_started = true;

}

 

if ( ($session_started == true) && (PHP_VERSION >= 4.3) && function_exists('ini_get') && (ini_get('register_globals') == false) ) {

extract($_SESSION, EXTR_OVERWRITE+EXTR_REFS);

}

 

// set SID once, even if empty

$SID = (defined('SID') ? SID : '');

 

// verify the ssl_session_id if the feature is enabled

if ( ($request_type == 'SSL') && (SESSION_CHECK_SSL_SESSION_ID == 'True') && (ENABLE_SSL == true) && ($session_started == true) ) {

$ssl_session_id = getenv('SSL_SESSION_ID');

if (!tep_session_is_registered('SSL_SESSION_ID')) {

$SESSION_SSL_ID = $ssl_session_id;

tep_session_register('SESSION_SSL_ID');

}

 

if ($SESSION_SSL_ID != $ssl_session_id) {

tep_session_destroy();

tep_redirect(tep_href_link(FILENAME_SSL_CHECK));

}

}

 

// verify the browser user agent if the feature is enabled

if (SESSION_CHECK_USER_AGENT == 'True') {

$http_user_agent = getenv('HTTP_USER_AGENT');

if (!tep_session_is_registered('SESSION_USER_AGENT')) {

$SESSION_USER_AGENT = $http_user_agent;

tep_session_register('SESSION_USER_AGENT');

}

 

if ($SESSION_USER_AGENT != $http_user_agent) {

tep_session_destroy();

tep_redirect(tep_href_link(FILENAME_LOGIN));

}

}

 

// verify the IP address if the feature is enabled

if (SESSION_CHECK_IP_ADDRESS == 'True') {

$ip_address = tep_get_ip_address();

if (!tep_session_is_registered('SESSION_IP_ADDRESS')) {

$SESSION_IP_ADDRESS = $ip_address;

tep_session_register('SESSION_IP_ADDRESS');

}

 

if ($SESSION_IP_ADDRESS != $ip_address) {

tep_session_destroy();

tep_redirect(tep_href_link(FILENAME_LOGIN));

}

}

 

// create the shopping cart & fix the cart if necesary

if (tep_session_is_registered('cart') && is_object($cart)) {

if (PHP_VERSION < 4) {

$broken_cart = $cart;

$cart = new shoppingCart;

$cart->unserialize($broken_cart);

}

} else {

tep_session_register('cart');

$cart = new shoppingCart;

}

 

// include currencies class and create an instance

require(DIR_WS_CLASSES . 'currencies.php');

$currencies = new currencies();

 

// include the mail classes

require(DIR_WS_CLASSES . 'mime.php');

require(DIR_WS_CLASSES . 'email.php');

 

// set the language

if (!tep_session_is_registered('language') || isset($HTTP_GET_VARS['language'])) {

if (!tep_session_is_registered('language')) {

tep_session_register('language');

tep_session_register('languages_id');

}

 

include(DIR_WS_CLASSES . 'language.php');

$lng = new language();

 

if (isset($HTTP_GET_VARS['language']) && tep_not_null($HTTP_GET_VARS['language'])) {

$lng->set_language($HTTP_GET_VARS['language']);

} else {

$lng->get_browser_language();

}

 

$language = $lng->language['directory'];

$languages_id = $lng->language['id'];

}

 

// include the language translations

require(DIR_WS_LANGUAGES . $language . '.php');

 

// currency

if (!tep_session_is_registered('currency') || isset($HTTP_GET_VARS['currency']) || ( (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') && (LANGUAGE_CURRENCY != $currency) ) ) {

if (!tep_session_is_registered('currency')) tep_session_register('currency');

 

if (isset($HTTP_GET_VARS['currency']) && $currencies->is_set($HTTP_GET_VARS['currency'])) {

$currency = $HTTP_GET_VARS['currency'];

} else {

$currency = (USE_DEFAULT_LANGUAGE_CURRENCY == 'true') ? LANGUAGE_CURRENCY : DEFAULT_CURRENCY;

}

}

 

// navigation history

if (tep_session_is_registered('navigation')) {

if (PHP_VERSION < 4) {

$broken_navigation = $navigation;

$navigation = new navigationHistory;

$navigation->unserialize($broken_navigation);

}

} else {

tep_session_register('navigation');

$navigation = new navigationHistory;

}

$navigation->add_current_page();

 

// Shopping cart actions

if (isset($HTTP_GET_VARS['action'])) {

// redirect the customer to a friendly cookie-must-be-enabled page if cookies are disabled

if ($session_started == false) {

tep_redirect(tep_href_link(FILENAME_COOKIE_USAGE));

}

 

if (DISPLAY_CART == 'true') {

$goto = FILENAME_SHOPPING_CART;

$parameters = array('action', 'cPath', 'products_id', 'pid');

} else {

$goto = basename($PHP_SELF);

if ($HTTP_GET_VARS['action'] == 'buy_now') {

$parameters = array('action', 'pid', 'products_id');

} else {

$parameters = array('action', 'pid');

}

}

switch ($HTTP_GET_VARS['action']) {

// customer wants to update the product quantity in their shopping cart

case 'update_product' : for ($i=0, $n=sizeof($HTTP_POST_VARS['products_id']); $i<$n; $i++) {

if (in_array($HTTP_POST_VARS['products_id'][$i], (is_array($HTTP_POST_VARS['cart_delete']) ? $HTTP_POST_VARS['cart_delete'] : array()))) {

$cart->remove($HTTP_POST_VARS['products_id'][$i]);

} else {

if (PHP_VERSION < 4) {

// if PHP3, make correction for lack of multidimensional array.

reset($HTTP_POST_VARS);

while (list($key, $value) = each($HTTP_POST_VARS)) {

if (is_array($value)) {

while (list($key2, $value2) = each($value)) {

if (ereg ("(.*)\]\[(.*)", $key2, $var)) {

$id2[$var[1]][$var[2]] = $value2;

}

}

}

}

$attributes = ($id2[$HTTP_POST_VARS['products_id'][$i]]) ? $id2[$HTTP_POST_VARS['products_id'][$i]] : '';

} else {

$attributes = ($HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]]) ? $HTTP_POST_VARS['id'][$HTTP_POST_VARS['products_id'][$i]] : '';

}

$cart->add_cart($HTTP_POST_VARS['products_id'][$i], $HTTP_POST_VARS['cart_quantity'][$i], $attributes, false);

}

}

tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));

break;

// customer adds a product from the products page

case 'add_product' : if (isset($HTTP_POST_VARS['products_id']) && is_numeric($HTTP_POST_VARS['products_id'])) {

$cart->add_cart($HTTP_POST_VARS['products_id'], $cart->get_quantity(tep_get_uprid($HTTP_POST_VARS['products_id'], $HTTP_POST_VARS['id']))+1, $HTTP_POST_VARS['id']);

}

tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));

break;

// performed by the 'buy now' button in product listings and review page

case 'buy_now' : if (isset($HTTP_GET_VARS['products_id'])) {

if (tep_has_product_attributes($HTTP_GET_VARS['products_id'])) {

tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['products_id']));

} else {

$cart->add_cart($HTTP_GET_VARS['products_id'], $cart->get_quantity($HTTP_GET_VARS['products_id'])+1);

}

}

tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));

break;

case 'notify' : if (tep_session_is_registered('customer_id')) {

if (isset($HTTP_GET_VARS['products_id'])) {

$notify = $HTTP_GET_VARS['products_id'];

} elseif (isset($HTTP_GET_VARS['notify'])) {

$notify = $HTTP_GET_VARS['notify'];

} elseif (isset($HTTP_POST_VARS['notify'])) {

$notify = $HTTP_POST_VARS['notify'];

} else {

tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify'))));

}

if (!is_array($notify)) $notify = array($notify);

for ($i=0, $n=sizeof($notify); $i<$n; $i++) {

$check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $notify[$i] . "' and customers_id = '" . $customer_id . "'");

$check = tep_db_fetch_array($check_query);

if ($check['count'] < 1) {

tep_db_query("insert into " . TABLE_PRODUCTS_NOTIFICATIONS . " (products_id, customers_id, date_added) values ('" . $notify[$i] . "', '" . $customer_id . "', now())");

}

}

tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action', 'notify'))));

} else {

$navigation->set_snapshot();

tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

}

break;

case 'notify_remove' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['products_id'])) {

$check_query = tep_db_query("select count(*) as count from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'");

$check = tep_db_fetch_array($check_query);

if ($check['count'] > 0) {

tep_db_query("delete from " . TABLE_PRODUCTS_NOTIFICATIONS . " where products_id = '" . $HTTP_GET_VARS['products_id'] . "' and customers_id = '" . $customer_id . "'");

}

tep_redirect(tep_href_link(basename($PHP_SELF), tep_get_all_get_params(array('action'))));

} else {

$navigation->set_snapshot();

tep_redirect(tep_href_link(FILENAME_LOGIN, '', 'SSL'));

}

break;

case 'cust_order' : if (tep_session_is_registered('customer_id') && isset($HTTP_GET_VARS['pid'])) {

if (tep_has_product_attributes($HTTP_GET_VARS['pid'])) {

tep_redirect(tep_href_link(FILENAME_PRODUCT_INFO, 'products_id=' . $HTTP_GET_VARS['pid']));

} else {

$cart->add_cart($HTTP_GET_VARS['pid'], $cart->get_quantity($HTTP_GET_VARS['pid'])+1);

}

}

tep_redirect(tep_href_link($goto, tep_get_all_get_params($parameters)));

break;

}

}

 

// include the who's online functions

require(DIR_WS_FUNCTIONS . 'whos_online.php');

tep_update_whos_online();

 

// include the password crypto functions

require(DIR_WS_FUNCTIONS . 'password_funcs.php');

 

// include validation functions (right now only email address)

require(DIR_WS_FUNCTIONS . 'validations.php');

 

// split-page-results

require(DIR_WS_CLASSES . 'split_page_results.php');

 

// Graphical Boxes

require(DIR_WS_INCLUDES . 'mws_functions.php');

 

// infobox

require(DIR_WS_CLASSES . 'boxes.php');

 

// auto activate and expire banners

require(DIR_WS_FUNCTIONS . 'banner.php');

tep_activate_banners();

tep_expire_banners();

 

// auto expire special products

require(DIR_WS_FUNCTIONS . 'specials.php');

tep_expire_specials();

 

// calculate category path

if (isset($HTTP_GET_VARS['cPath'])) {

$cPath = $HTTP_GET_VARS['cPath'];

} elseif (isset($HTTP_GET_VARS['products_id']) && !isset($HTTP_GET_VARS['manufacturers_id'])) {

$cPath = tep_get_product_path($HTTP_GET_VARS['products_id']);

} else {

$cPath = '';

}

 

if (tep_not_null($cPath)) {

$cPath_array = tep_parse_category_path($cPath);

$cPath = implode('_', $cPath_array);

$current_category_id = $cPath_array[(sizeof($cPath_array)-1)];

} else {

$current_category_id = 0;

}

 

// include the breadcrumb class and start the breadcrumb trail

require(DIR_WS_CLASSES . 'breadcrumb.php');

$breadcrumb = new breadcrumb;

 

$breadcrumb->add(HEADER_TITLE_TOP, tep_href_link(FILENAME_DEFAULT));

 

 

// add category names or the manufacturer name to the breadcrumb trail

if (isset($cPath_array)) {

for ($i=0, $n=sizeof($cPath_array); $i<$n; $i++) {

$categories_query = tep_db_query("select categories_name from " . TABLE_CATEGORIES_DESCRIPTION . " where categories_id = '" . (int)$cPath_array[$i] . "' and language_id = '" . (int)$languages_id . "'");

if (tep_db_num_rows($categories_query) > 0) {

$categories = tep_db_fetch_array($categories_query);

$breadcrumb->add($categories['categories_name'], tep_href_link(FILENAME_DEFAULT, 'cPath=' . implode('_', array_slice($cPath_array, 0, ($i+1)))));

} else {

break;

}

}

} elseif (isset($HTTP_GET_VARS['manufacturers_id'])) {

$manufacturers_query = tep_db_query("select manufacturers_name from " . TABLE_MANUFACTURERS . " where manufacturers_id = '" . (int)$HTTP_GET_VARS['manufacturers_id'] . "'");

if (tep_db_num_rows($manufacturers_query)) {

$manufacturers = tep_db_fetch_array($manufacturers_query);

$breadcrumb->add($manufacturers['manufacturers_name'], tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $HTTP_GET_VARS['manufacturers_id']));

}

}

 

// add the products model to the breadcrumb trail

if (isset($HTTP_GET_VARS['products_id'])) {

$model_query = tep_db_query("select products_model from " . TABLE_PRODUCTS . " where products_id = '" . (int)$HTTP_GET_VARS['products_id'] . "'");

if (tep_db_num_rows($model_query)) {

$model = tep_db_fetch_array($model_query);

$breadcrumb->add($model['products_model'], tep_href_link(FILENAME_PRODUCT_INFO, 'cPath=' . $cPath . '&products_id=' . $HTTP_GET_VARS['products_id']));

}

}

 

// START STS 4.5

require (DIR_WS_CLASSES.'sts.php');

$sts= new sts();

$sts->start_capture();

// END STS

// initialize the message stack for output messages

require(DIR_WS_CLASSES . 'message_stack.php');

$messageStack = new messageStack;

 

// set which precautions should be checked

define('WARN_INSTALL_EXISTENCE', 'true');

define('WARN_CONFIG_WRITEABLE', 'true');

define('WARN_SESSION_DIRECTORY_NOT_WRITEABLE', 'true');

define('WARN_SESSION_AUTO_START', 'true');

define('WARN_DOWNLOAD_DIRECTORY_NOT_READABLE', 'true');

 

// Supertracker

require(DIR_WS_CLASSES . 'supertracker.php');

$tracker = new supertracker;

$tracker->update();

?>

 

 

Edited by skyhy

Share this post


Link to post
Share on other sites

Sorry, but I had to shorten my post... It was too long ;)

 

and last but not least: boxes.php

 

<?php

/*

$Id: boxes.php,v 1.31 2003/02/11 00:04:48 hpdl Exp $

 

osCommerce, Open Source E-Commerce Solutions

http://www.oscommerce.com

 

Copyright © 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="' . $this->table_border . '" width="' . $this->table_width . '" cellspacing="' . $this->table_cellspacing . '" cellpadding="' . $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 (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="' . $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="' . $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;

}

}

 

 

//Default infoBox Class

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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="TextBox"',

'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

 

 

//Default contenBox Class

// 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

 

 

 

//New BestSellersBox Class

class BestSellersBox extends tableBox {

function BestSellersBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->BestSellersBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="BestSellersBox"';

$this->tableBox($info_box_contents, true);

}

 

function BestSellersBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="BestSellersBoxContents"';

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="BestSellersBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class BestSellersBoxHeading extends tableBox {

function BestSellersBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'BestSellersBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'BestSellersBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'BestSellersBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'BestSellersBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="BestSellersBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="BestSellersBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="BestSellersBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

//New CategoriesBox Class

class CategoriesBox extends tableBox {

function CategoriesBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->CategoriesBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="CategoriesBox"';

$this->tableBox($info_box_contents, true);

}

 

function CategoriesBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="CategoriesBoxContents"';

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="CategoriesBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class CategoriesBoxHeading extends tableBox {

function CategoriesBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'CategoriesBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'CategoriesBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'CategoriesBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'CategoriesBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="CategoriesBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="CategoriesBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="CategoriesBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

//New CurrenciesBox Class

class CurrenciesBox extends tableBox {

function CurrenciesBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->CurrenciesBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="CurrenciesBox"';

$this->tableBox($info_box_contents, true);

}

 

function CurrenciesBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="CurrenciesBoxContents"';

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="CurrenciesBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class CurrenciesBoxHeading extends tableBox {

function CurrenciesBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'CurrenciesBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'CurrenciesBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'CurrenciesBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'CurrenciesBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="CurrenciesBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="CurrenciesBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="CurrenciesBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

//New InformationBox Class

class InformationBox extends tableBox {

function InformationBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->InformationBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="InformationBox"';

$this->tableBox($info_box_contents, true);

}

 

function InformationBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="InformationBoxContents"';

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="InformationBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class InformationBoxHeading extends tableBox {

function InformationBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'InformationBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'InformationBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'InformationBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'InformationBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="InformationBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="InformationBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="InformationBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

//New LanguagesBox Class

class LanguagesBox extends tableBox {

function LanguagesBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->LanguagesBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="LanguagesBox"';

$this->tableBox($info_box_contents, true);

}

 

function LanguagesBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="LanguagesBoxContents"';

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="LanguagesBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class LanguagesBoxHeading extends tableBox {

function LanguagesBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'LanguagesBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'LanguagesBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'LanguagesBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'LanguagesBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="LanguagesBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="LanguagesBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="LanguagesBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

//New ManufacturerInfoBox Class

class ManufacturerInfoBox extends tableBox {

function ManufacturerInfoBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->ManufacturerInfoBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="ManufacturerInfoBox"';

$this->tableBox($info_box_contents, true);

}

 

function ManufacturerInfoBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="ManufacturerInfoBoxContents"';

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="ManufacturerInfoBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class ManufacturerInfoBoxHeading extends tableBox {

function ManufacturerInfoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'ManufacturerInfoBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'ManufacturerInfoBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'ManufacturerInfoBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'ManufacturerInfoBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="ManufacturerInfoBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="ManufacturerInfoBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="ManufacturerInfoBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

//New ManufacturersBox Class

class ManufacturersBox extends tableBox {

function ManufacturersBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->ManufacturersBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="ManufacturersBox"';

$this->tableBox($info_box_contents, true);

}

 

function ManufacturersBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="ManufacturersBoxContents"';

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="ManufacturersBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class ManufacturersBoxHeading extends tableBox {

function ManufacturersBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'ManufacturersBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'ManufacturersBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'ManufacturersBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'ManufacturersBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="ManufacturersBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="ManufacturersBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="ManufacturersBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

 

//New OrderHistoryBox Class

class OrderHistoryBox extends tableBox {

function OrderHistoryBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->OrderHistoryBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="OrderHistoryBox"';

$this->tableBox($info_box_contents, true);

}

 

function OrderHistoryBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="OrderHistoryBoxContents"';

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="OrderHistoryBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class OrderHistoryBoxHeading extends tableBox {

function OrderHistoryBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'OrderHistoryBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'OrderHistoryBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'OrderHistoryBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'OrderHistoryBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="OrderHistoryBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="OrderHistoryBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="OrderHistoryBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

//New ProductNotificationsBox Class

class ProductNotificationsBox extends tableBox {

function ProductNotificationsBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->ProductNotificationsBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="ProductNotificationsBox"';

$this->tableBox($info_box_contents, true);

}

 

function ProductNotificationsBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="ProductNotificationsBoxContents"';

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="ProductNotificationsBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class ProductNotificationsBoxHeading extends tableBox {

function ProductNotificationsBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'ProductNotificationsBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'ProductNotificationsBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'ProductNotificationsBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'ProductNotificationsBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="ProductNotificationsBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="ProductNotificationsBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="ProductNotificationsBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

//New ReviewsBox Class

class ReviewsBox extends tableBox {

function ReviewsBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->ReviewsBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="ReviewsBox"';

$this->tableBox($info_box_contents, true);

}

 

function ReviewsBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="ReviewsBoxContents"';

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="ReviewsBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class ReviewsBoxHeading extends tableBox {

function ReviewsBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'ReviewsBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'ReviewsBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'ReviewsBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'ReviewsBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="ReviewsBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="ReviewsBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="ReviewsBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

//New SearchBox Class

class SearchBox extends tableBox {

function SearchBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->SearchBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="SearchBox"';

$this->tableBox($info_box_contents, true);

}

 

function SearchBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="SearchBoxContents"';

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="SearchBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class SearchBoxHeading extends tableBox {

function SearchBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'SearchBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'SearchBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'SearchBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'SearchBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="SearchBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="SearchBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="SearchBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

//New ShoppingCartBox Class

class ShoppingCartBox extends tableBox {

function ShoppingCartBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->ShoppingCartBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="ShoppingCartBox"';

$this->tableBox($info_box_contents, true);

}

 

function ShoppingCartBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="ShoppingCartBoxContents"';

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="ShoppingCartBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class ShoppingCartBoxHeading extends tableBox {

function ShoppingCartBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'ShoppingCartBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'ShoppingCartBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'ShoppingCartBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'ShoppingCartBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="ShoppingCartBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="ShoppingCartBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="ShoppingCartBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

//New SpecialsBox Class

class SpecialsBox extends tableBox {

function SpecialsBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->SpecialsBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="SpecialsBox"';

$this->tableBox($info_box_contents, true);

}

 

function SpecialsBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="SpecialsBoxContents"';

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="SpecialsBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class SpecialsBoxHeading extends tableBox {

function SpecialsBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'SpecialsBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'SpecialsBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'SpecialsBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'SpecialsBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="SpecialsBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="SpecialsBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="SpecialsBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

//New TellaFriendBox Class

class TellaFriendBox extends tableBox {

function TellaFriendBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->TellaFriendBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="TellaFriendBox"';

$this->tableBox($info_box_contents, true);

}

 

function TellaFriendBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="TellaFriendBoxContents"';

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="TellaFriendBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class TellaFriendBoxHeading extends tableBox {

function TellaFriendBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'TellaFriendBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'TellaFriendBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'TellaFriendBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'TellaFriendBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="TellaFriendBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="TellaFriendBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="TellaFriendBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

 

//New WhatsNewBox Class

class WhatsNewBox extends tableBox {

function WhatsNewBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->WhatsNewBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="WhatsNewBox"';

$this->tableBox($info_box_contents, true);

}

 

function WhatsNewBoxContents($contents) {

$this->table_cellpadding = '3';

$this->table_parameters = 'class="WhatsNewBoxContents"';

$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' => $contents[$i]['align'],

'form' => $contents[$i]['form'],

'params' => 'class="WhatsNewBoxContents"',

'text' => $contents[$i]['text']));

}

$info_box_contents[] = array(array('text' => tep_draw_separator('pixel_trans.gif', '100%', '1')));

return $this->tableBox($info_box_contents);

}

}

 

class WhatsNewBoxHeading extends tableBox {

function WhatsNewBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

$this->table_cellpadding = '0';

 

if ($left_corner == true) {

$left_corner = tep_image(DIR_WS_IMAGES . 'WhatsNewBox/corner_left.gif');

} else {

$left_corner = tep_image(DIR_WS_IMAGES . 'WhatsNewBox/corner_right_left.gif');

}

if ($right_arrow == true) {

$right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'WhatsNewBox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

} else {

$right_arrow = '';

}

if ($right_corner == true) {

$right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'WhatsNewBox/corner_right.gif');

} else {

$right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '14');

}

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="WhatsNewBoxHeading"',

'text' => $left_corner),

array('params' => 'width="100%" height="14" class="WhatsNewBoxHeading"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="WhatsNewBoxHeading" nowrap',

'text' => $right_corner));

 

$this->tableBox($info_box_contents, true);

}

}

?>

[/code]

 

But I recognized that I had some problems with finding the correct parts...

first one:

 

  class contentBox extends tableBox {
   function contentBox($contents) {
     $info_box_contents = array();
     $info_box_contents[] = array('text' => $this->contentBoxContents($contents));
     $this->table_cellpadding = '1';
     $this->table_parameters = 'class="[color="#FF0000"]infoBox"[/color]';
     $this->tableBox($info_box_contents, true);
   }

   function contentBoxContents($contents) {
     $this->table_cellpadding = '4';
     $this->table_parameters = 'class="[color="#FF0000"]infoBoxContents"[/color]';
     return $this->tableBox($contents);
   }
 }

 

In case of the red marked code it doesn´t show "infoBox" (as you suggested) but "contentBox" I amended it anyway. Is this the reason why?

And the second one (it´s the same problem as above):

 

 class contentBoxHeading extends tableBox {

function contentBoxHeading($contents) {

$this->table_width = '100%';

$this->table_cellpadding = '0';

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="[color=#FF0000]infoBoxHeading[/color]"',

'text' => tep_image(DIR_WS_IMAGES . '[color=#FF0000]infobox/corner_left.gif[/color]')),

array('params' => 'height="14" class="[color=#FF0000]infoBoxHeading[/color]" width="100%"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="[color=#FF0000]infoBoxHeading[/color]"',

'text' => tep_image(DIR_WS_IMAGES . '[color=#FF0000]infobox/corner_right_left.gif[/color]')));

 

$this->tableBox($info_box_contents, true);

}

}

 

In case of the red marked code it doesn´t show "infoBox" (as you suggested) but "contentBox" I amended it anyway. Is this the reason why?

Share this post


Link to post
Share on other sites

I resetted my cache using "ccleaner" and additional the function within my Firefox 3.5 But it appears to be the same picture...

 

 

I was refering to your store cache, not your browser cache, try disabling the cache if your unsure. wink.gif


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.

Share this post


Link to post
Share on other sites

I was refering to your store cache, not your browser cache, try disabling the cache if your unsure. wink.gif

oh.. ok :)

I disabled it but there´s no change...

 

And if it depends on something like the cache shouldn´t it effect the whole site?

I mean a part of the site shows as it should (with the new graphics) and the rest not.

And it was the same for all the different tries. It always just effects the box "new products" and all the other boxes stay as they were...

 

Take a look by yourself http://www.msw-preisschlacht.de

Share this post


Link to post
Share on other sites

oh.. ok smile.gif

I disabled it but there´s no change...

 

And if it depends on something like the cache shouldn´t it effect the whole site?

I mean a part of the site shows as it should (with the new graphics) and the rest not.

And it was the same for all the different tries. It always just effects the box "new products" and all the other boxes stay as they were...

 

Take a look by yourself http://www.msw-preisschlacht.de

 

 

Looks like you have failed to install correctly, check you are only installing easy graphical borders & not any other version, perhaps How do I install a contribution http://forums.oscommerce.com/index.php?showtopic=343384&st=0#entry1432157 will help you.


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.

Share this post


Link to post
Share on other sites

Looks like you have failed to install correctly, check you are only installing easy graphical borders & not any other version, perhaps How do I install a contribution http://forums.oscommerce.com/index.php?showtopic=343384&st=0#entry1432157 will help you.

Sorry, but I installed it almost 10 times... Always with the same mistake? I´m sure not ;)

But just to be sure:

1.) stylesheet.css - I added the needed code (starting with:".mws_boxTop { background: url('images/infobox/top.gif'); ) to the bottom of my file and afterwards I amended the following parts: "TABLE.productListing {" and ".productListing-heading{ ".

2.) application_top.php - before "// infobox..." I added "// Graphical Boxes..."

3.) boxes.php - found and replaced "function infoBox($contents) {...", found and replaced "function infoBox($contents) {..." could not find "class contentBox extends tableBox {..." ´cause my file differs a bit from the original (infoBox vs contentBox). Pls see below first spoiler! could not find "class contentBoxHeading extends tableBox {..." ´Cause this one also differs from the original one. Pls also see below second spoiler! found and replaced "class productListingBox extends tableBox {..."

4.) DONE!

Did I miss something?

 

And I´m absolutely sure that I tried to install easy graphical borders ´cause I downloaded it right from this thread ;)

But just to be sure:

The file is called "Easy Graphical Borders v1.1.zip" (taken from your openingpost) and it includes: a picture called "Easy-Graphical-Borders.jpg" your install advices called "Easy Graphical Borders 1.1.txt" an a folder called "catalog" including: two folders called "images" (including "infobox" and "infobox_main" with all the graphics) and "includes" (including "mws_functions.php" and the folder "classes" with a modified "boxes.php" from rc2a).

 

Thanks for the link but I know how to install a contrib. In fact I have about 20 contribs working properly in my actual shop... ;)

 

Have you ever checked my posted codes (if so you should have seen, that (if?) everything´s correct)?

I guess that one (or more) other contrib(s) is the reason for my problem but I´m not good enough in PHP to ensure where or why.

 

Maybe this one?

 

But I had some problems with finding the correct parts...

first one:

 

 

 

class contentBox extends tableBox {

function contentBox($contents) {

$info_box_contents = array();

$info_box_contents[] = array('text' => $this->contentBoxContents($contents));

$this->table_cellpadding = '1';

$this->table_parameters = 'class="infoBox"';

$this->tableBox($info_box_contents, true);

}

 

function contentBoxContents($contents) {

$this->table_cellpadding = '4';

$this->table_parameters = 'class="infoBoxContents"';

return $this->tableBox($contents);

}

}

 

In case of the red marked code it doesn´t show "infoBox" (as you suggested in your install advice) but "contentBox" in my installation. The posted code is from your included .txt not from my installation. I amended it anyway. Is this the reason why?

 

And the second one (it´s the same problem as above):

 

 

class contentBoxHeading extends tableBox {

function contentBoxHeading($contents) {

$this->table_width = '100%';

$this->table_cellpadding = '0';

 

$info_box_contents = array();

$info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',

'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif')),

array('params' => 'height="14" class="infoBoxHeading" width="100%"',

'text' => $contents[0]['text']),

array('params' => 'height="14" class="infoBoxHeading"',

'text' => tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif')));

 

$this->tableBox($info_box_contents, true);

}

}

 

In case of the red marked code it doesn´t show "infoBox" (as you suggested in your install advice) but "contentBox" in my onstallation. The posted code is from your included .txt not from my installation. I amended it anyway. Is this the reason why?

 

Have you ever checked my site? I thought it could be possible for you to determinate what went wrong.

 

I´m running v2.2 RC2. Maybe this have something to do with it?

 

Thanks for your patience ;)

 

As you have recognized already I´m not a native english speaker so it´s not so easy for me to explain everything properly ;)

Edited by skyhy

Share this post


Link to post
Share on other sites

 

 

I've just had a moment to take a look, it appears u have a previous installed mod that is setting the info boxes, you need to remove that & return to the standard infoboxes, the easy graphics can work.

 

ie the ShoppingCart box has the class ShoppingCartBoxHeading, that is not normal osc!!wink.gif


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.

Share this post


Link to post
Share on other sites

I've just had a moment to take a look, it appears u have a previous installed mod that is setting the info boxes, you need to remove that & return to the standard infoboxes, the easy graphics can work.

 

ie the ShoppingCart box has the class ShoppingCartBoxHeading, that is not normal osc!!wink.gif

 

OK! Thanks!

I guess I have to amend some parts of boxes.php. I will try to find out where and what.

 

Except you can give me some advice (hints)... ;)

Share this post


Link to post
Share on other sites

Hi i just haved installed this Great Contrib.

 

Thanks a lot, is perfect!!

 

but i have a problem when i check to ADD NEW ADRESS.

 

Looks like that,

 

borrarz.jpg

 

Anyone can help me?

 

I haved instaled in CLEAN OsC.

 

Thanks.

Share this post


Link to post
Share on other sites

Hi i just haved installed this Great Contrib.

 

Thanks a lot, is perfect!!

 

but i have a problem when i check to ADD NEW ADRESS.

 

Looks like that,

 

borrarz.jpg

 

Anyone can help me?

 

I haved instaled in CLEAN OsC.

 

Thanks.

 

You have made an error somewhere, or there is an error in your existing code, looks like an issue with the table structure.

 

If you installed a template from somewhere, remember they often come with many faults, try on a clean 2.2rc2a install. wink.gif


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.

Share this post


Link to post
Share on other sites

Hi spook. Thanks for the contribution. It's Great. I'd like to know how can i have same borders at the header and the footer.

Thank

Share this post


Link to post
Share on other sites

Spook;

 

Am wondering what sizes the images are. Would like to use your contribution but want to make differnet colors of the images to match my site. Would you happen to have the psd files where someone could change the colors to what they like?

Share this post


Link to post
Share on other sites

Spook;

 

Am wondering what sizes the images are. Would like to use your contribution but want to make differnet colors of the images to match my site. Would you happen to have the psd files where someone could change the colors to what they like?

 

 

I did'nt create the images, I just fixed the code, use the existing as templates, you must keep to thier sizes, p-shop will say how big they are.


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.

Share this post


Link to post
Share on other sites

Hi spook. Thanks for the contribution. It's Great. I'd like to know how can i have same borders at the header and the footer.

Thank

 

 

Tips are given in the doc on applying the borders to any box, and further in a number of posts ealier in this thread. wink.gif


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.

Share this post


Link to post
Share on other sites

Hiya's, I have added the Easy Graphical Borders contrub..my thanks to the author!!

 

I have been trying to get a scroll motif around the various infoboxes but I cant seem to get rid of the left and right borders. I am hoping that removing the side borders will allow the center image to align with the top and bottom..I can get them to be transpartent but that is about the limit of my ability with osC.. Does any know how to remove the left/right border completely so the center extends to the edge of the frame??

 

If the left and right border could not be removed, would an alternative be to add a scroll border as gif?

 

My perfect solution would be to have the whole scroll image sitting behind the text and have the scroll image auto-resize to the amount of text..ahh..wishful thinking..

 

The website is at www.alternatereality.com.au

 

Cheers

 

IJ

Share this post


Link to post
Share on other sites

Hi again,

 

Spooks hope you can help with todays silly problem. Installed easy graphic border and get this

 

omni.jpg

 

Any bright Ideas. I have checked all the images and they are all uploaded.I am also using sts 4.5.8 with the standard template only.

Share this post


Link to post
Share on other sites

 

 

looks like the path to some images is wrong, or images not uploaded, view your source to check path & check they are there.


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.

Share this post


Link to post
Share on other sites

Thanks again, realised it was in the css that I was having a problem. One last question. If I wanted to use this for example on the product info page or the checkout page, what would I need to do to impliment it. I am probably sure it is easy but my brain is rather confundled at the moment.

 

Thanks

Share this post


Link to post
Share on other sites

Thanks again, realised it was in the css that I was having a problem. One last question. If I wanted to use this for example on the product info page or the checkout page, what would I need to do to impliment it. I am probably sure it is easy but my brain is rather confundled at the moment.

 

Thanks

 

 

 

You can style any box using the included functions

 

if you have say

 

new contentBox($info_box_contents)

 

change to

 

echo mws_boxHeader ();

new noborderBox($info_box_contents);

echo mws_boxFooter();

 

if you need to place a title in the header, add the text within the brackets.

 

 

 

It you want to add the border to any table or box:

 

add above the table/item

 

<?php echo mws_boxHeader (); ?>

 

Your content goes here

 

<?php echo mws_boxFooter(); ?>

 

ends of effect!

 

 

 


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.

Share this post


Link to post
Share on other sites

Hi it's me again, oh joy.

 

 

 

Am I right in saying that by default the ".mws_blahBlah_main" CSS set and attending "infobox_main" folder of graphics are never used?

 

Presumably the intention was to be able to have a different look for the infoboxes in the middle panel than those in the left and right columns? Because that's what I want, and I'm sure it's a common graphical requirement.

 

Sorry spooks, I really have read through all the docs for both packages, and fannied about for an hour trying to fathom how to flick the switch. I am now ready for my embarrassment.

Share this post


Link to post
Share on other sites

Am I right in saying that by default the ".mws_blahBlah_main" CSS set and attending "infobox_main" folder of graphics are never used?

 

 

 

There used in the functions:

 

mws_header_main

and

mws_footer_main

so to use

 

add above the table/item

 

<?php echo mws_header_main (); ?>

Your content goes here

 

<?php echo mws_footer_main(); ?>

 

ends of effect!


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.

Share this post


Link to post
Share on other sites

Aww lummee, I can only get it to put the "_main" border around the other border at the moment, rather than replace it. I appreciate you're trying to drag me up rather than spell it out, but can you spell it out please? I just want all boxes in the main central column (new products, search results, selected items, specials, etc) to use the "_main" borders.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×