Jump to content



Latest News: (loading..)

* * * * * 13 votes

Basics for design


  • Please log in to reply
1475 replies to this topic

#21   toasty

toasty
  • Members
  • 253 posts
  • Real Name:Chris
  • Location:http://www.linkmatics.com

Posted 29 March 2005 - 04:54 PM

How to change Box Borders?

There is some very useful info here, but I cannot find how to change the border on the boxes anywhere.

Believe me I have looked. I have looked everywhere. ...and I know its easy!
It is not done in the stylesheet. I have found the definition of the tableblock and tableBox classes in boxes.php, which defines the variable:
var $table_border = '0';

and
....$tableBox_string .= '<table border="' . $this->table_border . '.....

...but this is being changed somewhere because my boxes have borders. Without giving a lengthy run down of my search I still can't work out where it is set - I can't find the call.

I'm sure its easy when you know how - Can anyone help put me out of my misery?

#22   toyicebear

toyicebear
  • Community Sponsor
  • 6,059 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 30 March 2005 - 03:16 AM

Hi,

Boxes in the stylesheet.

  

.infoBox {
  background: #b6b7cb;
}

.infoBoxContents {
  background: #f8f8f9;
  font-family: Verdana, Arial, sans-serif;
  font-size: 10px;
}

.infobox sets the color for the outer table.

.infoboxContents sets the text and color for the inner table.

The "border" you see in your website is actually just the space between the outer and the inner table.

B)

Edited by toyicebear, 30 March 2005 - 03:17 AM.

Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#23   kootchie kooz

kootchie kooz
  • Members
  • 26 posts
  • Real Name:Rhonda

Posted 30 March 2005 - 05:30 PM

I'd like to thank you for putting this info on here!!! I need to ask a newbie question. I couldn't load up on how to insert a "about us" in the info box in the contributions and I would also like to put others in the info box also.  How would I do this?

TIA !!!!!!
Rhonda :D

#24   gastongr

gastongr
  • Members
  • 22 posts
  • Real Name:Gaston

Posted 31 March 2005 - 02:08 PM

Hi,
I have a question too  :thumbsup:

I'm making a store in www.templateslord.com. i have edited many things and it looks nice now, but it needs one more change.

As you can see i have removed the right colum, deleting all the content in colum_right.php.

But it seems the content of that file is inserted in an other table which is still there,
in my html output i see this

<!-- body_text_eof //-->
    <td width="175" valign="top"><table border="0" width="175" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->

	

<!-- right_navigation_eof //-->
    </table></td>
  </tr>
</table>
<!-- body_eof //-->

I'd like to remove all that code but i can't find the php file that outputs it.
Any idea?
Thanks in advance

#25   toyicebear

toyicebear
  • Community Sponsor
  • 6,059 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 01 April 2005 - 06:56 AM

kootchie kooz, on Mar 30 2005, 05:30 PM, said:

I'd like to thank you for putting this info on here!!! I need to ask a newbie question. I couldn't load up on how to insert a "about us" in the info box in the contributions and I would also like to put others in the info box also.  How would I do this?

TIA !!!!!!
Rhonda :D

<{POST_SNAPBACK}>



1. make the new about_us.php page and the coresponding  language about_us.php and add them to your web server.

2. add the defines to the includes/filnames.php
define('FILENAME_ABOUT_US', 'about_us.php');

3. add link defines to includes/languages/english.php

define('BOX_INFORMATION_ABOUT_US', 'About Us');

4. Add the link to /includes/boxes/information.php

 . '<a href="' . tep_href_link(FILENAME_CONDITIONS) . '">' . BOX_INFORMATION_CONDITIONS . '</a><br>' .
 . '<a href="' . tep_href_link(FILENAME_ABOUT_US) . '">' . BOX_INFORMATION_ABOUT_US . '</a><br>' .
 '<a href="' . tep_href_link(FILENAME_CONTACT_US) . '">' . BOX_INFORMATION_CONTACT . '</a>');

Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#26   toyicebear

toyicebear
  • Community Sponsor
  • 6,059 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 01 April 2005 - 07:01 AM

gastongr, on Mar 31 2005, 02:08 PM, said:

Hi,
I have a question too  :thumbsup:

I'm making a store in www.templateslord.com. i have edited many things and it looks nice now, but it needs one more change.

As you can see i have removed the right colum, deleting all the content in colum_right.php.

But it seems the content of that file is inserted in an other table which is still there,
in my html output i see this

