Hey thanks for code, but no luck...
I think vBulletin added a space to your code on upload.You've got an extra space in 'FILENAME_ADVANCE D_SEARCH_RESULT' (mentioned for anyone trying this at home).
All said and done... this still doesn't align the search field with the image. The BR's just feed a line; and with them removed I'm back to my original results.
The following code seems to do the trick. (Note: This applies to v.1.3.6.) The solution lies in 'html_output.php' with the 'zen_image_submit' command.
We need to add alignment to the submit button:
1. Add to your stylesheet.
PHP Code:
.zen_image_submit_align{
vertical-align:middle;
}
2. Replace in html_output.php (we're really only adding class="zen_image_submit_align"):
PHP Code:
function zen_image_submit($image, $alt = '', $parameters = '', $sec_class = '') {
global $template, $current_page_base, $zco_notifier;
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30) return zenCssButton($image, $alt, 'submit', $sec_class /*, $parameters = ''*/ );
$zco_notifier->notify('PAGE_OUTPUT_IMAGE_SUBMIT');
$image_submit = '<input type="image" src="' . zen_output_string($template->get_template_dir($image, DIR_WS_TEMPLATE, $current_page_base, 'buttons/' . $_SESSION['language'] . '/') . $image) . '" alt="' . zen_output_string($alt) . '"';
if (zen_not_null($alt)) $image_submit .= ' title=" ' . zen_output_string($alt) . ' "';
if (zen_not_null($parameters)) $image_submit .= ' ' . $parameters;
$image_submit .= ' />';
return $image_submit;
}
with
PHP Code:
function zen_image_submit($image, $alt = '', $parameters = '', $sec_class = '') {
global $template, $current_page_base, $zco_notifier;
if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes' && strlen($alt)<30) return zenCssButton($image, $alt, 'submit', $sec_class /*, $parameters = ''*/ );
$zco_notifier->notify('PAGE_OUTPUT_IMAGE_SUBMIT');
$image_submit = '<input type="image" src="' . zen_output_string($template->get_template_dir($image, DIR_WS_TEMPLATE, $current_page_base, 'buttons/' . $_SESSION['language'] . '/') . $image) . '" alt="' . zen_output_string($alt) . '"';
if (zen_not_null($alt)) $image_submit .= ' title=" ' . zen_output_string($alt) . ' "';
if (zen_not_null($parameters)) $image_submit .= ' ' . $parameters;
$image_submit .= ' class="zen_image_submit_align"/>';
return $image_submit;
}
It doesn't appear to have any adverse effects on other forms. Let me know what you think!