Album Page Numbers 1.4.9 Album Page Numbers 1.4.9
 

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

Main Menu

Album Page Numbers 1.4.9

Started by crakup, September 02, 2006, 12:51:54 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

crakup

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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fcrakup.cr.funpic.de%2Fh.jpg&hash=2e61477fe745fda204e79c7c871a29fbfcfcdaed)


mr.goose

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