<!-- body_text_eof //-->
    <td width="175" valign="top"><table border="0" width="175" cellspacing="0" cellpadding="2">
<!-- right_navigation //-->

	

<!-- right_navigation_eof //-->
    </table></td>
  </tr>
</table>
<!-- body_eof //-->

I'd like to remove all that code but i can't find the php file that outputs it.
Any idea?
Thanks in advance

<{POST_SNAPBACK}>


I took a look at your page and it seems you have removed it already.....

Nice look by the way......


For future reference...the call for the collum right and left is in every .php file in the catalog, so if you want to completly remove the reference you will have to edit all the files.


B)
Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#27   dwatson

dwatson
  • Members
  • 84 posts
  • Real Name:David Watson
  • Location:New York City

Posted 01 April 2005 - 04:39 PM

Quote

7. If a database table must be altered (or added) when installing a contribution, many readme files don't remind you to see whether the table ID (configuration group ID, etc.) is already in use. If you've installed a few contributions already, make it a habit to look at your database structure FIRST to see whether the IDs being assigned in the SQL text are open or not.

I do this by going to phpMyAdmin and browing through the structure of the table affected to see if the ID numbers are open. If they're already in use, change the ID numbers in the SQL text before continuing. If you're not sure how to do that, ASK FIRST. Somebody will help you.

HTH,

Terry

Terry,
This is a fantastic tip.  I know how to work with the MySQL tables and phpMyAdmin.  I would love to see a practical example of where this has been an issue -- a specific contribution or whatever.  I am going to be installing a number of contributions soon, and I want to make sure that I have the process down right.  I want to see exactly what you mean by "already in use" for the ID numbers.

I like also like the comment on not playing with a live store.  I had a user say: "Only college kids should be developing on the internet now."  If it were my son, given the state of his dorm room, he would be in playing with your live store.   :D
Thanks,

David Watson

#28   TerryK

TerryK
  • Members
  • 1,359 posts
  • Real Name:Terry Kluytmans
  • Location:BC Canada

Posted 01 April 2005 - 04:53 PM

Hi David,

I debated adding a live chat contrib to my store (Acheron's Live Support). It was the FIRST contribution where I've seen a notation by the author reminding you to check that the configuration_group_id and configuration_id value do not already exist in your database.

I've added numerous contributions to my site, and the assigned IDs in the SQL query were indeed already in use in my DB. I can only imagine the trouble I would have had if I'd not checked first. So I changed the SQL query to use numbers that I then confirmed were not in use before running the query. (Ultimately, I decided not to install the contrib -- at least for now. I may still do so in the future.)

It was definitely an eye-opener for me though -- and something I won't forget to do in the future. :)

Terry
Terry Kluytmans

Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like:

Add order total to checkout_shipment
Add order total to checkout_payment
Add radio buttons at checkout_shipping (for backorder options, etc.)
Duplicate Table Rate Shipping Module
Better Product Review Flow

* If at first you don't succeed, find out if there's a prize for the loser. *

#29   kootchie kooz

kootchie kooz
  • Members
  • 26 posts
  • Real Name:Rhonda

Posted 02 April 2005 - 07:20 AM

Thankyou very much!!!! :D  :D  :thumbsup:

Rhonda

#30   rus3439

rus3439
  • Members
  • 159 posts
  • Real Name:ruslan

Posted 02 April 2005 - 07:04 PM

mikmcmik, on Mar 26 2005, 10:30 AM, said:

thanks - this is all fantastic (i was just about to start a topic asking how I change the look of the site)   :-"

<{POST_SNAPBACK}>

Hi,
This is by far the most useful thread there is outhere.  Thanks.
I still have some questions though.  I downloaded the buttons from contribution but need to change text inside them.  Nobody offers "My account" or "Cart Contents" buttons for some reason.  I am using Macromedia Fireworks for image editing, but a newbie at editing buttons.
Another questions is: If i am using sts_template and want ot change "Buy now" buttons and all the buttons through out the page where do i find them?

Thanks,
Ruslan
We are not that rich to buy cheap things

#31   rus3439

rus3439
  • Members
  • 159 posts
  • Real Name:ruslan

Posted 02 April 2005 - 07:31 PM

rus3439, on Apr 2 2005, 11:04 AM, said:

Hi,
This is by far the most useful thread there is outhere.  Thanks.
I still have some questions though.  I downloaded the buttons from contribution but need to change text inside them.  Nobody offers "My account" or "Cart Contents" buttons for some reason.  I am using Macromedia Fireworks for image editing, but a newbie at editing buttons.
Another questions is: If i am using sts_template and want ot change "Buy now" buttons and all the buttons through out the page where do i find them?

Thanks,
Ruslan

<{POST_SNAPBACK}>

Ok i found where to change the buttons (catalog/includes/languages/english/images/buttons), but still can't change text inside some of the buttons.

Another problem of mine is that i can't seem to find how to change the background of boxes where links like "categories", "shopping cart", "order history", "languages" are located.  I mean those grey boxes by default on the main page.  I tried many changes in stylesheet.css but can't seems to nail the right one.
See the site for better understanding:

www.escapetorussia.com/Store/catalog

Please help,
Thanks in advance,
Ruslan
We are not that rich to buy cheap things

#32   toyicebear

toyicebear
  • Community Sponsor
  • 6,059 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 03 April 2005 - 01:23 AM

rus3439, on Apr 2 2005, 07:31 PM, said:

Ok i found where to change the buttons (catalog/includes/languages/english/images/buttons), but still can't change text inside some of the buttons.

Another problem of mine is that i can't seem to find how to change the background of boxes where links like "categories", "shopping cart", "order history", "languages" are located.  I mean those grey boxes by default on the main page.  I tried many changes in stylesheet.css but can't seems to nail the right one.
See the site for better understanding:

www.escapetorussia.com/Store/catalog

Please help,
Thanks in advance,
Ruslan

<{POST_SNAPBACK}>


Hi..

I see that you managed to change them, they show up white at your site now....

For furture reference the colors for the "inside" of infoboxes are located in stylesheet.css:

.infoBoxContents {
  background: #f8f8f9;
  font-family: Verdana, Arial, sans-serif;
  font-size: 10px;
}

In regards to buttons, a lot of the contribs has a template file attached inside, this is usually in .psd (photoshop format) ,  this template you can then use as a basis and just change the text to your new choosen one.

If your graphics program can not handle .psd , you will have to edit one of the other buttons to have no text, save it as your own template and then you can make the as many buttons with different text as you like with a basis in this template.

Another way is ofcoourse to download The Gimp, open sourch graphic program which supports most formats.

B)

