Contributions
osC-CenterShop v2.1 for MS2
osC-CenterShop v2.1 for MS2
Updated for use with osCommerce v2.2 MS2
This contribution is now controlable via Adminpages and not longer via separate language files
- Center and Size the Shop for display on multiple resolution screens.
- Set a background color for around the shop.
Thanks to Linda McGrath <oscommerce@WebMakers.com>, for her original contribution, and Randy Newman for his modifications to MS2.
I have just make it useable via the Admin pages.
Please post any questions and issues related to this contribution to the osCommerce Message Board so all can learn and benefit!
Expand All / Collapse All
I thought I`d add this to this contrib as people keep asking.
This gives a much simpler technique than before so if you prefer the table way use an older edition.
To center & size Shop
At the very start of header.php add:
<div id="content">
then at the very bottom of footer.php add:
</div>
then add to your css:
#content {
width: 900; margin: auto;
border: 1px solid #999999;
text-align:center;
}
and add to the BODY tag
text-align:center;
Obviously set width above to whatever you need.
Thats It!!
The attached has same plus technique for different width header/footer to content:
Works with all osC versions
Following the instructions in post below and commenting out the background entry in footer.php, you may find that you have to change the "body {"entry in stylesheet.css to match the background colour set in the Centershop admin.
Instructions (which worked for me)
1. Install Centershop 3 with the footer.php modification from below post (or this post).
2. Change the background of your body to match the colour set in the Centershop admin.
I just modified the last table-tag in the footer.php (commented out!) in order to delete the spacer without the chosen background-color under the footer.
Just install this corrected Version v3.0 or copy the modified footer.php
Old :
1) In /catalog/stylesheet.css comment out the background entry in the BODY tag section.
new:
1) instead of adding every file the : bgcolor="<?php echo CENTER_SHOP_BACKGROUND_COLOR_OUT; ?>"> in the body tag section
change in stylesheet.css (around line 18)
old:
BODY {
background: #ffffff
to this:
BODY {
background: #"<?php echo CENTER_SHOP_BACKGROUND_COLOR_OUT; ?>";
point 3 should fall out.
I do not understand programming, but this seems to work like this.
Michael
p.s. the file nattached is the version 3.0
I noticed that there is a 150px heigh spacer placed in the footer.php so that when a site is displayed at a really high resoultion that the background color set in CenterShop goes to the bottom of the screen. This is a suggested workaround allowing you to remove the spacer:
* NOTE: This download is only the directions for this suggested workaround. To get the full package, download the file from the post below this entry.
1) In /catalog/stylesheet.css comment out the background entry in the BODY tag section.
2) Remove the spacer from the footer.php file.
3) In /catalog/index.php change the body tag to include bgcolor set to the background variable added by installing CenterShop. Example below is for the default index.php file, if you have added this tag in your index.php, just include the bgcolor attribute and value.
FROM:
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0">
TO:
<body marginwidth="0" marginheight="0" topmargin="0" bottommargin="0" leftmargin="0" rightmargin="0" bgcolor="<?php echo CENTER_SHOP_BACKGROUND_COLOR_OUT; ?>">
The background color set in CenterShop interface is now the default background for the site.
Great distro, really easy to install/remove. Just a small hint. If you get blank page after installation just make sure you chmod 644 footer.php header.php.
Regards,
Vladimir Abadzhiev
P.S. Rename the file to .txt form .zip
centrer |
Fouquart Thierry |
28 Jun 2004 |
|
je cherche a centrer la charte graphique
Re-corrected an oops that didn't get uploaded in my last theoretical correction.
Again, added a few more admin controls, as well as cleaned up and reorganized.
osC-CenterShop v2.2 for MS2
Corrected typo that prevented header image and link from appearing.
Added a few more admin controlls (border with, cell padding, cell spaceing)
osC-CenterShop v2.1 for MS2
Updated for use with osCommerce v2.2 MS2
This contribution is now controlable via Adminpages and not longer via separate language files
- Center and Size the Shop for display on multiple resolution screens.
- Set a background color for around the shop.
Thanks to Linda McGrath <oscommerce@WebMakers.com>, for her original contribution, and Randy Newman for his modifications to MS2.
I have just make it useable via the Admin pages.
Please post any questions and issues related to this contribution to the osCommerce Message Board so all can learn and benefit!
Note: Contributions are used at own risk.