Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: br workaround for issue 64492 shows a space on every page  (Read 2631 times)

0 Members and 1 Guest are viewing this topic.

allvip

  • Coppermine addict
  • ****
  • Country: 00
  • Offline Offline
  • Posts: 1362
br workaround for issue 64492 shows a space on every page
« on: February 01, 2014, 11:39:26 am »

Because of <br /> <!-- workaround for issue 64492 - do not remove the line break! --> under token {GALLERY} I have a space on every page that shows the body background color:white.

The displayimage.php is black but it shows a white space before the footer - the br.
If I make the body background color black will show a black space before the footer on the white pages.

I made the #cpg_main_block_outer in style.css background-color:transparent; because the br is in div #cpg_main_block_outer so the br has his background-color.

I added at the end of function pageheader (copy it from themes/sample/theme.php if is not in your theme.php):

Code: [Select]
if ($CPG_PHP_SELF == 'displayimage.php') {
    echo '<body style="background-color:#000000;">';
}
Logged

Αndré

  • Administrator
  • Coppermine addict
  • *****
  • Country: de
  • Offline Offline
  • Gender: Male
  • Posts: 15764
Re: br workaround for issue 64492 shows a space on every page
« Reply #1 on: February 03, 2014, 04:30:26 pm »

Depending on your theme you maybe could also remove that line. It was added because there was a minor display issue with the default theme "curve" (see here).
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.