I have now updated this mod to 1.3.7.
this fixes a isue wher ethe banner width / heigth was not set correct.
at same time I have changed this mod, so it supports width/ heigth as % and not only pixel size.
to upgrade, you must first change the DB fields banner_width and banner_height from medint(5) to varchar.
this is done by this SQL
- Code: Select all
ALTER TABLE `phpbb_banner` CHANGE `banner_width` `banner_width` VARCHAR( 5 ) DEFAULT '0' NOT NULL
ALTER TABLE `phpbb_banner` CHANGE `banner_height` `banner_height` VARCHAR( 5 ) DEFAULT '0' NOT NULL
then re-upload the new version of the file admin_banner.php
in file page_header.php
- Code: Select all
[FIND]
$banner_size = ($banners[$i]['banner_width'] && $banners[$i]['banner_height']) ? '"width="'.$banners[$i]['banner_width'].'" height="'.$banners[$i]['banner_height'].'"' : '';
[REPLACE WITH]
$banner_size = '';
$banner_size = ($banners[$i]['banner_width']<>'') ? ' width="'.$banners[$i]['banner_width'].'"' : '';
$banner_size .= ($banners[$i]['banner_height']<>'') ? ' height="'.$banners[$i]['banner_height'].'"' : '';
finally you may need to update your old banners with the following SQLs
- Code: Select all
UPDATE phpbb_banner SET banner_width='' WHERE banner_width=0
UPDATE phpbb_banner SET banner_height='' WHERE banner_height=0
if you will only correct the malformet HTML creatd, and not upgrade with the new feature, you may skip most of the abouve steps, only the changes done to page_header.php are excential