Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Graphical Borders on RSS News


mikes

Recommended Posts

Hi Nicko,

 

Please can you tell me where abouts I need to look or change to be able to add an icon to the left of the infobox heading.

 

ie. <icon>Categories or <icon>Whats New

 

I could add it before I added this contribution in the catalog/includes/classes/boxes file, I have looked through the various changes and I am a little unsure as to where I need to be looking or what I should be looking for.

 

Thanks

 

Mark

Lifes a bitch, then you marry one, then you die!

Link to comment
Share on other sites

  • Replies 164
  • Created
  • Last Reply

Top Posters In This Topic

Hi Julijan,

 

Are you able to provide a link to your store so I can see if I can help

 

Nicko, please ignore my post above as I have managed to solve this issue.

 

Mark

Lifes a bitch, then you marry one, then you die!

Link to comment
Share on other sites

Hi All,

 

This contrbution is exactly what i have been looking for, for my new store update. However, i have 'wolfen featred sets' installed, and although the contribution works right out the box and wraps the graphical boxes around the sets, every product box has the title 'categories'. This also happens in shopping_cart.php. Whenever i change the BOX_HEADING_CATEGORIES defin in english php these change to whatever i edit it too.

 

Now i have attempted to make the amendment to shopping_cart.php as outlined in the instructions, for when the title is incorrect but i get the following error:

 

Fatal error: Cannot instantiate non-existent class: noborderbox in c:\program files\easyphp1-8\www\shopping_cart.php on line 349

 

Any ideas on how i can rectify this would be most appreciated.

 

Also, on a brighter note, i' like to customise the borders myself, but find the enclosed .PSD files not much use as they do not include the blending options for each layer? Does anyone have these?

 

Thanks in advance, and i look forward to your response.

 

Donna

Link to comment
Share on other sites

Hi All,

 

This contrbution is exactly what i have been looking for, for my new store update. However, i have 'wolfen featred sets' installed, and although the contribution works right out the box and wraps the graphical boxes around the sets, every product box has the title 'categories'. This also happens in shopping_cart.php. Whenever i change the BOX_HEADING_CATEGORIES defin in english php these change to whatever i edit it too.

 

Now i have attempted to make the amendment to shopping_cart.php as outlined in the instructions, for when the title is incorrect but i get the following error:

 

Fatal error: Cannot instantiate non-existent class: noborderbox in c:\program files\easyphp1-8\www\shopping_cart.php on line 349

 

Any ideas on how i can rectify this would be most appreciated.

 

Also, on a brighter note, i' like to customise the borders myself, but find the enclosed .PSD files not much use as they do not include the blending options for each layer? Does anyone have these?

 

Thanks in advance, and i look forward to your response.

 

Donna

 

 

Hi

 

open file:

 

catalog/includes/classes/boxes.php

 

and before the last tag ?> add this code:

 

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

 

 

 

regards

Link to comment
Share on other sites

hello i get this with firefox...

 

29f2j6c.jpg

 

 

Hi

 

only need to do this:

 

edit file:

 

catalog/stylesheet.css

 

and add this code:

 

/* Graphical Borders - boxes column_left_right - Star */
.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;
			  }
.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; }
/* Graphical Borders - boxes column_left_right - Star */

/* Graphical Borders - boxes main modules and file-pages - Star */
.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; }
/* Graphical Borders - boxes main modules and file-pages - End  */

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

 

 

 

regards

Link to comment
Share on other sites

Hi Nicko,

 

Please can you tell me where abouts the product name length is defined for things like the featured products and default_specials on the index page as some of my products have long names and they are getting cut off.

 

Thanks & Happy New Year

 

Mark

Lifes a bitch, then you marry one, then you die!

Link to comment
Share on other sites

Hi Nicko,

 

Please can you tell me where abouts the product name length is defined for things like the featured products and default_specials on the index page as some of my products have long names and they are getting cut off.

 

Thanks & Happy New Year

 

Mark

 

 

 

Hi

 

in Featured Products module:

 

catalog/includes/modules/featured.php

 

is define in the 30 of this code:

 

. substr($featured_products['products_name'], 0, 30) .

 

you can change the length changing the 30, this is the charapters numbers of the product name

 

 

this code appear in two locations in this file

 

 

and for Specials on default in file:

 

catalog/includes/modules/default_specials.php

 

in this code:

 

 . substr($default_specials['products_name'], 0, 30) .

 

the same 30

 

only appear in one location in this file

 

 

 

regards

 

and Happy a New Year

Link to comment
Share on other sites

Hi Nicko, maybe do you know, how to install graphical borders on basic design pack. I tryed to install it with step by step, but it didnt work... when i install it i see always left column of boxes(without graphical borders on them) right coulmn was disappear.

Link to comment
Share on other sites

Hello! i tryed to installed graphical borders2.1 on Basic Design pack9 but i see uncomplete. But the problem is that i think i didnt missed nothing or did wrong... Its strange because i dont see graphics modules on the left column and right column... I would be really glad if you help me here...

i will put picture of my side to see this problem better. thanks

 

2yy5l5t.jpg

Link to comment
Share on other sites

Please could you help I installed this program today and get an error

Fatal error: Class 'CategoriesBoxHeading' not found in /home/phoneaid/public_html/test/includes/boxes/categories.php on line 105

 

I looked and you don't even have that in your folders.

 

I have Basic Design Pack installed and I am not a programmer can someone help please?

 

http://phoneaids.com/test

Link to comment
Share on other sites

Hello!!!

 

First of all thanks a lot for this geat contrib.

 

But there is one problem: I`ve installed the contrib "Great Categories" too. When I leave the Startpage to a category, the boxes have no more a border.

 

When I go to e.g. service.php all the boxes are getting the boarder back. Only the categories are wrong.

 

 

I`ve changed all the stylesheet.css in includes\classes\thema\1 (2,3,4..)\*.css too.

 