Edited by toyicebear, 03 April 2005 - 01:24 AM.

Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#33   iguanairs

iguanairs
  • Members
  • 29 posts
  • Real Name:Rich
  • Location:East Coast - USA

Posted 06 April 2005 - 08:32 PM

Hello,
        I am not new to graphics, so I like to add as many custom ones as I can. I have noticed that with Cubecart (A HORRID program) that they have all of the "blocks" on the homepage encased by cells. This allows for some really unique appearnaces.

I have combed through many of the files pertaining to OSC, and I don't see how I could change the borders around the blocks to display graphics. I am completely capable of creating cell tables, and would even add them to this site if I knew WHERE to add them. lol


I would be most appreciative if someone could guide me on how I could pull this off.

(For those that care to know, Cubecart is NOT a good program to use as a storefront. It has some features, like the graphics, that I liked. The shops coding though contains a great deal of bugs. This includes the newest version, but also includes the complete line of 2.0 versions. I am switching over to OSC because of this. Also, they don't include shipping with their release. lol I guess they just assume shipping is free? Nonetheless, don't waste your time with that application as I did. It may be smaller and easier to customize, but OSC is much more powerful and comes with the items required to maintain a functioning site....like shipping and handling! lol)

Edited by Jan Zonjee, 18 September 2010 - 10:52 AM.


#34   toyicebear

toyicebear
  • Community Sponsor
  • 6,059 posts
  • Real Name:Nick
  • Location:World Citizen

Posted 07 April 2005 - 12:22 AM

iguanairs, on Apr 6 2005, 08:32 PM, said:

Hello,
� � � � I am not new to graphics, so I like to add as many custom ones as I can. I have noticed that with Cubecart (A HORRID program) that they have all of the "blocks" on the homepage encased by cells. This allows for some really unique appearnaces.

I have combed through many of the files pertaining to OSC, and I don't see how I could change the borders around the blocks to display graphics. I am completely capable of creating cell tables, and would even add them to this site if I knew WHERE to add them. lol


I would be most appreciative if someone could guide me on how I could pull this off.

