No banner in forum, bug in v1.3.7 ? (solution inside)

a complete banner management system, any number of banners can be added
Forum rules
The content in this forum is dated Dec. 21 2005 and can be used as Archive only. This Forum is LOCKED and READ ONLY !

No banner in forum, bug in v1.3.7 ? (solution inside)

Postby ModBo on Fri 02. Sep, 2005 16:44

After installing this mod (v.1.3.7 located here) no banner was shown in forum.
Imagesize in ACP was set to zero/zero (width/height) to view image in full size.

Setting this values up to the correct image size fixed the problem and banner appeared in forum.

Looking in source code, I made the following changes:

page_header.php
Code: Select all
#
# --- [ 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']<>0) ? ' width="'.$banners[$i]['banner_width'].'"' : '';
         $banner_size .= ($banners[$i]['banner_height']<>0) ? ' height="'.$banners[$i]['banner_height'].'"' : '';


admin_banners.php
Code: Select all
#
# --- [ 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 = ($banner_info['banner_width']<>0) ? ' width="'.$banner_info['banner_width'].'"' : '';
      $banner_size .= ($banner_info['banner_height']<>0) ? ' height="'.$banner_info['banner_height'].'"' : '';


With these changes:
- banner appears in forum, size like ACP settings, by zero/zero fullsize
- ACP Image preview appears in correct size


Any hints?
ModBo
Poster
Poster
 
Posts: 6
Joined: Fri 29. Oct, 2004 07:48

Return to Complete banner [2.0.6/EM]

Who is online

Users browsing this forum: No registered users and 1 guest

cron