Is it possible to have this resize modification only affect bbcode parsing when it is called from the vBadvanced news.php module?
I'd like to do something like the following, but I'm not sure of the exact syntax and whether or not I can determine the page/script name within class_bbcode.php.
EDIT: Nevermind, I got it working 5 seconds after I posted with the following:
Code:
if (THIS_SCRIPT == 'adv_index'){
$navigator_user_agent = ( isset( $_SERVER['HTTP_USER_AGENT'] ) ) ? strtolower( $_SERVER['HTTP_USER_AGENT'] ) : '';
if (stristr($navigator_user_agent, "msie")) {
return '<a href="' . $link . '" target="_blank"><img src="' . $link . '" border="0" alt="" style="width: expression(this.width > 640 ? 480 : true);" /></a>';
} else {
return '<a href="' . $link . '" target="_blank"><img src="' . $link . '" border="0" alt="" style="max-width: 730px;" /></a>';
}
} else {
return '<img src="' . $link . '" border="0" alt="" />';
}