osHelpers - Help for your osCommerce store
 
oscommerce Seo
  Seo Pack 2
  SE Friendly URLs
  Session ID Removal
  Title and Meta Tags
  Google Sitemap
Magnum Shopping Cart
  Magnum Light
  Magnum Multi Store
  Magnum MVS Basic
  Magnum MVS Advanced
osCommerce Services
  osc / cre patch
  Data Entry
  Data Extraction
  bugs and fixing
  Site Transfer
  creloaded Transfer
  Design Special
  Hosting
osCommerce Templates
osCommerce Contributions
  Credit Modules
  Features
  Images
  InfoBoxes
  Languages
  Order Total Modules
  Other
  Payment Modules
  Reports
  Shipping Modules
  Templates/Themes
  Zones
osCommerce Articles
osCommerce Tutorials
  Installing osCommerce
  Configuring your store
  Adding categories
  Adding products
  Adding product attributes
  Configuring currency
  Adding payment modules
  Adding shipping modules
  Configuring sales tax
  Editing your home page
  Editing columns
  Editing header and footer
  Creating specials
  Managing customers
  Sending out a newsletter
  Sending out email
  Managing your banners
  Backup database
CRELoaded Tutorials
  Add Administrators
  Add Article Author
  Additional Images
  Create a New Page
  Define Mainpage
  Disable cc Encryption
  Disable Company Field
  Disable Country
  Disable Date of Birth
  Display broken images
  Easypopulate Export
  Email confirmation
  Insert Faq
  Max Package Weight
  Require Terms of Use
  Affiliate Newsletter
  Enable Cache
CB Power Affiliate
Tell A Friend
 

Tell someone you know about this product.

   OSHELPERS | OSCOMMERCE CONTRIBUTIONS | INFOBOXES | 1012   


oscommerce infoboxcolorchangeseasier
[1012]
 
 
box_bg_l.gif.
"The curved and filled ends on the infoboxes makes it a pain to change the default colors scheme.

There are two scripts here:
generate_corners.php
corner.php

generate corners.php is a simple script to generate the corners. Put it in the images/infobox directory and make it writable by the web server then point at it. It will create the three infobox corner files in png (or gif if you have that compiled in) from the #rrbbgg color and show you the results. When pointed at it will guide you through.

corners.php is a dynamic replacement for the corner images. Unfortunately, it's just an example. The dynamics of it are mediocre, because the color is a simple php definition rather than pulling from a database. However, pulling from a database wouldn't make sense unless stylesheet.css did also.

Info for corner.php:

This is a simple replacement for those images. Takes arguments like so:
corner.php&l=l == corner_left.gif
corner.php&l=r == corner_right.gif
corner.php&l=rl == corner_right_left.gif

anything else is like rl

At the moment the color needs to be changed by hand, but I can only see two possible options (parsing the css in the corner.php would be difficult):

-php stylesheet with flat file defining colors
-php stylesheet with colors coming from sql
this could be rough on a database because css is called a lot

If the stylesheet were php then you could have the admin module change the colors pretty easily. You could also maintain themes for customers a bit easier."

 


For more information, visit the official osCommerce contribution webpage.
box_bg_r.gif.
 

osHelpers

osHelpers