Jump to content
Sign in to follow this  
mikes

Graphical Borders on RSS News

Recommended Posts

This is just the thing I was looking for! Nice job :)

 

I don't know if it's somethign I did, or a bug, but when my shopping cart is empty, the table has the wrong name - instead of saying 'shopping cart' it just says the same title as whatever is the bottom box on the left column. Is there a tag missing somewhere or something? It's very weird!

 

http://www.gnpcrescendo.com/store

 

Melanie

Share this post


Link to post
Share on other sites
Hi

 

This is about the cross browser issue.

 

Everything renders fine in my IE5.

 

Problem is when using Netscape 6. When I log on to my internal test site the screen is drawn with the side bars and the bottom bar of the box graphic missing. The top bar of the graphic is okay though.

 

Ive been to sentientshopping.com with the same browser and I get the same result.

 

Ive stared at the stylesheet for ages but im unable to see any obvious syntax errors (which doesnt prove anything) or missing ;

 

Any clues as to what to try next?

Cheers

John

 

Here's what I did to fix it on my install:

 

In your stylesheet.css in the line that was added:

 

.mws_boxBottom {

background: url('images/infobox/bottom.gif')

 

Change to:

 

.mws_boxBottom {

background: url('images/infobox/bottom.gif');

 

Note the semi colon on the end.

 

Hope it helps!

 

Lance


Lance

Share this post


Link to post
Share on other sites

Hi.

 

Is this contribution still being supported?

 

I have a few questions if it is.

 

I followed the thread and made all the corrections and everything seems to be working correctly.

 

I just have a few questions.

 

I would like all the info boxes to be the same size see my site for a visual. My Webpage

 

Also how does one correct the white lines around the corners of the boxes and how do you change to internal color of the boxes? In the style sheet?

 

I don't see anything in admin to control the boxes. Is therer such a thing?

 

Thanks

 

Lee

Share this post


Link to post
Share on other sites

Hello! Great contribution!

 

Wondering how to adjust the space between the infoboxes... Look at my site

 

Im using IE and FireFox, its working great! But in firefox the litle search icon in the searchbox on left column is showing under the search field, its should show up on the right side of the search field, like in IE... Please help? :)

Share this post


Link to post
Share on other sites

When I finished install the contribution it cames this message:

Fatal error: Class messagestack: Cannot inherit from undefined class tablebox in /hsphere/local/home/ebagsmod/ebagsmode.com/catalog/includes/classes/message_stack.php on line 20

 

Why? Can Anyone Help me?

Share this post


Link to post
Share on other sites

All inofboxes are not the same width (I counted at least 3 different widths in Safari), is this normal?

Share this post


Link to post
Share on other sites

Hello

 

There another version with some corrections in instructions graphical borders v2

 

 

fix in stylesheet.css

 

the ; at the end of this line:

 

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

 

correct:

 

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

 

this fix that in Mozilla dont show the botton line in all infoboxes

 

 

created a new classes of boxes without borders for central modules of catalog to show only this graphical borders

 

and corrections to some modules of pages where show incorrect titles of modules, thats correct changing the class for thats tables

for example, when there are no products in shooping cart and go to see the shopping cart then see the title of last module of column left in the title of the module shooping cart, this if for the method of create the graphical boxes because in the central module that show the shopping cart appear a "infobox" and because no are define the title for that then take the title of last showed module, the information module,

the code of shopping_cart:

 

<td align="center" class="main"><?php new infoBox(array(array('text' => TEXT_CART_EMPTY))); ?></td>

 

a method to correct it:

 

1.- create a new class for boxes called noborderbox and add in:

 

catalog/includes/classes/boxes.php ADD at the end before ?>:

 

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

 

2.- and in the file:

 

catalog/stylesheet.css add this:

 

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

 

 

3.- and change that lines of shopping_cart.php for:

 

<td align="center" class="main"><?php new noborderbox(array(array('text' => TEXT_CART_EMPTY))); ?></td>

 

 

 

For reviews happen the same:

 

catalog/reviews.php

 

find about line 112:

 

<td><?php new infoBox(array(array('text' => TEXT_NO_REVIEWS))); ?></td>

 

replace:

 

<td><?php new noborderbox(array(array('text' => TEXT_NO_REVIEWS))); ?></td>

 

 

This could happen in other pages of catalog, the modifications if the same, first find the line that show the incorrect title and then change the classes of box for noborderbox

 

 

 

Another "bug", only for multiligual catalog is the title for modules insert in

 

for example in new products change this step:

 

*

* Open File and Find:

*

 

<!-- new_products //-->

 

*

* Add After:

*

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<?php echo mws_header('New Products'); ?>

<td>

 

for this:

 

*

* Open File and Find:

*

 

<!-- new_products //-->

 

*

* Add After:

*

 

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<?php echo mws_header(BOX_HEADING_WHATS_NEW); ?>

<td>

 

then in english title appear What?s new and spanish title Novedades, ....

 

the title appear in the language that are the catalog in any time

 

 

 

 

The new pack are update to last version of osCommerce:

 

osCommerce 2.2 Milestone 2 Update 051113

 

 

Include two versions:

 

one for osCommerce shops with modifications or other contributions installed, tthis have to upload only the new files that are in catalog folder of pack and have to do the manual modifications listed in install.txt instructions. Are descripted some posibilities of problems and corrects.

 

and one that include all files modifieds for installation of osCommerce without modifications, with 3 simple step can have this contributions instaled in a new osCommerce, thats files are in catalog_for_new_shop_only folder

 

 

The new pack have two new skins for borders,

 

have the psd files for thats skins to modifieds and include instructions to create new graphical borders files, there a screenshots and a graphic file thats describe how to create new borders and how works its.

 

can see a DEMO in http://www.oscommerce-demo.com/graphical_borders/

 

 

 

I hope that this is useful for all!

Edited by nicko107

Share this post


Link to post
Share on other sites

Hi !

 

Could someone help me please..?

 

I installed Grafical Borders (the last version) and it function ok. But there is one problem:

 

In English language the infobox borders are fine, but when I change the language to Hebrew (TEXT from right to left) I get the corners borders opposite.. :huh:

 

I will appreciate please, if someone could help me to solve this problem. Thanks !!

 

Regards,

Elazar

Share this post


Link to post
Share on other sites
Hi !

 

Could someone help me please..?

 

I installed Grafical Borders (the last version) and it function ok. But there is one problem:

 

In English language the infobox borders are fine, but when I change the language to Hebrew (TEXT from right to left) I get the corners borders opposite.. :huh:

 

I will appreciate please, if someone could help me to solve this problem. Thanks !!

 

Regards,

Elazar

 

No one can help me in this problem ???

 

Is Graphical Borders contribution support active or not ?? :huh:

Share this post


Link to post
Share on other sites

Hello

 

I suppose this will can resolve with a conditional similar the conditional of column _left.php or other that appear in catalog, I dont know how create it but will be a conditional that when use this language: index.php?language=xx then used other name of graphics that have inverse the graphics,

 

the graphics borders are define in stylesheet.css in:

 

.mws_boxTop	{ background: url('images/infobox/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   { 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; }

 

in that file dont indicate the corner graphics,

 

and in file uploaded, here is where are the upper_left, upper_right,...:

 

catalog/includes/mws_functions.php

 

  function mws_header ($msg='') {
$output = '
<td valign="top">
  <table border="0" width="100%" cellspacing="0" cellpadding="0">
	<tr>
	  <td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_left.gif','') . '</td>
	  <td class="mws_boxTop" align="center" valign="middle" width="100%">' . $msg . '</td>
	  <td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_right.gif','') . '</td>
	</tr>
	<tr>.............

 

thats function if for the borders of module of column_right and column_left, and to apply to modules of main page

 

If you only used Hebrew language then only changing the name of file upper_left.gif by upper_right.gif, and the others,... this will correct it, but if you used others language then if there any member of forum that can create thats conditional or modificate the functions then can resolve it

 

I suppose with (example) define BORDER_UPLEFT:

 

function mws_header ($msg='') {

$output = '

<td valign="top">

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td>' . tep_image(DIR_WS_IMAGES . 'infobox/' . BORDER_UPLEFT . ,'') . '</td>

<td class="mws_boxTop" align="center" valign="middle" width="100%">' . $msg . '</td>

<td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_right.gif','') . '</td>

</tr>

<tr>.............

 

or similar

and then in this "conditional" define something similar to:

 

if index.php?language=xx

them:

define .. BORDER_UPLEFT , upper_right.gif ..

else ..

define .. BORDER_UPLEFT , upper_left.gif ..

 

I image that there a something similar to that, but I havent the knowledge to doing that yet, Im sorry for dont can help you more with this

 

I dont modificated anything in the function, only update with bug fix and better graphics and delete the default borders with new class of border

Share this post


Link to post
Share on other sites
Hello

 

I suppose this will can resolve with a conditional similar the conditional of column _left.php or other that appear in catalog, I dont know how create it but will be a conditional that when use this language: index.php?language=xx then used other name of graphics that have inverse the graphics,

 

the graphics borders are define in stylesheet.css in:

 

.mws_boxTop	{ background: url('images/infobox/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   { 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; }

 

in that file dont indicate the corner graphics,

 

and in file uploaded, here is where are the upper_left, upper_right,...:

 

catalog/includes/mws_functions.php

 

  function mws_header ($msg='') {
$output = '
<td valign="top">
  <table border="0" width="100%" cellspacing="0" cellpadding="0">
	<tr>
	  <td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_left.gif','') . '</td>
	  <td class="mws_boxTop" align="center" valign="middle" width="100%">' . $msg . '</td>
	  <td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_right.gif','') . '</td>
	</tr>
	<tr>.............

 

thats function if for the borders of module of column_right and column_left, and to apply to modules of main page

 

If you only used Hebrew language then only changing the name of file upper_left.gif by upper_right.gif, and the others,... this will correct it, but if you used others language then if there any member of forum that can create thats conditional or modificate the functions then can resolve it

 

I suppose with (example) define BORDER_UPLEFT:

 

function mws_header ($msg='') {

$output = '

<td valign="top">

<table border="0" width="100%" cellspacing="0" cellpadding="0">

<tr>

<td>' . tep_image(DIR_WS_IMAGES . 'infobox/' . BORDER_UPLEFT . ,'') . '</td>

<td class="mws_boxTop" align="center" valign="middle" width="100%">' . $msg . '</td>

<td>' . tep_image(DIR_WS_IMAGES . 'infobox/upper_right.gif','') . '</td>

</tr>

<tr>.............

 

or similar

and then in this "conditional" define something similar to:

 

if index.php?language=xx

them:

define .. BORDER_UPLEFT , upper_right.gif ..

else ..

define .. BORDER_UPLEFT , upper_left.gif ..

 

I image that there a something similar to that, but I havent the knowledge to doing that yet, Im sorry for dont can help you more with this

 

I dont modificated anything in the function, only update with bug fix and better graphics and delete the default borders with new class of border

 

 

Dear nicko107 !!

 

Thank you so much for your valuable reply ! I really much appreciate it !

Your offer is very good !

Since that I use Hebrew as the main language, then I think to use the "IF" condition on the English language.

 

Since I am really new in PHP then I hope someone kind from that forum could help me to create that condition or modification of that function.

 

I want to thank you again for your kind help nicko107 ! :)

 

 

Best Regards,

Elazar Harari

Share this post


Link to post
Share on other sites
Dear nicko107 !!

 

Thank you so much for your valuable reply ! I really much appreciate it !

Your offer is very good !

Since that I use Hebrew as the main language, then I think to use the "IF" condition on the English language.

 

Since I am really new in PHP then I hope someone kind from that forum could help me to create that condition or modification of that function.

 

I want to thank you again for your kind help nicko107 ! :)

Best Regards,

Elazar Harari

 

NO one can help me to solve that problem !!! Is it too difficult to solve or what ??

 

I ready to pay for this modification ! You are welcome to quote your price...

Share this post


Link to post
Share on other sites

I'd like to thank you, Mike and nicko107, for your efforts on this contrib.

Now I'm not stuck with hacking my own infoBoxes!

I only wish I'd found it sooner. :thumbsup:

Share this post


Link to post
Share on other sites

the manufacturers box didnt respond to the new look at all.

is there a way to do it?

the some for the category box ( i use great categories contribution )

thanks in advance

Share this post


Link to post
Share on other sites

Hello, I got some problems.. or more like some stuff I wanna change.

First of all:

Is there any way to set a new height to the pictures? It looks like this when I add a new higher top. as you see the picture go in to the box instead of staying where it should.

 

and the second thing I wanna fix is:

When you change the contentbox you get a write it under "noborderBox($info_box_contents);"

is there anyway you could change only the noborderbox to show different pictures because i dont wanna have a different top on my site for the contentboxes. It looks like this now, But i only want it to be on the content boxes and not the infoboxes if you know what i mean :o

Share this post


Link to post
Share on other sites

I fixed my second problem myself, I just remade all the steps with a mws_functions2.php and added a 2 on all the files that I needed to change then a did a infobox2 folder and copied all the stylesheet info and replaced everything with infobox2 :)

 

Anyways I really need to fix the height on the top but cant find a way to do it. can anyone give me a hand?

Share this post


Link to post
Share on other sites

Woho I fixed it after some days of thinking I finally found out how to fix it..

If you wanna set your own height you gotta change this red line in boxes.php:

 

class infoBox extends tableBox {

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;

$this->table_cellpadding = '0';

 

It should say 3 instead of 0

Share this post


Link to post
Share on other sites

Hi,

 

I have tried to installed the contrib and did some adjustment to some infoboxes, however i have problems with the combination of coolmenu .... it makes the categories box dissapear due to the boxes... anyone has same problem ?

 

 

 

I would appreciate to be notified ...

 

my web is www.eK-gadgets.com/catalog

 

regards,

me

Share this post


Link to post
Share on other sites
I seem to have an issue after installing this contrib where my new products for..... box is just displaying the words new products rather than the actual products. where have I gone wrong?

seen here http://www.jbosolutions.co.uk

 

Thanks

 

Olly

 

 

I actually sorted it. It was because i was using random new products contrib. all I had to do was go through and where it said $new_products I changed it to $random_products and it works

Share this post


Link to post
Share on other sites

Hi

 

I upload a new version:

 

Graphical Borders v2.1

 

http://www.oscommerce.com/community/contributions,1702

 

Include some fixes and more features:

 

- The graphics borders of columns boxes have now different graphics to the borders of main modules, this display a different look in columns and main modules

 

- graphics are optimize and have smaller kbs that version 2

 

- graphics of left side of boxes change to 14 pixels width and now are the same of right side.

 

- Install instructions and update intructions (v2 - v2.1) in english and spanish

 

 

 

And I upload another pack:

 

Extra pack to 2.1 - some different sets of borders and PSD files

 

this pack include some sets of graphics borders with different styles to choose

and the PSD files of borders with each style in layers to customization the graphics

 

 

 

 

IMPORTANT NOTE:

 

I change the width of left graphics because it have different width of right side

 

* left upper corner graphic: upper_right.gif version 2 have width 12x12, now have 14x12

 

the upper_right.gif file have 14x12 pixels in version 2 and this version

 

with this both files, right and left have the same width

 

I prefer to do this fix now for simplificate the creation of new graphics and for prevent errors in future

 

 

* left border: left.gif old: 12x2 and new: 14x2 pixels

* botton left corner: lower_left.gif , old: 12x2 and new: 14x12

 

 

This only will have effect in Individual boxes where the width of thats file are define in code, but only have to do the next change in code:

 

width="12" to width="14" in all locations where appear this code

 

In the next version of Individual boxes will be include this fix

 

 

 

 

 

In a few days I upload a new instructions to applied this contribution to module of Star Products, and others contributions, Krika news,...

 

 

I?m working in a new version for Individual boxes contribution that include graphics borders of this contributions and modifications include in this new version of Graphical borders

This new version have fixes for double left and rigth borders, and others fixes. In a other pack I upload the instructions for applied Individual boxes for products of Featured Products module and Specials on default contributions

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  

×