Advanced search  

News:

CPG Release 1.6.26
Correct PHP8.2 issues with user and language managers.
Additional fixes for PHP 8.2
Correct PHP8 error with SMF 2.0 bridge.
Correct IPTC supplimental category parsing.
Download and info HERE

Pages: [1]   Go Down

Author Topic: Album Page Numbers 1.4.9  (Read 4569 times)

0 Members and 1 Guest are viewing this topic.

crakup

  • Coppermine newbie
  • Offline Offline
  • Posts: 11
Album Page Numbers 1.4.9
« on: September 02, 2006, 12:51:54 am »

I don't know if anyone have noticed that in the CPG 1.4.9 the number of pages in any album are kind of over extended, i mean like very big, that's different than in the previous versions. I thought that it was a problem on my gallery after i made the update but i saw the same thing in all the themes in the demo that runs in your web page.
I want to know if this is a normal modification for the new version or something that can be fixed.

Thanks.


(https://forum.coppermine-gallery.net/proxy.php?request=http%3A%2F%2Fcrakup.cr.funpic.de%2Fh.jpg&hash=2e61477fe745fda204e79c7c871a29fbfcfcdaed)
Logged

Nibbler

  • Guest
Logged

mr.goose

  • Tester
  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 37
    • GarfNet | Penguin-powered and full of unixy goodness
Re: Album Page Numbers & tabs in version 1.4.9
« Reply #2 on: September 05, 2006, 07:02:32 pm »

Hi Crackup, I've been tearing my hair out over this too.

I'm no expert but it seems there either was an error in the old include/themes.inc.php file on line around line 1136 (in the version I was running), or as alluded to if you follow the link above, the second % was an escape character and probably should not have been removed in 1.4.9.

Whatever. :-\ This is a bodge and I really don't understand why it works -  but does work. And its easy enough to revert when the experts come back with a proper fix...

In the old file, the first part of this line read...
$template_tab_display = array('left_text' => '<td width="100%%" align="left" valign="middle"

In the new 1.4.9 version, line 1161 reads...
$template_tab_display = array('left_text' => '<td width="100%" align="left" valign="middle"

Note the two contiguous % signs in the old file.

If, like me, you want the new file to behave like the old one then...

  • go to line 1161 in the new /include/themes.inc.php file
  • replace the bit that reads: width="100%" with width="100%%" (yes it's crude but no other value seems to have the same effect ??? )
  • save & upload.

Job done!  ;D Works for me...
http://www.garfnet.org.uk/coppermine/thumbnails.php?album=1&page=5

Best wishes,

Mr G
Logged
Pages: [1]   Go Up
 

Page created in 0.014 seconds with 16 queries.