(For those that care to know, Cubecart is NOT a good program to use as a storefront. It has some features, like the graphics, that I liked. The shops coding though contains a great deal of bugs. This includes the newest version, but also includes the complete line of 2.0 versions. I am switching over to OSC because of this. Also, they don't include shipping with their release. lol I guess they just assume shipping is free? Nonetheless, don't waste your time with that application as I did. It may be smaller and easier to customize, but OSC is much more powerful and comes with the items required to maintain a functioning site....like shipping and handling! lol)

<{POST_SNAPBACK}>


Firstly the looks of the boxes is controlled in the stylesheet.css file, and its possible to change colors and to add graphical images to the boxes there.

If you would like to change the way the boxes layout are functioning today , this is controlled in a file called boxes.php located in the folder  /includes/classes

Alternatively you could use on of these contributions.....

1.
Infobox Skin Manager

2.
Graphical Borders


B)

Edited by Jan Zonjee, 18 September 2010 - 10:52 AM.

Basics for osC 2.2 Design - Basics for Design V2.3+ - Seo & Sef Url's - Meta Tags for Your osC Shop - Steps to prevent Fraud... - MS3 and Team News... - SEO, Meta Tags, SEF Urls and osCommerce

Check out my profile [click here] for information on professional services, custom coding, templates, SEO optimization, modifications, commercial support and help.

#35   iguanairs

iguanairs
  • Members
  • 29 posts
  • Real Name:Rich
  • Location:East Coast - USA

Posted 07 April 2005 - 12:30 AM

Hello,
        I can't believe I didn't see the graphical boxes contrib. I figured out how to add graphics to the infoboxheadings. I just never realized there was a graphics "kit" for the borders as well. Thank you for pointing me in the right direction.

#36   webtrek

webtrek
  • Members
  • 38 posts
  • Real Name:.
  • Gender:Male

Posted 07 April 2005 - 12:46 AM

toyicebear, on Apr 6 2005, 05:22 PM, said:

Firstly the looks of the boxes is controlled in the stylesheet.css file, and its possible to change colors and to add graphical images to the boxes there.

If you would like to change the way the boxes layout are functioning today , this is controlled in a file called boxes.php located in the folder  /includes/classes

Alternatively you could use on of these contributions.....

1.
Infobox Skin Manager

2.
Graphical Borders
B)

<{POST_SNAPBACK}>


Wow!!! I am going to add one of these Cont. to my site. Anyone like one particularly better than the other?

#37   iguanairs

iguanairs
  • Members
  • 29 posts
  • Real Name:Rich
  • Location:East Coast - USA

Posted 07 April 2005 - 03:42 AM

Hello,
        Unfortunantly, the second contribution doesn't work correctly. I am fairly experienced, and I couldn't figure out the problems and there are cross browser issues. (Mozilla refuses to show the bottom images.)

I am preparing to see if I can get the first contribution to work.

#38   iguanairs

iguanairs
  • Members
  • 29 posts
  • Real Name:Rich
  • Location:East Coast - USA

Posted 07 April 2005 - 04:39 AM

iguanairs, on Apr 7 2005, 03:42 AM, said:

Hello,
        Unfortunantly, the second contribution doesn't work correctly. I am fairly experienced, and I couldn't figure out the problems and there are cross browser issues. (Mozilla refuses to show the bottom images.)

I am preparing to see if I can get the first contribution to work.

<{POST_SNAPBACK}>


I am playing with the first contribution, but there are a TON of bugs in one of the downloads. Trying to get the best and most updated download was not a wise choice on my part. It calls files that doesn't exist and even called upon a sql file that was named incorrectly.

I am trying to work around the bugs to see if I can get it to work.

#39   webtrek

webtrek
  • Members
  • 38 posts
  • Real Name:.
  • Gender:Male

Posted 07 April 2005 - 04:40 AM

iguanairs, on Apr 6 2005, 08:42 PM, said:

Hello,
        Unfortunantly, the second contribution doesn't work correctly. I am fairly experienced, and I couldn't figure out the problems and there are cross browser issues. (Mozilla refuses to show the bottom images.)

I am preparing to see if I can get the first contribution to work.

<{POST_SNAPBACK}>


Thanks, I will try the first one too....I use firefox, cross-browser compatability is very important to me.

#40   iguanairs

iguanairs
  • Members
  • 29 posts
  • Real Name:Rich
  • Location:East Coast - USA

Posted 07 April 2005 - 05:07 AM

webtrek, on Apr 7 2005, 04:40 AM, said:

Thanks, I will try the first one too....I use firefox, cross-browser compatability is very important to me.

<{POST_SNAPBACK}>




It is working. I need to play with a few more things, but so far, so good.