Can anyone help?

 

Thanks a lot from germany...

 

Rgds.

 

rusky

Link to comment
Share on other sites

I installed this Contribution and it worked fine until I installed "Show Sub Categories" contrib. All of the boxes still have the graphical borders except "Categories" if you could tell me what I need to do in order to add the graphical borders to "Categories" I would appreciate it. Thanks

Link to comment
Share on other sites

Hi

 

the boxes of columns change automatically when finish the installation

 

you see if you have this line in the box of the columns:

 

new infoBox($info_box_contents);

 

in catalog/includes/boxes/files.php

files.php are the files that display in the column of your catalog: categories.php, manuefacturers.php,...

 

The graphical borders contribution change this class of infobox to display the graphics borders

If you have other classe define for this boxes then its that cause dont change the borders, but if you have this line then see if you do all changes of intructions and have all the files uploaded

 

Can someone explain I have installed this and I do not have files.php anyplace?

 

I also have got an issue with missing the bottom of all the boxes could someone please help me?

 

My site is phoneaids.com/test

 

Thanks

Link to comment
Share on other sites

Hi

 

For work the Graphical Borders contributions the boxes files have to use the infobox class

 

The boxes of columns are in files of directory boxes:

 

catalog/includes/boxes/categories.php <-- file of categories menu

catalog/includes/boxes/information.php <-- file of information box

catalog/includes/boxes/currencies.php <-- file of currencies

...

 

All of thats files about the end of the code have this line:

 

  new infoBox($info_box_contents);

 

The Graphical Borders contribution modify the infoBox class of boxes use by this files

 

this is the reason that the rounded borders arent displayed in some boxes or in some stores if this boxes have other classes instead infoBox

 

 

Basic design Pack use other class, osCommerce by default use infoBox for all the boxes but Basic design Pack use others class and a different class for each box

 

I dont try this contribution but I think the solution could be doing the changes to that classes instead the infoBox class or adapted the code for it

 

 

 

 

About the "Show Sub Categories" contributions, thats contribution used other class to the categories box, it use the noborderbox class, but there arent a problem to change in the code of this file catalog/includes/boxes/categories.php the noborderclass that appear about the end of the code to infoBox class to display the graphical borders in this box.

 

 

 

 

regards

Edited by nicko107
Link to comment
Share on other sites

nicko

 

 

do you have the code to show the in stock-out of stock buttons on the front page modules ?

 

featured

default specials

 

 

i cant find it anywhere and the code i've tried doesn't work. I see you have it working on your demo site.

 

 

cheers

 

:thumbsup:

Link to comment
Share on other sites

Hi,

Samething here. The Graphical Boxes works great on IE, but seems the FireFox cannot read the css...

Borders disappear, text shows wrong sizes... etc...

 

 

 

Hi

 

only need to do this:

 

edit file:

 

catalog/stylesheet.css

 

and add this code:

 

/* Graphical Borders - boxes column_left_right - Star */
.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;
			  }
.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; }
/* Graphical Borders - boxes column_left_right - Star */

/* Graphical Borders - boxes main modules and file-pages - Star */
.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; }
/* Graphical Borders - boxes main modules and file-pages - End  */

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

regards

Link to comment
Share on other sites

  • 3 weeks later...

I've installed this on my test site. I noticed when I change the main background color I can see a white square box around the outside of the graphical borders. This is noticeable on the index for the new products module. Also on the productinfo.php and other pages. The column boxes are fine. Any idea where I can get rid of the white box?

 

Any help is appreciated!

Link to comment
Share on other sites

Hey folks - must say this is an awesome contribution, probably the best I've used so far - thanks very much to everyone involved.

 

I've got it mostly sorted however I'm looking to remove some of the original boxes from within the new curved boxes. I want to remove the one the arrows are pointing to.

 

removeboxes.jpg

 

It seemed as if someone asked the same thing on the last page, but they seemed to sort it without there really being an answer, unless I'm dumb and missed the answer, in which case sorry!

 

I guess you have to edit product_listing.php, which I tried but just ended up making a mess of things.

Link to comment
Share on other sites

  • 2 weeks later...

Ok found out on my own as usual...

 

you need to edit product_listing.php which is in /catalog/includes/modules/

 

Whenever it tries to create a box (two occasions near the bottom) - replace those function calls with:

 

new noborderbox($list_box_contents);

 

Then to remove the headings at the top such as product name or price (you can leave them in, I just don't think they're needed)... simply find the following code:

 

$list_box_contents[0][] = array('align' => $lc_align,

'params' => 'class="productListing-heading"',

'text' => ' ' . $lc_text . ' ');

 

and comment it out.... I haven't seen any problems arrising from this so far.

 

It's so quiet round here it's like having my own personal forum for myself!

Link to comment
Share on other sites

I just installed this contribution & like how it looks, but for some reason in IE I have horizontal scrolling which I will not have on my sites. I installed this code just as it said to & got this horizontal scrolling...has anyone else had this problem? How do I fix this?

Link to comment
Share on other sites

I installed this contribution but I ran into a problem. I installed a contribution that made the header of the column boxes have a grey header bar. I don't remember which contribution this is but I am sure it what is causing my problem. I would go all the way back to before I installed it but I have alot of contributions added since then. Here is my problem. All other boxes show up on the page except the ones on the left column (I don't have a right column but I am sure this would affect it to). I have gone through the instructions multiple times to see if I have missed something and can not see what I missed. I was wondering if anyone could tell me what controls the boxes for the columns so that I can fix it. Thanks in advance for the help.

Edited by zorainic
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...