-
Testing Zone
(
https://vborg.vbsupport.ru/forumdisplay.php?f=25 )
Jenta
12-07-2005 01:17 PM
Subscribe to post
Quote:
Originally Posted by JKN
My
site uses a fixed width skin so the goal was to prevent wide IMG linked images from messing with the design. Also I made the policy decision to care only for recent IE versions and browsers that actually follow CSS standards.
In
class_bbcode.php I replaced
PHP Code:
return '<img src="' . $link . '" border="0" alt="" />' ;
with
PHP Code:
$navigator_user_agent = ( isset( $_SERVER [ 'HTTP_USER_AGENT' ] ) ) ? strtolower ( $_SERVER [ 'HTTP_USER_AGENT' ] ) : '' ;
if ( stristr ( $navigator_user_agent , "msie" )) {
return '<img src="' . $link . '" border="0" alt="" style="width: expression(this.width > 730 ? 730 : true);" />' ;
} else {
return '<img src="' . $link . '" border="0" alt="" style="max-width: 730px;" />' ;
}
I don't know if vB 3.5 keeps an accessible variant containing the current browser. If I find out that such exists then I will modify the code to use that.
.............
All times are GMT. The time now is 07:33 AM .
Powered by vBulletin® Version 3.8.12 by vBS Copyright ©2000 - 2025, vBulletin Solutions Inc.
X
vBulletin 3.8.12 by vBS Debug Information
Page Generation 0.01028 seconds
Memory Usage 1,721KB
Queries Executed 10 (?)
More Information
Template Usage:
(1) ad_footer_end(1) ad_footer_start(1) ad_header_end(1) ad_header_logo(1) ad_navbar_below(2) bbcode_php_printable(1) bbcode_quote_printable(1) footer(1) gobutton(1) header(1) headinclude(6) option(1) post_thanks_navbar_search(1) printthread(1) printthreadbit(1) spacer_close(1) spacer_open
Phrase Groups Available:
Included Files:
./ printthread.php./ global.php./includes/ init.php./includes/ class_core.php./includes/ config.php./includes/ functions.php./includes/ class_hook.php./includes/ modsystem_functions.php./includes/ class_bbcode_alt.php./includes/ class_bbcode.php./includes/ functions_bigthree.php
Hooks Called:
init_startup init_startup_session_setup_start init_startup_session_setup_complete cache_permissions fetch_threadinfo_query fetch_threadinfo fetch_foruminfo style_fetch cache_templates global_start parse_templates global_setup_complete printthread_start bbcode_fetch_tags bbcode_create bbcode_parse_start bbcode_parse_complete_precache bbcode_parse_complete printthread_post printthread_complete
Messages: (unspecified) fetch_permissions(25, 0, 1,''); -> cached fperms for forum 25
returning smilies from the datastore
php_sapi_name(): fpm-fcgi