QUOTE (daniemuse @ Dec 26 2005, 07:40 AM)

Thank you for this. It did the trick. I'm only having one problem now... and that is with the CSS buttons. On any given page, one button shows up as what appears to be a graphic, but then the others show up as these plain boxy CSS "table" type buttons. I was poking around the html_output files from the package and I noticed a similarity: the buttons that submit a form show up as the cool "graphic", but the buttons that just redirect the customer to another page show up as the "table" type buttons. Can you help me get them all to look like the "graphic"? Or if there's no way to do that, what I need to do to go back to using actual graphics (.gif, etc.).
Thanks
D
Hi, The .css button part transforms all osc standard button calles into css defined buttons. Ie. the buttons looks are defined in stylesheet.css , you can have different borders, you can bevel the borders for a more button like look and/or you can add graphical background images to the buttons aswell and so on.
But if you want to just use the standard graphical buttons, you can just change this piece of code in includes/functions/html_output.php (from basic design pack mk1.3)
Change this
QUOTE
////
// The HTML form submit button wrapper function
// Outputs a button in the selected language
// BEGIN: CSS Buttons Everywhere
function tep_image_submit($image, $value = '-AltValue-', $parameters = '') {
global $language;
$css_submit = '<input type="submit" class="cssButton" value="' . tep_output_string($value) . '" />';
return $css_submit;
}
// END: CSS Buttons Everywhere
////
// Output a function button in the selected language
// BEGIN: CSS Buttons Everywhere
function tep_image_button($image, $value = '-AltValue-', $parameters = '') {
global $language;
$image = '<div class="cssButton"> ' . tep_output_string($value) . ' </div>';
return $image;
}
// END: CSS Buttons Everywhere
To this:
QUOTE
////
// The HTML form submit button wrapper function
// Outputs a button in the selected language
function tep_image_submit($image, $alt = '', $parameters = '') {
global $language;
$image_submit = '<input type="image" src="' . tep_output_string(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image) . '" border="0" alt="' . tep_output_string($alt) . '"';
if (tep_not_null($alt)) $image_submit .= ' title=" ' . tep_output_string($alt) . ' "';
if (tep_not_null($parameters)) $image_submit .= ' ' . $parameters;
$image_submit .= '>';
return $image_submit;
}
////
// Output a function button in the selected language
function tep_image_button($image, $alt = '', $parameters = '') {
global $language;
return tep_image(DIR_WS_LANGUAGES . $language . '/images/buttons/' . $image, $alt, '', '', $parameters);
}