Hi,
thanks for your reply. Yes, you probably do. It's just a bit frustrating when you're looking for a solution, then find a post where someone says he solved it but not how. ... Maybe I've done it myself before.
Anyway, I just found out why this piece "strlen($alt)<30" was there. Dirty. There are a few buttons that have long descriptions and there is little space for a button, e.g. update cart. Good thing to have an image there even when they are turned off. So if the text is looong (>30) -> image. I call this "dirty", because it's hard coded. If it was a setting in the backend, I'd have found it earlier. Or better yet, control this with a button parameter, or a special character in the button text.
Now I solved it like this (html_output.php, line 268 ff - my version):
Code:
$forceImage = $image[0];
if ($forceImage == '*') $image = substr($image, 1, strlen($image)-1);
//echo $forceImage . '<br/> Image: ' . $image;
if ((strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes') && ($forceImage <> '*')) return zenCssButton($image, $alt, 'submit', $sec_class /*, $parameters = ''*/ );
And in icon_names.php:
Code:
define('ICON_IMAGE_UPDATE', '*button_update_cart.gif');
Better ideas welcome!
Cheers,
Ralf.