when no information on the width and the height is provided, the ban is not correctly displayed. That's fixed by crewstyle.
- Code: Select all
#
#-----[ OPEN ]------------------------------------------
#
includes/page_header.php
#
#-----[ FIND ]------------------------------------------
#
$banner_size = ($banners[$i]['banner_width']<>'') ? ' width="'.$banners[$i]['banner_width'].'"' : '';
$banner_size .= ($banners[$i]['banner_height']<>'') ? ' height="'.$banners[$i]['banner_height'].'"' : '';
#
#-----[ REPLACE WITH ]------------------------------------------
#
$banner_size = ( ($banners[$i]['banner_width'] == '') || ($banners[$i]['banner_width'] == '0') ) ? '' : ' width="' . $banners[$i]['banner_width'] . '"';
$banner_size .= ( ($banners[$i]['banner_height'] == '') || ($banners[$i]['banner_height'] == '0') ) ? '' : ' height="' . $banners[$i]['banner_height'] . '"';
SOURCE : http://forums.phpbb-fr.com/viewpost_589211.html#589211
Goodbye.

