coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 upgrading => Topic started by: crakup on September 02, 2006, 12:51:54 AM

Title: Album Page Numbers 1.4.9
Post by: crakup 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://coppermine-gallery.com/forum/proxy.php?request=http%3A%2F%2Fcrakup.cr.funpic.de%2Fh.jpg&hash=2e61477fe745fda204e79c7c871a29fbfcfcdaed)
Title: Re: Album Page Numbers 1.4.9
Post by: Nibbler on September 02, 2006, 01:31:06 AM
http://forum.coppermine-gallery.net/index.php?topic=35701.0
Title: Re: Album Page Numbers & tabs in version 1.4.9
Post by: mr.goose 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...


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

Best wishes,

Mr G